summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakov Smolić <jsmolic@gentoo.org>2022-08-09 09:11:40 +0200
committerJakov Smolić <jsmolic@gentoo.org>2022-08-09 09:11:40 +0200
commited1e3e3e8d7a610fafe873075454b35a2079b04a (patch)
treee9a4ad310131ceab8875e2fe8ab93ac7b6310fe5 /dev-php
parentsci-biology/transfac: treeclean (diff)
downloadgentoo-ed1e3e3e8d7a610fafe873075454b35a2079b04a.tar.gz
gentoo-ed1e3e3e8d7a610fafe873075454b35a2079b04a.tar.bz2
gentoo-ed1e3e3e8d7a610fafe873075454b35a2079b04a.zip
dev-php/pecl-geoip: treeclean
Closes: https://bugs.gentoo.org/857636 Closes: https://bugs.gentoo.org/526244 Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>
Diffstat (limited to 'dev-php')
-rw-r--r--dev-php/pecl-geoip/Manifest1
-rw-r--r--dev-php/pecl-geoip/files/fix-failing-tests-1.1.1.patch46
-rw-r--r--dev-php/pecl-geoip/files/fix-failing-tests-php8-1-1.1.1.patch71
-rw-r--r--dev-php/pecl-geoip/files/php8-support-1.1.1.patch93
-rw-r--r--dev-php/pecl-geoip/metadata.xml8
-rw-r--r--dev-php/pecl-geoip/pecl-geoip-1.1.1-r4.ebuild22
-rw-r--r--dev-php/pecl-geoip/pecl-geoip-1.1.1-r5.ebuild26
7 files changed, 0 insertions, 267 deletions
diff --git a/dev-php/pecl-geoip/Manifest b/dev-php/pecl-geoip/Manifest
deleted file mode 100644
index 40aaf1667795..000000000000
--- a/dev-php/pecl-geoip/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST geoip-1.1.1.tgz 13004 BLAKE2B fe073b9459c434751ea0291ce6802041db47254f9d2d5b930db51751b3a66ce5cf925dc4bd07764920748b1735f26ba8bd136654e08ed9c24ac3b520e842f45d SHA512 395715297726aa8e7ed71297d403bea9cb08417a03adfca29dc6ea68bbc738c176f71ea621f9026109e07cd5a2adc647e2af8e140e18a6af1c8f0fe4ed1a9c6b
diff --git a/dev-php/pecl-geoip/files/fix-failing-tests-1.1.1.patch b/dev-php/pecl-geoip/files/fix-failing-tests-1.1.1.patch
deleted file mode 100644
index a86994708e7b..000000000000
--- a/dev-php/pecl-geoip/files/fix-failing-tests-1.1.1.patch
+++ /dev/null
@@ -1,46 +0,0 @@
-On Gentoo, we require users to download the GeoIP databases
-themselves. As a result, the databases may not be there when
-installing pecl-geoip. The first patch below skips a test if the
-database it uses is not present. The second patch disables 019.phpt
-completely, because I can't make it pass.
-
-PHP-Bug: 73416
-
-diff --git a/tests/001.phpt b/tests/001.phpt
-index a548d6e..c0e4972 100644
---- a/tests/001.phpt
-+++ b/tests/001.phpt
-@@ -1,7 +1,10 @@
- --TEST--
- Checking Country (Free) DB availability
- --SKIPIF--
--<?php if (!extension_loaded("geoip")) print "skip"; ?>
-+<?php
-+if (!extension_loaded("geoip")) print "skip";
-+if (!file_exists(geoip_db_filename(GEOIP_COUNTRY_EDITION))) print "skip";
-+?>
- --POST--
- --GET--
- --FILE--
-diff --git a/tests/019.phpt b/tests/019.phpt
-deleted file mode 100644
-index 4630354..0000000
---- a/tests/019.phpt
-+++ /dev/null
-@@ -1,15 +0,0 @@
----TEST--
--Checking geoip_setup_custom_directory() (with trailing slash)
----SKIPIF--
--<?php if (!extension_loaded("geoip")) print "skip"; ?>
----INI--
--geoip.custom_directory="/test/"
----FILE--
--<?php
--
--var_dump( geoip_country_name_by_name_v6('0000:0000:0000:0000') );
--
--?>
----EXPECT--
--string(27) "/some/other/place/GeoIP.dat"
--string(6) "/test/"
-\ No newline at end of file
diff --git a/dev-php/pecl-geoip/files/fix-failing-tests-php8-1-1.1.1.patch b/dev-php/pecl-geoip/files/fix-failing-tests-php8-1-1.1.1.patch
deleted file mode 100644
index a2f8353b438c..000000000000
--- a/dev-php/pecl-geoip/files/fix-failing-tests-php8-1-1.1.1.patch
+++ /dev/null
@@ -1,71 +0,0 @@
-diff --git a/tests/014.phpt b/tests/014.phpt
-index 40f3ef8..93bc1f7 100644
---- a/tests/014.phpt
-+++ b/tests/014.phpt
-@@ -8,10 +8,9 @@ Checking timezone info with (some) empty fields
- <?php
-
- var_dump(geoip_time_zone_by_country_and_region('US','MA'));
--var_dump(geoip_time_zone_by_country_and_region('US',NULL));
-+var_dump(geoip_time_zone_by_country_and_region('US',''));
- var_dump(geoip_time_zone_by_country_and_region('DE'));
--var_dump(geoip_time_zone_by_country_and_region(NULL,''));
--var_dump(geoip_time_zone_by_country_and_region(NULL,NULL));
-+var_dump(geoip_time_zone_by_country_and_region('',''));
-
- ?>
- --EXPECTF--
-@@ -21,6 +20,3 @@ string(%d) "Europe/%s"
-
- Warning: geoip_time_zone_by_country_and_region(): You need to specify at least the country code. in %s on line %d
- bool(false)
--
--Warning: geoip_time_zone_by_country_and_region(): You need to specify at least the country code. in %s on line %d
--bool(false)
-diff --git a/tests/016.phpt b/tests/016.phpt
-index 83c5250..9b2f056 100644
---- a/tests/016.phpt
-+++ b/tests/016.phpt
-@@ -8,10 +8,8 @@ Checking geoip_region_name_by_code with (some) empty fields
- <?php
-
- var_dump(geoip_region_name_by_code('CA',''));
--var_dump(geoip_region_name_by_code('CA',NULL));
- var_dump(geoip_region_name_by_code('CA',1));
- var_dump(geoip_region_name_by_code('','QC'));
--var_dump(geoip_region_name_by_code(NULL,'QC'));
- var_dump(geoip_region_name_by_code(1,'QC'));
-
- ?>
-@@ -19,12 +17,6 @@ var_dump(geoip_region_name_by_code(1,'QC'));
-
- Warning: geoip_region_name_by_code(): You need to specify the country and region codes. in %s on line %d
- bool(false)
--
--Warning: geoip_region_name_by_code(): You need to specify the country and region codes. in %s on line %d
--bool(false)
--bool(false)
--
--Warning: geoip_region_name_by_code(): You need to specify the country and region codes. in %s on line %d
- bool(false)
-
- Warning: geoip_region_name_by_code(): You need to specify the country and region codes. in %s on line %d
-diff --git a/tests/019.phpt b/tests/019.phpt
-new file mode 100644
-index 0000000..9493ea3
---- /dev/null
-+++ b/tests/019.phpt
-@@ -0,0 +1,13 @@
-+--TEST--
-+Checking geoip_country_code_by_name_v6 (if IPv6 DB installed)
-+--SKIPIF--
-+<?php if (!extension_loaded("geoip") || !defined("GEOIP_COUNTRY_EDITION_V6") || !geoip_db_avail(GEOIP_COUNTRY_EDITION_V6)) print "skip"; ?>
-+--INI--
-+--FILE--
-+<?php
-+
-+var_dump( geoip_country_code_by_name_v6('2001:4860:4860::8888') );
-+
-+?>
-+--EXPECT--
-+string(2) "US"
diff --git a/dev-php/pecl-geoip/files/php8-support-1.1.1.patch b/dev-php/pecl-geoip/files/php8-support-1.1.1.patch
deleted file mode 100644
index 50c53d1a94a7..000000000000
--- a/dev-php/pecl-geoip/files/php8-support-1.1.1.patch
+++ /dev/null
@@ -1,93 +0,0 @@
---- a/geoip.c 2020/10/30 12:04:28 351081
-+++ b/geoip.c 2020/10/30 12:51:07 351082
-@@ -34,41 +34,72 @@
- #include "ext/standard/info.h"
- #include "php_geoip.h"
-
--
-+/* For PHP 8 */
-+#ifndef TSRMLS_CC
-+#define TSRMLS_CC
-+#endif
-
- ZEND_DECLARE_MODULE_GLOBALS(geoip)
-
-+ZEND_BEGIN_ARG_INFO_EX(arginfo_geoip_void, 0, 0, 0)
-+ZEND_END_ARG_INFO()
-+
-+ZEND_BEGIN_ARG_INFO_EX(arginfo_geoip_database_opt, 0, 0, 0)
-+ ZEND_ARG_INFO(0, database)
-+ZEND_END_ARG_INFO()
-+
-+ZEND_BEGIN_ARG_INFO_EX(arginfo_geoip_database, 0, 0, 1)
-+ ZEND_ARG_INFO(0, database)
-+ZEND_END_ARG_INFO()
-+
-+ZEND_BEGIN_ARG_INFO_EX(arginfo_geoip_host, 0, 0, 1)
-+ ZEND_ARG_INFO(0, host)
-+ZEND_END_ARG_INFO()
-+
-+ZEND_BEGIN_ARG_INFO_EX(arginfo_geoip_region, 0, 0, 2)
-+ ZEND_ARG_INFO(0, country_code)
-+ ZEND_ARG_INFO(0, region_code)
-+ZEND_END_ARG_INFO()
-+
-+ZEND_BEGIN_ARG_INFO_EX(arginfo_geoip_directory, 0, 0, 1)
-+ ZEND_ARG_INFO(0, directory)
-+ZEND_END_ARG_INFO()
-+
- static int le_geoip;
-
- /* {{{ */
- zend_function_entry geoip_functions[] = {
-- PHP_FE(geoip_database_info, NULL)
-+ PHP_FE(geoip_database_info, arginfo_geoip_database_opt)
- #define GEOIPDEF(php_func, c_func, db_type) \
-- PHP_FE(php_func, NULL)
-+ PHP_FE(php_func, arginfo_geoip_host)
- #include "geoip.def"
- #undef GEOIPDEF
-- PHP_FE(geoip_continent_code_by_name, NULL)
-- PHP_FE(geoip_org_by_name, NULL)
-- PHP_FE(geoip_record_by_name, NULL)
-- PHP_FE(geoip_id_by_name, NULL)
-- PHP_FE(geoip_region_by_name, NULL)
-- PHP_FE(geoip_isp_by_name, NULL)
-- PHP_FE(geoip_db_avail, NULL)
-- PHP_FE(geoip_db_get_all_info, NULL)
-- PHP_FE(geoip_db_filename, NULL)
-+ PHP_FE(geoip_continent_code_by_name, arginfo_geoip_host)
-+ PHP_FE(geoip_org_by_name, arginfo_geoip_host)
-+ PHP_FE(geoip_record_by_name, arginfo_geoip_host)
-+ PHP_FE(geoip_id_by_name, arginfo_geoip_host)
-+ PHP_FE(geoip_region_by_name, arginfo_geoip_host)
-+ PHP_FE(geoip_isp_by_name, arginfo_geoip_host)
-+ PHP_FE(geoip_db_avail, arginfo_geoip_database)
-+ PHP_FE(geoip_db_get_all_info, arginfo_geoip_void)
-+ PHP_FE(geoip_db_filename, arginfo_geoip_database)
- #if LIBGEOIP_VERSION >= 1004001
-- PHP_FE(geoip_region_name_by_code, NULL)
-- PHP_FE(geoip_time_zone_by_country_and_region, NULL)
-+ PHP_FE(geoip_region_name_by_code, arginfo_geoip_region)
-+ PHP_FE(geoip_time_zone_by_country_and_region, arginfo_geoip_region)
- #endif
- #ifdef HAVE_CUSTOM_DIRECTORY
-- PHP_FE(geoip_setup_custom_directory, NULL)
-+ PHP_FE(geoip_setup_custom_directory, arginfo_geoip_directory)
- #endif
-- PHP_FE(geoip_asnum_by_name, NULL)
-- PHP_FE(geoip_domain_by_name, NULL)
-+ PHP_FE(geoip_asnum_by_name, arginfo_geoip_host)
-+ PHP_FE(geoip_domain_by_name, arginfo_geoip_host)
- #if LIBGEOIP_VERSION >= 1004008
-- PHP_FE(geoip_netspeedcell_by_name, NULL)
-+ PHP_FE(geoip_netspeedcell_by_name, arginfo_geoip_host)
- #endif
-+#ifdef PHP_FE_END
-+ PHP_FE_END
-+#else
- {NULL, NULL, NULL}
-+#endif
- };
- /* }}} */
-
diff --git a/dev-php/pecl-geoip/metadata.xml b/dev-php/pecl-geoip/metadata.xml
deleted file mode 100644
index 222c77f3742a..000000000000
--- a/dev-php/pecl-geoip/metadata.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="project">
- <email>php-bugs@gentoo.org</email>
- <name>PHP</name>
- </maintainer>
-</pkgmetadata>
diff --git a/dev-php/pecl-geoip/pecl-geoip-1.1.1-r4.ebuild b/dev-php/pecl-geoip/pecl-geoip-1.1.1-r4.ebuild
deleted file mode 100644
index 9b8d00516a8d..000000000000
--- a/dev-php/pecl-geoip/pecl-geoip-1.1.1-r4.ebuild
+++ /dev/null
@@ -1,22 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-PHP_EXT_NAME="geoip"
-DOCS="README ChangeLog"
-USE_PHP="php7-2 php7-3 php7-4"
-
-inherit php-ext-pecl-r3
-
-KEYWORDS="amd64 x86"
-
-DESCRIPTION="PHP extension to map IP address to geographic places"
-LICENSE="PHP-3"
-SLOT="0"
-IUSE=""
-
-DEPEND="dev-libs/geoip"
-RDEPEND="${DEPEND}"
-
-PATCHES=( "${FILESDIR}/fix-failing-tests-1.1.1.patch" )
diff --git a/dev-php/pecl-geoip/pecl-geoip-1.1.1-r5.ebuild b/dev-php/pecl-geoip/pecl-geoip-1.1.1-r5.ebuild
deleted file mode 100644
index d7d644983bb4..000000000000
--- a/dev-php/pecl-geoip/pecl-geoip-1.1.1-r5.ebuild
+++ /dev/null
@@ -1,26 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PHP_EXT_NAME="geoip"
-DOCS="README ChangeLog"
-USE_PHP="php7-3 php7-4 php8-0 php8-1"
-
-inherit php-ext-pecl-r3
-
-KEYWORDS="~amd64 ~x86"
-
-DESCRIPTION="PHP extension to map IP address to geographic places"
-LICENSE="PHP-3"
-SLOT="0"
-IUSE=""
-
-DEPEND="dev-libs/geoip"
-RDEPEND="${DEPEND}"
-
-PATCHES=(
- "${FILESDIR}/fix-failing-tests-1.1.1.patch"
- "${FILESDIR}/php8-support-1.1.1.patch"
- "${FILESDIR}/fix-failing-tests-php8-1-1.1.1.patch"
-)