New formula: pspell-php

Closes Homebrew/homebrew#9775.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
master
Pete Deffendol 2011-09-14 10:23:56 -06:00 committed by Jack Nagel
parent 9819e77f02
commit e822bf0176
1 changed files with 29 additions and 0 deletions

29
Formula/pspell-php.rb Normal file
View File

@ -0,0 +1,29 @@
require 'formula'
class PspellPhp < Formula
homepage 'http://php.net/manual/en/book.pspell.php'
url 'http://museum.php.net/php5/php-5.3.6.tar.gz'
md5 '88a2b00047bc53afbbbdf10ebe28a57e'
depends_on 'aspell'
def install
cd "ext/pspell" do
system "phpize"
system "./configure", "--disable-debug",
"--prefix=#{prefix}",
"--with-pspell=#{HOMEBREW_PREFIX}"
system "make"
prefix.install 'modules/pspell.so'
end
end
def caveats; <<-EOS.undent
To finish installing the pspell module:
* Add the following line to php.ini:
extension="#{prefix}/pspell.so"
* To verify, run "php -m" and look for the pspell module.
* Restart your webserver
EOS
end
end