# -*- 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.6
revision            0

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

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

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

checksums           rmd160  07bb0e281a147c6eba2365e088e38200f7a81a2a \
                    sha256  7f16928ffa5b1b390edd81fa0c15a239cca7fc1134d440ecaa2040b5edc549b8 \
                    size    154751

python.versions     311

if {${name} ne ${subport}} {
    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}
    }
}
