jca 755560f887 Add missing test-dep.
ok MAINTAINER
2015-04-07 15:49:25 +00:00

48 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.18 2015/04/07 15:49:25 jca Exp $
COMMENT = pure Python implementation of Git file formats and protocols
MODPY_EGG_VERSION = 0.10.1a
DISTNAME = dulwich-${MODPY_EGG_VERSION}
PKGNAME = py-${DISTNAME}
CATEGORIES = devel
HOMEPAGE = http://samba.org/~jelmer/dulwich/
MAINTAINER = Dmitrij D. Czarkoff <czarkoff@gmail.com>
# GPLv2
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += pthread ${MODPY_WANTLIB}
MODPY_PI = Yes
MODULES = lang/python
MODPY_SETUPTOOLS = Yes
MODPY_VERSION = ${MODPY_DEFAULT_VERSION_2}
RUN_DEPENDS = devel/py-gevent \
net/py-geventhttpclient
# One test fails due to the lack of OpenStack SWIFT.
# The other failed tests are related to this bug:
# https://github.com/surfly/gevent/issues/446
TEST_DEPENDS = ${RUN_DEPENDS} \
devel/py-mock \
devel/py-nose \
devel/git,-main
do-test:
cd ${WRKSRC} && nosetests
post-install:
rm -R ${PREFIX}/lib/python${MODPY_VERSION}/site-packages/docs
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/dulwich/tutorial
${INSTALL_DATA} ${WRKSRC}/docs/tutorial/*.txt \
${PREFIX}/share/doc/dulwich/tutorial
.include <bsd.port.mk>