# $Id: Portfile 67795 2010-05-18 15:57:38Z singingwolfboy@macports.org $

PortSystem          1.0
PortGroup           python26 1.0

name                py26-graphy
set real_name       graphy
version             1.0
maintainers         singingwolfboy openmaintainer
license             Apache 2.0
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

build {
    system "find ${worksrcpath} -name .svn -print0 | xargs -0 rm -rf"
}
destroot {
    set docdir ${destroot}${prefix}/share/doc/${name}
    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
}
