diff --git a/graphics/py-img2pdf/Makefile b/graphics/py-img2pdf/Makefile index 54253b5cba37..b965cb6248a9 100644 --- a/graphics/py-img2pdf/Makefile +++ b/graphics/py-img2pdf/Makefile @@ -1,40 +1,39 @@ PORTNAME= img2pdf -DISTVERSION= 0.4.4 -PORTREVISION= 3 +DISTVERSION= 0.5.0 CATEGORIES= graphics python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= kai@FreeBSD.org COMMENT= Convert images to PDF via direct JPEG inclusion WWW= https://gitlab.mister-muffin.de/josch/img2pdf LICENSE= LGPL3+ LICENSE_FILE= ${WRKSRC}/LICENSE RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pikepdf>0:textproc/py-pikepdf@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${PY_FLAVOR} TEST_DEPENDS= ${PY_NUMPY} \ ${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR} \ exiftool:graphics/p5-Image-ExifTool \ jpegtopnm:graphics/netpbm \ pdftocairo:graphics/poppler-utils USES= python shebangfix magick:6,test USE_PYTHON= autoplist concurrent distutils pytest # Some tests fail, see following link for more info: # https://gitlab.mister-muffin.de/josch/img2pdf/issues/152 -PYTEST_BROKEN_TESTS= jpg_cmyk tiff_cmyk8 +PYTEST_BROKEN_TESTS= jpg_cmyk miff_cmyk8 test_date tiff_cmyk8 SHEBANG_FILES= src/img2pdf.py TEST_ENV= PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} NO_ARCH= yes OPTIONS_DEFINE= GUI OPTIONS_DEFAULT= GUI GUI_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tkinter>0:x11-toolkits/py-tkinter@${PY_FLAVOR} .include diff --git a/graphics/py-img2pdf/distinfo b/graphics/py-img2pdf/distinfo index fab177241c64..ade359f34858 100644 --- a/graphics/py-img2pdf/distinfo +++ b/graphics/py-img2pdf/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1680120812 -SHA256 (img2pdf-0.4.4.tar.gz) = 8ec898a9646523fd3862b154f3f47cd52609c24cc3e2dc1fb5f0168f0cbe793c -SIZE (img2pdf-0.4.4.tar.gz) = 97796 +TIMESTAMP = 1698568095 +SHA256 (img2pdf-0.5.0.tar.gz) = ae6c19731bde2551356c178bf356ca118ac32a232c737a14b423f8039df3c24b +SIZE (img2pdf-0.5.0.tar.gz) = 103853 diff --git a/graphics/py-img2pdf/files/patch-src_img2pdf__test.py b/graphics/py-img2pdf/files/patch-src_img2pdf__test.py deleted file mode 100644 index 40e9379b63fd..000000000000 --- a/graphics/py-img2pdf/files/patch-src_img2pdf__test.py +++ /dev/null @@ -1,30 +0,0 @@ -Fix value errors for some tests: - -> psnr = float(psnr.strip(b"0")) -E ValueError: could not convert string to float: b'61.5441 (0.615441)' -src/img2pdf_test.py:347: ValueError - -Obtained from: - -https://gitlab.mister-muffin.de/josch/img2pdf/issues/152 - ---- src/img2pdf_test.py.orig 2023-03-30 18:01:47 UTC -+++ src/img2pdf_test.py -@@ -345,7 +345,7 @@ def compare(im1, im2, exact, icc, cmyk): - stderr=subprocess.PIPE, - ).stderr - assert psnr != b"0" -- psnr = float(psnr.strip(b"0")) -+ psnr = float(psnr.split()[0]) - assert psnr != 0 # or otherwise we would use the exact variant - assert psnr > 50 - -@@ -501,7 +501,7 @@ def compare_pdfimages_png(tmpdir, img, pdf, exact=True - stderr=subprocess.PIPE, - ).stderr - assert psnr != b"0" -- psnr = float(psnr.strip(b"0")) -+ psnr = float(psnr.split()[0]) - assert psnr != 0 # or otherwise we would use the exact variant - assert psnr > 50 - (tmpdir / "images-000.png").unlink()