- update HOMEPAGE

- add python3 FLAVOR

ok martynas@ (maintainer)
This commit is contained in:
eric 2012-03-13 12:23:53 +00:00
parent 518bfd286e
commit 806e6a0b4a
2 changed files with 41 additions and 23 deletions

View File

@ -1,14 +1,14 @@
# $OpenBSD: Makefile,v 1.17 2011/11/02 23:06:02 rpointel Exp $
# $OpenBSD: Makefile,v 1.18 2012/03/13 12:23:53 eric Exp $
COMMENT= discovery-based unittest extension
MODPY_EGG_VERSION= 1.1.2
DISTNAME= nose-${MODPY_EGG_VERSION}
PKGNAME= py-${DISTNAME}
REVISION= 0
CATEGORIES= devel
HOMEPAGE= http://somethingaboutorange.com/mrl/projects/nose/
HOMEPAGE= http://readthedocs.org/docs/nose/en/latest/
MAINTAINER= Martynas Venckus <martynas@openbsd.org>
@ -22,9 +22,18 @@ MASTER_SITES= ${MASTER_SITE_PYPI:=n/nose/}
BUILD_DEPENDS= archivers/gtar
MODULES= lang/python
REGRESS_DEPENDS= devel/py-nose \
FLAVORS= python3
FLAVOR?=
.if ${FLAVOR:L:Mpython3}
NO_REGRESS= Yes
.else
REGRESS_DEPENDS= devel/py-nose$ \
devel/py-twisted/core \
devel/py-coverage
.endif
USE_GROFF = Yes
MODPY_SETUPTOOLS= Yes
@ -33,12 +42,22 @@ MODPY_SETUPTOOLS= Yes
TAR=gtar
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/py-nose
${INSTALL_DATA} ${WRKSRC}/README.txt ${PREFIX}/share/doc/py-nose/
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-nose
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/${MODPY_PY_PREFIX}nose
${INSTALL_DATA} ${WRKSRC}/README.txt ${PREFIX}/share/doc/${MODPY_PY_PREFIX}nose/
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/${MODPY_PY_PREFIX}nose
cd ${WRKSRC}/examples && \
find . -type d -exec ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-nose/{} \; && \
find . ! -type d -exec ${INSTALL_DATA} {} ${PREFIX}/share/examples/py-nose/{} \;
find . -type d -exec ${INSTALL_DATA_DIR} \
${PREFIX}/share/examples/${MODPY_PY_PREFIX}nose/{} \; && \
find . ! -type d -exec ${INSTALL_DATA} {} \
${PREFIX}/share/examples/${MODPY_PY_PREFIX}nose/{} \;
rm ${PREFIX}/bin/nosetests-${MODPY_VERSION}
.if ${FLAVOR:L:Mpython3}
mv ${PREFIX}/bin/nosetests \
${PREFIX}/bin/nosetests${MODPY_BIN_SUFFIX}
mv ${PREFIX}/man/man1/nosetests.1 \
${PREFIX}/man/man1/nosetests${MODPY_BIN_SUFFIX}.1
.endif
do-regress:
cd ${WRKSRC}/functional_tests && nosetests -v

View File

@ -1,6 +1,5 @@
@comment $OpenBSD: PLIST,v 1.6 2011/11/02 23:06:02 rpointel Exp $
bin/nosetests
bin/nosetests-${MODPY_VERSION}
@comment $OpenBSD: PLIST,v 1.7 2012/03/13 12:23:53 eric Exp $
bin/nosetests${MODPY_BIN_SUFFIX}
lib/python${MODPY_VERSION}/site-packages/nose/
lib/python${MODPY_VERSION}/site-packages/nose-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/
lib/python${MODPY_VERSION}/site-packages/nose-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO
@ -101,14 +100,14 @@ lib/python${MODPY_VERSION}/site-packages/nose/twistedtools.pyc
lib/python${MODPY_VERSION}/site-packages/nose/usage.txt
lib/python${MODPY_VERSION}/site-packages/nose/util.py
lib/python${MODPY_VERSION}/site-packages/nose/util.pyc
@man man/man1/nosetests.1
share/doc/py-nose/
share/doc/py-nose/README.txt
share/examples/py-nose/
share/examples/py-nose/attrib_plugin.py
share/examples/py-nose/html_plugin/
share/examples/py-nose/html_plugin/htmlplug.py
share/examples/py-nose/html_plugin/setup.py
share/examples/py-nose/plugin/
share/examples/py-nose/plugin/plug.py
share/examples/py-nose/plugin/setup.py
@man man/man1/nosetests${MODPY_BIN_SUFFIX}.1
share/doc/${MODPY_PY_PREFIX}nose/
share/doc/${MODPY_PY_PREFIX}nose/README.txt
share/examples/${MODPY_PY_PREFIX}nose/
share/examples/${MODPY_PY_PREFIX}nose/attrib_plugin.py
share/examples/${MODPY_PY_PREFIX}nose/html_plugin/
share/examples/${MODPY_PY_PREFIX}nose/html_plugin/htmlplug.py
share/examples/${MODPY_PY_PREFIX}nose/html_plugin/setup.py
share/examples/${MODPY_PY_PREFIX}nose/plugin/
share/examples/${MODPY_PY_PREFIX}nose/plugin/plug.py
share/examples/${MODPY_PY_PREFIX}nose/plugin/setup.py