Fri Oct 14 06:27:42 2011 UTC ()
* allow to build with any python2.x
* using distutils.
* change example directory, not to conflict with python variants each other.

Bump PKGREVISION.


(obache)
diff -r1.1.1.1 -r1.2 pkgsrc/devel/py-pytemplate/Makefile
diff -r1.2 -r1.3 pkgsrc/devel/py-pytemplate/PLIST

cvs diff -r1.1.1.1 -r1.2 pkgsrc/devel/py-pytemplate/Makefile (expand / switch to context diff)
--- pkgsrc/devel/py-pytemplate/Makefile 2009/02/25 09:16:06 1.1.1.1
+++ pkgsrc/devel/py-pytemplate/Makefile 2011/10/14 06:27:42 1.2
@@ -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,12 +15,14 @@
 
 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}
 
 post-install:
@@ -28,5 +31,5 @@
 	${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"

cvs diff -r1.2 -r1.3 pkgsrc/devel/py-pytemplate/PLIST (expand / switch to context diff)
--- pkgsrc/devel/py-pytemplate/PLIST 2009/06/14 17:49:05 1.2
+++ pkgsrc/devel/py-pytemplate/PLIST 2011/10/14 06:27:42 1.3
@@ -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/${PYPKGPREFIX}-pytemplate/daemonexample.py
-share/examples/pytemplate/example.py
+share/examples/${PYPKGPREFIX}-pytemplate/example.py
-share/examples/pytemplate/threadexample.py
+share/examples/${PYPKGPREFIX}-pytemplate/threadexample.py