Remove PHP formula from homebrew.
Refs Homebrew/homebrew#10673. Closes Homebrew/homebrew#10957. Signed-off-by: Max Howell <max@methylblue.com>master
parent
5342e947ed
commit
990c33e2a0
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
||||
<Directory #{HOMEBREW_PREFIX}/share/phpmyadmin/>
|
||||
Options Indexes FollowSymLinks MultiViews
|
||||
AllowOverride All
|
||||
Order allow,deny
|
||||
Allow from all
|
||||
</Directory>
|
||||
Then, open http://localhost/phpmyadmin
|
||||
|
||||
More documentation : file://#{share}/phpmyadmin/Documentation.html
|
||||
EOS
|
||||
end
|
||||
end
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue