pkgsrc/devel/breezy/Makefile
wiz 8a9cb53cf6 *: bump PKGREVISION for egg.mk users
They now have a tool dependency on py-setuptools instead of a DEPENDS
2022-01-04 20:52:30 +00:00

56 lines
2 KiB
Makefile

# $NetBSD: Makefile,v 1.9 2022/01/04 20:52:46 wiz Exp $
DISTNAME= breezy-3.2.1
PKGREVISION= 1
CATEGORIES= devel scm
MASTER_SITES= https://launchpad.net/brz/${PKGVERSION_NOREV:R}/${PKGVERSION_NOREV}/+download/
MAINTAINER= rhialto@NetBSD.org
HOMEPAGE= https://breezy-vcs.org/
COMMENT= Friendly distributed version control system
LICENSE= gnu-gpl-v2
# For building from repo instead of release tarball:
#BUILD_DEPENDS+= ${PYPKGPREFIX}-cython>=0:../../devel/py-cython
DEPENDS+= ${PYPKGPREFIX}-configobj>0:../../devel/py-configobj
DEPENDS+= ${PYPKGPREFIX}-dulwich>0:../../devel/py-dulwich
DEPENDS+= ${PYPKGPREFIX}-fastimport>0:../../devel/py-fastimport
DEPENDS+= ${PYPKGPREFIX}-six>0:../../lang/py-six
DEPENDS+= ${PYPKGPREFIX}-patiencediff>=0.2.2:../../textproc/py-patiencediff
# Not yet packaged; only needed for lp: shortcuts.
#DEPENDS+= ${PYPKGPREFIX}-launchpadlib>=1.6.3:../../devel/py-launchpadlib
TEST_DEPENDS+= ${PYPKGPREFIX}-testtools>=0:../../devel/py-testtools
USE_TOOLS+= gmake msgfmt
PYTHON_VERSIONS_INCOMPATIBLE= 27
REPLACE_PYTHON+= breezy/git/bzr-receive-pack
REPLACE_PYTHON+= breezy/git/bzr-upload-pack
REPLACE_PYTHON+= breezy/git/git-remote-bzr
REPLACE_PYTHON+= breezy/git/git_remote_helper.py
REPLACE_PYTHON+= breezy/plugins/bash_completion/bashcomp.py
REPLACE_PYTHON+= breezy/tests/ssl_certs/create_ssls.py
REPLACE_PYTHON+= breezy/version_info_formats/format_python.py
REPLACE_PYTHON+= brz
REPLACE_PYTHON+= contrib/brz_access
#REPLACE_PYTHON+= tools/*.py tools/subunit-sum tools/time_graph.py
.include "../../mk/bsd.prefs.mk"
SUBST_CLASSES+= python
SUBST_MESSAGE.python= Fix python path for test case.
SUBST_STAGE.python= post-extract
SUBST_FILES.python+= Makefile
SUBST_SED.python+= -e 's,=python,=${PYTHONBIN},'
post-build:
cd ${WRKSRC} && ${PYTHONBIN} tools/generate_docs.py man
do-test:
cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ./brz selftest -v
.include "../../devel/zlib/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"