summaryrefslogtreecommitdiff
path: root/www/py-genshi
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2014-01-18 07:40:24 +0000
committerwiz <wiz@pkgsrc.org>2014-01-18 07:40:24 +0000
commit4bf2873f89fe0fb4ef5c7e690808327949ac6ed5 (patch)
tree20d4f61ecd471f1d2a8cd56d79362e7e6c1e1f73 /www/py-genshi
parent4a2f4f81a827526e0dfa92bae442db99527a0e2c (diff)
downloadpkgsrc-4bf2873f89fe0fb4ef5c7e690808327949ac6ed5.tar.gz
Add separate PLISTs for python-2.x and python-3.x, to fix build with
python-3.x.
Diffstat (limited to 'www/py-genshi')
-rw-r--r--www/py-genshi/Makefile12
-rw-r--r--www/py-genshi/PLIST3
-rw-r--r--www/py-genshi/PLIST.py22
-rw-r--r--www/py-genshi/PLIST.py38
4 files changed, 19 insertions, 6 deletions
diff --git a/www/py-genshi/Makefile b/www/py-genshi/Makefile
index 538eb65d307..456538e790a 100644
--- a/www/py-genshi/Makefile
+++ b/www/py-genshi/Makefile
@@ -1,5 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2013/10/11 14:33:37 obache Exp $
-#
+# $NetBSD: Makefile,v 1.10 2014/01/18 07:40:24 wiz Exp $
DISTNAME= Genshi-0.7
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl}
@@ -16,8 +15,13 @@ DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat
USE_LANGUAGES= c
-# !32 for py-babel, !33 for speedups module
-#PYTHON_VERSIONS_INCLUDE_3X= yes
+.include "../../lang/python/pyversion.mk"
+
+.if ${PYPKGPREFIX} == "py33"
+PLIST_SRC+= PLIST PLIST.py3
+.else
+PLIST_SRC+= PLIST PLIST.py2
+.endif
do-test:
${RUN}cd ${WRKSRC};${PYTHONBIN} setup.py test
diff --git a/www/py-genshi/PLIST b/www/py-genshi/PLIST
index 3c0fe3a6f57..8c61c472b28 100644
--- a/www/py-genshi/PLIST
+++ b/www/py-genshi/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.4 2013/10/11 14:33:37 obache Exp $
+@comment $NetBSD: PLIST,v 1.5 2014/01/18 07:40:24 wiz Exp $
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -8,7 +8,6 @@ ${PYSITELIB}/${EGG_INFODIR}/top_level.txt
${PYSITELIB}/genshi/__init__.py
${PYSITELIB}/genshi/__init__.pyc
${PYSITELIB}/genshi/__init__.pyo
-${PYSITELIB}/genshi/_speedups.so
${PYSITELIB}/genshi/builder.py
${PYSITELIB}/genshi/builder.pyc
${PYSITELIB}/genshi/builder.pyo
diff --git a/www/py-genshi/PLIST.py2 b/www/py-genshi/PLIST.py2
new file mode 100644
index 00000000000..e6b371a0970
--- /dev/null
+++ b/www/py-genshi/PLIST.py2
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST.py2,v 1.1 2014/01/18 07:40:24 wiz Exp $
+${PYSITELIB}/genshi/_speedups.so
diff --git a/www/py-genshi/PLIST.py3 b/www/py-genshi/PLIST.py3
new file mode 100644
index 00000000000..90b6d3bafd6
--- /dev/null
+++ b/www/py-genshi/PLIST.py3
@@ -0,0 +1,8 @@
+@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