Created
October 23, 2012 15:54
-
-
Save hfcorriez/3939617 to your computer and use it in GitHub Desktop.
brew php-yaf
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
class Php53Yaf < AbstractPhpExtension | |
homepage 'http://pecl.php.net/package/yaf' | |
url 'http://pecl.php.net/get/yaf-2.2.2.tgz' | |
sha1 '826f85b7b641a7418110f73f823749509c58b1b7' | |
head 'https://svn.php.net/repository/pecl/yaf/trunk/', :using => :svn | |
depends_on 'autoconf' => :build | |
depends_on 'php53' if build.include?('with-homebrew-php') && !Formula.factory('php53').installed? | |
depends_on 'pcre' | |
def install | |
Dir.chdir "yaf-#{version}" unless build.head? | |
# See https://github.com/mxcl/homebrew/pull/5947 | |
ENV.universal_binary | |
safe_phpize | |
system "./configure", "--prefix=#{prefix}" | |
system "make" | |
prefix.install "modules/yaf.so" | |
write_config_file unless build.include? "without-config-file" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment