2012-06-12 03:16:43 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.48 2012/06/12 07:16:43 rpointel Exp $
|
2006-05-28 11:39:59 -04:00
|
|
|
|
2009-07-31 23:21:46 -04:00
|
|
|
COMMENT = fast, lightweight source control management
|
2006-05-28 11:39:59 -04:00
|
|
|
|
2012-06-12 03:16:43 -04:00
|
|
|
MODPY_EGG_VERSION = 2.2.2
|
2009-07-31 23:21:46 -04:00
|
|
|
DISTNAME = mercurial-${MODPY_EGG_VERSION}
|
|
|
|
CATEGORIES = devel
|
2010-10-03 11:09:27 -04:00
|
|
|
|
2009-07-31 23:21:46 -04:00
|
|
|
HOMEPAGE = http://www.selenic.com/mercurial/
|
2006-05-28 11:39:59 -04:00
|
|
|
|
2009-07-31 23:21:46 -04:00
|
|
|
MAINTAINER = Will Maier <wcmaier@openbsd.org>
|
2006-09-22 00:22:26 -04:00
|
|
|
|
2008-05-23 11:03:12 -04:00
|
|
|
# GPLv2
|
2009-07-31 23:21:46 -04:00
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
|
|
PERMIT_DISTFILES_CDROM = Yes
|
|
|
|
PERMIT_DISTFILES_FTP = Yes
|
2006-05-28 11:39:59 -04:00
|
|
|
|
2012-03-19 02:16:22 -04:00
|
|
|
MASTER_SITES = http://mercurial.selenic.com/release/
|
2006-05-28 11:39:59 -04:00
|
|
|
|
2010-09-01 15:20:36 -04:00
|
|
|
MODULES = lang/python
|
2011-01-10 16:46:11 -05:00
|
|
|
USE_GROFF = Yes
|
2006-12-22 23:17:20 -05:00
|
|
|
|
2010-11-15 14:45:56 -05:00
|
|
|
BUILD_DEPENDS = devel/gettext
|
2010-05-03 16:23:08 -04:00
|
|
|
REGRESS_DEPENDS = ${RUN_DEPENDS} \
|
2012-03-20 15:55:38 -04:00
|
|
|
archivers/unzip \
|
2012-04-30 13:01:02 -04:00
|
|
|
devel/git
|
2006-05-28 11:39:59 -04:00
|
|
|
|
2010-07-25 03:22:24 -04:00
|
|
|
FILES = hgeditor hgweb.cgi
|
2008-05-13 08:02:54 -04:00
|
|
|
|
2009-07-31 23:21:46 -04:00
|
|
|
CONTRIBFILES = bash_completion mercurial.el sample.hgrc \
|
2010-07-25 03:22:24 -04:00
|
|
|
tcsh_completion zsh_completion \
|
2008-03-26 16:43:44 -04:00
|
|
|
mergetools.hgrc mq.el
|
|
|
|
|
2010-07-25 03:22:24 -04:00
|
|
|
CONTRIBDIRS = hgsh vim
|
|
|
|
SCRIPTS = convert-repo hg-ssh hgk \
|
2008-12-29 15:04:59 -05:00
|
|
|
tcsh_completion_build.sh dumprevlog \
|
2010-07-25 03:22:24 -04:00
|
|
|
undumprevlog simplemerge
|
2007-11-28 11:13:46 -05:00
|
|
|
|
2011-07-06 13:37:27 -04:00
|
|
|
WANTLIB += ${MODPY_WANTLIB}
|
|
|
|
|
2006-05-28 11:39:59 -04:00
|
|
|
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
|
2006-09-22 00:22:26 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/mercurial/
|
2008-03-26 16:43:44 -04:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/hgeditor ${PREFIX}/share/mercurial
|
2008-05-13 08:02:54 -04:00
|
|
|
. for file in ${FILES}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${file} \
|
|
|
|
${PREFIX}/share/mercurial
|
|
|
|
. endfor
|
2007-11-28 11:13:46 -05:00
|
|
|
. 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
|
2006-09-22 00:22:26 -04:00
|
|
|
|
2008-03-26 16:43:44 -04:00
|
|
|
do-regress:
|
|
|
|
@cd ${WRKSRC}/tests && ${MODPY_BIN} run-tests.py -v 1>&2
|
|
|
|
|
2006-05-28 11:39:59 -04:00
|
|
|
.include <bsd.port.mk>
|