Skip to content
Browse files

added opton --without-pear to build PHP without PEAR

  • Loading branch information...
1 parent ff916c2 commit 233dc40d40048508f077dedd074e41f2a0cde39a @mkalkbrenner committed May 16, 2012
Showing with 7 additions and 2 deletions.
  1. +7 −2 Formula/php.rb
9 Formula/php.rb
@@ -76,7 +76,8 @@ def options
['--with-imap', 'Include IMAP extension'],
['--without-readline', 'Build without readline support'],
['--with-gmp', 'Include GMP support'],
- ['--with-suhosin', 'Include Suhosin patch']
+ ['--with-suhosin', 'Include Suhosin patch'],
+ ['--without-pear', 'Build without PEAR']
@@ -212,13 +213,17 @@ def install
+ if ARGV.include? '--without-pear'
+ args << "--without-pear"
+ end
system "make"
ENV.deparallelize # parallel install fails on some systems
system "make install"
etc.install "./php.ini-production" => "php.ini" unless File.exists? etc+"php.ini"
chmod_R 0775, lib+"php"
- system bin+"pear", "config-set", "php_ini", etc+"php.ini"
+ system bin+"pear", "config-set", "php_ini", etc+"php.ini" unless ARGV.include? '--without-pear'
if ARGV.include?('--with-fpm') and not File.exists? etc+"php-fpm.conf"
etc.install "sapi/fpm/php-fpm.conf"
inreplace etc+"php-fpm.conf" do |s|

0 comments on commit 233dc40

Please sign in to comment.
Something went wrong with that request. Please try again.