[130233] trunk/dports/science/magicspp/Portfile

takeshi at macports.org takeshi at macports.org
Mon Dec 29 02:23:35 PST 2014


Revision: 130233
          https://trac.macports.org/changeset/130233
Author:   takeshi at macports.org
Date:     2014-12-29 02:23:35 -0800 (Mon, 29 Dec 2014)
Log Message:
-----------
magicspp: remove python25 and python26 closing #46339

Modified Paths:
--------------
    trunk/dports/science/magicspp/Portfile

Modified: trunk/dports/science/magicspp/Portfile
===================================================================
--- trunk/dports/science/magicspp/Portfile	2014-12-29 09:36:19 UTC (rev 130232)
+++ trunk/dports/science/magicspp/Portfile	2014-12-29 10:23:35 UTC (rev 130233)
@@ -10,7 +10,7 @@
 
 name                magicspp
 version             2.22.6
-revision            1
+revision            2
 platforms           darwin
 maintainers         takeshi
 license             Apache-2
@@ -60,9 +60,7 @@
 if {![fortran_variant_isset]} {
     default_variants-append +gcc48
 }
-if {![variant_isset python25] && ![variant_isset python26]} {
-    default_variants-append +python27
-}
+default_variants-append +python27
 
 use_configure           yes
 configure.cmd           cmake
@@ -130,7 +128,7 @@
 post-destroot {
     xinstall -m 644 ${worksrcpath}/src/common/magics_api.h ${destroot}${prefix}/include
     file rename ${destroot}${prefix}/share/templates ${destroot}${prefix}/share/magics
-    if {[variant_isset python25] || [variant_isset python26] || [variant_isset python27]} {
+    if {[variant_isset python27]} {
         file mkdir ${destroot}${frameworks_dir}/Python.framework/Versions/${pyver}/lib/python${pyver}/site-packages
         file rename ${destroot}${prefix}/lib/python${pyver}/site-packages/Magics ${destroot}${frameworks_dir}/Python.framework/Versions/${pyver}/lib/python${pyver}/site-packages
     }
@@ -142,30 +140,18 @@
                             -DGFORTRAN_LIB=${prefix}/lib/[fortran_variant_name]/libgfortran.dylib
 }
 
-if {[variant_isset python25]} {
-    set pyver 2.5
-}
-if {[variant_isset python26]} {
-    set pyver 2.6
-}
 if {[variant_isset python27]} {
     set pyver 2.7
-}
-if {[variant_isset python25] || [variant_isset python26] || [variant_isset python27]} {
     configure.args-delete   -DENABLE_PYTHON=OFF
     configure.args-append   -DENABLE_PYTHON=ON
     configure.args-append   -DPYTHON_EXECUTABLE=${prefix}/bin/python${pyver} \
                             -DPYTHON_CONFIG=${prefix}/bin/python${pyver}-config
 }
 
-variant python25 description {Add support for python25} {
-    depends_lib-append      port:py25-numpy
-}
+# TODO: Remove after 2015-12-26.
+variant python25 requires python27 description {Legacy variant} {}
+variant python26 requires python27 description {Legacy variant} {}
 
-variant python26 description {Add support for python26} {
-    depends_lib-append      port:py26-numpy
-}
-
 variant python27 description {Add support for python27} {
     depends_lib-append      port:py27-numpy
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141229/d8cfafb1/attachment.html>


More information about the macports-changes mailing list