# $Id: Portfile 101224 2013-01-06 14:16:15Z jmr@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-roundup
version             1.3.3
categories-append   www
license             MIT PSF ZPL-2
maintainers         nomaintainer
description         Issue-tracking system
long_description \
    Roundup is a simple-to-use and -install issue-tracking system with \
    command-line, web and e-mail interfaces. It is based on the winning \
    design from Ka-Ping Yee in the Software Carpentry "Track" design \
    competition. \
    Note: Ping is not responsible for this project. The contact for this \
    project is richard@users.sourceforge.net.

platforms           darwin
supported_archs     noarch

homepage            http://roundup.sf.net/
master_sites        http://cheeseshop.python.org/packages/source/r/roundup/
distname            roundup-${version}

checksums           sha1 76242a43974e33ec1fcc711cf3bdd91c18aa46fe

python.versions     24

if {$subport != $name} {
    pre-build {
        reinplace "s|man/man1|share/man/man1|" ${worksrcpath}/setup.py
    }

    post-destroot {
        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
        eval file copy [glob ${worksrcpath}/doc/*] \
            ${destroot}${prefix}/share/doc/${subport}
        eval reinplace "s|${destroot}${prefix}|${prefix}|g" \
            [glob ${destroot}${prefix}/bin/*]
    }
}
