summaryrefslogtreecommitdiff
path: root/sysutils/py-psutil
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2015-01-24 23:23:48 +0000
committeradam <adam@pkgsrc.org>2015-01-24 23:23:48 +0000
commitb2e996812eca8cf335f7d23a25523de029a7f807 (patch)
tree15558dfb4d598f0e63e97193c8199d57eac90963 /sysutils/py-psutil
parent01e9df24082f562f68f893df6454701c05f4c49c (diff)
downloadpkgsrc-b2e996812eca8cf335f7d23a25523de029a7f807.tar.gz
Better PLIST processing; won't fail if built as a dependency.
Diffstat (limited to 'sysutils/py-psutil')
-rw-r--r--sysutils/py-psutil/Makefile10
-rw-r--r--sysutils/py-psutil/PLIST4
2 files changed, 7 insertions, 7 deletions
diff --git a/sysutils/py-psutil/Makefile b/sysutils/py-psutil/Makefile
index cdf0421808f..d2458bf07e8 100644
--- a/sysutils/py-psutil/Makefile
+++ b/sysutils/py-psutil/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2015/01/24 23:01:29 adam Exp $
+# $NetBSD: Makefile,v 1.11 2015/01/24 23:23:48 adam Exp $
DISTNAME= psutil-2.1.3
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
@@ -15,10 +15,10 @@ REPLACE_PYTHON= psutil/*py
.include "../../mk/bsd.prefs.mk"
# facilitate PLIST processing
-.if ${OPSYS} == "SunOS"
-LOWER_OPSYS= ${OPSYS:tl}
-.elif ${OPSYS} == "Darwin"
-LOWER_OPSYS= osx
+.if ${OPSYS} == "Darwin"
+PLIST_SUBST+= SYSTEM=osx
+.else
+PLIST_SUBST+= SYSTEM=${OPSYS:tl}
.endif
.include "../../lang/python/application.mk"
diff --git a/sysutils/py-psutil/PLIST b/sysutils/py-psutil/PLIST
index 97ff40fa993..a0ad6964892 100644
--- a/sysutils/py-psutil/PLIST
+++ b/sysutils/py-psutil/PLIST
@@ -1,5 +1,5 @@
-@comment $NetBSD: PLIST,v 1.4 2015/01/24 23:01:29 adam Exp $
-${PYSITELIB}/_psutil_${LOWER_OPSYS}.so
+@comment $NetBSD: PLIST,v 1.5 2015/01/24 23:23:48 adam Exp $
+${PYSITELIB}/_psutil_${SYSTEM}.so
${PYSITELIB}/_psutil_posix.so
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt