42 lines
1.4 KiB
Makefile
42 lines
1.4 KiB
Makefile
# $NetBSD: Makefile,v 1.39 2020/02/07 07:37:45 wiz Exp $
|
|
|
|
DISTNAME= mercurial-${VERSION}
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
|
|
CATEGORIES= devel scm
|
|
MASTER_SITES= https://www.mercurial-scm.org/release/
|
|
|
|
MAINTAINER= wiz@NetBSD.org
|
|
HOMEPAGE= https://www.mercurial-scm.org/
|
|
COMMENT= Fast, lightweight source control management system
|
|
LICENSE= gnu-gpl-v2 OR gnu-gpl-v3 # OR newer
|
|
|
|
# with this dependency, two zip test cases start working
|
|
# https://bz.mercurial-scm.org/show_bug.cgi?id=4483
|
|
# https://bz.mercurial-scm.org/show_bug.cgi?id=4485
|
|
BUILD_DEPENDS+= unzip-[0-9]*:../../archivers/unzip
|
|
DEPENDS+= ${PYPKGPREFIX}-curses-[0-9]*:../../devel/py-curses
|
|
|
|
TEST_DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat
|
|
TEST_DEPENDS+= ${PYPKGPREFIX}-sqlite3-[0-9]*:../../databases/py-sqlite3
|
|
|
|
USE_TOOLS+= gmake msgfmt
|
|
|
|
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${PKGMANDIR}/man5
|
|
INSTALLATION_DIRS+= share/doc/mercurial
|
|
|
|
.include "version.mk"
|
|
|
|
# Known test failures:
|
|
# none as of 5.2.2
|
|
# Ran 820 tests, 76 skipped, 0 failed.
|
|
do-test:
|
|
cd ${WRKSRC} && make tests PYTHON=${PYTHONBIN} TESTFLAGS=${_MAKE_JOBS:Q}
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*.5 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5
|
|
${INSTALL_DATA} ${WRKSRC}/README.rst \
|
|
${DESTDIR}${PREFIX}/share/doc/mercurial
|
|
|
|
.include "../../lang/python/distutils.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|