# -*- 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
PortGroup           python 1.0

name                py-django-nose
version             1.4.6
revision            0

categories-append   devel
platforms           darwin
license             BSD
maintainers         nomaintainer

description         Django test runner that uses nose
long_description    ${description}

homepage            https://github.com/django-nose/django-nose
master_sites        pypi:[string index ${python.rootname} 0]/${python.rootname}
distname            ${python.rootname}-${version}

checksums           rmd160  684e90c76ab73095015dfa15e86ec20ea1693050 \
                    sha256  58934a06a6932696e54c9e8af3fab49bf67ca9e9c840ad668cb7f51219808a07 \
                    size    46410

python.versions     27 35 36 37

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-setuptools

    depends_lib-append \
                    port:py${python.version}-django \
                    port:py${python.version}-nose

    post-destroot {
        xinstall -m 0755 -d ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 0644 -W ${worksrcpath} LICENSE CONTRIBUTING.rst \
            AUTHORS.rst changelog.rst README.rst \
            ${destroot}${prefix}/share/doc/${subport}
    }

    livecheck.type  none
}

subport py34-${python.rootname} {
    replaced_by py35-${python.rootname}
    PortGroup obsolete 1.0
}