pkgsrc/devel/mr/Makefile
schmonz 8e564e44c2 Initial import of mr(1). From DESCR:
The mr(1) command can checkout, update, or perform other actions
on a set of repositories as if they were one combined respository.
It supports any combination of subversion, git, cvs, mercurial,
bzr, darcs, cvs, and fossil repositories, and support for other
revision control systems can easily be added. (There are extensions
adding support for unison and git-svn.)

It is extremely configurable via simple shell scripting. Some
examples of things it can do include:

* Update a repository no more frequently than once every twelve hours.
* Run an arbitrary command before committing to a repository.
* When updating a git repository, pull from two different upstreams
    and merge the two together.
* Run several repository updates in parallel, greatly speeding up
    the update process.
* Remember actions that failed due to a laptop being offline, so
    they can be retried when it comes back online.
2011-06-14 21:58:11 +00:00

42 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.1.1.1 2011/06/14 21:58:11 schmonz Exp $
#
DISTNAME= mr_1.03
PKGNAME= ${DISTNAME:S/_/-/}
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_DEBIAN:=pool/main/m/mr/}
MAINTAINER= schmonz@NetBSD.org
HOMEPAGE= http://kitenet.net/~joey/code/mr/
COMMENT= Treat multiple repositories as one combined repository
LICENSE= gnu-gpl-v2
PKG_DESTDIR_SUPPORT= user-destdir
DEPENDS+= p5-libwww-[0-9]*:../../www/p5-libwww
DEPENDS+= p5-HTML-Parser-[0-9]*:../../www/p5-HTML-Parser
NO_BUILD= yes
WRKSRC= ${WRKDIR}/${PKGBASE}
USE_LANGUAGES= # none
USE_TOOLS+= perl:run
REPLACE_PERL+= mr webcheckout
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
SHAREDIR= ${PREFIX}/share/${PKGBASE}
INSTALLATION_DIRS= bin ${EGDIR} ${SHAREDIR}
do-install:
set -e; cd ${WRKSRC}; \
${INSTALL_DATA} mrconfig ${DESTDIR}${EGDIR}; \
${INSTALL_DATA} mrconfig.complex ${DESTDIR}${EGDIR}; \
for i in lib/*; do \
${INSTALL_DATA} $${i} ${DESTDIR}${SHAREDIR}; \
done; \
${INSTALL_SCRIPT} mr ${DESTDIR}${PREFIX}/bin; \
${INSTALL_SCRIPT} webcheckout ${DESTDIR}${PREFIX}/bin
.include "../../mk/bsd.pkg.mk"