# $Id: Portfile 59683 2009-10-19 20:05:06Z blb@macports.org $

PortSystem          1.0
PortGroup           python26 1.0
name                hg-forest
version             20090409
categories          devel mercurial
maintainers         nomaintainer
description         Mercurial extension for nested repositories
long_description \
   Operations on trees with nested Mercurial repositories. \
   This extension provides commands that apply to a composite tree called \
   a forest. Some commands simply wrap standard Mercurial commands, such \
   as 'clone' or 'status', and others involve a snapshot file.

platforms           darwin

homepage            http://www.selenic.com/mercurial/wiki/index.cgi/ForestExtension
# This is only here since master_sites is a required key
master_sites        macports

depends_lib         port:mercurial

distfiles
use_configure       no
build               {}
destroot {
   xinstall -m 755 -d ${destroot}${python.pkgd}/hgext
   xinstall -m 644 -W ${filespath} forest.py ${destroot}${python.pkgd}/hgext
}
post-activate {
   ui_msg "To setup forest to run, edit your .hgrc to add:"
   ui_msg "   \[extensions\]"
   ui_msg "   hgext.forest="
   ui_msg "See ${homepage} for more explanation"
}

livecheck.type      none

