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

ryandesign at macports.org ryandesign at macports.org
Fri Nov 23 15:15:45 PST 2012


Revision: 100002
          https://trac.macports.org/changeset/100002
Author:   ryandesign at macports.org
Date:     2012-11-23 15:15:45 -0800 (Fri, 23 Nov 2012)
Log Message:
-----------
php-1.1.tcl: add explicit php.latest_stable_branch set to 5.4; adjust php.default_branch to consider it

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-23 22:42:11 UTC (rev 100001)
+++ trunk/dports/_resources/port1.0/group/php-1.1.tcl	2012-11-23 23:15:45 UTC (rev 100002)
@@ -126,12 +126,22 @@
 }
 
 
-# php.default_branch: the branch of PHP which should be installed if the user
-# installs the stub port. The default is the largest value in php.branches and
-# most ports should not need to change this.
+# php.latest_stable_branch: the latest stable branch of PHP in the php port.
+# Ports should not change this. It should be changed here in this portgroup
+# when the php port is updated.
 
+options php.latest_stable_branch
+default php.latest_stable_branch 5.4
+
+
+# php.default_branch: the branch of PHP for which the port should be installed
+# (i.e. the subport on which a dependency will be declared) if the user
+# installs the stub port. The default is the latest stable branch, if the port
+# supports it, or otherwise the latest listed in ${php.branches}. Ports should
+# not need to change this.
+
 options php.default_branch
-default php.default_branch      {[lindex ${php.branches} end]}
+default php.default_branch      {[expr {[lsearch -exact ${php.branches} ${php.latest_stable_branch}] != -1 ? ${php.latest_stable_branch} : [lindex ${php.branches} end]}]}
 option_proc php.default_branch  php._set_default_branch
 
 proc php._set_default_branch {option action args} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121123/467597b0/attachment.html>


More information about the macports-changes mailing list