# -*- 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
# $Id$

PortSystem          1.0

name                aap
version             1.091
categories          devel
platforms           darwin
maintainers         yahoo.com.au:mail_ben_schmidt
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    4f91e48292457826251ec2fddcd3ad9a4814c8ed \
                    rmd160  59cb689cd2e36621e00b5c0f3e53ee50129cdff5

depends_lib         port:python26

extract.mkdir       yes

patchfiles          patch-destroot.diff patch-python26.diff
patch.pre_args      -p1

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

use_configure       no

build {}

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

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