39 lines
998 B
Makefile
39 lines
998 B
Makefile
# $OpenBSD: Makefile,v 1.29 2018/03/07 13:36:27 juanfra Exp $
|
|
|
|
COMMENT = mercurial extension to work with git repositories
|
|
|
|
MODPY_EGG_VERSION = 0.8.11
|
|
DISTNAME = py-hg-git-${MODPY_EGG_VERSION}
|
|
|
|
CATEGORIES = devel
|
|
|
|
HOMEPAGE = https://bitbucket.org/durin42/hg-git
|
|
|
|
MAINTAINER = Dmitrij D. Czarkoff <czarkoff@openbsd.org>
|
|
|
|
# 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
|
|
|
|
RUN_DEPENDS = devel/py-dulwich>=0.10.1 \
|
|
devel/mercurial
|
|
TEST_DEPENDS = ${RUN_DEPENDS} \
|
|
archivers/bzip2 \
|
|
archivers/unzip \
|
|
devel/git,-main
|
|
|
|
# Instead of updating WRKDIST manually on every update, just move the directory
|
|
post-extract:
|
|
@mv ${WRKDIR}/durin42-hg-git-???????????? ${WRKDIST}
|
|
|
|
do-test:
|
|
cd ${WRKSRC}/tests && ${SETENV} ${MAKE_ENV} PYTHONPATH="${WRKSRC}" \
|
|
${MODPY_BIN} run-tests.py --with-hg=${LOCALBASE}/bin/hg
|
|
|
|
.include <bsd.port.mk>
|