Add separate PLISTs for python-2.x and python-3.x, to fix build with python-3.x.diff -r1.9 -r1.10 pkgsrc/www/py-genshi/Makefile
(wiz)
@@ -1,26 +1,30 @@ | @@ -1,26 +1,30 @@ | |||
1 | # $NetBSD: Makefile,v 1.9 2013/10/11 14:33:37 obache Exp $ | 1 | # $NetBSD: Makefile,v 1.10 2014/01/18 07:40:24 wiz Exp $ | |
2 | # | |||
3 | 2 | |||
4 | DISTNAME= Genshi-0.7 | 3 | DISTNAME= Genshi-0.7 | |
5 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl} | 4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl} | |
6 | CATEGORIES= www python | 5 | CATEGORIES= www python | |
7 | MASTER_SITES= http://ftp.edgewall.com/pub/genshi/ | 6 | MASTER_SITES= http://ftp.edgewall.com/pub/genshi/ | |
8 | 7 | |||
9 | MAINTAINER= obache@NetBSD.org | 8 | MAINTAINER= obache@NetBSD.org | |
10 | HOMEPAGE= http://genshi.edgewall.org/ | 9 | HOMEPAGE= http://genshi.edgewall.org/ | |
11 | COMMENT= Python toolkit for generation of output for the web | 10 | COMMENT= Python toolkit for generation of output for the web | |
12 | LICENSE= modified-bsd | 11 | LICENSE= modified-bsd | |
13 | 12 | |||
14 | DEPENDS+= ${PYPKGPREFIX}-babel>=0.8:../../devel/py-babel | 13 | DEPENDS+= ${PYPKGPREFIX}-babel>=0.8:../../devel/py-babel | |
15 | DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat | 14 | DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat | |
16 | 15 | |||
17 | USE_LANGUAGES= c | 16 | USE_LANGUAGES= c | |
18 | 17 | |||
19 | # !32 for py-babel, !33 for speedups module | 18 | .include "../../lang/python/pyversion.mk" | |
20 | #PYTHON_VERSIONS_INCLUDE_3X= yes | 19 | ||
20 | .if ${PYPKGPREFIX} == "py33" | |||
21 | PLIST_SRC+= PLIST PLIST.py3 | |||
22 | .else | |||
23 | PLIST_SRC+= PLIST PLIST.py2 | |||
24 | .endif | |||
21 | 25 | |||
22 | do-test: | 26 | do-test: | |
23 | ${RUN}cd ${WRKSRC};${PYTHONBIN} setup.py test | 27 | ${RUN}cd ${WRKSRC};${PYTHONBIN} setup.py test | |
24 | 28 | |||
25 | .include "../../lang/python/egg.mk" | 29 | .include "../../lang/python/egg.mk" | |
26 | .include "../../mk/bsd.pkg.mk" | 30 | .include "../../mk/bsd.pkg.mk" |
@@ -1,24 +1,23 @@ | @@ -1,24 +1,23 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.4 2013/10/11 14:33:37 obache Exp $ | 1 | @comment $NetBSD: PLIST,v 1.5 2014/01/18 07:40:24 wiz Exp $ | |
2 | ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO | 2 | ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO | |
3 | ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt | 3 | ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt | |
4 | ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt | 4 | ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt | |
5 | ${PYSITELIB}/${EGG_INFODIR}/entry_points.txt | 5 | ${PYSITELIB}/${EGG_INFODIR}/entry_points.txt | |
6 | ${PYSITELIB}/${EGG_INFODIR}/requires.txt | 6 | ${PYSITELIB}/${EGG_INFODIR}/requires.txt | |
7 | ${PYSITELIB}/${EGG_INFODIR}/top_level.txt | 7 | ${PYSITELIB}/${EGG_INFODIR}/top_level.txt | |
8 | ${PYSITELIB}/genshi/__init__.py | 8 | ${PYSITELIB}/genshi/__init__.py | |
9 | ${PYSITELIB}/genshi/__init__.pyc | 9 | ${PYSITELIB}/genshi/__init__.pyc | |
10 | ${PYSITELIB}/genshi/__init__.pyo | 10 | ${PYSITELIB}/genshi/__init__.pyo | |
11 | ${PYSITELIB}/genshi/_speedups.so | |||
12 | ${PYSITELIB}/genshi/builder.py | 11 | ${PYSITELIB}/genshi/builder.py | |
13 | ${PYSITELIB}/genshi/builder.pyc | 12 | ${PYSITELIB}/genshi/builder.pyc | |
14 | ${PYSITELIB}/genshi/builder.pyo | 13 | ${PYSITELIB}/genshi/builder.pyo | |
15 | ${PYSITELIB}/genshi/compat.py | 14 | ${PYSITELIB}/genshi/compat.py | |
16 | ${PYSITELIB}/genshi/compat.pyc | 15 | ${PYSITELIB}/genshi/compat.pyc | |
17 | ${PYSITELIB}/genshi/compat.pyo | 16 | ${PYSITELIB}/genshi/compat.pyo | |
18 | ${PYSITELIB}/genshi/core.py | 17 | ${PYSITELIB}/genshi/core.py | |
19 | ${PYSITELIB}/genshi/core.pyc | 18 | ${PYSITELIB}/genshi/core.pyc | |
20 | ${PYSITELIB}/genshi/core.pyo | 19 | ${PYSITELIB}/genshi/core.pyo | |
21 | ${PYSITELIB}/genshi/filters/__init__.py | 20 | ${PYSITELIB}/genshi/filters/__init__.py | |
22 | ${PYSITELIB}/genshi/filters/__init__.pyc | 21 | ${PYSITELIB}/genshi/filters/__init__.pyc | |
23 | ${PYSITELIB}/genshi/filters/__init__.pyo | 22 | ${PYSITELIB}/genshi/filters/__init__.pyo | |
24 | ${PYSITELIB}/genshi/filters/html.py | 23 | ${PYSITELIB}/genshi/filters/html.py |
@comment $NetBSD: PLIST.py2,v 1.1 2014/01/18 07:40:24 wiz Exp $
${PYSITELIB}/genshi/_speedups.so
@comment $NetBSD: PLIST.py3,v 1.1 2014/01/18 07:40:24 wiz Exp $
${PYSITELIB}/genshi/_speedups.c
${PYSITELIB}/genshi/template/tests/templates/functions.html
${PYSITELIB}/genshi/template/tests/templates/functions.txt
${PYSITELIB}/genshi/template/tests/templates/new_syntax.txt
${PYSITELIB}/genshi/template/tests/templates/test.html
${PYSITELIB}/genshi/template/tests/templates/test.txt
${PYSITELIB}/genshi/template/tests/templates/test_no_doctype.html