Skip to content

Commit

Permalink
treat python version depended PLIST handling with standard way.
Browse files Browse the repository at this point in the history
  • Loading branch information
obache committed Jan 18, 2014
1 parent 4750377 commit 15c303d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 20 deletions.
10 changes: 1 addition & 9 deletions www/py-genshi/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.10 2014/01/18 07:40:24 wiz Exp $
# $NetBSD: Makefile,v 1.11 2014/01/18 08:08:59 obache Exp $

DISTNAME= Genshi-0.7
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl}
Expand All @@ -15,14 +15,6 @@ DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat

USE_LANGUAGES= c

.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

Expand Down
10 changes: 9 additions & 1 deletion www/py-genshi/PLIST
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@comment $NetBSD: PLIST,v 1.5 2014/01/18 07:40:24 wiz Exp $
@comment $NetBSD: PLIST,v 1.6 2014/01/18 08:08:59 obache Exp $
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
Expand All @@ -8,6 +8,8 @@ ${PYSITELIB}/${EGG_INFODIR}/top_level.txt
${PYSITELIB}/genshi/__init__.py
${PYSITELIB}/genshi/__init__.pyc
${PYSITELIB}/genshi/__init__.pyo
${PLIST.py3x}${PYSITELIB}/genshi/_speedups.c
${PLIST.py2x}${PYSITELIB}/genshi/_speedups.so
${PYSITELIB}/genshi/builder.py
${PYSITELIB}/genshi/builder.pyc
${PYSITELIB}/genshi/builder.pyo
Expand Down Expand Up @@ -110,6 +112,12 @@ ${PYSITELIB}/genshi/template/tests/plugin.pyo
${PYSITELIB}/genshi/template/tests/templates/__init__.py
${PYSITELIB}/genshi/template/tests/templates/__init__.pyc
${PYSITELIB}/genshi/template/tests/templates/__init__.pyo
${PLIST.py3x}${PYSITELIB}/genshi/template/tests/templates/functions.html
${PLIST.py3x}${PYSITELIB}/genshi/template/tests/templates/functions.txt
${PLIST.py3x}${PYSITELIB}/genshi/template/tests/templates/new_syntax.txt
${PLIST.py3x}${PYSITELIB}/genshi/template/tests/templates/test.html
${PLIST.py3x}${PYSITELIB}/genshi/template/tests/templates/test.txt
${PLIST.py3x}${PYSITELIB}/genshi/template/tests/templates/test_no_doctype.html
${PYSITELIB}/genshi/template/tests/text.py
${PYSITELIB}/genshi/template/tests/text.pyc
${PYSITELIB}/genshi/template/tests/text.pyo
Expand Down
2 changes: 0 additions & 2 deletions www/py-genshi/PLIST.py2

This file was deleted.

8 changes: 0 additions & 8 deletions www/py-genshi/PLIST.py3

This file was deleted.

0 comments on commit 15c303d

Please sign in to comment.