[105900] trunk/dports/math/wxMaxima/Portfile
macsforever2000 at macports.org
macsforever2000 at macports.org
Thu May 9 08:11:20 PDT 2013
Revision: 105900
https://trac.macports.org/changeset/105900
Author: macsforever2000 at macports.org
Date: 2013-05-09 08:11:20 -0700 (Thu, 09 May 2013)
Log Message:
-----------
wxMaxima: Add wxwidgets30 variant. Make it the default. (#37344)
Modified Paths:
--------------
trunk/dports/math/wxMaxima/Portfile
Modified: trunk/dports/math/wxMaxima/Portfile
===================================================================
--- trunk/dports/math/wxMaxima/Portfile 2013-05-09 14:47:16 UTC (rev 105899)
+++ trunk/dports/math/wxMaxima/Portfile 2013-05-09 15:11:20 UTC (rev 105900)
@@ -1,5 +1,8 @@
# $Id$
+
PortSystem 1.0
+PortGroup active_variants 1.1
+
name wxMaxima
version 12.01.0
maintainers usami-k openmaintainer
@@ -50,6 +53,14 @@
default_variants +wxwidgets_devel
}
+if {[catch {registry_active wxwidgets30}] == 0} {
+ default_variants +wxwidgets30
+}
+
+if { ![variant_isset wxwidgets_devel] } {
+ default_variants +wxwidgets30
+}
+
destroot {
xinstall -m 755 -d ${destroot}${applications_dir}
file copy ${worksrcpath}/wxMaxima.app ${destroot}${applications_dir}
@@ -66,5 +77,19 @@
# (from gobject-introspection)
depends_lib-delete port:wxWidgets
depends_lib-append port:wxWidgets-devel
+
+ require_active_variants gnuplot wxwidgets_devel
+
supported_archs i386 x86_64
}
+
+variant wxwidgets30 description {Build against wxWidgets30 rather than wxWidgets} {
+ # if the user has installed wxWidgets30, force using that
+ # (from gobject-introspection)
+ depends_lib-delete port:wxWidgets
+ depends_lib-append port:wxWidgets30
+
+ require_active_variants gnuplot wxwidgets30
+
+ supported_archs i386 x86_64
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130509/94891239/attachment.html>
More information about the macports-changes
mailing list