2010-01-12 09:04:29 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.23 2010/01/12 14:04:29 wcmaier 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
|
|
|
|
2010-01-12 09:04:29 -05:00
|
|
|
MODPY_EGG_VERSION = 1.4.2
|
2009-07-31 23:21:46 -04:00
|
|
|
DISTNAME = mercurial-${MODPY_EGG_VERSION}
|
|
|
|
CATEGORIES = devel
|
|
|
|
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
|
|
|
|
2009-07-31 23:21:46 -04:00
|
|
|
MASTER_SITES = http://www.selenic.com/mercurial/release/
|
2006-05-28 11:39:59 -04:00
|
|
|
|
2009-12-02 11:19:31 -05:00
|
|
|
MODULES = lang/python \
|
|
|
|
devel/gettext
|
2006-12-22 23:17:20 -05:00
|
|
|
|
2009-07-31 23:21:46 -04:00
|
|
|
REGRESS_DEPENDS = ::archivers/unzip
|
2006-05-28 11:39:59 -04:00
|
|
|
|
2009-07-31 23:21:46 -04:00
|
|
|
FILES = hgeditor hgweb.cgi hgwebdir.cgi
|
2008-05-13 08:02:54 -04:00
|
|
|
|
2009-07-31 23:21:46 -04:00
|
|
|
CONTRIBFILES = bash_completion mercurial.el sample.hgrc \
|
2008-03-26 16:43:44 -04:00
|
|
|
tcsh_completion zsh_completion hgwebdir.fcgi \
|
|
|
|
mergetools.hgrc mq.el
|
|
|
|
|
2009-07-31 23:21:46 -04:00
|
|
|
CONTRIBDIRS = git-viz hgsh vim
|
|
|
|
SCRIPTS = convert-repo hg-ssh hgdiff hgk \
|
2008-12-29 15:04:59 -05:00
|
|
|
tcsh_completion_build.sh dumprevlog \
|
2009-11-20 10:09:24 -05:00
|
|
|
undumprevlog rewrite-log simplemerge
|
2007-11-28 11:13:46 -05:00
|
|
|
|
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>
|