openbsd-ports/devel/py-hg-git/Makefile
2010-09-14 15:11:22 +00:00

37 lines
953 B
Makefile

# $OpenBSD: Makefile,v 1.3 2010/09/14 15:11:22 jasper Exp $
COMMENT = push/pull from a Git server repository using Mercurial
MODPY_EGG_VERSION = 0.2.3
DISTNAME = schacon-hg-git-${MODPY_EGG_VERSION}
PKGNAME = py-hg-git-${MODPY_EGG_VERSION}
REVISION = 0
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}/
MODULES = lang/python
MODPY_SETUPTOOLS = Yes
RUN_DEPENDS = ::devel/py-dulwich ::devel/mercurial
WRKDIST = ${WRKDIR}/${DISTNAME:S/-${MODPY_EGG_VERSION}/-4097609/}
REGRESS_DEPENDS = ${RUN_DEPENDS} ::archivers/bzip2 ::archivers/unzip
pre-regress:
perl -pi -e 's|python -c|python${MODPY_VERSION} -c|g' ${WRKSRC}/tests/*
do-regress:
cd ${WRKSRC}/tests && ${MODPY_BIN} run-tests.py --with-hg=${LOCALBASE}/hg
.include <bsd.port.mk>