2ffbaf3d20
after Python 2.3 has been removed from "pkgsrc". Approved by Thomas Klausner.
47 lines
1.2 KiB
Makefile
47 lines
1.2 KiB
Makefile
# $NetBSD: Makefile,v 1.42 2009/09/23 09:54:45 tron Exp $
|
|
|
|
DISTNAME= bzr-${VER}
|
|
#PKGREVISION= 1
|
|
CATEGORIES= devel scm
|
|
MASTER_SITES= http://launchpad.net/bzr/1.18/${VER}/+download/
|
|
VER= 1.18
|
|
|
|
MAINTAINER= epg@NetBSD.org
|
|
HOMEPAGE= http://bazaar-vcs.org/
|
|
COMMENT= Bazaar open source distributed version control system
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
DEPENDS+= ${PYPKGPREFIX}-expat>=0:../../textproc/py-expat
|
|
BUILD_DEPENDS+= ${PYPKGPREFIX}-docutils>=0:../../textproc/py-docutils
|
|
|
|
USE_TOOLS+= gmake
|
|
|
|
PY_PATCHPLIST= yes
|
|
PYDISTUTILSPKG= yes
|
|
|
|
PYTHON_PATCH_SCRIPTS= bzr bzrlib/weave.py
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if !empty(PKGSRC_RUN_TEST:M[Yy][Ee][Ss])
|
|
DEPENDS+= ${PYPKGPREFIX}-medusa>=0:../../net/py-medusa
|
|
.endif
|
|
|
|
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:
|
|
# XXX shouldn't HOME=FAKEHOME already be set?
|
|
HOME=${FAKEHOMEDIR}; cd ${WRKSRC} && ./bzr selftest -v
|
|
|
|
.include "../../lang/python/application.mk"
|
|
.include "../../lang/python/extension.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|