[120504] users/mojca/wxports/python/py-pyphant/Portfile

mojca at macports.org mojca at macports.org
Fri May 30 12:20:03 PDT 2014


Revision: 120504
          https://trac.macports.org/changeset/120504
Author:   mojca at macports.org
Date:     2014-05-30 12:20:03 -0700 (Fri, 30 May 2014)
Log Message:
-----------
mojca/py-pyphant: py26 ports replaced_by py27

Modified Paths:
--------------
    users/mojca/wxports/python/py-pyphant/Portfile

Modified: users/mojca/wxports/python/py-pyphant/Portfile
===================================================================
--- users/mojca/wxports/python/py-pyphant/Portfile	2014-05-30 16:33:20 UTC (rev 120503)
+++ users/mojca/wxports/python/py-pyphant/Portfile	2014-05-30 19:20:03 UTC (rev 120504)
@@ -8,7 +8,7 @@
 
 name                py-pyphant
 version             1.0b3
-# revision            1
+revision            1
 categories-append   science
 maintainers         fmf.uni-freiburg.de:servicegruppe.wissinfo \
                     fmf.uni-freiburg.de:alexander.held rowue
@@ -42,8 +42,7 @@
 
 platforms           darwin
 
-python.versions     26 27
-python.default_version 27
+python.versions     27
 
 # py-scipy is not universal
 universal_variant   no
@@ -61,6 +60,24 @@
     }
 }
 
+# these two could probably be combined
+subport py26-${distname} {
+    replaced_by     py27-${distname}
+    PortGroup       obsolete 1.0
+    depends_build
+    depends_lib
+    depends_run
+}
+foreach n {fmf imageprocessing osc statistics tools} {
+    subport py26-${distname}-${n} {
+        replaced_by py27-${distname}-${n}
+        PortGroup   obsolete 1.0
+        depends_build
+        depends_lib
+        depends_run
+    }
+}
+
 foreach python.vers ${python.versions} {
     subport py${python.vers}-${distname} {
         PortGroup           app 1.0
@@ -74,6 +91,8 @@
         app.executable      pyphant-${python.branch}
         app.icon            ${filespath}/Pyphant.icns
 
+        wxWidgets.use       wxPython-3.0
+
         # TODO: check which ones of these are runtime dependencies as opposed to dependencies for building
         depends_lib-append  port:py${python.version}-numpy \
                             port:py${python.version}-scipy \
@@ -84,38 +103,14 @@
                             port:py${python.version}-paste \
                             port:py${python.version}-mx-base \
                             port:py${python.version}-sogl \
-                            
+                            port:py${python.version}-wxpython-3.0
+
         depends_run-append  port:py${python.version}-configobj \
                             port:py${python.version}-tornado
 
-        # TODO: remove support for wxGTK one day
-        variant wxgtk28 conflicts wxwidgets30 description {Use 32-bit carbon-based wxPython 2.8} {
-            wxWidgets.use       wxGTK-2.8
-            depends_lib-append  port:py${python.version}-wxpython-2.8
-            require_active_variants py${python.version}-wxpython-2.8 gtk
-        }
-        variant wxwidgets30 conflicts wxgtk28 escription {Use wxPython 3.0} {
-            wxWidgets.use       wxPython-3.0
-            depends_lib-append  port:py${python.version}-wxpython-3.0
-        }
-        if {![variant_isset wxgtk28] && ![variant_isset wxwidgets30]} {
-            # TODO: check which version of py${python.version}-wxpython-X.Y is installed instead
-            #       and use 3.0 by default unless py2.x-wxpython-2.8 is already active
-            if {${python.version} == 26} {
-                default_variants +wxgtk28
-            } else {
-                default_variants +wxwidgets30
-            }
-        }
         pre-destroot {
-            if {[variant_isset wxwidgets30]} {
-                file copy ${filespath}/pyphant.quartz ${destroot}${prefix}/bin
-                file rename ${destroot}${prefix}/bin/pyphant.quartz ${destroot}${prefix}/bin/pyphant-${python.branch}
-            } else {
-                file copy ${filespath}/pyphant ${destroot}${prefix}/bin
-                file rename ${destroot}${prefix}/bin/pyphant ${destroot}${prefix}/bin/pyphant-${python.branch}
-                reinplace "s|@APPDIR@|${applications_dir}|" ${destroot}${prefix}/bin/pyphant-${python.branch}
-            }
+            file copy ${filespath}/pyphant.quartz ${destroot}${prefix}/bin
+            file rename ${destroot}${prefix}/bin/pyphant.quartz ${destroot}${prefix}/bin/pyphant-${python.branch}
             reinplace "s|@PREFIX@|${prefix}|" ${destroot}${prefix}/bin/pyphant-${python.branch}
             reinplace "s|@PYTHONBRANCH@|${python.branch}|" ${destroot}${prefix}/bin/pyphant-${python.branch}
         }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140530/df477366/attachment.html>


More information about the macports-changes mailing list