source: trunk/dports/python/py-matplotlib/Portfile @ 20002

Last change on this file since 20002 was 20002, checked in by markd@…, 13 years ago

Closes #10825. Update to 0.87.6.

  • Property svn:eol-style set to native
File size: 2.3 KB
Line 
1# $Id: Portfile,v 1.5 2005/07/04 09:20:25 michaelm Exp $
2
3PortSystem               1.0
4PortGroup                python24 1.0
5name                     py-matplotlib
6version                  0.87.6
7categories-append        graphics math
8maintainers              rene@donner.at
9description              matlab-like syntax for creating plots in python
10long_description \
11        Matplotlib is a pure python plotting library with the goal of making \
12        publication quality plots using a syntax familiar to matlab users.  The \
13        library uses Numeric for handling large data sets and supports a variety \
14        of output backends
15
16platforms                darwin
17
18homepage                 http://matplotlib.sourceforge.net/
19master_sites             sourceforge:matplotlib
20distname                 matplotlib-${version}
21
22checksums                md5 30c30e10d2338c56ae5b31f0adf325f5
23
24depends_lib-append       port:freetype port:libpng \
25                           port:antigraingeometry port:py-numarray \
26                           port:py-numeric port:py-dateutil port:py-tz
27
28patchfiles              patch-setupext.py.diff
29
30
31
32post-extract {
33        if {![variant_isset gtk2]} {
34                reinplace "s|^BUILD_GTKAGG\[\[:space:\]\]*=\[\[:space:\]\]*'auto'|BUILD_GTKAGG=0|" \
35                  ${worksrcpath}/setup.py
36        } else {
37                reinplace "s|^BUILD_GTKAGG\[\[:space:\]\]*=\[\[:space:\]\]*'auto'|BUILD_GTKAGG=1|" \
38                  ${worksrcpath}/setup.py
39        }
40        reinplace "s|^BUILD_TKAGG\[\[:space:\]\]*=\[\[:space:\]\]*'auto'|BUILD_TKAGG=0|" \
41                ${worksrcpath}/setup.py
42}
43
44post-patch { reinplace "s|@@DPORTS_PREFIX@@|${prefix}|" ${worksrcpath}/setupext.py }
45
46build.env                       MPLIB_BASE="${prefix}"
47
48post-destroot {
49        xinstall -m 755 -d ${destroot}/${prefix}/share/doc/${name} \
50                ${destroot}/${prefix}/share/matplotlib
51        xinstall -m 644 -W ${worksrcpath} API_CHANGES CHANGELOG INSTALL \
52                INTERACTIVE KNOWN_BUGS README TODO \
53                ${destroot}/${prefix}/share/doc/${name}
54        file copy ${worksrcpath}/license \
55                ${destroot}/${prefix}/share/doc/${name}
56        file copy ${worksrcpath}/examples \
57                ${destroot}/${prefix}/share/matplotlib
58}
59
60variant gtk2 {
61        depends_lib-append      port:py-gtk2
62}
63
Note: See TracBrowser for help on using the repository browser.