# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; truncate-lines: t -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
maintainers googlemail.com:gjasny openmaintainer
description Multiple repository management tool
long_description 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 git, svn, mercurial, bzr, darcs, cvs, vcsh, fossil, and veracity repositories, \
and support for other version control systems can easily be added. \
(There are extensions adding support for unison and git-svn, among others.)
homepage http://myrepos.branchable.com/
git.url git://myrepos.branchable.com/
depends_lib port:perl${perl5.major}
depends_run port:p${perl5.major}-html-parser \
port:p${perl5.major}-libwww-perl \
port:p${perl5.major}-getopt-long
reinplace -locale C "s|^#!.*perl|#!${perl5.bin}|" ${worksrcpath}/mr ${worksrcpath}/webcheckout
xinstall -W ${worksrcpath} -m 755 mr webcheckout ${destroot}${prefix}/bin
xinstall -d -m 755 ${destroot}${prefix}/share/${name}
xinstall -W ${worksrcpath} -m 644 {*}[glob lib/*] ${destroot}${prefix}/share/${name}
xinstall -W ${worksrcpath} -m 644 mr.1 webcheckout.1 ${destroot}${prefix}/share/man/man1/
livecheck.url "${homepage}"
livecheck.regex {>version +([-0-9._a-zA-Z]+)<}