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

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

Set the svn:keywords property to 'Id' for all Portfile's. This
re-enables the Id keyword substitution that was present in the CVS
repository.

See this thread for more information:
http://lists.macosforge.org/pipermail/macports-dev/2006-October/000180.html

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# $Id: Portfile 20382 2006-11-02 21:38:50Z blair@macports.org $
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.