# $Id: Portfile 91074 2012-03-23 15:00:21Z phw@macports.org $

PortSystem          1.0
PortGroup           python 1.0
set pymodname       tweepy
name                py-${pymodname}
version             1.9
revision            0
categories-append   devel net
license             MIT
maintainers         phw openmaintainer
description         A python library for the Twitter API.
long_description \
    ${description} OAuth, complete coverage, streaming API

platforms           darwin
supported_archs     noarch

homepage            http://${pymodname}.github.com/
master_sites        http://pypi.python.org/packages/source/t/${pymodname}/
distname            ${pymodname}-${version}

checksums           md5     95654a903600652baaa02c910026214f \
                    sha1    511602407756327a9504820b50cfce4d32c5ad84 \
                    rmd160  6f8d0c59870629d6a625a1f829f5e435755682fe

python.versions     26 27
python.default_version   27

if {${name} != ${subport}} {
   depends_build    port:py${python.version}-distribute
   post-destroot {
      xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
      xinstall -m 644 -W ${worksrcpath} README \
         ${destroot}${prefix}/share/doc/${subport}
   }
}

livecheck.type      regex
livecheck.url       [lindex ${master_sites} 0]
livecheck.regex     ${pymodname}-(\[.\\d\]+)\\.tar\\.gz

