Files
chromebrew/packages/php.rb
Ed Reel e4a9c74108 Update php packages
Update php72 from 7.2.27 to 7.2.28

Update php73 from 7.3.14 to 7.3.15

Update php74 from 7.4.2 to 7.4.3

Add pre-built binaries

Fix missing libjpeg.so.8

Remove unrecognized configure options
2020-02-23 17:57:18 -06:00

52 lines
1.2 KiB
Ruby

require 'package'
class Php < Package
description 'PHP is a popular general-purpose scripting language that is especially suited to web development.'
homepage 'http://www.php.net/'
version '5.6.40-7.4.3'
is_fake
if ARGV[0] == 'install'
phpver = `php -v 2> /dev/null | head -1 | cut -d' ' -f2`.chomp
abort "PHP version #{phpver} already installed.".lightgreen unless "#{phpver}" == ""
puts
puts " Select the version to install:"
puts " 5.6 = PHP 5.6.40"
puts " 7.0 = PHP 7.0.33"
puts " 7.1 = PHP 7.1.33"
puts " 7.2 = PHP 7.2.28"
puts " 7.3 = PHP 7.3.15"
puts " 7.4 = PHP 7.4.3"
puts " 0 = Cancel"
while version = STDIN.gets.chomp
case version
when '5.6'
depends_on 'php5'
break
when '7.0'
depends_on 'php70'
break
when '7.1'
depends_on 'php71'
break
when '7.2'
depends_on 'php72'
break
when '7.3'
depends_on 'php73'
break
when '7.4'
depends_on 'php74'
break
when '0'
abort
break
else
puts " Please select from one of the options or enter 0 to cancel."
end
end
end
end