# $OpenBSD: Makefile,v 1.4 2010/09/17 01:42:59 fgsch 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 WRKDIST = ${WRKDIR}/${DISTNAME:S/-${MODPY_EGG_VERSION}/-4097609/} RUN_DEPENDS = ::devel/py-dulwich \ ::devel/mercurial REGRESS_DEPENDS = ${RUN_DEPENDS} \ ::archivers/bzip2 \ ::archivers/unzip \ ::devel/git,-main MODPY_BADEGGS = hg-git pre-regress: perl -pi -e 's|python |python${MODPY_VERSION} |g' \ ${WRKSRC}/tests/test-* do-regress: cd ${WRKSRC}/tests && ${MODPY_BIN} run-tests.py \ --with-hg=${LOCALBASE}/hg .include