[27696] trunk/dports/python
source_changes at macosforge.org
source_changes at macosforge.org
Sat Aug 11 22:38:03 PDT 2007
Revision: 27696
http://trac.macosforge.org/projects/macports/changeset/27696
Author: jochen at macports.org
Date: 2007-08-11 22:38:03 -0700 (Sat, 11 Aug 2007)
Log Message:
-----------
Provide new port, based on current py-matplotlib port.
However, several py25- ports from the dependencies are still missing,
so only specific variants will work right now.
Please ask the respective maintainers of the missing packages to
provide py25 ports.
Added Paths:
-----------
trunk/dports/python/py25-matplotlib/
trunk/dports/python/py25-matplotlib/Portfile
trunk/dports/python/py25-matplotlib/files/
trunk/dports/python/py25-matplotlib/files/patch-setupext.py.diff
Added: trunk/dports/python/py25-matplotlib/Portfile
===================================================================
--- trunk/dports/python/py25-matplotlib/Portfile (rev 0)
+++ trunk/dports/python/py25-matplotlib/Portfile 2007-08-12 05:38:03 UTC (rev 27696)
@@ -0,0 +1,111 @@
+# $Id$
+
+PortSystem 1.0
+PortGroup python25 1.0
+categories-append graphics math
+name py25-matplotlib
+version 0.90.1
+revision 0
+maintainers openmaintainer jochen
+
+description matlab-like syntax for creating plots in python
+long_description Matplotlib is a pure python plotting library with the goal of making \
+ publication quality plots using a syntax familiar to matlab users. \
+ The library uses numarray, Numeric, or numpy for handling large \
+ data sets and supports a variety of output backends. \
+ This port provides variants for the different \
+ array-objects (numarray, Numeric, numpy) and \
+ for different GUIs (gtk2, tkinter, wxpython).
+homepage http://matplotlib.sourceforge.net
+master_sites sourceforge:matplotlib
+distname matplotlib-${version}
+checksums md5 e1344bd72660e7c9c0b7540a72cc45b8
+
+platforms darwin
+
+depends_lib-append port:freetype \
+ port:libpng \
+ port:py-dateutil port:py-tz
+
+patchfiles patch-setupext.py.diff
+
+build.env MPLIB_BASE="${prefix}"
+
+
+post-extract {
+ if {[variant_isset gtk2]} {
+ reinplace "s|^BUILD_GTKAGG\[\[:space:\]\]*=\[\[:space:\]\]*'auto'|BUILD_GTKAGG=1|" \
+ ${worksrcpath}/setup.py
+ reinplace "s|^BUILD_GTK\[\[:space:\]\]*=\[\[:space:\]\]*'auto'|BUILD_GTK=1|" \
+ ${worksrcpath}/setup.py
+ } else {
+ reinplace "s|^BUILD_GTKAGG\[\[:space:\]\]*=\[\[:space:\]\]*'auto'|BUILD_GTKAGG=0|" \
+ ${worksrcpath}/setup.py
+ reinplace "s|^BUILD_GTK\[\[:space:\]\]*=\[\[:space:\]\]*'auto'|BUILD_GTK=0|" \
+ ${worksrcpath}/setup.py
+ }
+ if {[variant_isset tkinter]} {
+ reinplace "s|^BUILD_TKAGG\[\[:space:\]\]*=\[\[:space:\]\]*'auto'|BUILD_TKAGG=1|" \
+ ${worksrcpath}/setup.py
+ } else {
+ reinplace "s|^BUILD_TKAGG\[\[:space:\]\]*=\[\[:space:\]\]*'auto'|BUILD_TKAGG=0|" \
+ ${worksrcpath}/setup.py
+ }
+ if {[variant_isset wxpython]} {
+ reinplace "s|^BUILD_WXAGG\[\[:space:\]\]*=\[\[:space:\]\]*'auto'|BUILD_WXAGG=1|" \
+ ${worksrcpath}/setup.py
+ } else {
+ reinplace "s|^BUILD_WXAGG\[\[:space:\]\]*=\[\[:space:\]\]*'auto'|BUILD_WXAGG=0|" \
+ ${worksrcpath}/setup.py
+ }
+ if {[variant_isset numarray]} {
+ reinplace "s|NUMERIX.-1.|'numarray'|" ${worksrcpath}/setup.py
+ }
+ if {[variant_isset numeric]} {
+ reinplace "s|NUMERIX.-1.|'numeric'|" ${worksrcpath}/setup.py
+ }
+ if {[variant_isset numpy]} {
+ reinplace "s|NUMERIX.-1.|'numpy'|" ${worksrcpath}/setup.py
+ }
+}
+
+post-patch {
+ reinplace "s|@@DPORTS_PREFIX@@|${prefix}|" ${worksrcpath}/setupext.py
+}
+
+post-destroot {
+ xinstall -m 755 -d ${destroot}/${prefix}/share/doc/${name} \
+ ${destroot}/${prefix}/share/matplotlib
+ xinstall -m 644 -W ${worksrcpath} API_CHANGES CHANGELOG INSTALL \
+ INTERACTIVE KNOWN_BUGS README TODO \
+ ${destroot}/${prefix}/share/doc/${name}
+ file copy ${worksrcpath}/license \
+ ${destroot}/${prefix}/share/doc/${name}
+ file copy ${worksrcpath}/examples \
+ ${destroot}/${prefix}/share/matplotlib
+}
+
+variant gtk2 conflicts tkinter wxpython description "Use gtkAgg for interactive plotting" {
+ depends_lib-append port:py25-gtk2
+}
+variant tkinter conflicts gtk2 wxpython description "Use tkAgg for interactive plotting" {
+ depends_lib-append port:py25-tkinter
+}
+variant wxpython conflicts gtk2 tkinter description "Use wxAgg for interactive plotting" {
+ depends_lib-append port:py25-wxpython
+}
+variant numarray conflicts numpy Numeric description "Use numarray as array-object" {
+ depends_lib-append port:py25-numarray
+}
+variant Numeric conflicts numarray numpy description "Use Numeric as array-object" {
+ depends_lib-append port:py25-numeric
+}
+variant numpy conflicts numarray Numeric description "Use numpy as array-object" {
+ depends_lib-append port:py25-numpy
+}
+if { ![variant_isset gtk2] && ![variant_isset tkinter] && ![variant_isset wxpython] } {
+ default_variants +tkinter
+}
+if { ![variant_isset numarray] && ![variant_isset Numeric] && ![variant_isset numpy] } {
+ default_variants +numpy
+}
Property changes on: trunk/dports/python/py25-matplotlib/Portfile
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: trunk/dports/python/py25-matplotlib/files/patch-setupext.py.diff
===================================================================
--- trunk/dports/python/py25-matplotlib/files/patch-setupext.py.diff (rev 0)
+++ trunk/dports/python/py25-matplotlib/files/patch-setupext.py.diff 2007-08-12 05:38:03 UTC (rev 27696)
@@ -0,0 +1,20 @@
+--- setupext.py.orig 2007-02-01 01:32:51.000000000 -0800
++++ setupext.py 2007-03-30 15:51:37.000000000 -0700
+@@ -48,8 +48,7 @@
+ 'linux2' : ['/usr/local', '/usr',],
+ 'linux' : ['/usr/local', '/usr',],
+ 'cygwin' : ['/usr/local', '/usr',],
+- 'darwin' : ['/sw/lib/freetype2', '/sw/lib/freetype219', '/usr/local',
+- '/usr', '/sw'],
++ 'darwin' : ['@@DPORTS_PREFIX@@', '/usr'],
+ 'freebsd4' : ['/usr/local', '/usr'],
+ 'freebsd5' : ['/usr/local', '/usr'],
+ 'freebsd6' : ['/usr/local', '/usr'],
+@@ -132,6 +131,7 @@
+ [os.path.join(p, 'lib64') for p in basedir[sys.platform] ] )
+
+ module.include_dirs.extend(incdirs)
++ module.include_dirs.extend(['@@DPORTS_PREFIX@@/include/python2.5'])
+ module.include_dirs.append('.')
+ module.library_dirs.extend(libdirs)
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070811/d88206ea/attachment.html
More information about the macports-changes
mailing list