/Library/Formula/pcntl-php.rb
Ruby | 25 lines | 22 code | 3 blank | 0 comment | 0 complexity | 6b06490b9d0ccc395418bfc2b77399e2 MD5 | raw file
- require 'formula'
- class PcntlPhp < Formula
- url 'http://museum.php.net/php5/php-5.3.6.tar.gz'
- homepage 'http://php.net/manual/en/book.pcntl.php'
- md5 '88a2b00047bc53afbbbdf10ebe28a57e'
- def install
- Dir.chdir "ext/pcntl"
- system "phpize"
- system "./configure", "--disable-dependency-tracking",
- "--prefix=#{prefix}"
- system "make"
- prefix.install "modules/pcntl.so"
- 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