[140448] trunk/dports/lang/php/Portfile
ryandesign at macports.org
ryandesign at macports.org
Sat Sep 19 12:04:12 PDT 2015
Revision: 140448
https://trac.macports.org/changeset/140448
Author: ryandesign at macports.org
Date: 2015-09-19 12:04:12 -0700 (Sat, 19 Sep 2015)
Log Message:
-----------
php: use a switch statement and the actual php version when setting the revision in a subport, so that it cannot be inadvertently forgotten to reset the revision when upgrading a php version
Modified Paths:
--------------
trunk/dports/lang/php/Portfile
Modified: trunk/dports/lang/php/Portfile
===================================================================
--- trunk/dports/lang/php/Portfile 2015-09-19 18:35:07 UTC (rev 140447)
+++ trunk/dports/lang/php/Portfile 2015-09-19 19:04:12 UTC (rev 140448)
@@ -277,10 +277,9 @@
subport ${php} {
PortGroup select 1.0
- if {[vercmp ${branch} 5.2] == 0} {
- revision 11
- } elseif {[vercmp ${branch} 5.3] == 0} {
- revision 1
+ switch -- ${version} {
+ 5.2.17 {revision 11}
+ 5.3.29 {revision 1}
}
depends_run port:php_select
@@ -702,8 +701,8 @@
if {[vercmp ${branch} 5.3] >= 0} {
subport ${php}-intl {
- if {[vercmp ${branch} 5.3] == 0} {
- revision 2
+ switch -- ${version} {
+ 5.3.29 {revision 2}
}
categories-append devel
@@ -1210,8 +1209,9 @@
}
subport ${php}-tidy {
- if {[vercmp ${branch} 5.3] <= 0} {
- revision 1
+ switch -- ${version} {
+ 5.2.17 {revision 1}
+ 5.3.29 {revision 1}
}
categories-append www
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150919/e063fb43/attachment.html>
More information about the macports-changes
mailing list