openbsd-ports/devel/py-nose/Makefile

48 lines
1.2 KiB
Makefile
Raw Normal View History

2011-11-02 19:06:02 -04:00
# $OpenBSD: Makefile,v 1.17 2011/11/02 23:06:02 rpointel Exp $
COMMENT= discovery-based unittest extension
2011-11-02 19:06:02 -04:00
MODPY_EGG_VERSION= 1.1.2
DISTNAME= nose-${MODPY_EGG_VERSION}
2010-08-30 18:24:14 -04:00
PKGNAME= py-${DISTNAME}
CATEGORIES= devel
HOMEPAGE= http://somethingaboutorange.com/mrl/projects/nose/
MAINTAINER= Martynas Venckus <martynas@openbsd.org>
# LGPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
2011-11-02 19:06:02 -04:00
MASTER_SITES= ${MASTER_SITE_PYPI:=n/nose/}
2011-11-02 19:06:02 -04:00
BUILD_DEPENDS= archivers/gtar
MODULES= lang/python
2010-11-15 14:45:56 -05:00
REGRESS_DEPENDS= devel/py-nose \
2011-11-02 19:06:02 -04:00
devel/py-twisted/core \
devel/py-coverage
2010-11-15 14:45:56 -05:00
USE_GROFF = Yes
MODPY_SETUPTOOLS= Yes
2011-11-02 19:06:02 -04:00
# problem with upstream tar and our tar
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
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/{} \;
2008-01-13 12:19:26 -05:00
do-regress:
2011-11-02 19:06:02 -04:00
cd ${WRKSRC}/functional_tests && nosetests -v
cd ${WRKSRC}/unit_tests && nosetests -v
2008-01-13 12:19:26 -05:00
.include <bsd.port.mk>