homebrew-core/Formula/gearman-php.rb
Adam Vandenberg da3fdbd0cf Use "cd" instead of "Dir.chdir"
* And "mkdir" isntead of "Dir.mkdir"
* And "Dir[]" instead of "Dir.glob"
* Also style fixes and nitpicks
2012-02-24 21:35:50 -08:00

27 lines
683 B
Ruby

require 'formula'
class GearmanPhp < Formula
homepage 'http://pecl.php.net/package/gearman'
url 'http://pecl.php.net/get/gearman-1.0.1.tgz'
md5 'dc576593f18e73aacf3b4430ba9d47d5'
depends_on 'gearman'
def install
cd "gearman-#{version}" do
system "phpize"
system "./configure", "--prefix=#{prefix}",
"--with-gearman=#{Formula.factory('gearman').prefix}"
system "make"
prefix.install 'modules/gearman.so'
end
end
def caveats; <<-EOS.undent
To finish installing gearman:
* Add the following line to php.ini:
extension="#{prefix}/gearman.so"
* Restart your webserver
EOS
end
end