Skip to content

Instantly share code, notes, and snippets.

@cocoiti
Last active December 14, 2015 22:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cocoiti/5161690 to your computer and use it in GitHub Desktop.
Save cocoiti/5161690 to your computer and use it in GitHub Desktop.
require 'formula'
class Phpbrew < Formula
homepage 'https://github.com/c9s/phpbrew'
url 'https://github.com/c9s/phpbrew.git', :tag => '1.8.19'
version '1.8.19'
head 'https://github.com/c9s/phpbrew.git'
depends_on 'automake'
depends_on 'autoconf'
depends_on 'curl'
depends_on 'pcre'
depends_on 're2c'
depends_on 'mhash'
depends_on 'libtool'
depends_on 'icu4c'
depends_on 'gettext'
depends_on 'jpeg'
depends_on 'libxml2'
depends_on 'mcrypt'
depends_on 'gmp'
depends_on 'libevent'
def install
bin.install 'phpbrew'
system "#{bin}/phpbrew init"
end
test do
system "phpbrew variants"
end
def caveats; <<-EOS.undent
Paste the following line(s) to the end of your ~/.bashrc and start a
new shell, phpbrew should be up and fully functional from there:
source $HOME/.phpbrew/bashrc
EOS
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment