# $Id: Portfile 106911 2013-06-11 14:40:14Z jmr@macports.org $

PortSystem          1.0
PortGroup           python 1.0
set pymodname       tweepy
name                py-${pymodname}
version             1.12
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     ff802f974e445ddc232a990324451179 \
                    sha1    1a67c9742fa72c8fa72d27a6d831852b539b7cfa \
                    rmd160  b834cc08a8abd1427407553271bc2b6ca588e687

python.versions     26 27
python.default_version   27

if {${name} != ${subport}} {
   depends_build    port:py${python.version}-setuptools
   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

