small tweak from me to handle running tests on a system which does not have a python->python2.7 symlink.
41 lines
929 B
Makefile
41 lines
929 B
Makefile
# $OpenBSD: Makefile,v 1.14 2014/03/25 16:19:15 sthen Exp $
|
|
|
|
COMMENT = push/pull from a Git server repository using Mercurial
|
|
|
|
MODPY_EGG_VERSION = 0.5.0
|
|
DISTNAME = py-hg-git-${MODPY_EGG_VERSION}
|
|
|
|
CATEGORIES = devel
|
|
|
|
HOMEPAGE = http://hg-git.github.com/
|
|
|
|
MAINTAINER = Dmitrij D. Czarkoff <czarkoff@gmail.com>
|
|
|
|
# GPLv2
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
MASTER_SITES = https://bitbucket.org/durin42/hg-git/get/
|
|
DISTFILES = ${DISTNAME}{${MODPY_EGG_VERSION}}${EXTRACT_SUFX}
|
|
|
|
MODULES = lang/python
|
|
MODPY_SETUPTOOLS = Yes
|
|
|
|
WRKDIST = ${WRKDIR}/durin42-hg-git-ef41e87ea11a
|
|
|
|
RUN_DEPENDS = devel/py-dulwich>=0.9.5 \
|
|
devel/mercurial
|
|
TEST_DEPENDS = ${RUN_DEPENDS} \
|
|
archivers/bzip2 \
|
|
archivers/unzip \
|
|
devel/py-nose \
|
|
devel/git,-main
|
|
|
|
pre-test:
|
|
ln -s ${MODPY_BIN} ${WRKDIR}/bin/python
|
|
|
|
do-test:
|
|
cd ${WRKSRC}/tests && env ${MAKE_ENV} ${MODPY_BIN} run-tests.py \
|
|
--with-hg=${LOCALBASE}/bin/hg
|
|
|
|
.include <bsd.port.mk>
|