openbsd-ports/devel/py-hg-git/Makefile

45 lines
1020 B
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.7 2011/06/08 17:39:25 jasper Exp $
2010-09-03 14:26:56 -04:00
COMMENT = push/pull from a Git server repository using Mercurial
MODPY_EGG_VERSION = 0.2.5
2010-09-03 14:26:56 -04:00
DISTNAME = schacon-hg-git-${MODPY_EGG_VERSION}
PKGNAME = py-hg-git-${MODPY_EGG_VERSION}
REVISION = 0
2010-09-03 14:26:56 -04:00
CATEGORIES = devel
HOMEPAGE = http://hg-git.github.com/
# GPLv2
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
MASTER_SITES = http://github.com/schacon/hg-git/tarball/${MODPY_EGG_VERSION}/
2010-09-14 10:47:59 -04:00
MODULES = lang/python
MODPY_SETUPTOOLS = Yes
2010-09-03 14:26:56 -04:00
WRKDIST = ${WRKDIR}/${DISTNAME:S/-${MODPY_EGG_VERSION}/-0ed3c70/}
2010-09-14 10:47:59 -04:00
2010-11-15 14:45:56 -05:00
RUN_DEPENDS = devel/py-dulwich \
devel/mercurial
REGRESS_DEPENDS = ${RUN_DEPENDS} \
2010-11-15 14:45:56 -05:00
archivers/bzip2 \
archivers/unzip \
devel/git,-main
MODPY_BADEGGS = hg-git
2010-09-03 14:26:56 -04:00
pre-regress:
perl -pi -e 's|python |python${MODPY_VERSION} |g' \
${WRKSRC}/tests/test-*
2010-09-03 14:26:56 -04:00
do-regress:
cd ${WRKSRC}/tests && ${MODPY_BIN} run-tests.py \
--with-hg=${LOCALBASE}/hg
2010-09-03 14:26:56 -04:00
.include <bsd.port.mk>