aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/pcntl-php.rb
blob: 782676413a7c2314af70928ade66548db40f0184 (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
require 'formula'

class PcntlPhp < Formula
  homepage 'http://php.net/manual/en/book.pcntl.php'
  url 'http://museum.php.net/php5/php-5.3.6.tar.gz'
  md5 '88a2b00047bc53afbbbdf10ebe28a57e'

  def install
    cd "ext/pcntl" do
      system "phpize"
      system "./configure", "--disable-dependency-tracking",
                            "--prefix=#{prefix}"
      system "make"
      prefix.install "modules/pcntl.so"
    end
  end

  def caveats; <<-EOS.undent
    To finish pcntl-php installation, you need to add the
    following line into php.ini:
      extension="#{prefix}/pcntl.so"
    Then, restart your webserver and check in phpinfo if
    you're able to see something about pcntl.
    EOS
  end
end