aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/pspell-php.rb
diff options
context:
space:
mode:
authorPete Deffendol2011-09-14 10:23:56 -0600
committerJack Nagel2012-02-14 22:04:40 -0600
commiteb3ce689b7f98997f9d4c94d1d8a7b598fa0061f (patch)
tree22ae5abf4515aa006ed57f8c31c20725c3a2573b /Library/Formula/pspell-php.rb
parentdcf85f5db8134a0f21d56c6eb4a342278a8c2913 (diff)
downloadhomebrew-eb3ce689b7f98997f9d4c94d1d8a7b598fa0061f.tar.bz2
New formula: pspell-php
Closes #9775. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/pspell-php.rb')
-rw-r--r--Library/Formula/pspell-php.rb29
1 files changed, 29 insertions, 0 deletions
diff --git a/Library/Formula/pspell-php.rb b/Library/Formula/pspell-php.rb
new file mode 100644
index 000000000..f9071d4b4
--- /dev/null
+++ b/Library/Formula/pspell-php.rb
@@ -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