Commit af03d383 authored by Casey Strouse's avatar Casey Strouse Committed by GitHub

Merge pull request #1340 from uberhacker/update-php5-package

Update php5 from 5.6.31-1 to 5.6.32
parents 9d111d48 e5a866fa
...@@ -3,21 +3,13 @@ require 'package' ...@@ -3,21 +3,13 @@ require 'package'
class Php5 < Package class Php5 < Package
description 'PHP is a popular general-purpose scripting language that is especially suited to web development.' description 'PHP is a popular general-purpose scripting language that is especially suited to web development.'
homepage 'http://www.php.net/' homepage 'http://www.php.net/'
version '5.6.31-1' version '5.6.32'
source_url 'http://php.net/distributions/php-5.6.31.tar.xz' source_url 'http://php.net/distributions/php-5.6.32.tar.xz'
source_sha256 'c464af61240a9b7729fabe0314cdbdd5a000a4f0c9bd201f89f8628732fe4ae4' source_sha256 '8c2b4f721c7475fb9eabda2495209e91ea933082e6f34299d11cba88cd76e64b'
binary_url ({ binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/php5-5.6.31-1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/php5-5.6.31-1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/php5-5.6.31-1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/php5-5.6.31-1-chromeos-x86_64.tar.xz',
}) })
binary_sha256 ({ binary_sha256 ({
aarch64: '0e4862b4afb8c8846e462ce77f88e01d2bb3853fc108844ad48f2113045b6b50',
armv7l: '0e4862b4afb8c8846e462ce77f88e01d2bb3853fc108844ad48f2113045b6b50',
i686: 'f1527a845d79ea3a689f80198938ee4e26e2236766442040166a8fb45c61c72c',
x86_64: 'aefef7c188611a259d15500ecd9ebd6a5b91fa5d266e8659e6ac7b13c400d154',
}) })
depends_on 'pkgconfig' depends_on 'pkgconfig'
...@@ -31,8 +23,9 @@ class Php5 < Package ...@@ -31,8 +23,9 @@ class Php5 < Package
depends_on 'readline' depends_on 'readline'
def self.build def self.build
system './configure \ system "./configure \
--prefix=/usr/local \ --prefix=#{CREW_PREFIX} \
--libdir=#{CREW_LIB_PREFIX} \
--with-curl \ --with-curl \
--with-gd \ --with-gd \
--with-xsl \ --with-xsl \
...@@ -40,7 +33,7 @@ class Php5 < Package ...@@ -40,7 +33,7 @@ class Php5 < Package
--with-openssl \ --with-openssl \
--with-pcre-regex \ --with-pcre-regex \
--with-readline \ --with-readline \
--with-zlib' --with-zlib"
system 'make' system 'make'
end end
...@@ -48,8 +41,8 @@ class Php5 < Package ...@@ -48,8 +41,8 @@ class Php5 < Package
system "make", "INSTALL_ROOT=#{CREW_DEST_DIR}", "install" system "make", "INSTALL_ROOT=#{CREW_DEST_DIR}", "install"
# clean up some files created under #{CREW_DEST_DIR}. check http://pear.php.net/bugs/bug.php?id=20383 for more details # clean up some files created under #{CREW_DEST_DIR}. check http://pear.php.net/bugs/bug.php?id=20383 for more details
system "mv", "#{CREW_DEST_DIR}/.depdb", "#{CREW_DEST_DIR}/usr/local/lib/php" system "mv", "#{CREW_DEST_DIR}/.depdb", "#{CREW_DEST_LIB_PREFIX}/php"
system "mv", "#{CREW_DEST_DIR}/.depdblock", "#{CREW_DEST_DIR}/usr/local/lib/php" system "mv", "#{CREW_DEST_DIR}/.depdblock", "#{CREW_DEST_LIB_PREFIX}/php"
system "rm", "-rf", "#{CREW_DEST_DIR}/.channels", "#{CREW_DEST_DIR}/.filemap", "#{CREW_DEST_DIR}/.lock", "#{CREW_DEST_DIR}/.registry" system "rm", "-rf", "#{CREW_DEST_DIR}/.channels", "#{CREW_DEST_DIR}/.filemap", "#{CREW_DEST_DIR}/.lock", "#{CREW_DEST_DIR}/.registry"
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment