diff options
author | ryoon <ryoon@pkgsrc.org> | 2015-12-14 22:58:20 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2015-12-14 22:58:20 +0000 |
commit | 9803505fc9ee8d60648768955aa0b0c454f85248 (patch) | |
tree | 96e4ed0f2e0e9b81298ba82d05054cfccccadda5 /sysutils | |
parent | af425e9075a2a19714e3b579a0068f8cb00a6874 (diff) | |
download | pkgsrc-9803505fc9ee8d60648768955aa0b0c454f85248.tar.gz |
Fix packaging under SunOS and other non-BSD platform
Do not hardcode operating system suffix in PLIST.
Use LOWER_OPSYS instead of :lt for PLIST entry.
Thank you, richard@.
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/py-psutil/Makefile | 6 | ||||
-rw-r--r-- | sysutils/py-psutil/PLIST | 4 |
2 files changed, 6 insertions, 4 deletions
diff --git a/sysutils/py-psutil/Makefile b/sysutils/py-psutil/Makefile index 05a27c1f278..4faddd876a2 100644 --- a/sysutils/py-psutil/Makefile +++ b/sysutils/py-psutil/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.14 2015/12/06 09:21:06 wiz Exp $ +# $NetBSD: Makefile,v 1.15 2015/12/14 22:58:20 ryoon Exp $ DISTNAME= psutil-release-3.3.0 PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/-release//} @@ -21,8 +21,10 @@ EGG_NAME= psutil-${PKGVERSION_NOREV} # facilitate PLIST processing .if ${OPSYS} == "Darwin" PLIST_SUBST+= SYSTEM=osx +.elif !empty(OPSYS:M*BSD) +PLIST_SUBST+= SYSTEM=bsd .else -PLIST_SUBST+= SYSTEM=${OPSYS:tl} +PLIST_SUBST+= SYSTEM=${LOWER_OPSYS} .endif .include "../../lang/python/application.mk" diff --git a/sysutils/py-psutil/PLIST b/sysutils/py-psutil/PLIST index 78cc2adaf3c..65e7dece1a2 100644 --- a/sysutils/py-psutil/PLIST +++ b/sysutils/py-psutil/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.6 2015/12/01 14:07:36 ryoon Exp $ +@comment $NetBSD: PLIST,v 1.7 2015/12/14 22:58:20 ryoon Exp $ ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt @@ -27,7 +27,7 @@ ${PYSITELIB}/psutil/_psposix.pyo ${PYSITELIB}/psutil/_pssunos.py ${PYSITELIB}/psutil/_pssunos.pyc ${PYSITELIB}/psutil/_pssunos.pyo -${PYSITELIB}/psutil/_psutil_bsd.so +${PYSITELIB}/psutil/_psutil_${SYSTEM}.so ${PYSITELIB}/psutil/_psutil_posix.so ${PYSITELIB}/psutil/_pswindows.py ${PYSITELIB}/psutil/_pswindows.pyc |