pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
py-img2pdf: add lots of test dependencies
Module Name: pkgsrc-wip
Committed By: Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By: wiz
Date: Sun Nov 1 22:09:05 2026 +0100
Changeset: 01f771ba04d2b0c269233c1864d3bd36effcba3c
Modified Files:
py-img2pdf/Makefile
Log Message:
py-img2pdf: add lots of test dependencies
depend on colord for sRGB.icc file
add test status
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=01f771ba04d2b0c269233c1864d3bd36effcba3c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
py-img2pdf/Makefile | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diffs:
diff --git a/py-img2pdf/Makefile b/py-img2pdf/Makefile
index 1dea1b8b4c..a8479281ce 100644
--- a/py-img2pdf/Makefile
+++ b/py-img2pdf/Makefile
@@ -13,9 +13,35 @@ LICENSE= gnu-lgpl-v3
TOOL_DEPENDS+= ${PYPKGPREFIX}-flit_core>=3.2:../../devel/py-flit_core
DEPENDS+= ${PYPKGPREFIX}-Pillow-[0-9]*:../../graphics/py-Pillow
DEPENDS+= ${PYPKGPREFIX}-pikepdf-[0-9]*:../../print/py-pikepdf
+DEPENDS+= colord-[0-9]*:../../graphics/colord
+TEST_DEPENDS+= ${PYPKGPREFIX}-numpy-[0-9]*:../../math/py-numpy
+TEST_DEPENDS+= ${PYPKGPREFIX}-scipy-[0-9]*:../../math/py-scipy
+# convert
+TEST_DEPENDS+= ImageMagick-[0-9]*:../../graphics/ImageMagick
+# pdfimages, pdftocairo
+TEST_DEPENDS+= poppler-utils-[0-9]*:../../print/poppler-utils
+# exiftool
+TEST_DEPENDS+= p5-Image-ExifTool-[0-9]*:../../graphics/p5-Image-ExifTool
+# jpegtopnm
+TEST_DEPENDS+= netpbm-[0-9]*:../../graphics/netpbm
+# date --utc
+TEST_DEPENDS+= coreutils-[0-9]*:../../sysutils/coreutils
+
+TOOLS_PATH.date= ${TOOLBASE}/gnu/bin/date
+
+# as of 0.6.3:
+# 4 failed, 278 passed, 24 skipped, 5 warnings, 48 errors
+# mostly due to lack of tiff support with
+# PKG_DEFAULT_OPTIONS=-tiff
REPLACE_PYTHON+= src/img2pdf.py
+SUBST_CLASSES+= icc
+SUBST_FILES.icc+= src/img2pdf.py
+SUBST_SED.icc+= -e "s,/usr/share/color/icc/sRGB.icc,${PREFIX}/share/color/icc/colord/sRGB.icc,"
+SUBST_STAGE.icc= pre-build
+SUBST_MESSAGE.icc= Fixing path to color profile.
+
post-install:
${MV} ${DESTDIR}${PREFIX}/bin/img2pdf ${DESTDIR}${PREFIX}/bin/img2pdf${PYVERSSUFFIX}
${MV} ${DESTDIR}${PREFIX}/bin/img2pdf-gui ${DESTDIR}${PREFIX}/bin/img2pdf-gui${PYVERSSUFFIX}
Home |
Main Index |
Thread Index |
Old Index