diff options
| author | Andreas Creten | 2011-09-06 21:46:24 +0200 |
|---|---|---|
| committer | Charlie Sharpsteen | 2011-09-23 20:48:41 -0700 |
| commit | 69f144f07e90e22a886ad3c1dbdcd26ed3350a4f (patch) | |
| tree | 947663b3d4a383d856c266f353a23c39f3ccf4fa /Library/Formula | |
| parent | 07cf6378d787fe18f2f284d0ce183c0c929ab6b0 (diff) | |
| download | homebrew-69f144f07e90e22a886ad3c1dbdcd26ed3350a4f.tar.bz2 | |
Added a Formula for the Gearman PHP extension
Closes #7501.
Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/gearman-php.rb | 26 |
1 files changed, 26 insertions, 0 deletions
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 |
