openbsd-ports/devel/mercurial/Makefile
wcmaier 658f91e5f4 Update to the newly released 1.0.1.
Add 'v2' to license marker, update mail address and add unzip to
REGRESS_DEPENDS while here.

ok merdely@
2008-05-23 15:03:12 +00:00

64 lines
1.7 KiB
Makefile

# $OpenBSD: Makefile,v 1.12 2008/05/23 15:03:12 wcmaier Exp $
COMMENT= fast, lightweight source control management
VERSION= 1.0.1
DISTNAME= mercurial-${VERSION}
CATEGORIES= devel
HOMEPAGE= http://www.selenic.com/mercurial/
MAINTAINER= Will Maier <wcmaier@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://www.selenic.com/mercurial/release/
MODULES= lang/python
SUBST_VARS+= VERSION
REGRESS_DEPENDS= :python-bz2-*:lang/python/${MODPY_VERSION},-bz2 \
::archivers/unzip
FILES= hgeditor hgweb.cgi hgwebdir.cgi
CONTRIBFILES= bash_completion mercurial.el sample.hgrc \
tcsh_completion zsh_completion hgwebdir.fcgi \
mergetools.hgrc mq.el
CONTRIBDIRS= git-viz hgsh vim
SCRIPTS= convert-repo darcs2hg.py hg-ssh hgdiff hgk \
tcsh_completion_build.sh
post-install:
${INSTALL_MAN} ${WRKSRC}/doc/hg.1 ${PREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/doc/hgignore.5 ${PREFIX}/man/man5
${INSTALL_MAN} ${WRKSRC}/doc/hgrc.5 ${PREFIX}/man/man5
${INSTALL_DATA_DIR} ${PREFIX}/share/mercurial/
${INSTALL_SCRIPT} ${WRKSRC}/hgeditor ${PREFIX}/share/mercurial
. for file in ${FILES}
${INSTALL_DATA} ${WRKSRC}/${file} \
${PREFIX}/share/mercurial
. endfor
. for file in ${CONTRIBFILES}
${INSTALL_DATA} ${WRKSRC}/contrib/${file} \
${PREFIX}/share/mercurial
. endfor
. for dir in ${CONTRIBDIRS}
${INSTALL_DATA_DIR} ${PREFIX}/share/mercurial/${dir}
${INSTALL_DATA} ${WRKSRC}/contrib/${dir}/* \
${PREFIX}/share/mercurial/${dir}
. endfor
. for script in ${SCRIPTS}
${INSTALL_SCRIPT} ${WRKSRC}/contrib/${script} \
${PREFIX}/share/mercurial
. endfor
do-regress:
@cd ${WRKSRC}/tests && ${MODPY_BIN} run-tests.py -v 1>&2
.include <bsd.port.mk>