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