RFE: py-matplotlib could have variant tk
Reported by: |
than@… |
Owned by: |
michaelm@… |
Priority:
|
Normal
|
Milestone:
|
|
Component:
|
ports
|
Version:
|
|
Keywords:
|
|
Cc:
|
markd@…, idgregorio@…
|
Port:
|
py-matplotlib
|
|
|
I like to use the interative version of py-matplotlib (where you don't always
have to type show() after each plot command). This only works with the tkAgg
backend, which is disabled for some reason in the current Portfile.
I would actually argue that tkAgg should be enabled by default, but I leave that
to wiser heads than mine. I used the following patch to the py-matplotlib
Portfile to enable the tkAgg backend as a variant:
--- Portfile Mon Jul 4 05:48:43 2005
+++ Portfile.tk Fri Sep 2 10:12:39 2005
@@ -37,8 +37,13 @@
reinplace "s|^BUILD_GTKAGG\[\[:space:\]\]*=\[\[:space:\]\]*'auto'|BUILD_GTKAGG=1|" \
${worksrcpath}/setup.py
}
- reinplace "s|^BUILD_TKAGG\[\[:space:\]\]*=\[\[:space:\]\]*'auto'|BUILD_TKAGG=0|" \
+ if {![variant_isset tk]} {
+ reinplace "s|^BUILD_TKAGG\[\[:space:\]\]*=\[\[:space:\]\]*'auto'|BUILD_TKAGG=0|" \
${worksrcpath}/setup.py
+ } else {
+ reinplace "s|^BUILD_TKAGG\[\[:space:\]\]*=\[\[:space:\]\]*'auto'|BUILD_TKAGG=1|" \
+ ${worksrcpath}/setup.py
+ }
}
post-patch { reinplace "s|@@DPORTS_PREFIX@@|${prefix}|" ${worksrcpath}/setupext.py }
@@ -61,3 +66,6 @@
depends_lib-append port:py-gtk2
}
+variant tk {
+ depends_lib-append port:py-tkinter
+}
Change History (9)
Owner: |
changed from darwinports-bugs@… to michaelm@…
|
Summary: |
py-matplotlib could have variant tk →
RFE: py-matplotlib could have variant tk
|
Type: |
defect →
enhancement
|
Milestone: |
→ Available Ports
|
Milestone: |
Available Ports →
Port Enhancements
|
Cc: |
markd@… idgregorio@… added; markd@… removed
|
Priority: |
Expected →
Normal
|
Resolution: |
→ fixed
|
Status: |
new →
closed
|
Version: |
1.0
|
Milestone: |
Port Enhancements
|
Description: |
modified (diff)
|
Port: |
py-matplotlib added
|
Sorry this has been out there so long. Any chance you'd like to takeover as maintainer of the port? I doubt the current maintainer would object. I just updated it to 0.87.4.