summaryrefslogtreecommitdiff
path: root/devel/py-pytemplate
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2011-10-14 06:27:42 +0000
committerobache <obache@pkgsrc.org>2011-10-14 06:27:42 +0000
commit333c9a30a630d9476ab548572c76d4abfdff77c2 (patch)
tree34ea32c910c6ba2f61fd82b101938c145e86cabf /devel/py-pytemplate
parent855d23ae6c178f09183ca260a00eef52f4c76e9b (diff)
downloadpkgsrc-333c9a30a630d9476ab548572c76d4abfdff77c2.tar.gz
* allow to build with any python2.x
* using distutils. * change example directory, not to conflict with python variants each other. Bump PKGREVISION.
Diffstat (limited to 'devel/py-pytemplate')
-rw-r--r--devel/py-pytemplate/Makefile13
-rw-r--r--devel/py-pytemplate/PLIST9
2 files changed, 13 insertions, 9 deletions
diff --git a/devel/py-pytemplate/Makefile b/devel/py-pytemplate/Makefile
index 7246f2dc61a..25454465e48 100644
--- a/devel/py-pytemplate/Makefile
+++ b/devel/py-pytemplate/Makefile
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.1.1.1 2009/02/25 09:16:06 imil Exp $
+# $NetBSD: Makefile,v 1.2 2011/10/14 06:27:42 obache Exp $
#
DISTNAME= pytemplate-1.5.1
PKGNAME= py-${DISTNAME}
+PKGREVISION= 1
CATEGORIES= devel python
MASTER_SITES= http://www.bulot.org/downloads/
@@ -14,11 +15,13 @@ PKG_DESTDIR_SUPPORT= user-destdir
USE_LANGUAGES= # none
-PYDISTUTILSPKG= yes
-PYTHON_VERSIONS_ACCEPTED= 25 24
+PYTHON_VERSIONS_INCOMPATIBLE= 31
REPLACE_PYTHON= ${WRKSRC}/*.py
-EGDIR= ${PREFIX}/share/examples/pytemplate
+EGDIR= ${PREFIX}/share/examples/${PYPKGPREFIX}-pytemplate
+
+PLIST_SUBST+= PYPKGPREFIX=${PYPKGPREFIX}
+PRINT_PLIST_AWK+= { gsub(/${PYPKGPREFIX:S|/|\\/|g}/, "$${PYPKGPREFIX}") }
INSTALLATION_DIRS+= ${EGDIR}
@@ -28,5 +31,5 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/threadexample.py ${DESTDIR}${EGDIR}
.include "../../lang/python/application.mk"
-.include "../../lang/python/extension.mk"
+.include "../../lang/python/distutils.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/devel/py-pytemplate/PLIST b/devel/py-pytemplate/PLIST
index 5b766ed31f7..31843f6ce96 100644
--- a/devel/py-pytemplate/PLIST
+++ b/devel/py-pytemplate/PLIST
@@ -1,7 +1,8 @@
-@comment $NetBSD: PLIST,v 1.2 2009/06/14 17:49:05 joerg Exp $
+@comment $NetBSD: PLIST,v 1.3 2011/10/14 06:27:42 obache Exp $
+${PLIST.eggfile}${PYSITELIB}/${EGG_FILE}
${PYSITELIB}/pytemplate.py
${PYSITELIB}/pytemplate.pyc
${PYSITELIB}/pytemplate.pyo
-share/examples/pytemplate/daemonexample.py
-share/examples/pytemplate/example.py
-share/examples/pytemplate/threadexample.py
+share/examples/${PYPKGPREFIX}-pytemplate/daemonexample.py
+share/examples/${PYPKGPREFIX}-pytemplate/example.py
+share/examples/${PYPKGPREFIX}-pytemplate/threadexample.py