summaryrefslogtreecommitdiff
path: root/x11/py-sip/Makefile
diff options
context:
space:
mode:
authorobache <obache>2012-05-22 09:43:33 +0000
committerobache <obache>2012-05-22 09:43:33 +0000
commit2fca4a07f47a2efbfa8e5402ba9eec81562974d1 (patch)
treee9a685b3116184709883e1fe0bad7ae3c2073ac8 /x11/py-sip/Makefile
parent89093d6bd0225d663850963ebe438982ea6bee66 (diff)
downloadpkgsrc-2fca4a07f47a2efbfa8e5402ba9eec81562974d1.tar.gz
Fixes for Python>=32 PEP 3147.
Let to compile PYC files in post-install phase, instead of installing .pyc files generaed as a side effect.
Diffstat (limited to 'x11/py-sip/Makefile')
-rw-r--r--x11/py-sip/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/x11/py-sip/Makefile b/x11/py-sip/Makefile
index 1acc80179c3..db339407a07 100644
--- a/x11/py-sip/Makefile
+++ b/x11/py-sip/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.29 2012/02/17 18:36:45 drochner Exp $
+# $NetBSD: Makefile,v 1.30 2012/05/22 09:43:33 obache Exp $
DISTNAME= sip-4.13.2
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
@@ -60,6 +60,9 @@ do-configure:
(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
${PYTHONBIN} configure.py ${CONFIGURE_ARGS})
+post-install:
+ ${PY_COMPILE_ALL} ${DESTDIR}${PREFIX}/${PYSITELIB}/sipconfig.py
+
.include "../../lang/python/application.mk"
.include "../../lang/python/extension.mk"
.include "../../mk/bsd.pkg.mk"