From 990c33e2a00daff85226bfc5f97c480768ad301c Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Thu, 15 Mar 2012 03:03:29 -0400 Subject: [PATCH] Remove PHP formula from homebrew. Refs Homebrew/homebrew#10673. Closes Homebrew/homebrew#10957. Signed-off-by: Max Howell --- Formula/apc.rb | 58 ---------------------------------------- Formula/gearman-php.rb | 27 ------------------- Formula/imagick.rb | 26 ------------------ Formula/mcrypt-php.rb | 30 --------------------- Formula/memcache-php.rb | 24 ----------------- Formula/memcached-php.rb | 27 ------------------- Formula/midgard2-php.rb | 30 --------------------- Formula/mongo-php.rb | 25 ----------------- Formula/pcntl-php.rb | 26 ------------------ Formula/phpmyadmin.rb | 33 ----------------------- Formula/pspell-php.rb | 29 -------------------- Formula/solr-php.rb | 25 ----------------- Formula/xcache.rb | 29 -------------------- Formula/xdebug.rb | 32 ---------------------- 14 files changed, 421 deletions(-) delete mode 100644 Formula/apc.rb delete mode 100644 Formula/gearman-php.rb delete mode 100644 Formula/imagick.rb delete mode 100644 Formula/mcrypt-php.rb delete mode 100644 Formula/memcache-php.rb delete mode 100644 Formula/memcached-php.rb delete mode 100644 Formula/midgard2-php.rb delete mode 100644 Formula/mongo-php.rb delete mode 100644 Formula/pcntl-php.rb delete mode 100644 Formula/phpmyadmin.rb delete mode 100644 Formula/pspell-php.rb delete mode 100644 Formula/solr-php.rb delete mode 100644 Formula/xcache.rb delete mode 100644 Formula/xdebug.rb diff --git a/Formula/apc.rb b/Formula/apc.rb deleted file mode 100644 index f08a32eca4b..00000000000 --- a/Formula/apc.rb +++ /dev/null @@ -1,58 +0,0 @@ -require 'formula' - -class Apc < Formula - url 'http://pecl.php.net/get/APC-3.1.9.tgz' - homepage 'http://pecl.php.net/package/apc' - md5 'a2cf7fbf6f3a87f190d897a53260ddaa' - - depends_on 'pcre' - - def patches - # fixes "PHP Fatal error: Unknown: apc_fcntl_unlock failed: in Unknown on line 0" - # this has been fixed in the APC trunk but has not been released yet (as of 3.1.9) - # https://bugs.php.net/bug.php?id=59750 - DATA - end - - def install - cd "APC-#{version}" do - system "phpize" - system "./configure", "--prefix=#{prefix}" - system "make" - prefix.install %w(modules/apc.so apc.php) - end - end - - def caveats; <<-EOS.undent - To finish installing APC: - * Add the following lines to php.ini: - [apc] - extension="#{prefix}/apc.so" - apc.enabled=1 - apc.shm_segments=1 - apc.shm_size=64M - apc.ttl=7200 - apc.user_ttl=7200 - apc.num_files_hint=1024 - apc.mmap_file_mask=/tmp/apc.XXXXXX - apc.enable_cli=1 - * Restart your webserver - * Copy "#{prefix}/apc.php" to any site to see APC's usage. - EOS - end -end - -__END__ -diff --git a/APC-3.1.9/apc_lock.h b/APC-3.1.9/apc_lock.h -index 77f66d5..aafa3b7 100644 ---- a/APC-3.1.9/apc_lock.h -+++ b/APC-3.1.9/apc_lock.h -@@ -154,7 +154,7 @@ - # define apc_lck_nb_lock(a) apc_fcntl_nonblocking_lock(a TSRMLS_CC) - # define apc_lck_rdlock(a) apc_fcntl_rdlock(a TSRMLS_CC) - # define apc_lck_unlock(a) apc_fcntl_unlock(a TSRMLS_CC) --# define apc_lck_rdunlock(a) apc_fcntl_unlock(&a TSRMLS_CC) -+# define apc_lck_rdunlock(a) apc_fcntl_unlock(a TSRMLS_CC) - #endif - - #endif diff --git a/Formula/gearman-php.rb b/Formula/gearman-php.rb deleted file mode 100644 index c6ee5105ce3..00000000000 --- a/Formula/gearman-php.rb +++ /dev/null @@ -1,27 +0,0 @@ -require 'formula' - -class GearmanPhp < Formula - homepage 'http://pecl.php.net/package/gearman' - url 'http://pecl.php.net/get/gearman-1.0.1.tgz' - md5 'dc576593f18e73aacf3b4430ba9d47d5' - - depends_on 'gearman' - - def install - cd "gearman-#{version}" do - system "phpize" - system "./configure", "--prefix=#{prefix}", - "--with-gearman=#{Formula.factory('gearman').prefix}" - system "make" - prefix.install 'modules/gearman.so' - end - end - - def caveats; <<-EOS.undent - To finish installing gearman: - * Add the following line to php.ini: - extension="#{prefix}/gearman.so" - * Restart your webserver - EOS - end -end diff --git a/Formula/imagick.rb b/Formula/imagick.rb deleted file mode 100644 index 06e16624e74..00000000000 --- a/Formula/imagick.rb +++ /dev/null @@ -1,26 +0,0 @@ -require 'formula' - -class Imagick < Formula - homepage 'http://pecl.php.net/package/imagick' - url 'http://pecl.php.net/get/imagick-3.0.1.tgz' - md5 'e2167713316639705202cf9b6cb1fdb1' - - depends_on 'imagemagick' - - def install - cd "imagick-#{version}" do - system "phpize" - system "./configure", "--prefix=#{prefix}" - system "make" - (lib+'php/extensions').install 'modules/imagick.so' - end - end - - def caveats; <<-EOS.undent - To finish installing Imagick: - Edit php.ini file - extension="#{lib}/php/extensions/imagick.so" - Restart your webserver - EOS - end -end diff --git a/Formula/mcrypt-php.rb b/Formula/mcrypt-php.rb deleted file mode 100644 index 1ee38045685..00000000000 --- a/Formula/mcrypt-php.rb +++ /dev/null @@ -1,30 +0,0 @@ -require 'formula' - -class McryptPhp < Formula - homepage 'http://php.net/manual/fr/book.mcrypt.php' - url 'http://us.php.net/get/php-5.3.6.tar.gz/from/fr.php.net/mirror' - version '5.3.6' - md5 '88a2b00047bc53afbbbdf10ebe28a57e' - - depends_on 'mcrypt' - - def install - cd "ext/mcrypt" do - system "phpize" - system "./configure", "--disable-dependency-tracking", - "--prefix=#{prefix}", - "--with-mcrypt=#{Formula.factory('mcrypt').prefix}" - system "make" - prefix.install 'modules/mcrypt.so' - end - end - - def caveats; <<-EOS.undent - To finish mcrypt-php installation, you need to add the - following line into php.ini: - extension="#{prefix}/mcrypt.so" - Then, restart your webserver and check in phpinfo if - you're able to see something about mcrypt - EOS - end -end diff --git a/Formula/memcache-php.rb b/Formula/memcache-php.rb deleted file mode 100644 index 4ca83c29167..00000000000 --- a/Formula/memcache-php.rb +++ /dev/null @@ -1,24 +0,0 @@ -require 'formula' - -class MemcachePhp < Formula - homepage 'http://pecl.php.net/package/memcache' - url 'http://pecl.php.net/get/memcache-2.2.6.tgz' - md5 '9542f1886b72ffbcb039a5c21796fe8a' - - def install - cd "memcache-#{version}" do - system "phpize" - system "./configure", "--prefix=#{prefix}" - system "make" - prefix.install 'modules/memcache.so' - end - end - - def caveats; <<-EOS.undent - To finish installing memcache: - * Add the following line to php.ini: - extension="#{prefix}/memcache.so" - * Restart your webserver - EOS - end -end diff --git a/Formula/memcached-php.rb b/Formula/memcached-php.rb deleted file mode 100644 index 5354e24cb7a..00000000000 --- a/Formula/memcached-php.rb +++ /dev/null @@ -1,27 +0,0 @@ -require 'formula' - -class MemcachedPhp < Formula - homepage 'http://pecl.php.net/package/memcached' - url 'http://pecl.php.net/get/memcached-1.0.2.tgz' - md5 'b91f815ad59086d0c3564cce022b5c4f' - - depends_on 'libmemcached' - - def install - cd "memcached-#{version}" do - system "phpize" - system "./configure", "--prefix=#{prefix}", - "--with-libmemcached-dir=#{Formula.factory('libmemcached').prefix}" - system "make" - prefix.install 'modules/memcached.so' - end - end - - def caveats; <<-EOS.undent - To finish installing memcached: - * Add the following line to php.ini: - extension="#{prefix}/memcached.so" - * Restart your webserver - EOS - end -end diff --git a/Formula/midgard2-php.rb b/Formula/midgard2-php.rb deleted file mode 100644 index 3dfcff380d8..00000000000 --- a/Formula/midgard2-php.rb +++ /dev/null @@ -1,30 +0,0 @@ -require 'formula' - -class Midgard2Php < Formula - url 'http://www.midgard-project.org/midcom-serveattachmentguid-025abaac43f811e0b064792d116f21f421f4/php5-midgard2-10.05.4.tar.gz' - head 'https://github.com/midgardproject/midgard-php5.git', :branch => 'ratatoskr' - homepage 'http://www.midgard-project.org/' - md5 'a715d76abdb6ef1bb5eb8c9973fbba16' - - depends_on 'pkg-config' => :build - depends_on 'midgard2' - - def install - system "/usr/bin/phpize" - system "./configure", "--with-php-config=/usr/bin/php-config" - - system "make" - prefix.install 'modules/midgard2.so' - end - - def caveats - <<-END_CAVEATS - * Add the following line to php.ini: - extension="#{prefix}/midgard2.so" - * Restart your webserver. - * Write a PHP page that calls "phpinfo();" - * Load it in a browser and look for the info on the midgard2 module. - * If you see it, you have been successful! - END_CAVEATS - end -end diff --git a/Formula/mongo-php.rb b/Formula/mongo-php.rb deleted file mode 100644 index 2535991a0ba..00000000000 --- a/Formula/mongo-php.rb +++ /dev/null @@ -1,25 +0,0 @@ -require 'formula' - -class MongoPhp < Formula - homepage 'http://pecl.php.net/package/mongo' - url 'http://pecl.php.net/get/mongo-1.2.6.tgz' - md5 'b471f3d9309c2caa52ea90122042d3f4' - - def install - cd "mongo-#{version}" do - system "phpize" - system "./configure", "--prefix=#{prefix}" - system "make" - prefix.install "modules/mongo.so" - end - end - - def caveats; <<-EOS.undent - To finish installing MongoDB extension: - * Add the following lines to #{etc}/php.ini: - [mongo] - extension="#{prefix}/mongo.so" - * Restart your webserver - EOS - end -end diff --git a/Formula/pcntl-php.rb b/Formula/pcntl-php.rb deleted file mode 100644 index 782676413a7..00000000000 --- a/Formula/pcntl-php.rb +++ /dev/null @@ -1,26 +0,0 @@ -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 diff --git a/Formula/phpmyadmin.rb b/Formula/phpmyadmin.rb deleted file mode 100644 index d4c7a6f6e3c..00000000000 --- a/Formula/phpmyadmin.rb +++ /dev/null @@ -1,33 +0,0 @@ -require 'formula' - -class Phpmyadmin < Formula - homepage 'http://www.phpmyadmin.net/documentation' - url 'http://downloads.sourceforge.net/project/phpmyadmin/phpMyAdmin/3.4.7/phpMyAdmin-3.4.7-all-languages.tar.gz' - md5 'b422d003ed6239bc9f96c02af6c66405' - - depends_on 'mcrypt-php' - - def install - (share+'phpmyadmin').install Dir['*'] - end - - def caveats; <<-EOS.undent - Note that this formula will NOT install mysql. It is not - required since you might want to get connected to a remote - database server. - - Webserver configuration example (add this at the end of - your /etc/apache2/httpd.conf for instance) : - Alias /phpmyadmin #{HOMEBREW_PREFIX}/share/phpmyadmin - - Options Indexes FollowSymLinks MultiViews - AllowOverride All - Order allow,deny - Allow from all - - Then, open http://localhost/phpmyadmin - - More documentation : file://#{share}/phpmyadmin/Documentation.html - EOS - end -end diff --git a/Formula/pspell-php.rb b/Formula/pspell-php.rb deleted file mode 100644 index f9071d4b499..00000000000 --- a/Formula/pspell-php.rb +++ /dev/null @@ -1,29 +0,0 @@ -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 diff --git a/Formula/solr-php.rb b/Formula/solr-php.rb deleted file mode 100644 index de5e10ee1ef..00000000000 --- a/Formula/solr-php.rb +++ /dev/null @@ -1,25 +0,0 @@ -require 'formula' - -class SolrPhp < Formula - homepage 'http://pecl.php.net/package/solr' - url 'http://pecl.php.net/get/solr-1.0.1.tgz' - md5 '538adecfd52a79feae777870edcfd5d7' - - def install - cd "solr-#{version}" do - system "phpize" - system "./configure", "--prefix=#{prefix}" - system "make" - prefix.install "modules/solr.so" - end - end - - def caveats; <<-EOS.undent - To finish installing Solr extension: - * Add the following lines to #{etc}/php.ini: - [solr] - extension="#{prefix}/solr.so" - * Restart your webserver - EOS - end -end diff --git a/Formula/xcache.rb b/Formula/xcache.rb deleted file mode 100644 index 912f8633bd3..00000000000 --- a/Formula/xcache.rb +++ /dev/null @@ -1,29 +0,0 @@ -require 'formula' - -class Xcache < Formula - url 'http://xcache.lighttpd.net/pub/Releases/1.3.1/xcache-1.3.1.tar.gz' - homepage 'http://xcache.lighttpd.net/' - md5 'aff79b19c7623ba923233ae193e9537a' - - def install - # See https://github.com/mxcl/homebrew/issues/issue/69 - ENV.universal_binary unless Hardware.is_64_bit? - - system "phpize" - system "./configure", "--disable-debug", "--disable-dependency-tracking", - "--prefix=#{prefix}" - system "make" - prefix.install 'modules/xcache.so' - end - - def caveats; <<-EOS.undent - To use this software: - * Add the following line to php.ini: - zend_extension="#{prefix}/xcache.so" - * Restart your webserver. - * Write a PHP page that calls "phpinfo();" - * Load it in a browser and look for the info on the xcache module. - * If you see it, you have been successful! - EOS - end -end diff --git a/Formula/xdebug.rb b/Formula/xdebug.rb deleted file mode 100644 index 172602b1ce2..00000000000 --- a/Formula/xdebug.rb +++ /dev/null @@ -1,32 +0,0 @@ -require 'formula' - -class Xdebug < Formula - homepage 'http://xdebug.org' - url 'http://www.xdebug.org/files/xdebug-2.1.3.tgz' - md5 '779f4a66acdccd673553769e403674c4' - - def install - cd "xdebug-#{version}" do - # See https://github.com/mxcl/homebrew/issues/issue/69 - ENV.universal_binary - - system "phpize" - system "./configure", "--disable-debug", "--disable-dependency-tracking", - "--prefix=#{prefix}", - "--enable-xdebug" - system "make" - prefix.install 'modules/xdebug.so' - end - end - - def caveats; <<-EOS.undent - To use this software: - * Add the following line to php.ini: - zend_extension="#{prefix}/xdebug.so" - * Restart your webserver. - * Write a PHP page that calls "phpinfo();" - * Load it in a browser and look for the info on the xdebug module. - * If you see it, you have been successful! - EOS - end -end