pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

psutils: finish package



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%gatalith.at@localhost>
Pushed By:	wiz
Date:		Thu Jun 1 06:55:47 2023 +0200
Changeset:	48d342a68ccd5c18e5db02a73172919c8b026437

Modified Files:
	psutils/Makefile
	psutils/PLIST
Added Files:
	psutils/TODO

Log Message:
psutils: finish package

however, self tests don't run yet.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=48d342a68ccd5c18e5db02a73172919c8b026437

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 psutils/Makefile | 16 ++++++++++++++++
 psutils/PLIST    | 48 ++++++++++++++++++++++++++++++++++++++++++++++--
 psutils/TODO     |  2 ++
 3 files changed, 64 insertions(+), 2 deletions(-)

diffs:
diff --git a/psutils/Makefile b/psutils/Makefile
index 635633b1a9..88cfe1fdb3 100644
--- a/psutils/Makefile
+++ b/psutils/Makefile
@@ -10,9 +10,25 @@ HOMEPAGE=	https://github.com/rrthomas/psutils/
 COMMENT=	Utilities for manipulating PostScript documents
 LICENSE=	gnu-gpl-v3
 
+TOOL_DEPENDS+=	${PYPKGPREFIX}-argparse-manpage-[0-9]*:../../devel/py-argparse-manpage
 TOOL_DEPENDS+=	${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
 DEPENDS+=	${PYPKGPREFIX}-puremagic-[0-9]*:../../wip/py-puremagic
 DEPENDS+=	${PYPKGPREFIX}-pdf>=3.8.0:../../textproc/py-pdf
+TEST_DEPENDS+=	${PYPKGPREFIX}-test>=0:../../devel/py-test
+TEST_DEPENDS+=	${PYPKGPREFIX}-test-datafiles>=0:../../devel/py-test-datafiles
+TEST_DEPENDS+=	${PYPKGPREFIX}-testpath>=0:../../devel/py-testpath
+
+INSTALLATION_DIRS+=	${PKGMANDIR}
+
+PYTHON_VERSIONS_INCOMPATIBLE=	27
+
+post-install:
+	cd ${DESTDIR}${PREFIX}/share/man && ${MV} * ${DESTDIR}${PREFIX}/${PKGMANDIR}
+
+# still needs 'make install'
+TEST_ENV+=	PYTHONPATH=${WRKSRC}/build/lib
+do-test:
+	cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX}
 
 .include "../../print/libpaper/buildlink3.mk"
 .include "../../lang/python/wheel.mk"
diff --git a/psutils/PLIST b/psutils/PLIST
index 5af2bd37d3..ec5de9c5fc 100644
--- a/psutils/PLIST
+++ b/psutils/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.5 2023/04/13 14:22:35 wiz Exp $
+@comment $NetBSD$
 bin/epsffit
 bin/extractres
 bin/includeres
@@ -8,6 +8,51 @@ bin/psnup
 bin/psresize
 bin/psselect
 bin/pstops
+${PYSITELIB}/${WHEEL_INFODIR}/COPYING
+${PYSITELIB}/${WHEEL_INFODIR}/INSTALLER
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/REQUESTED
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/direct_url.json
+${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
+${PYSITELIB}/psutils/__init__.py
+${PYSITELIB}/psutils/__init__.pyc
+${PYSITELIB}/psutils/argparse.py
+${PYSITELIB}/psutils/argparse.pyc
+${PYSITELIB}/psutils/command/epsffit.py
+${PYSITELIB}/psutils/command/epsffit.pyc
+${PYSITELIB}/psutils/command/extractres.py
+${PYSITELIB}/psutils/command/extractres.pyc
+${PYSITELIB}/psutils/command/includeres.py
+${PYSITELIB}/psutils/command/includeres.pyc
+${PYSITELIB}/psutils/command/psbook.py
+${PYSITELIB}/psutils/command/psbook.pyc
+${PYSITELIB}/psutils/command/psjoin.py
+${PYSITELIB}/psutils/command/psjoin.pyc
+${PYSITELIB}/psutils/command/psnup.py
+${PYSITELIB}/psutils/command/psnup.pyc
+${PYSITELIB}/psutils/command/psresize.py
+${PYSITELIB}/psutils/command/psresize.pyc
+${PYSITELIB}/psutils/command/psselect.py
+${PYSITELIB}/psutils/command/psselect.pyc
+${PYSITELIB}/psutils/command/pstops.py
+${PYSITELIB}/psutils/command/pstops.pyc
+${PYSITELIB}/psutils/io.py
+${PYSITELIB}/psutils/io.pyc
+${PYSITELIB}/psutils/libpaper.py
+${PYSITELIB}/psutils/libpaper.pyc
+${PYSITELIB}/psutils/psresources.py
+${PYSITELIB}/psutils/psresources.pyc
+${PYSITELIB}/psutils/readers.py
+${PYSITELIB}/psutils/readers.pyc
+${PYSITELIB}/psutils/transformers.py
+${PYSITELIB}/psutils/transformers.pyc
+${PYSITELIB}/psutils/types.py
+${PYSITELIB}/psutils/types.pyc
+${PYSITELIB}/psutils/warnings.py
+${PYSITELIB}/psutils/warnings.pyc
 man/man1/epsffit.1
 man/man1/extractres.1
 man/man1/includeres.1
@@ -18,4 +63,3 @@ man/man1/psresize.1
 man/man1/psselect.1
 man/man1/pstops.1
 man/man1/psutils.1
-share/psutils/PSUtils.pm
diff --git a/psutils/TODO b/psutils/TODO
new file mode 100644
index 0000000000..0bb300f76b
--- /dev/null
+++ b/psutils/TODO
@@ -0,0 +1,2 @@
+self tests don't run yet
+https://github.com/rrthomas/psutils/issues/50


Home | Main Index | Thread Index | Old Index