# -*- 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-tastypie
python.rootname     django-tastypie
version             0.14.3
revision            0

categories-append   www
platforms           darwin
supported_archs     noarch
license             BSD
maintainers         nomaintainer

description         flexible & capable API layer for Django
long_description    ${description}

homepage            https://github.com/django-tastypie/django-tastypie

checksums           rmd160  7b7c606a1f386082948005056835984bb142509b \
                    sha256  79fbadf81a3cc42cb5304731a88f46c207ae4c8efa7556856356ec916e5b2ec7 \
                    size    148892

python.versions     27 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}-dateutil \
                    port:py${python.version}-mimeparse

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

    livecheck.type  none
}
