# -*- 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: Portfile 89957 2012-02-17 04:56:09Z jmr@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-south
version             0.7.3
categories-append   www
license             Apache-2
platforms           darwin
supported_archs     noarch
maintainers         nomaintainer
homepage            http://south.aeracode.org/
description         South provides intelligent schema migrations for Django apps
long_description    South provides intelligent, database-independant, \
                    semi-automatic, schema migrations for Django apps.

master_sites        http://www.aeracode.org/releases/south/
distname            south-${version}
worksrcdir          south
checksums           md5     693a2a7a57b29c49bc177fe951e04767 \
                    sha1    f5a1e811f4c028874c7e617e7eba60d0a9e9dd71 \
                    rmd160  4c0a56139905624480f6b18b3ee3d81a7a13cb29

python.versions     26 27
python.default_version 27

if {$subport != $name} {
    depends_lib-append  port:py${python.version}-distribute
    
    post-destroot   {
        file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${subport}/docs
    }
    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       ${homepage}
    livecheck.regex     "/wiki/ReleaseNotes/(0\.\[0-9\]+\.\[0-9\]+)"
}
