From ef3373bcf5dd958ee7e88fef779494e08da431e6 Mon Sep 17 00:00:00 2001 From: Ismael Luceno Date: Fri, 13 Mar 2015 13:30:45 -0300 Subject: php: Rewrite branch selection to use a case statement --- php-pear/php/DETAILS | 16 ++++++---------- php-pear/php/HISTORY | 1 + 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/php-pear/php/DETAILS b/php-pear/php/DETAILS index aa593eeb0a..9019e05276 100755 --- a/php-pear/php/DETAILS +++ b/php-pear/php/DETAILS @@ -1,16 +1,12 @@ SPELL=php -if [[ $PHP5_BRANCH == stable ]]; then +case "$PHP_BRANCH" in stable) VERSION=5.4.38 SECURITY_PATCH=14 - SOURCE=$SPELL-$VERSION.tar.bz2 - SOURCE_URL[0]=http://static.php.net/www.php.net/distributions/$SOURCE SOURCE_HASH=sha512:92b2901117bbaa6c4749027e4a7dbb2f4bb50a3f60b52583051abdfcddafbe4715025a928ea9a6c70b51352e5e43f7ced626d78f5fff97cb1be34a9864f9ed6e -elif [[ $PHP5_BRANCH == previous ]]; then +;; previous) VERSION=5.3.29 SECURITY_PATCH=23 SOURCE_HASH=sha512:c22c463df7371bbd97beb258f0a9b9d77ec5c3c733fc565091e2bfcda3da2f1d2ab406047afcc70a6da2331acd2698885328d5a334c9922fa7591852eefda5f7 - SOURCE=$SPELL-$VERSION.tar.bz2 - SOURCE_URL[0]=http://static.php.net/www.php.net/distributions/$SOURCE # if [[ $PHP5_SUHOSIN == y ]]; then # VERSIONX=5.3.9 # VERSION2=0.9.10 @@ -21,12 +17,10 @@ elif [[ $PHP5_BRANCH == previous ]]; then # SOURCE3_URL="http://download.suhosin.org/$SOURCE3" # SOURCE2_GPG="suhosin.gpg:$SOURCE3:UPSTREAM_KEY" # fi -elif [[ $PHP5_BRANCH == legacy ]]; then +;; legacy) VERSION=5.2.17 SECURITY_PATCH=23 SOURCE_HASH=sha512:baf3b5038468c9fa7c1a9e0506ed23559c21ba8df29380498a24e8d31c4c5f3633f29b1bc2faa3e59c6e5336536c09e19a5462b0a9d5916181c08f1f19abbca8 - SOURCE=$SPELL-$VERSION.tar.bz2 - SOURCE_URL[0]=http://static.php.net/www.php.net/distributions/$SOURCE if [[ $PHP5_SUHOSIN == y ]]; then VERSIONX=5.2.16 VERSION2=0.9.7 @@ -40,7 +34,9 @@ elif [[ $PHP5_BRANCH == legacy ]]; then SOURCE4=php52-backports-20130717.patch SOURCE4_URL=http://php52-backports.googlecode.com/files/$SOURCE4 SOURCE4_HASH=sha512:ec31a0a99c225e1f9f8df494e8661a879f5017f2b82c5180f225b5d71eb7cdbebfdc888a4c54b3c38ae44bff1fe263142f0cce0ed4787cc9bdd175c42f7f3eaa -fi +esac + SOURCE=$SPELL-$VERSION.tar.bz2 + SOURCE_URL[0]=http://static.php.net/www.php.net/distributions/$SOURCE SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-$VERSION" WEB_SITE=http://www.php.net/ ENTERED=20011024 diff --git a/php-pear/php/HISTORY b/php-pear/php/HISTORY index 00df72b818..10955fac45 100644 --- a/php-pear/php/HISTORY +++ b/php-pear/php/HISTORY @@ -1,4 +1,5 @@ 2015-03-13 Ismael Luceno + * DETAILS: Rewrite branch selection to use a case statement * DETAILS, PREPARE: Remove rc and alpha branches * PREPARE: Use prepare_select_branch -- cgit v1.2.3