Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 233dc40d40048508f077dedd074e41f2a0cde39a 1 parent ff916c2
@mkalkbrenner authored
Showing with 7 additions and 2 deletions.
  1. +7 −2 Formula/php.rb
View
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']
]
end
@@ -212,13 +213,17 @@ def install
end
end
+ 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|
Please sign in to comment.
Something went wrong with that request. Please try again.