mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
59 lines
2.1 KiB
Ruby
59 lines
2.1 KiB
Ruby
require 'package'
|
|
|
|
class Php7 < Package
|
|
description 'PHP is a popular general-purpose scripting language that is especially suited to web development.'
|
|
homepage 'http://www.php.net/'
|
|
version '7.1.8-1'
|
|
source_url 'https://php.net/distributions/php-7.1.8.tar.xz'
|
|
source_sha256 '8943858738604acb33ecedb865d6c4051eeffe4e2d06f3a3c8f794daccaa2aab'
|
|
|
|
binary_url ({
|
|
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/php7-7.1.8-1-chromeos-armv7l.tar.xz',
|
|
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/php7-7.1.8-1-chromeos-armv7l.tar.xz',
|
|
i686: 'https://dl.bintray.com/chromebrew/chromebrew/php7-7.1.8-1-chromeos-i686.tar.xz',
|
|
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/php7-7.1.8-1-chromeos-x86_64.tar.xz',
|
|
})
|
|
binary_sha256 ({
|
|
aarch64: 'f16f0456a071bc67d8f52d822b8a854e7e73903bad3b91bec87101f5ab8bb61f',
|
|
armv7l: 'f16f0456a071bc67d8f52d822b8a854e7e73903bad3b91bec87101f5ab8bb61f',
|
|
i686: '873824cdb85932a082fca7ab4e81eeed39ec03cff1621ee650e61892afff2490',
|
|
x86_64: 'b39ae5ea701573c27022ce0838b1cf64302b502ed8b54b3845ffd4793a99e82b',
|
|
})
|
|
|
|
depends_on 'pkgconfig'
|
|
depends_on 'zlibpkg'
|
|
depends_on 'libpng'
|
|
depends_on 'libxml2'
|
|
depends_on 'libxslt'
|
|
depends_on 'openssl'
|
|
depends_on 'curl'
|
|
depends_on 'pcre'
|
|
depends_on 'readline'
|
|
|
|
def self.build
|
|
system './configure \
|
|
--prefix=/usr/local \
|
|
--docdir=/usr/local/doc \
|
|
--infodir=/usr/local/info \
|
|
--mandir=/usr/local/man \
|
|
--with-curl \
|
|
--with-gd \
|
|
--with-xsl \
|
|
--enable-mbstring \
|
|
--with-openssl \
|
|
--with-pcre-regex \
|
|
--with-readline \
|
|
--with-zlib'
|
|
system 'make'
|
|
end
|
|
|
|
def self.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
|
|
system "mv", "#{CREW_DEST_DIR}/.depdb", "#{CREW_DEST_DIR}/usr/local/lib/php"
|
|
system "mv", "#{CREW_DEST_DIR}/.depdblock", "#{CREW_DEST_DIR}/usr/local/lib/php"
|
|
system "rm", "-rf", "#{CREW_DEST_DIR}/.channels", "#{CREW_DEST_DIR}/.filemap", "#{CREW_DEST_DIR}/.lock", "#{CREW_DEST_DIR}/.registry"
|
|
end
|
|
end
|