[99317] trunk/dports/_resources/port1.0/group/php-1.1.tcl

ryandesign at macports.org ryandesign at macports.org
Wed Oct 31 19:33:40 PDT 2012


Revision: 99317
          http://trac.macports.org//changeset/99317
Author:   ryandesign at macports.org
Date:     2012-10-31 19:33:40 -0700 (Wed, 31 Oct 2012)
Log Message:
-----------
php-1.1.tcl: if a subport hasn't changed the version, disable its livecheck; remove leftover php._bundled global

Modified Paths:
--------------
    trunk/dports/_resources/port1.0/group/php-1.1.tcl

Modified: trunk/dports/_resources/port1.0/group/php-1.1.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/php-1.1.tcl	2012-11-01 01:49:04 UTC (rev 99316)
+++ trunk/dports/_resources/port1.0/group/php-1.1.tcl	2012-11-01 02:33:40 UTC (rev 99317)
@@ -342,13 +342,41 @@
 default php.suffix              {[php.suffix_from_branch ${php.branch}]}
 
 
+# php._first_version: keep track of the first version line in the port.
+
+global php._first_version
+option_proc version             php._set_version
+
+proc php._set_version {option action args} {
+    if {"set" != ${action}} {
+        return
+    }
+
+    global php._first_version
+
+    if {![info exists php._first_version]} {
+        set php._first_version [option ${option}]
+    }
+}
+
+
+# If a subport has not changed the version, disable livecheck.
+
+pre-livecheck {
+    global name subport version php._first_version
+    if {${name} != ${subport} && ${version} == ${php._first_version}} {
+        livecheck.type          none
+    }
+}
+
+
 # php.add_port_code: adds the code to the port or subport to do the actual
 # building. For normal extension ports, the portgroup automatically calls this
 # for you when appropriate; the php port's extension subports are a special case
 # and call it manually.
 
 proc php.add_port_code {} {
-    global php php.branch php.branches php.build_dirs php.config php.extension_ini php.extensions php.ini_dir php.rootname php._bundled
+    global php php.branch php.branches php.build_dirs php.config php.extension_ini php.extensions php.ini_dir php.rootname
     global destroot name subport version
 
     # Set up distfiles default for non-bundled extensions.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121031/376996ab/attachment-0001.html>


More information about the macports-changes mailing list