Last active
December 14, 2015 22:49
-
-
Save cocoiti/5161690 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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