source: trunk/dports/python/py-graphy/Portfile

Last change on this file was 136005, checked in by ryandesign@…, 2 years ago

py-graphy: use fs-traverse instead of find/xargs to remove .svn directories

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# -*- 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
2# $Id: Portfile 136005 2015-05-09 12:07:46Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7name                py-graphy
8set real_name       graphy
9version             1.0
10platforms           darwin
11license             Apache-2
12maintainers         nomaintainer
13
14description         Simple Python library for generating charts
15long_description    Graphy is a simple Python library for generating \
16                    charts. It tries to get out of the way and let you \
17                    just work with your data. At the moment, it \
18                    produces charts using the Google Chart API.
19homepage            http://code.google.com/p/graphy/
20
21master_sites        googlecode:${real_name}
22distname            ${real_name}_${version}
23use_bzip2           yes
24checksums           md5     cbf392db1866f3158608f6de97488de1 \
25                    sha1    b3206c349357bad02750b25ad58547ffc9fcae06 \
26                    rmd160  69c986a9b41f6de6e5f6cd5a61071308f4f608b0
27
28python.versions     27
29
30if {${name} ne ${subport}} {
31    post-extract {
32        fs-traverse -ignoreErrors d ${worksrcpath} {
33            if {[file tail ${d}] eq {.svn}} {
34                delete ${d}
35            }
36        }
37    }
38   
39    build {}
40   
41    destroot {
42        set docdir ${destroot}${prefix}/share/doc/${subport}
43        xinstall -d ${docdir}/examples ${destroot}${python.pkgd}
44
45        move ${worksrcpath}/${real_name} ${destroot}${python.pkgd}/${real_name}
46        xinstall ${worksrcpath}/README ${docdir}
47        xinstall {*}[glob ${worksrcpath}/examples/*.py] ${docdir}/examples
48    }
49}
Note: See TracBrowser for help on using the repository browser.