aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/pspell-php.rb
blob: f9071d4b499c9bf7a46fa3fc578d70d0f33919a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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