tempita: run 2to3 in post-patch instead of using setuptools use_2to3 which
is going away tests fail the same as they did before..
This commit is contained in:
parent
d1613520ba
commit
40e0752a76
|
@ -3,7 +3,7 @@ COMMENT = very small text templating language
|
|||
MODPY_EGG_VERSION = 0.5.2
|
||||
DISTNAME = Tempita-${MODPY_EGG_VERSION}
|
||||
PKGNAME = py-${DISTNAME:L}
|
||||
REVISION = 6
|
||||
REVISION = 7
|
||||
|
||||
CATEGORIES = www
|
||||
|
||||
|
@ -23,7 +23,10 @@ MODPY_SETUPTOOLS = Yes
|
|||
|
||||
TEST_DEPENDS = devel/py-nose${MODPY_FLAVOR}
|
||||
|
||||
post-patch:
|
||||
cd ${WRKSRC}; 2to3 -w tempita/*py
|
||||
|
||||
do-test:
|
||||
cd ${WRKSRC} && ${LOCALBASE}/bin/nosetests${MODPY_BIN_SUFFIX}
|
||||
cd ${WRKSRC}; ${LOCALBASE}/bin/nosetests${MODPY_BIN_SUFFIX}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
9
www/py-tempita/patches/patch-setup_py
Normal file
9
www/py-tempita/patches/patch-setup_py
Normal file
|
@ -0,0 +1,9 @@
|
|||
Index: setup.py
|
||||
--- setup.py.orig
|
||||
+++ setup.py
|
||||
@@ -36,5 +36,4 @@ more to learn about it.
|
||||
test_suite='nose.collector',
|
||||
include_package_data=True,
|
||||
zip_safe=True,
|
||||
- use_2to3=True,
|
||||
)
|
Loading…
Reference in New Issue
Block a user