[127381] trunk/dports/devel/dbus-python/Portfile

mcalhoun at macports.org mcalhoun at macports.org
Sun Oct 26 09:38:39 PDT 2014


Revision: 127381
          https://trac.macports.org/changeset/127381
Author:   mcalhoun at macports.org
Date:     2014-10-26 09:38:39 -0700 (Sun, 26 Oct 2014)
Log Message:
-----------
dbus-python: Remove support for Python 24, 25, 26, 31, 32, and 33 (see https://lists.macosforge.org/pipermail/macports-dev/2014-September/thread.html).

Modified Paths:
--------------
    trunk/dports/devel/dbus-python/Portfile

Modified: trunk/dports/devel/dbus-python/Portfile
===================================================================
--- trunk/dports/devel/dbus-python/Portfile	2014-10-26 16:25:36 UTC (rev 127380)
+++ trunk/dports/devel/dbus-python/Portfile	2014-10-26 16:38:39 UTC (rev 127381)
@@ -5,31 +5,31 @@
 
 name            dbus-python
 version         1.2.0
-maintainers     mcalhoun openmaintainer
-license         MIT
-categories      devel python
-platforms       darwin
-description     Python bindings for the dbus message bus system.
+revision        1
 
-set python_versions {24 25 26 27 31 32 33 34}
+set python_versions {27 34}
 
 # this default version should stay synchronized with python_get_default_version
 #    in the python PortGroup
 set python_default_version 27
 
+maintainers     mcalhoun openmaintainer
+license         MIT
+categories      devel python
+platforms       darwin
+description     Python bindings for the dbus message bus system.
 long_description \
     ${description}
-
 homepage        http://www.freedesktop.org/Software/dbus/
-master_sites    http://dbus.freedesktop.org/releases/dbus-python/
 
 if {${name} eq ${subport}} {
     # set up dbus-python as a stub port that depends on the default dbus-pythonXY
+    master_sites {}
     fetch {}
     checksum {}
     extract {}
     supported_archs noarch
-        
+    
     depends_lib port:${name}${python_default_version}
     
     patch {}
@@ -47,6 +47,8 @@
     
     subport ${name}${python_version} {
         
+        master_sites    http://dbus.freedesktop.org/releases/dbus-python/
+        
         checksums           rmd160  cba09a1ca259bfa49c943142110a968241f40360 \
                             sha256  e12c6c8b2bf3a9302f75166952cbe41d6b38c3441bbc6767dbd498942316c6df
         
@@ -54,16 +56,6 @@
         livecheck.url   ${master_sites}?C=M&O=D
         livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)
         
-        # dbus-python 1.x only supports Python 2.6 and above
-        if { [vercmp ${python_branch} 2.5] <= 0 } {
-            version 0.84.0
-            
-            checksums           rmd160  ec5912e28e49e89ff3f9a3a5a05292c27f11de2c \
-                                sha256  b85bc7aaf1a976627ca461b1ca7b0c4ddddff709f52fe44c9b2d1d7d8fac5906
-            
-            livecheck.regex ${name}-(0(?:\\.\\d+)*)
-        }
-        
         distname        ${name}-${version}
 
         depends_build   port:pkgconfig
@@ -93,7 +85,7 @@
         variant html description {Enable HTML documentation building} {}
         
         # pyXY-epydoc, which is required to build the api, is only supported on certain versions of python
-        if { [lsearch -exact {25 26 27} ${python_version}] != -1 } {
+        if { [lsearch -exact {27} ${python_version}] != -1 } {
             variant doc description {Enable API documentation building} {}
         }
         
@@ -107,7 +99,7 @@
         }
         
         # pyXY-gobject, which is required to test, is only supported on certain versions of python
-        if { [lsearch -exact {26 27 32 33 34} ${python_version}] != -1 } {
+        if { [lsearch -exact {27 34} ${python_version}] != -1 } {
             variant test {}
             
             test.run yes
@@ -162,3 +154,28 @@
         }
     }
 }
+
+# Obsolete subports for Python versions 2.4, 2.5, 2.6, 3.1, 3.2, 3.3  created on 10/26/2014.
+# See https://lists.macosforge.org/pipermail/macports-dev/2014-September/thread.html (Retiring Python 2.4 and 2.5)
+foreach python_version { 24 25 26 31 32 33 } {
+    set python_branch [string range ${python_version} 0 end-1].[string index ${python_version} end]
+    
+    if { "${name}${python_version}" eq ${subport}} {
+        unset maintainers
+        unset license
+        unset categories
+        unset platforms
+        unset description
+        unset long_description
+        unset homepage
+    }
+    
+    subport ${name}${python_version} {
+        if { [vercmp ${python_branch} 3.0] < 0 } {
+            replaced_by  ${name}27
+        } else {
+            replaced_by ${name}34
+        }
+        PortGroup    obsolete 1.0
+    }
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141026/09cf111a/attachment-0001.html>


More information about the macports-changes mailing list