From 69f144f07e90e22a886ad3c1dbdcd26ed3350a4f Mon Sep 17 00:00:00 2001 From: Andreas Creten Date: Tue, 6 Sep 2011 21:46:24 +0200 Subject: Added a Formula for the Gearman PHP extension Closes #7501. Signed-off-by: Charlie Sharpsteen --- Library/Formula/gearman-php.rb | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Library/Formula/gearman-php.rb (limited to 'Library/Formula') diff --git a/Library/Formula/gearman-php.rb b/Library/Formula/gearman-php.rb new file mode 100644 index 000000000..fb86b7843 --- /dev/null +++ b/Library/Formula/gearman-php.rb @@ -0,0 +1,26 @@ +require 'formula' + +class GearmanPhp < Formula + url 'http://pecl.php.net/get/gearman-0.8.0.tgz' + homepage 'http://pecl.php.net/package/gearman' + md5 '43fd69b1710ddb17af59c91ddeb32cb1' + + depends_on 'gearmand' + + def install + Dir.chdir "gearman-#{version}" do + system "phpize" + system "./configure", "--prefix=#{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 -- cgit v1.2.3