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 unified 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,32 +1,35 @@ @@ -1,32 +1,35 @@
1# $NetBSD: Makefile,v 1.1.1.1 2009/02/25 09:16:06 imil Exp $ 1# $NetBSD: Makefile,v 1.2 2011/10/14 06:27:42 obache Exp $
2# 2#
3 3
4DISTNAME= pytemplate-1.5.1 4DISTNAME= pytemplate-1.5.1
5PKGNAME= py-${DISTNAME} 5PKGNAME= py-${DISTNAME}
 6PKGREVISION= 1
6CATEGORIES= devel python 7CATEGORIES= devel python
7MASTER_SITES= http://www.bulot.org/downloads/ 8MASTER_SITES= http://www.bulot.org/downloads/
8 9
9MAINTAINER= imil@gcu.info 10MAINTAINER= imil@gcu.info
10HOMEPAGE= http://bulot.org/wiki/doku.php?id=projects:python:pytemplate 11HOMEPAGE= http://bulot.org/wiki/doku.php?id=projects:python:pytemplate
11COMMENT= Pytemplate gives python developpers a starting framework 12COMMENT= Pytemplate gives python developpers a starting framework
12 13
13PKG_DESTDIR_SUPPORT= user-destdir 14PKG_DESTDIR_SUPPORT= user-destdir
14 15
15USE_LANGUAGES= # none 16USE_LANGUAGES= # none
16 17
17PYDISTUTILSPKG= yes 18PYTHON_VERSIONS_INCOMPATIBLE= 31
18PYTHON_VERSIONS_ACCEPTED= 25 24 
19REPLACE_PYTHON= ${WRKSRC}/*.py 19REPLACE_PYTHON= ${WRKSRC}/*.py
20 20
21EGDIR= ${PREFIX}/share/examples/pytemplate 21EGDIR= ${PREFIX}/share/examples/${PYPKGPREFIX}-pytemplate
 22
 23PLIST_SUBST+= PYPKGPREFIX=${PYPKGPREFIX}
 24PRINT_PLIST_AWK+= { gsub(/${PYPKGPREFIX:S|/|\\/|g}/, "$${PYPKGPREFIX}") }
22 25
23INSTALLATION_DIRS+= ${EGDIR} 26INSTALLATION_DIRS+= ${EGDIR}
24 27
25post-install: 28post-install:
26 ${INSTALL_DATA} ${WRKSRC}/example.py ${DESTDIR}${EGDIR} 29 ${INSTALL_DATA} ${WRKSRC}/example.py ${DESTDIR}${EGDIR}
27 ${INSTALL_DATA} ${WRKSRC}/daemonexample.py ${DESTDIR}${EGDIR} 30 ${INSTALL_DATA} ${WRKSRC}/daemonexample.py ${DESTDIR}${EGDIR}
28 ${INSTALL_DATA} ${WRKSRC}/threadexample.py ${DESTDIR}${EGDIR} 31 ${INSTALL_DATA} ${WRKSRC}/threadexample.py ${DESTDIR}${EGDIR}
29 32
30.include "../../lang/python/application.mk" 33.include "../../lang/python/application.mk"
31.include "../../lang/python/extension.mk" 34.include "../../lang/python/distutils.mk"
32.include "../../mk/bsd.pkg.mk" 35.include "../../mk/bsd.pkg.mk"

cvs diff -r1.2 -r1.3 pkgsrc/devel/py-pytemplate/PLIST (expand / switch to unified 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 @@ @@ -1,7 +1,8 @@
1@comment $NetBSD: PLIST,v 1.2 2009/06/14 17:49:05 joerg Exp $ 1@comment $NetBSD: PLIST,v 1.3 2011/10/14 06:27:42 obache Exp $
 2${PLIST.eggfile}${PYSITELIB}/${EGG_FILE}
2${PYSITELIB}/pytemplate.py 3${PYSITELIB}/pytemplate.py
3${PYSITELIB}/pytemplate.pyc 4${PYSITELIB}/pytemplate.pyc
4${PYSITELIB}/pytemplate.pyo 5${PYSITELIB}/pytemplate.pyo
5share/examples/pytemplate/daemonexample.py 6share/examples/${PYPKGPREFIX}-pytemplate/daemonexample.py
6share/examples/pytemplate/example.py 7share/examples/${PYPKGPREFIX}-pytemplate/example.py
7share/examples/pytemplate/threadexample.py 8share/examples/${PYPKGPREFIX}-pytemplate/threadexample.py