# $Id: Portfile 91975 2012-04-14 11:11:07Z jmr@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-graphy
python.versions     24 25 26 27
set real_name       graphy
version             1.0
maintainers         singingwolfboy openmaintainer
license             Apache-2
description         Simple Python library for generating charts
long_description    \
    Graphy is a simple Python library for generating charts. It tries to get \
    out of the way and let you just work with your data. At the moment, it \
    produces charts using the Google Chart API.
    
homepage            http://code.google.com/p/graphy/
platforms           darwin
master_sites        googlecode:${real_name}
distname            ${real_name}_${version}
use_bzip2           yes
checksums           md5     cbf392db1866f3158608f6de97488de1 \
                    sha1    b3206c349357bad02750b25ad58547ffc9fcae06 \
                    rmd160  69c986a9b41f6de6e5f6cd5a61071308f4f608b0

if {$subport != $name} {
    build {
        system "find ${worksrcpath} -name .svn -print0 | xargs -0 rm -rf"
    }
    destroot {
        set docdir ${destroot}${prefix}/share/doc/${subport}
        xinstall -d ${docdir}/examples ${destroot}${python.pkgd}
        
        move ${worksrcpath}/${real_name} ${destroot}${python.pkgd}/${real_name}
        xinstall ${worksrcpath}/README ${docdir}
        eval xinstall [glob ${worksrcpath}/examples/*.py] ${docdir}/examples
    }
}
