# $Id: Portfile 84227 2011-09-21 02:45:55Z jmr@macports.org $
# -*- 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
set long_name       django-tastypie
version             0.9.9
python.versions     25 26 27
python.default_version 25
categories-append   www
license             BSD
platforms           darwin
supported_archs     noarch
maintainers         singingwolfboy openmaintainer
description         flexible & capable API layer for Django
long_description    ${description}
homepage            http://pypi.python.org/pypi/${long_name}/
master_sites        http://pypi.python.org/packages/source/d/${long_name}
distname            ${long_name}-${version}

checksums           rmd160  fdd26231fe42caceda5393e86f4b8a75b44e438f \
                    sha256  c72ac7eea348b0be9c4cf517312be4904f68706fa021148d858f44b5e44e64d9

if {$subport != $name} {
    depends_lib     port:py${python.version}-django \
                    port:py${python.version}-dateutil \
                    port:py${python.version}-mimeparse
}

livecheck.type      regex
livecheck.regex     {${long_name}-(\d+(?:\.\d+)*)}
