# -*- 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
# $Id: Portfile 65908 2010-04-02 22:28:17Z jmr@macports.org $

PortSystem          1.0
PortGroup           python26 1.0

name                py26-twitter
version             0.6
maintainers         gmail.com:aeppert
description         A python wrapper around the Twitter API
long_description    ${description}

platforms           darwin

homepage            http://code.google.com/p/python-twitter
master_sites        http://python-twitter.googlecode.com/files/
distname            python-twitter-${version}

depends_lib         port:py26-distribute \
                    port:py26-simplejson

checksums           md5     e1f5c50c60c74944d29ce28178972b95 \
                    sha1    44e226ba59e32a15ce2f2ae6d38bc62a85d19e05 \
                    rmd160  1d813877cac653be4463f82b25eb7d95b8877e80

post-destroot {
    xinstall -m 644 -W ${worksrcpath} \
        LICENSE \
          ${destroot}${prefix}/share/doc/${name}
    foreach f [glob -directory ${worksrcpath}/doc *] {
        copy $f ${destroot}${prefix}/share/doc/${name}/[file tail $f]
    }
}

livecheck.type      regex
livecheck.url       ${master_sites}
livecheck.regex     {python-twitter-([0-9.]+)\.tar\.gz}

