[44326] trunk/dports/python/py25-matplotlib/Portfile
ram at macports.org
ram at macports.org
Fri Dec 26 03:34:14 PST 2008
Revision: 44326
http://trac.macports.org/changeset/44326
Author: ram at macports.org
Date: 2008-12-26 03:34:13 -0800 (Fri, 26 Dec 2008)
Log Message:
-----------
python/py25-matplotlib: add optional dependencies through variants,
cairo, latex, ghostscript, fixes #17765. Disable Qt backends.
Modified Paths:
--------------
trunk/dports/python/py25-matplotlib/Portfile
Modified: trunk/dports/python/py25-matplotlib/Portfile
===================================================================
--- trunk/dports/python/py25-matplotlib/Portfile 2008-12-26 11:33:58 UTC (rev 44325)
+++ trunk/dports/python/py25-matplotlib/Portfile 2008-12-26 11:34:13 UTC (rev 44326)
@@ -34,7 +34,8 @@
port:py25-configobj
patchfiles patch-setupext.py.diff \
- patch-setup.cfg.diff
+ patch-setup.cfg.diff \
+ patch-disable_optional_deps.diff
build.env MPLIB_BASE="${prefix}"
@@ -61,8 +62,11 @@
\nhttp://matplotlib.sourceforge.net/faq/installing_faq.html#what-is-a-backend\n"
}
-variant cairo description "Allow to use cairo for interactive plotting" {
+variant cairo description "Enable Cairo backends" {
depends_lib-append port:py25-cairo
+ post-patch {
+ reinplace "s|MP_Cairo=False|MP_Cairo=True|" ${worksrcpath}/setupext.py
+ }
}
variant gtk2 description "Enable GTKAgg backend" {
@@ -87,6 +91,20 @@
}
}
+variant latex description "Enable LaTeX support" {
+ depends_lib-append port:texlive
+ post-patch {
+ reinplace "s|MP_LaTeX=False|MP_LaTeX=True|" ${worksrcpath}/setupext.py
+ }
+}
+
+variant ghostscript description "Enable GhostScript support" {
+ depends_lib-append port:ghostscript
+ post-patch {
+ reinplace "s|MP_GhostScript=False|MP_GhostScript=True|" ${worksrcpath}/setupext.py
+ }
+}
+
if { ![variant_isset gtk2] && ![variant_isset tkinter] && ![variant_isset wxpython] } {
default_variants +tkinter
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081226/8be9b342/attachment-0001.html>
More information about the macports-changes
mailing list