PortSystem          1.0
PortGroup           python 1.0

name                loggerhead
version             1.18.1
set branch          [join [lrange [split ${version} .] 0 1] .]
categories          www devel
platforms           darwin
supported_archs     noarch
maintainers         nomaintainer

description         Web viewer for projects in Bazaar
long_description    Loggerhead is a web viewer for projects in Bazaar. It \
                    can be used to navigate a branch history, \
                    annotate files, view patches, perform searches, \
                    etc. It's originally based on bazaar-webserve, \
                    which is itself based on hgweb for Mercurial.
license             GPL-2+

homepage            https://launchpad.net/loggerhead
master_sites        ${homepage}/${branch}/${version}/+download/

checksums           md5    bef897d4674967ef835d1183d587d34f \
                    rmd160 a03a119ff82470cba2bccf215bce8c468daf7357 \
                    sha256 f66123abef4e06b893fe91e2c2b367dd9f17d5f523096ff37f33178d004ffdb4

python.default_version 27

depends_lib-append  port:py${python.version}-setuptools \
                    port:py${python.version}-paste \
                    port:py${python.version}-simpletal \
                    port:bzr

post-destroot {
    xinstall -m 644 -W ${worksrcpath} loggerhead.conf.example \
        README COPYING.txt NEWS ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} serve-branches.1 \
    	     ${destroot}${prefix}/share/man/man1
}