Created
May 15, 2012 11:34
-
-
Save jappievw/2701034 to your computer and use it in GitHub Desktop.
homebrew formula for composer.phar (http://packagist.org/about-composer)
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 Composer < Formula | |
head 'http://getcomposer.org/composer.phar' | |
homepage 'http://getcomposer.org' | |
def install | |
system "chmod a+x composer.phar" | |
system "mkdir -p #{prefix}/bin" | |
system "cp composer.phar #{prefix}/bin/composer" | |
end | |
def test | |
system 'composer --version' | |
end | |
def caveats; <<-EOS.undent | |
Please ignore the warning above as it is expected but harmless. | |
You can always verify your installation by running: | |
"composer --version". | |
When you get an unexpected response, check whether the php setting "detect_unicode" | |
is turned off: | |
"php --info | grep detect_unicode". | |
You may also read more about composer and packagist by running: | |
"brew home composer". | |
EOS | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment