# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0

name                aap
version             1.094
categories          devel
platforms           any
maintainers         nomaintainer
license             GPL-2
supported_archs     noarch

description         A-A-P helps you with distributed development of software.

long_description    {*}${description} \
                    Install a program on your system, obtain the sources \
                    and make modifications, manage multiple versions \
                    of the same project, distribute packages and much more. \
                    A-A-P runs on many operating systems.

homepage            http://www.a-a-p.org/
master_sites        sourceforge:a-a-p
use_zip             yes

checksums           sha1    7e8d043a3928c8e7688c1302acc21fe9c5a0f8ed \
                    rmd160  88a5a026d89d3ab5cf657667eed39a1c8de291a4 \
                    sha256  3f53b2fc277756042449416150acc477f29de93692944f8a77e8cef285a1efd8

depends_lib         port:python27

extract.mkdir       yes

patchfiles          patch-destroot.diff \
                    patch-python27.diff

post-patch {
    reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/aap
}

use_configure       no

build {}

destroot.cmd        ./aap
destroot.args       PREFIX=${prefix} MANSUBDIR=share/man

post-destroot {
    set docdir ${destroot}${prefix}/share/doc/${name}
    xinstall -d ${docdir}
    xinstall -m 644 -W ${worksrcpath} \
        COPYING \
        README.txt \
        ${docdir}
}

livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}
