diff options
author | joerg <joerg@pkgsrc.org> | 2009-07-08 13:55:58 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2009-07-08 13:55:58 +0000 |
commit | d61c3b641cd96ac5f40852e5eb7e205545887dcc (patch) | |
tree | 60e034a8771d5fea53aae476bb138522afe5fd76 /lang | |
parent | 19942c1b2813102d2ea9eac7a03a937f94b1c410 (diff) | |
download | pkgsrc-d61c3b641cd96ac5f40852e5eb7e205545887dcc.tar.gz |
Provide PY_COMPILE_ALL and PY_COMPILE_O_ALL to compile all Python
sources in a directory (tree) in pversion.mk. Adjust the various places
that called it locally.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/py-funge/Makefile | 8 | ||||
-rw-r--r-- | lang/python/pyversion.mk | 6 |
2 files changed, 8 insertions, 6 deletions
diff --git a/lang/py-funge/Makefile b/lang/py-funge/Makefile index 8a4a0270ccb..2f23c0cf753 100644 --- a/lang/py-funge/Makefile +++ b/lang/py-funge/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.8 2008/06/12 02:14:33 joerg Exp $ +# $NetBSD: Makefile,v 1.9 2009/07/08 13:55:59 joerg Exp $ DISTNAME= pyfunge-0.2-beta1 PKGNAME= ${PYPKGPREFIX}-funge-0.2beta1 @@ -22,16 +22,14 @@ PYTHON_VERSIONS_ACCEPTED?= 23 WRKSRC?= ${WRKDIR}/PyFunge PLIST_SUBST+= PYSITELIB=${PYSITELIB:Q} -PYCOMPILEALL= ${BUILDLINK_PREFIX.${PYPACKAGE}}/${PYLIB}/compileall.py - INSTALLATION_DIRS= ${PYSITELIB}/PyFunge share/doc/${PKGBASE} do-install: ${INSTALL_DATA} ${WRKSRC}/README.ko ${DESTDIR}${PREFIX}/share/doc/${PKGBASE} cd ${WRKSRC} && pax -rwppm '-s|.*/README.ko||' \ . ${DESTDIR}${PREFIX}/${PYSITELIB}/PyFunge - ${PYTHONBIN} ${PYCOMPILEALL} ${DESTDIR}${PREFIX}/${PYSITELIB}/PyFunge - ${PYTHONBIN} -O ${PYCOMPILEALL} ${DESTDIR}${PREFIX}/${PYSITELIB}/PyFunge + ${PY_COMPILE_ALL} ${DESTDIR}${PREFIX}/${PYSITELIB}/PyFunge + ${PY_COMPILE_O_ALL} ${DESTDIR}${PREFIX}/${PYSITELIB}/PyFunge .include "../../lang/python/extension.mk" .include "../../mk/bsd.pkg.mk" diff --git a/lang/python/pyversion.mk b/lang/python/pyversion.mk index ae45ab50988..0547bcfe6a6 100644 --- a/lang/python/pyversion.mk +++ b/lang/python/pyversion.mk @@ -1,4 +1,4 @@ -# $NetBSD: pyversion.mk,v 1.72 2009/07/02 09:37:12 joerg Exp $ +# $NetBSD: pyversion.mk,v 1.73 2009/07/08 13:55:59 joerg Exp $ # This file determines which Python version is used as a dependency for # a package. @@ -156,6 +156,10 @@ BUILDLINK_DEPMETHOD.python?= build .endif PYTHONBIN= ${LOCALBASE}/bin/python${PYVERSSUFFIX} +PY_COMPILE_ALL= \ + ${PYTHONBIN} ${PREFIX}/lib/python${PYVERSSUFFIX}/compileall.py -q +PY_COMPILE_O_ALL= \ + ${PYTHONBIN} -O ${PREFIX}/lib/python${PYVERSSUFFIX}/compileall.py -q .if exists(${PYTHONBIN}) PYINC!= ${PYTHONBIN} -c "import distutils.sysconfig; \ |