From 31a5869833e908e75f456fa1a542ca360650fcfa Mon Sep 17 00:00:00 2001 From: Sean Molenaar Date: Thu, 23 Nov 2023 13:31:20 +0100 Subject: [PATCH] php@7.4-*: remove --- Formula/php@7.4-autoload-psr.rb | 52 ---------------------- Formula/php@7.4-http.rb | 76 --------------------------------- Formula/php@7.4-propro.rb | 59 ------------------------- Formula/php@7.4-raphf.rb | 59 ------------------------- Formula/php@7.4-uopz.rb | 56 ------------------------ Formula/php@7.4-uuid.rb | 66 ---------------------------- 6 files changed, 368 deletions(-) delete mode 100644 Formula/php@7.4-autoload-psr.rb delete mode 100644 Formula/php@7.4-http.rb delete mode 100644 Formula/php@7.4-propro.rb delete mode 100644 Formula/php@7.4-raphf.rb delete mode 100644 Formula/php@7.4-uopz.rb delete mode 100644 Formula/php@7.4-uuid.rb diff --git a/Formula/php@7.4-autoload-psr.rb b/Formula/php@7.4-autoload-psr.rb deleted file mode 100644 index c36a32d..0000000 --- a/Formula/php@7.4-autoload-psr.rb +++ /dev/null @@ -1,52 +0,0 @@ -class PhpAT74AutoloadPsr < Formula - desc "Autoload-PSR Extension for PHP" - homepage "https://github.com/pprkut/autoload-psr" - url "https://github.com/pprkut/autoload-psr/archive/0.2.0.tar.gz" - sha256 "9d4fa71854231851079ffc62ff30c2cda7c823f44e51d81b578db64065739af0" - head "https://github.com/pprkut/autoload-psr.git" - - livecheck do - url :stable - end - - bottle do - root_url "https://github.com/SMillerDev/homebrew-tap/releases/download/php@7.4-autoload-psr-0.2.0" - sha256 cellar: :any_skip_relocation, big_sur: "ce8c1a1d50b25e981d25c5a6b6af6e36358c365c887671cc59f50d1528edb625" - sha256 cellar: :any_skip_relocation, catalina: "7b4b24ddfc8ea58d4178d36a0ee38f4d4840603abedddf7c873460f0dd5b3e88" - sha256 cellar: :any_skip_relocation, x86_64_linux: "fdc797e5fe4e4f7042a4b6e72929c0dee8a517016d6e32360f549c6135d8fe76" - end - - depends_on "autoconf" => :build - depends_on "php@7.4" - - def module_path - extension_dir = Utils.safe_popen_read("#{Formula["php@7.4"].opt_bin}/php-config", "--extension-dir").chomp - php_basename = File.basename(extension_dir) - "php/#{php_basename}" - end - - def install - system Formula["php@7.4"].bin/"phpize" - system "./configure", "--with-php-config=#{Formula["php@7.4"].opt_bin/"php-config"}" - system "make" - (lib/module_path).install "modules/autoload_psr.so" - end - - def post_install - ext_config_path = etc/"php"/Formula["php@7.4"].version.major_minor/"conf.d"/"ext-autoload_psr.ini" - if ext_config_path.exist? - inreplace ext_config_path, - /extension=.*$/, "extension=\"#{opt_lib/module_path}/autoload_psr.so\"" - else - ext_config_path.write <<~EOS - [autoload_psr] - extension="#{opt_lib/module_path}/autoload_psr.so" - EOS - end - end - - test do - assert_match "autoload_psr", shell_output("#{Formula["php@7.4"].opt_bin}/php -m").downcase, - "failed to find extension in php -m output" - end -end diff --git a/Formula/php@7.4-http.rb b/Formula/php@7.4-http.rb deleted file mode 100644 index dbb5845..0000000 --- a/Formula/php@7.4-http.rb +++ /dev/null @@ -1,76 +0,0 @@ -class PhpAT74Http < Formula - desc "Pecl HTTP Extension for PHP" - homepage "https://github.com/m6w6/ext-http" - url "https://pecl.php.net/get/pecl_http-3.2.4.tgz" - sha256 "37354ff7680b9b9839da8b908fff88227af7f6746c2611c873493af41d54f033" - revision 1 - head "https://github.com/m6w6/ext-http.git" - - livecheck do - skip "latest for php 7.4" - end - - bottle do - root_url "https://github.com/SMillerDev/homebrew-tap/releases/download/php@7.4-http-3.2.4_1" - sha256 cellar: :any, catalina: "0bed68eb4aa70f99ff740a5faf019de3f02a7631c4dbbae1a5875979b87cc5dd" - sha256 cellar: :any_skip_relocation, x86_64_linux: "1be0b991e4464467804821618a0f21bb441f766d17d0b3bde531a389cf1c083e" - end - - depends_on "autoconf" => :build - depends_on "pkg-config" => :build - depends_on "php@7.4" - depends_on "php@7.4-propro" - depends_on "php@7.4-raphf" - - def module_path - extension_dir = Utils.safe_popen_read("#{Formula["php@7.4"].opt_bin}/php-config", "--extension-dir").chomp - php_basename = File.basename(extension_dir) - "php/#{php_basename}" - end - - def install - cd "pecl_http-#{version}" - system Formula["php@7.4"].bin/"phpize" - - mkdir "ext" - # link in the raphf extension header - cp_r "#{Formula["php@7.4-raphf"].include}/raphf@7.4", "ext/raphf" - - # link in the propro extension header - cp_r "#{Formula["php@7.4-propro"].include}/propro@7.4", "ext/propro" - - configure_args = %W[ - --with-http - --without-http-libidn-dir - --without-http-libidn2-dir - --without-http-libidnkit-dir - --without-http-libidnkit2-dir - --with-libdir=/usr/local/lib - --with-php-config=#{Formula["php@7.4"].opt_bin/"php-config"} - --with-http-zlib-dir=#{MacOS.sdk_path_if_needed}/usr - --with-http-libcurl-dir=#{MacOS.sdk_path_if_needed}/usr - --with-http-libicu-dir=#{MacOS.sdk_path_if_needed}/usr - ] - system "./configure", *configure_args - system "make" - (lib/module_path).install "modules/http.so" - end - - def post_install - ext_config_path = etc/"php"/Formula["php@7.4"].version.major_minor/"conf.d"/"20-ext-http.ini" - if ext_config_path.exist? - inreplace ext_config_path, - /extension=.*$/, "extension=\"#{opt_lib/module_path}/http.so\"" - else - ext_config_path.write <<~EOS - [pecl_http] - extension="#{opt_lib/module_path}/http.so" - EOS - end - end - - test do - assert_match "http", shell_output("#{Formula["php@7.4"].opt_bin}/php -m").downcase, - "failed to find extension in php -m output" - end -end diff --git a/Formula/php@7.4-propro.rb b/Formula/php@7.4-propro.rb deleted file mode 100644 index 5f43aea..0000000 --- a/Formula/php@7.4-propro.rb +++ /dev/null @@ -1,59 +0,0 @@ -class PhpAT74Propro < Formula - desc "ProPro Extension for PHP" - homepage "https://pecl.php.net/propro" - url "https://pecl.php.net/get/propro-2.1.0.tgz" - sha256 "7bba0653d90cd8f61816e13ac6c0f7102b4a16dc4c4e966095a121eeb4ae8271" - head "https://github.com/m6w6/ext-propro.git" - - livecheck do - skip "latest for php 7.4" - end - - bottle do - root_url "https://github.com/SMillerDev/homebrew-tap/releases/download/php@7.4-propro-2.1.0" - sha256 cellar: :any_skip_relocation, catalina: "c39b80b1edf5de40187ffd998ed746d88b91b928a995f492652fcf054703c9e7" - sha256 cellar: :any_skip_relocation, x86_64_linux: "46a7896041a80639beda33671637aaca222fc5a5801d6ca197ce8279ac9e1376" - end - - depends_on "autoconf" => :build - depends_on "pkg-config" => :build - depends_on "php@7.4" - - def module_path - extension_dir = Utils.safe_popen_read("#{Formula["php@7.4"].opt_bin}/php-config", "--extension-dir").chomp - php_basename = File.basename(extension_dir) - "php/#{php_basename}" - end - - def install - cd "propro-#{version}" - system Formula["php@7.4"].bin/"phpize" - configure_args = %W[ - --with-php-config=#{Formula["php@7.4"].opt_bin/"php-config"} - ] - system "./configure", *configure_args - system "make" - - mkdir_p include/"propro@7.4" - (include/"propro@7.4").install %w[php_propro.h src/php_propro_api.h] - (lib/module_path).install "modules/propro.so" - end - - def post_install - ext_config_path = etc/"php"/Formula["php@7.4"].version.major_minor/"conf.d"/"10-ext-propro.ini" - if ext_config_path.exist? - inreplace ext_config_path, - /extension=.*$/, "extension=\"#{opt_lib/module_path}/propro.so\"" - else - ext_config_path.write <<~EOS - [propro] - extension="#{opt_lib/module_path}/propro.so" - EOS - end - end - - test do - assert_match "propro", shell_output("#{Formula["php@7.4"].opt_bin}/php -m").downcase, - "failed to find extension in php -m output" - end -end diff --git a/Formula/php@7.4-raphf.rb b/Formula/php@7.4-raphf.rb deleted file mode 100644 index b73544a..0000000 --- a/Formula/php@7.4-raphf.rb +++ /dev/null @@ -1,59 +0,0 @@ -class PhpAT74Raphf < Formula - desc "Raphf Extension for PHP" - homepage "https://pecl.php.net/raphf" - url "https://pecl.php.net/get/raphf-2.0.1.tgz" - sha256 "da3566db17422e5ef08b7ff144162952aabc14cb22407cc6b1d2a2d095812bd0" - head "https://github.com/m6w6/ext-raphf.git" - - livecheck do - skip "latest for php 7.4" - end - - bottle do - root_url "https://github.com/SMillerDev/homebrew-tap/releases/download/php@7.4-raphf-2.0.1" - sha256 cellar: :any_skip_relocation, catalina: "d67d356443523b294cefb8f25fbebbf59060d9c5b391e52f1f6f84097ecbec92" - sha256 cellar: :any_skip_relocation, x86_64_linux: "06c304173d3515dede6e5fcfa892279fd953efa666283db4ad308d2534596190" - end - - depends_on "autoconf" => :build - depends_on "pkg-config" => :build - depends_on "php@7.4" - - def module_path - extension_dir = Utils.safe_popen_read("#{Formula["php@7.4"].opt_bin}/php-config", "--extension-dir").chomp - php_basename = File.basename(extension_dir) - "php/#{php_basename}" - end - - def install - cd "raphf-#{version}" - system Formula["php@7.4"].bin/"phpize" - configure_args = %W[ - --with-php-config=#{Formula["php@7.4"].opt_bin/"php-config"} - ] - system "./configure", *configure_args - system "make" - - mkdir_p include/"raphf@7.4" - (include/"raphf@7.4").install %w[php_raphf.h src/php_raphf_api.h] - (lib/module_path).install "modules/raphf.so" - end - - def post_install - ext_config_path = etc/"php"/Formula["php@7.4"].version.major_minor/"conf.d"/"10-ext-raphf.ini" - if ext_config_path.exist? - inreplace ext_config_path, - /extension=.*$/, "extension=\"#{opt_lib/module_path}/raphf.so\"" - else - ext_config_path.write <<~EOS - [raphf] - extension="#{opt_lib/module_path}/raphf.so" - EOS - end - end - - test do - assert_match "raphf", shell_output("#{Formula["php@7.4"].opt_bin}/php -m").downcase, - "failed to find extension in php -m output" - end -end diff --git a/Formula/php@7.4-uopz.rb b/Formula/php@7.4-uopz.rb deleted file mode 100644 index e206583..0000000 --- a/Formula/php@7.4-uopz.rb +++ /dev/null @@ -1,56 +0,0 @@ -class PhpAT74Uopz < Formula - desc "UOPZ Extension for PHP" - homepage "https://pecl.php.net/uopz" - url "https://pecl.php.net/get/uopz-6.1.2.tgz" - sha256 "d84b8a2ed89afc174be2dd2771410029deaf5796a2473162f94681885a4d39a8" - head "https://github.com/krakjoe/uopz.git" - - livecheck do - skip "latest for php 7.4" - end - - bottle do - root_url "https://github.com/SMillerDev/homebrew-tap/releases/download/php@7.4-uopz-6.1.2" - sha256 cellar: :any_skip_relocation, catalina: "5ee419736b0d5ac86854a7aaa00427416b4a0748ab9926e2de4ead44beed299b" - sha256 cellar: :any_skip_relocation, x86_64_linux: "f695012a504a60fff0304f6c9ce585f921594d55bc4ba236c4d5dee88093aa41" - end - - depends_on "autoconf" => :build - depends_on "pkg-config" => :build - depends_on "php@7.4" - - def module_path - extension_dir = Utils.safe_popen_read("#{Formula["php@7.4"].opt_bin}/php-config", "--extension-dir").chomp - php_basename = File.basename(extension_dir) - "php/#{php_basename}" - end - - def install - cd "uopz-#{version}" unless build.head? - system Formula["php@7.4"].bin/"phpize" - configure_args = %W[ - --with-php-config=#{Formula["php@7.4"].opt_bin/"php-config"} - ] - system "./configure", *configure_args - system "make" - (lib/module_path).install "modules/uopz.so" - end - - def post_install - ext_config_path = etc/"php"/Formula["php@7.4"].version.major_minor/"conf.d"/"ext-uopz.ini" - if ext_config_path.exist? - inreplace ext_config_path, - /extension=.*$/, "extension=\"#{opt_lib/module_path}/uopz.so\"" - else - ext_config_path.write <<~EOS - [uopz] - extension="#{opt_lib/module_path}/uopz.so" - EOS - end - end - - test do - assert_match "uopz", shell_output("#{Formula["php@7.4"].opt_bin}/php -m").downcase, - "failed to find extension in php -m output" - end -end diff --git a/Formula/php@7.4-uuid.rb b/Formula/php@7.4-uuid.rb deleted file mode 100644 index 7118a0f..0000000 --- a/Formula/php@7.4-uuid.rb +++ /dev/null @@ -1,66 +0,0 @@ -class PhpAT74Uuid < Formula - desc "UUID Extension for PHP" - homepage "https://pecl.php.net/uuid" - url "https://pecl.php.net/get/uuid-1.2.0.tgz" - sha256 "5cb834d32fa7d270494aa47fd96e062ef819df59d247788562695fd1f4e470a4" - head "https://github.com/php/pecl-networking-uuid.git" - - livecheck do - url :head - end - - bottle do - root_url "https://github.com/SMillerDev/homebrew-tap/releases/download/php@7.4-uuid-1.2.0" - sha256 cellar: :any_skip_relocation, catalina: "8a1acd99d077387e8a6509578c87db45c5be6781ee9d95eaeae53c1b6c503aab" - end - - depends_on "autoconf" => :build - depends_on :macos - depends_on "ossp-uuid" - depends_on "php@7.4" - - patch do - # let's fix the path to uuid.h (uuid/uuid.h on linux, ossp/uuid.h on OSX) - # uuid_mac & uuid_time might not be available on OSX, let's add test to avoid compiling issue on these functions - url "https://github.com/SMillerDev/pecl-networking-uuid/commit/90a448026454af4e3b76fa514dca583a1d31d7e5.patch?full_index=1" - sha256 "c590c2045cf9837e9c97f1bfd078b615cf32d4d4c2995a793bc3691b9a0c29ee" - directory "uuid-1.2.0" - end - - def module_path - extension_dir = Utils.safe_popen_read("#{Formula["php@7.4"].opt_bin}/php-config", "--extension-dir").chomp - php_basename = File.basename(extension_dir) - "php/#{php_basename}" - end - - def install - chdir "uuid-#{version}" do - system Formula["php@7.4"].bin/"phpize" - configure_args = %W[ - --with-php-config=#{Formula["php@7.4"].opt_bin/"php-config"} - --with-uuid=#{Formula["ossp-uuid"].opt_include} - ] - system "./configure", *configure_args - system "make" - (lib/module_path).install "modules/uuid.so" - end - end - - def post_install - ext_config_path = etc/"php"/Formula["php@7.4"].version.major_minor/"conf.d"/"ext-uuid.ini" - if ext_config_path.exist? - inreplace ext_config_path, - /extension=.*$/, "extension=\"#{opt_lib/module_path}/uuid.so\"" - else - ext_config_path.write <<~EOS - [uuid] - extension="#{opt_lib/module_path}/uuid.so" - EOS - end - end - - test do - assert_match "uuid", shell_output("#{Formula["php@7.4"].opt_bin}/php -m").downcase, - "failed to find extension in php -m output" - end -end