[gentoo-commits] repo/gentoo:master commit in: dev-php/maxmind-db-reader/

2024-05-05 Thread Sam James
commit: 14e99a97d230a69bed8d369617c65807130ce5a1
Author: Sam James  gentoo  org>
AuthorDate: Sun May  5 15:45:16 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Sun May  5 15:45:16 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=14e99a97

dev-php/maxmind-db-reader: Stabilize 1.11.1 amd64, #931244

Signed-off-by: Sam James  gentoo.org>

 dev-php/maxmind-db-reader/maxmind-db-reader-1.11.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-php/maxmind-db-reader/maxmind-db-reader-1.11.1.ebuild 
b/dev-php/maxmind-db-reader/maxmind-db-reader-1.11.1.ebuild
index 4486a2880177..1c8ee77c1c80 100644
--- a/dev-php/maxmind-db-reader/maxmind-db-reader-1.11.1.ebuild
+++ b/dev-php/maxmind-db-reader/maxmind-db-reader-1.11.1.ebuild
@@ -20,7 +20,7 @@ 
SRC_URI="https://github.com/maxmind/${MY_PN}/archive/v${PV}.tar.gz -> ${MY_P}.ta
 
 LICENSE="Apache-2.0"
 SLOT="0"
-KEYWORDS="~amd64 ~x86"
+KEYWORDS="amd64 ~x86"
 IUSE="extension test"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-php/maxmind-db-reader/

2024-02-08 Thread Michael Orlitzky
commit: 310af51fa881c49f9e753d387a127e62b0f3ac12
Author: Michael Orlitzky  gentoo  org>
AuthorDate: Thu Feb  8 13:56:37 2024 +
Commit: Michael Orlitzky  gentoo  org>
CommitDate: Thu Feb  8 13:57:16 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=310af51f

dev-php/maxmind-db-reader: add 1.11.1, drop 1.11.0

Closes: https://bugs.gentoo.org/923830
Signed-off-by: Michael Orlitzky  gentoo.org>

 dev-php/maxmind-db-reader/Manifest  | 2 +-
 ...{maxmind-db-reader-1.11.0.ebuild => maxmind-db-reader-1.11.1.ebuild} | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-php/maxmind-db-reader/Manifest 
b/dev-php/maxmind-db-reader/Manifest
index c43f1dfe4be7..43c368c693c9 100644
--- a/dev-php/maxmind-db-reader/Manifest
+++ b/dev-php/maxmind-db-reader/Manifest
@@ -1 +1 @@
-DIST MaxMind-DB-Reader-php-1.11.0.tar.gz 23018 BLAKE2B 
28e0ad3e8440a4bfad17292e71289224dc2a8deecaf510f887637760ed931a4d90e921f369bf6e37458e9a45212af82105a42925800577228797c47604b9135a
 SHA512 
182c57d9d799b4303e7f5a6f5b47f64b953e216290b26f5891cfc9658dc030bc1f954c48a0c71ebb9b8f34e4c275d2af794086d33c5bee8b3fe38c1ff56f
+DIST MaxMind-DB-Reader-php-1.11.1.tar.gz 23346 BLAKE2B 
ad783bbca018befa0f4c6f282bb440baf70ad2c91da0af8fb799ae727a5fc7f9acc1f004972ccc8f358272be2d9fbe4233b0d3526347db175ccc5eb140d139d3
 SHA512 
86b5cf523d0036a55e79f0721b7df923236146e0d29a9dc37affd61a4ba4bc0587a724aef0654239d009bb85eae4be6e42c2d63a5d2edf682fa90abdfbd234f0

diff --git a/dev-php/maxmind-db-reader/maxmind-db-reader-1.11.0.ebuild 
b/dev-php/maxmind-db-reader/maxmind-db-reader-1.11.1.ebuild
similarity index 98%
rename from dev-php/maxmind-db-reader/maxmind-db-reader-1.11.0.ebuild
rename to dev-php/maxmind-db-reader/maxmind-db-reader-1.11.1.ebuild
index 6ac3d7394aeb..4486a2880177 100644
--- a/dev-php/maxmind-db-reader/maxmind-db-reader-1.11.0.ebuild
+++ b/dev-php/maxmind-db-reader/maxmind-db-reader-1.11.1.ebuild
@@ -10,7 +10,7 @@ PHP_EXT_S="${S}/ext"
 PHP_EXT_NAME="maxminddb"
 PHP_EXT_OPTIONAL_USE="extension"
 
-USE_PHP="php8-1"
+USE_PHP="php8-1 php8-2 php8-3"
 
 inherit php-ext-source-r3
 



[gentoo-commits] repo/gentoo:master commit in: dev-php/maxmind-db-reader/

2022-07-18 Thread Brian Evans
commit: 3704d7ab608b34a2052263bcc5a261b82541d948
Author: Brian Evans  gentoo  org>
AuthorDate: Mon Jul 18 12:20:41 2022 +
Commit: Brian Evans  gentoo  org>
CommitDate: Mon Jul 18 12:20:41 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3704d7ab

dev-php/maxmind-db-reader: Keyword ~x86

Tested-by: Matthias Hanft  hanft.de>
Signed-off-by: Brian Evans  gentoo.org>

 dev-php/maxmind-db-reader/maxmind-db-reader-1.11.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-php/maxmind-db-reader/maxmind-db-reader-1.11.0.ebuild 
b/dev-php/maxmind-db-reader/maxmind-db-reader-1.11.0.ebuild
index d1d1a6a98315..5f26157309f5 100644
--- a/dev-php/maxmind-db-reader/maxmind-db-reader-1.11.0.ebuild
+++ b/dev-php/maxmind-db-reader/maxmind-db-reader-1.11.0.ebuild
@@ -20,7 +20,7 @@ 
SRC_URI="https://github.com/maxmind/${MY_PN}/archive/v${PV}.tar.gz -> ${MY_P}.ta
 
 LICENSE="Apache-2.0"
 SLOT="0"
-KEYWORDS="~amd64"
+KEYWORDS="~amd64 ~x86"
 IUSE="extension test"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-php/maxmind-db-reader/

2022-03-17 Thread Brian Evans
commit: 05adac76b1e8482a83d8f0e538b46a9a6f390273
Author: Brian Evans  gentoo  org>
AuthorDate: Thu Mar 17 14:52:38 2022 +
Commit: Brian Evans  gentoo  org>
CommitDate: Thu Mar 17 14:52:38 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05adac76

dev-php/maxmind-db-reader: Version bump for 1.11.0

Signed-off-by: Brian Evans  gentoo.org>

 dev-php/maxmind-db-reader/Manifest |  1 +
 .../maxmind-db-reader-1.11.0.ebuild| 78 ++
 2 files changed, 79 insertions(+)

diff --git a/dev-php/maxmind-db-reader/Manifest 
b/dev-php/maxmind-db-reader/Manifest
index f4cf7f13f7a2..a65f4e1174c2 100644
--- a/dev-php/maxmind-db-reader/Manifest
+++ b/dev-php/maxmind-db-reader/Manifest
@@ -1,2 +1,3 @@
 DIST MaxMind-DB-Reader-php-1.10.1.tar.gz 23083 BLAKE2B 
f6684b07a184c4db7feebd9bf6b9afdc34c3de3b62bed59b2d01e1751eb996442d769576fbaa48e2bfa0572e80b2e0491d16d1cd9d89d35ca329e6dc17f74765
 SHA512 
841a03cf043ee0557e2157daee50d7f73211f5e665436eca8be6067d5357205093e40bb0402248fd6881d0d330feac96b298ec18763b8cb7d6d6392d54c59265
+DIST MaxMind-DB-Reader-php-1.11.0.tar.gz 23018 BLAKE2B 
28e0ad3e8440a4bfad17292e71289224dc2a8deecaf510f887637760ed931a4d90e921f369bf6e37458e9a45212af82105a42925800577228797c47604b9135a
 SHA512 
182c57d9d799b4303e7f5a6f5b47f64b953e216290b26f5891cfc9658dc030bc1f954c48a0c71ebb9b8f34e4c275d2af794086d33c5bee8b3fe38c1ff56f
 DIST MaxMind-DB-Reader-php-1.6.0.tar.gz 20898 BLAKE2B 
cf6922bbd5b2c76fcb9b7a97299f0a73232686bf8facce39355f8a4cc55e98a4d8e64a51eae8427b5f14d6905d4cd85956effa5299cc493bd63708cf52ab30d0
 SHA512 
e8c0ccf2cfcedf7527b4e3f858d2ed0e70add60692fff4a65f08e5cb885516b7c2a3ceaa3c21713369cd8ffca2b671d764063236de1d729cfc5173f7d5dd4607

diff --git a/dev-php/maxmind-db-reader/maxmind-db-reader-1.11.0.ebuild 
b/dev-php/maxmind-db-reader/maxmind-db-reader-1.11.0.ebuild
new file mode 100644
index ..d1d1a6a98315
--- /dev/null
+++ b/dev-php/maxmind-db-reader/maxmind-db-reader-1.11.0.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="8"
+
+MY_PN="MaxMind-DB-Reader-php"
+MY_P="${MY_PN}-${PV}"
+S="${WORKDIR}/${MY_P}"
+PHP_EXT_S="${S}/ext"
+PHP_EXT_NAME="maxminddb"
+PHP_EXT_OPTIONAL_USE="extension"
+
+USE_PHP="php7-4 php8-0 php8-1"
+
+inherit php-ext-source-r3
+
+DESCRIPTION="PHP reader for the MaxMind database format"
+HOMEPAGE="https://github.com/maxmind/MaxMind-DB-Reader-php;
+SRC_URI="https://github.com/maxmind/${MY_PN}/archive/v${PV}.tar.gz -> 
${MY_P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="extension test"
+RESTRICT="!test? ( test )"
+
+DEPEND="extension? ( dev-libs/libmaxminddb )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+   # We need to call eapply_user ourselves, because it may be skipped
+   # if either the "extension" USE flag is not set, or if the user's
+   # PHP_TARGETS is essentially empty. In the latter case, the eclass
+   # src_prepare does nothing. We only call the eclass phase conditionally
+   # because the correct version of e.g. "phpize" may not be there
+   # unless USE=extension is set.
+   if use extension ; then
+   php-ext-source-r3_src_prepare
+   else
+   default
+   fi
+}
+
+src_configure() {
+   # The eclass phase will try to run the ./configure script even if it
+   # doesn't exist (in contrast to the default src_configure), so we
+   # need to skip it if the eclass src_prepare (that creates said
+   # script) is not run.
+   use extension && php-ext-source-r3_src_configure
+}
+
+src_compile() {
+   # Avoids the same problem as in src_configure.
+   use extension && php-ext-source-r3_src_compile
+}
+
+src_install() {
+   dodoc CHANGELOG.md README.md
+   insinto /usr/share/php
+   doins -r src/MaxMind
+   insinto /usr/share/php/MaxMind/Db
+   doins autoload.php
+
+   use extension && php-ext-source-r3_src_install
+}
+
+src_test() {
+   # The PHP API has its own set of tests that isn't shipped with the
+   # release tarballs at the moment (github issues 55).
+   use extension && php-ext-source-r3_src_test
+}
+
+pkg_postinst() {
+   elog "${PN} has been installed in /usr/share/php/MaxMind/Db/."
+   elog "To use it in a script, require('MaxMind/Db/autoload.php'),"
+   elog "and then most of the examples in the documentation should"
+   elog "work without further modification."
+}



[gentoo-commits] repo/gentoo:master commit in: dev-php/maxmind-db-reader/

2022-03-17 Thread Brian Evans
commit: c8e6a7ecc9ae8788b678767917910e4691e01f86
Author: Brian Evans  gentoo  org>
AuthorDate: Thu Mar 17 14:53:40 2022 +
Commit: Brian Evans  gentoo  org>
CommitDate: Thu Mar 17 14:53:40 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c8e6a7ec

dev-php/maxmind-db-reader: Drop old

Signed-off-by: Brian Evans  gentoo.org>

 dev-php/maxmind-db-reader/Manifest |  2 -
 .../maxmind-db-reader-1.10.1.ebuild| 78 --
 .../maxmind-db-reader-1.6.0.ebuild | 78 --
 3 files changed, 158 deletions(-)

diff --git a/dev-php/maxmind-db-reader/Manifest 
b/dev-php/maxmind-db-reader/Manifest
index a65f4e1174c2..c43f1dfe4be7 100644
--- a/dev-php/maxmind-db-reader/Manifest
+++ b/dev-php/maxmind-db-reader/Manifest
@@ -1,3 +1 @@
-DIST MaxMind-DB-Reader-php-1.10.1.tar.gz 23083 BLAKE2B 
f6684b07a184c4db7feebd9bf6b9afdc34c3de3b62bed59b2d01e1751eb996442d769576fbaa48e2bfa0572e80b2e0491d16d1cd9d89d35ca329e6dc17f74765
 SHA512 
841a03cf043ee0557e2157daee50d7f73211f5e665436eca8be6067d5357205093e40bb0402248fd6881d0d330feac96b298ec18763b8cb7d6d6392d54c59265
 DIST MaxMind-DB-Reader-php-1.11.0.tar.gz 23018 BLAKE2B 
28e0ad3e8440a4bfad17292e71289224dc2a8deecaf510f887637760ed931a4d90e921f369bf6e37458e9a45212af82105a42925800577228797c47604b9135a
 SHA512 
182c57d9d799b4303e7f5a6f5b47f64b953e216290b26f5891cfc9658dc030bc1f954c48a0c71ebb9b8f34e4c275d2af794086d33c5bee8b3fe38c1ff56f
-DIST MaxMind-DB-Reader-php-1.6.0.tar.gz 20898 BLAKE2B 
cf6922bbd5b2c76fcb9b7a97299f0a73232686bf8facce39355f8a4cc55e98a4d8e64a51eae8427b5f14d6905d4cd85956effa5299cc493bd63708cf52ab30d0
 SHA512 
e8c0ccf2cfcedf7527b4e3f858d2ed0e70add60692fff4a65f08e5cb885516b7c2a3ceaa3c21713369cd8ffca2b671d764063236de1d729cfc5173f7d5dd4607

diff --git a/dev-php/maxmind-db-reader/maxmind-db-reader-1.10.1.ebuild 
b/dev-php/maxmind-db-reader/maxmind-db-reader-1.10.1.ebuild
deleted file mode 100644
index 509cad6088ee..
--- a/dev-php/maxmind-db-reader/maxmind-db-reader-1.10.1.ebuild
+++ /dev/null
@@ -1,78 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="7"
-
-MY_PN="MaxMind-DB-Reader-php"
-MY_P="${MY_PN}-${PV}"
-S="${WORKDIR}/${MY_P}"
-PHP_EXT_S="${S}/ext"
-PHP_EXT_NAME="maxminddb"
-PHP_EXT_OPTIONAL_USE="extension"
-
-USE_PHP="php7-3 php7-4 php8-0"
-
-inherit php-ext-source-r3
-
-DESCRIPTION="PHP reader for the MaxMind database format"
-HOMEPAGE="https://github.com/maxmind/MaxMind-DB-Reader-php;
-SRC_URI="https://github.com/maxmind/${MY_PN}/archive/v${PV}.tar.gz -> 
${MY_P}.tar.gz"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="extension test"
-RESTRICT="!test? ( test )"
-
-DEPEND="extension? ( dev-libs/libmaxminddb )"
-RDEPEND="${DEPEND}"
-
-src_prepare() {
-   # We need to call eapply_user ourselves, because it may be skipped
-   # if either the "extension" USE flag is not set, or if the user's
-   # PHP_TARGETS is essentially empty. In the latter case, the eclass
-   # src_prepare does nothing. We only call the eclass phase conditionally
-   # because the correct version of e.g. "phpize" may not be there
-   # unless USE=extension is set.
-   if use extension ; then
-   php-ext-source-r3_src_prepare
-   else
-   default
-   fi
-}
-
-src_configure() {
-   # The eclass phase will try to run the ./configure script even if it
-   # doesn't exist (in contrast to the default src_configure), so we
-   # need to skip it if the eclass src_prepare (that creates said
-   # script) is not run.
-   use extension && php-ext-source-r3_src_configure
-}
-
-src_compile() {
-   # Avoids the same problem as in src_configure.
-   use extension && php-ext-source-r3_src_compile
-}
-
-src_install() {
-   dodoc CHANGELOG.md README.md
-   insinto /usr/share/php
-   doins -r src/MaxMind
-   insinto /usr/share/php/MaxMind/Db
-   doins autoload.php
-
-   use extension && php-ext-source-r3_src_install
-}
-
-src_test() {
-   # The PHP API has its own set of tests that isn't shipped with the
-   # release tarballs at the moment (github issues 55).
-   use extension && php-ext-source-r3_src_test
-}
-
-pkg_postinst() {
-   elog "${PN} has been installed in /usr/share/php/MaxMind/Db/."
-   elog "To use it in a script, require('MaxMind/Db/autoload.php'),"
-   elog "and then most of the examples in the documentation should"
-   elog "work without further modification."
-}

diff --git a/dev-php/maxmind-db-reader/maxmind-db-reader-1.6.0.ebuild 
b/dev-php/maxmind-db-reader/maxmind-db-reader-1.6.0.ebuild
deleted file mode 100644
index aaa418f47bf0..
--- a/dev-php/maxmind-db-reader/maxmind-db-reader-1.6.0.ebuild
+++ /dev/null
@@ -1,78 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-

[gentoo-commits] repo/gentoo:master commit in: dev-php/maxmind-db-reader/

2021-09-29 Thread Brian Evans
commit: 8b498f2d7adbbd7a7fd98f0bb50c83fd8577586b
Author: Brian Evans  gentoo  org>
AuthorDate: Wed Sep 29 18:51:58 2021 +
Commit: Brian Evans  gentoo  org>
CommitDate: Wed Sep 29 18:51:58 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b498f2d

dev-php/maxmind-db-reader: Version bump for 1.10.1

Signed-off-by: Brian Evans  gentoo.org>

 dev-php/maxmind-db-reader/Manifest |  1 +
 .../maxmind-db-reader-1.10.1.ebuild| 78 ++
 2 files changed, 79 insertions(+)

diff --git a/dev-php/maxmind-db-reader/Manifest 
b/dev-php/maxmind-db-reader/Manifest
index d1eea850d39..f4cf7f13f7a 100644
--- a/dev-php/maxmind-db-reader/Manifest
+++ b/dev-php/maxmind-db-reader/Manifest
@@ -1 +1,2 @@
+DIST MaxMind-DB-Reader-php-1.10.1.tar.gz 23083 BLAKE2B 
f6684b07a184c4db7feebd9bf6b9afdc34c3de3b62bed59b2d01e1751eb996442d769576fbaa48e2bfa0572e80b2e0491d16d1cd9d89d35ca329e6dc17f74765
 SHA512 
841a03cf043ee0557e2157daee50d7f73211f5e665436eca8be6067d5357205093e40bb0402248fd6881d0d330feac96b298ec18763b8cb7d6d6392d54c59265
 DIST MaxMind-DB-Reader-php-1.6.0.tar.gz 20898 BLAKE2B 
cf6922bbd5b2c76fcb9b7a97299f0a73232686bf8facce39355f8a4cc55e98a4d8e64a51eae8427b5f14d6905d4cd85956effa5299cc493bd63708cf52ab30d0
 SHA512 
e8c0ccf2cfcedf7527b4e3f858d2ed0e70add60692fff4a65f08e5cb885516b7c2a3ceaa3c21713369cd8ffca2b671d764063236de1d729cfc5173f7d5dd4607

diff --git a/dev-php/maxmind-db-reader/maxmind-db-reader-1.10.1.ebuild 
b/dev-php/maxmind-db-reader/maxmind-db-reader-1.10.1.ebuild
new file mode 100644
index 000..509cad6088e
--- /dev/null
+++ b/dev-php/maxmind-db-reader/maxmind-db-reader-1.10.1.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+MY_PN="MaxMind-DB-Reader-php"
+MY_P="${MY_PN}-${PV}"
+S="${WORKDIR}/${MY_P}"
+PHP_EXT_S="${S}/ext"
+PHP_EXT_NAME="maxminddb"
+PHP_EXT_OPTIONAL_USE="extension"
+
+USE_PHP="php7-3 php7-4 php8-0"
+
+inherit php-ext-source-r3
+
+DESCRIPTION="PHP reader for the MaxMind database format"
+HOMEPAGE="https://github.com/maxmind/MaxMind-DB-Reader-php;
+SRC_URI="https://github.com/maxmind/${MY_PN}/archive/v${PV}.tar.gz -> 
${MY_P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="extension test"
+RESTRICT="!test? ( test )"
+
+DEPEND="extension? ( dev-libs/libmaxminddb )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+   # We need to call eapply_user ourselves, because it may be skipped
+   # if either the "extension" USE flag is not set, or if the user's
+   # PHP_TARGETS is essentially empty. In the latter case, the eclass
+   # src_prepare does nothing. We only call the eclass phase conditionally
+   # because the correct version of e.g. "phpize" may not be there
+   # unless USE=extension is set.
+   if use extension ; then
+   php-ext-source-r3_src_prepare
+   else
+   default
+   fi
+}
+
+src_configure() {
+   # The eclass phase will try to run the ./configure script even if it
+   # doesn't exist (in contrast to the default src_configure), so we
+   # need to skip it if the eclass src_prepare (that creates said
+   # script) is not run.
+   use extension && php-ext-source-r3_src_configure
+}
+
+src_compile() {
+   # Avoids the same problem as in src_configure.
+   use extension && php-ext-source-r3_src_compile
+}
+
+src_install() {
+   dodoc CHANGELOG.md README.md
+   insinto /usr/share/php
+   doins -r src/MaxMind
+   insinto /usr/share/php/MaxMind/Db
+   doins autoload.php
+
+   use extension && php-ext-source-r3_src_install
+}
+
+src_test() {
+   # The PHP API has its own set of tests that isn't shipped with the
+   # release tarballs at the moment (github issues 55).
+   use extension && php-ext-source-r3_src_test
+}
+
+pkg_postinst() {
+   elog "${PN} has been installed in /usr/share/php/MaxMind/Db/."
+   elog "To use it in a script, require('MaxMind/Db/autoload.php'),"
+   elog "and then most of the examples in the documentation should"
+   elog "work without further modification."
+}



[gentoo-commits] repo/gentoo:master commit in: dev-php/maxmind-db-reader/

2021-01-21 Thread Brian Evans
commit: 44acc8c64476e611ecf8ede87491d2b8b148da04
Author: Brian Evans  gentoo  org>
AuthorDate: Thu Jan 21 15:36:07 2021 +
Commit: Brian Evans  gentoo  org>
CommitDate: Thu Jan 21 15:36:07 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44acc8c6

dev-php/maxmind-db-reader: Drop old

Signed-off-by: Brian Evans  gentoo.org>

 dev-php/maxmind-db-reader/Manifest |  1 -
 .../maxmind-db-reader-1.4.1.ebuild | 78 --
 2 files changed, 79 deletions(-)

diff --git a/dev-php/maxmind-db-reader/Manifest 
b/dev-php/maxmind-db-reader/Manifest
index 48e10f9afd7..d1eea850d39 100644
--- a/dev-php/maxmind-db-reader/Manifest
+++ b/dev-php/maxmind-db-reader/Manifest
@@ -1,2 +1 @@
-DIST MaxMind-DB-Reader-php-1.4.1.tar.gz 19667 BLAKE2B 
b397eb1bb7fa00c3382c7ee7c019c401d390c88d9bccd7742873445e95cb87d780ac17affe5cd1ec98e6f60d16660784dc5fdb188f8e4d2956df816397a9c251
 SHA512 
2407f3d1af10830078c9f5ba93ee74761084b06e630242eff0f707b98bdb78e6e87dabc999c36b29780ba9c8c38aec022575b66d95b3707bdc06875c6dd5
 DIST MaxMind-DB-Reader-php-1.6.0.tar.gz 20898 BLAKE2B 
cf6922bbd5b2c76fcb9b7a97299f0a73232686bf8facce39355f8a4cc55e98a4d8e64a51eae8427b5f14d6905d4cd85956effa5299cc493bd63708cf52ab30d0
 SHA512 
e8c0ccf2cfcedf7527b4e3f858d2ed0e70add60692fff4a65f08e5cb885516b7c2a3ceaa3c21713369cd8ffca2b671d764063236de1d729cfc5173f7d5dd4607

diff --git a/dev-php/maxmind-db-reader/maxmind-db-reader-1.4.1.ebuild 
b/dev-php/maxmind-db-reader/maxmind-db-reader-1.4.1.ebuild
deleted file mode 100644
index ebefd8c16ab..000
--- a/dev-php/maxmind-db-reader/maxmind-db-reader-1.4.1.ebuild
+++ /dev/null
@@ -1,78 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="7"
-
-MY_PN="MaxMind-DB-Reader-php"
-MY_P="${MY_PN}-${PV}"
-S="${WORKDIR}/${MY_P}"
-PHP_EXT_S="${S}/ext"
-PHP_EXT_NAME="maxminddb"
-PHP_EXT_OPTIONAL_USE="extension"
-
-USE_PHP="php5-6 php7-1 php7-2 php7-3"
-
-inherit php-ext-source-r3
-
-DESCRIPTION="PHP reader for the MaxMind database format"
-HOMEPAGE="https://github.com/maxmind/MaxMind-DB-Reader-php;
-SRC_URI="https://github.com/maxmind/${MY_PN}/archive/v${PV}.tar.gz -> 
${MY_P}.tar.gz"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="extension test"
-RESTRICT="!test? ( test )"
-
-DEPEND="extension? ( dev-libs/libmaxminddb )"
-RDEPEND="${DEPEND}"
-
-src_prepare() {
-   # We need to call eapply_user ourselves, because it may be skipped
-   # if either the "extension" USE flag is not set, or if the user's
-   # PHP_TARGETS is essentially empty. In the latter case, the eclass
-   # src_prepare does nothing. We only call the eclass phase conditionally
-   # because the correct version of e.g. "phpize" may not be there
-   # unless USE=extension is set.
-   if use extension ; then
-   php-ext-source-r3_src_prepare
-   else
-   default
-   fi
-}
-
-src_configure() {
-   # The eclass phase will try to run the ./configure script even if it
-   # doesn't exist (in contrast to the default src_configure), so we
-   # need to skip it if the eclass src_prepare (that creates said
-   # script) is not run.
-   use extension && php-ext-source-r3_src_configure
-}
-
-src_compile() {
-   # Avoids the same problem as in src_configure.
-   use extension && php-ext-source-r3_src_compile
-}
-
-src_install() {
-   dodoc CHANGELOG.md README.md
-   insinto /usr/share/php
-   doins -r src/MaxMind
-   insinto /usr/share/php/MaxMind/Db
-   doins autoload.php
-
-   use extension && php-ext-source-r3_src_install
-}
-
-src_test() {
-   # The PHP API has its own set of tests that isn't shipped with the
-   # release tarballs at the moment (github issues 55).
-   use extension && php-ext-source-r3_src_test
-}
-
-pkg_postinst() {
-   elog "${PN} has been installed in /usr/share/php/MaxMind/Db/."
-   elog "To use it in a script, require('MaxMind/Db/autoload.php'),"
-   elog "and then most of the examples in the documentation should"
-   elog "work without further modification."
-}



[gentoo-commits] repo/gentoo:master commit in: dev-php/maxmind-db-reader/

2020-02-21 Thread Brian Evans
commit: 1a6f847f29b1a626a25c8d531f9bd1a0ac8a67c2
Author: Brian Evans  gentoo  org>
AuthorDate: Fri Feb 21 17:59:02 2020 +
Commit: Brian Evans  gentoo  org>
CommitDate: Fri Feb 21 17:59:02 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a6f847f

dev-php/maxmind-db-reader: Version bump for 1.6.0

Signed-off-by: Brian Evans  gentoo.org>

 dev-php/maxmind-db-reader/Manifest |  1 +
 .../maxmind-db-reader-1.6.0.ebuild | 78 ++
 2 files changed, 79 insertions(+)

diff --git a/dev-php/maxmind-db-reader/Manifest 
b/dev-php/maxmind-db-reader/Manifest
index 668eacd1cc9..48e10f9afd7 100644
--- a/dev-php/maxmind-db-reader/Manifest
+++ b/dev-php/maxmind-db-reader/Manifest
@@ -1 +1,2 @@
 DIST MaxMind-DB-Reader-php-1.4.1.tar.gz 19667 BLAKE2B 
b397eb1bb7fa00c3382c7ee7c019c401d390c88d9bccd7742873445e95cb87d780ac17affe5cd1ec98e6f60d16660784dc5fdb188f8e4d2956df816397a9c251
 SHA512 
2407f3d1af10830078c9f5ba93ee74761084b06e630242eff0f707b98bdb78e6e87dabc999c36b29780ba9c8c38aec022575b66d95b3707bdc06875c6dd5
+DIST MaxMind-DB-Reader-php-1.6.0.tar.gz 20898 BLAKE2B 
cf6922bbd5b2c76fcb9b7a97299f0a73232686bf8facce39355f8a4cc55e98a4d8e64a51eae8427b5f14d6905d4cd85956effa5299cc493bd63708cf52ab30d0
 SHA512 
e8c0ccf2cfcedf7527b4e3f858d2ed0e70add60692fff4a65f08e5cb885516b7c2a3ceaa3c21713369cd8ffca2b671d764063236de1d729cfc5173f7d5dd4607

diff --git a/dev-php/maxmind-db-reader/maxmind-db-reader-1.6.0.ebuild 
b/dev-php/maxmind-db-reader/maxmind-db-reader-1.6.0.ebuild
new file mode 100644
index 000..20d90c48bb6
--- /dev/null
+++ b/dev-php/maxmind-db-reader/maxmind-db-reader-1.6.0.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+MY_PN="MaxMind-DB-Reader-php"
+MY_P="${MY_PN}-${PV}"
+S="${WORKDIR}/${MY_P}"
+PHP_EXT_S="${S}/ext"
+PHP_EXT_NAME="maxminddb"
+PHP_EXT_OPTIONAL_USE="extension"
+
+USE_PHP="php7-2 php7-3 php7-4"
+
+inherit php-ext-source-r3
+
+DESCRIPTION="PHP reader for the MaxMind database format"
+HOMEPAGE="https://github.com/maxmind/MaxMind-DB-Reader-php;
+SRC_URI="https://github.com/maxmind/${MY_PN}/archive/v${PV}.tar.gz -> 
${MY_P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="extension test"
+RESTRICT="!test? ( test )"
+
+DEPEND="extension? ( dev-libs/libmaxminddb )"
+RDEPEND="${DEPEND}"
+
+src_prepare(){
+   # We need to call eapply_user ourselves, because it may be skipped
+   # if either the "extension" USE flag is not set, or if the user's
+   # PHP_TARGETS is essentially empty. In the latter case, the eclass
+   # src_prepare does nothing. We only call the eclass phase conditionally
+   # because the correct version of e.g. "phpize" may not be there
+   # unless USE=extension is set.
+   if use extension ; then
+   php-ext-source-r3_src_prepare
+   else
+   default
+   fi
+}
+
+src_configure() {
+   # The eclass phase will try to run the ./configure script even if it
+   # doesn't exist (in contrast to the default src_configure), so we
+   # need to skip it if the eclass src_prepare (that creates said
+   # script) is not run.
+   use extension && php-ext-source-r3_src_configure
+}
+
+src_compile() {
+   # Avoids the same problem as in src_configure.
+   use extension && php-ext-source-r3_src_compile
+}
+
+src_install() {
+   dodoc CHANGELOG.md README.md
+   insinto /usr/share/php
+   doins -r src/MaxMind
+   insinto /usr/share/php/MaxMind/Db
+   doins autoload.php
+
+   use extension && php-ext-source-r3_src_install
+}
+
+src_test() {
+   # The PHP API has its own set of tests that isn't shipped with the
+   # release tarballs at the moment (github issues 55).
+   use extension && php-ext-source-r3_src_test
+}
+
+pkg_postinst(){
+   elog "${PN} has been installed in /usr/share/php/MaxMind/Db/."
+   elog "To use it in a script, require('MaxMind/Db/autoload.php'),"
+   elog "and then most of the examples in the documentation should"
+   elog "work without further modification."
+}



[gentoo-commits] repo/gentoo:master commit in: dev-php/maxmind-db-reader/

2020-01-21 Thread Michael Orlitzky
commit: beffd0b68f1053a884416c48e4872540768ff150
Author: Michael Orlitzky  gentoo  org>
AuthorDate: Tue Jan 21 23:44:25 2020 +
Commit: Michael Orlitzky  gentoo  org>
CommitDate: Tue Jan 21 23:44:25 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=beffd0b6

dev-php/maxmind-db-reader: add myself as maintainer.

Package-Manager: Portage-2.3.79, Repoman-2.3.16
Signed-off-by: Michael Orlitzky  gentoo.org>

 dev-php/maxmind-db-reader/metadata.xml | 4 
 1 file changed, 4 insertions(+)

diff --git a/dev-php/maxmind-db-reader/metadata.xml 
b/dev-php/maxmind-db-reader/metadata.xml
index c6051cdbefb..5e6d2f4ffe6 100644
--- a/dev-php/maxmind-db-reader/metadata.xml
+++ b/dev-php/maxmind-db-reader/metadata.xml
@@ -4,6 +4,10 @@
   
 php-b...@gentoo.org
 PHP
+  
+  
+m...@gentoo.org
+Michael Orlitzky
   

 



[gentoo-commits] repo/gentoo:master commit in: dev-php/maxmind-db-reader/, dev-php/maxmind-db-reader/files/

2019-08-16 Thread Brian Evans
commit: d9cf12bb35d29d42d77658681d924f2a4999b951
Author: Brian Evans  gentoo  org>
AuthorDate: Fri Aug 16 13:39:44 2019 +
Commit: Brian Evans  gentoo  org>
CommitDate: Fri Aug 16 14:17:25 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9cf12bb

dev-php/maxmind-db-reader: Drop old

Package-Manager: Portage-2.3.71, Repoman-2.3.17
Signed-off-by: Brian Evans  gentoo.org>

 dev-php/maxmind-db-reader/Manifest |  2 -
 dev-php/maxmind-db-reader/files/autoload.php   |  6 --
 .../maxmind-db-reader-1.2.0.ebuild | 76 -
 .../maxmind-db-reader-1.3.0.ebuild | 77 --
 4 files changed, 161 deletions(-)

diff --git a/dev-php/maxmind-db-reader/Manifest 
b/dev-php/maxmind-db-reader/Manifest
index 154db8897aa..668eacd1cc9 100644
--- a/dev-php/maxmind-db-reader/Manifest
+++ b/dev-php/maxmind-db-reader/Manifest
@@ -1,3 +1 @@
-DIST MaxMind-DB-Reader-php-1.2.0.tar.gz 17488 BLAKE2B 
2a511f84091ade374eb5b9a975fa6dafe75d69c4c057113790492840acfb9b8e50137bf4927814d8d77b2e17f4e0a7fe1ffda511f7c599a604bc69d4f38af406
 SHA512 
2965c5348ec787e503c04322961b00fe7806cd95c5f711efd9833adc0acb21f0c40cab1983868f8ea0bb4e8576186d83e1e1913b203aab999f3870ea298a9b2a
-DIST MaxMind-DB-Reader-php-1.3.0.tar.gz 18573 BLAKE2B 
6f093b4343438d37a44639dd47d4c149bcfdd351b9fe68eb19c1b739a28e7c7605728e47471cc7d5d257d56df5da37b5ffd32c275cb705befe9e6d60a137ac46
 SHA512 
480fb38122d1700b18bb0b85d8062397ddc7f003897829f3533901c12a409d76eea9d499ffc0fdd1bfaf4d35b954a30606a053b78e787eda27771995e2a1800b
 DIST MaxMind-DB-Reader-php-1.4.1.tar.gz 19667 BLAKE2B 
b397eb1bb7fa00c3382c7ee7c019c401d390c88d9bccd7742873445e95cb87d780ac17affe5cd1ec98e6f60d16660784dc5fdb188f8e4d2956df816397a9c251
 SHA512 
2407f3d1af10830078c9f5ba93ee74761084b06e630242eff0f707b98bdb78e6e87dabc999c36b29780ba9c8c38aec022575b66d95b3707bdc06875c6dd5

diff --git a/dev-php/maxmind-db-reader/files/autoload.php 
b/dev-php/maxmind-db-reader/files/autoload.php
deleted file mode 100644
index 45e8c2dfba3..000
--- a/dev-php/maxmind-db-reader/files/autoload.php
+++ /dev/null
@@ -1,6 +0,0 @@
-https://github.com/maxmind/${MY_PN};
-SRC_URI="${HOMEPAGE}/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="extension test"
-
-COMMON_DEPEND="extension? ( dev-libs/libmaxminddb )"
-DEPEND="${COMMON_DEPEND}"
-RDEPEND="${COMMON_DEPEND}
-   dev-php/fedora-autoloader"
-
-src_prepare(){
-   # We need to call eapply_user ourselves, because it may be skipped
-   # if either the "extension" USE flag is not set, or if the user's
-   # PHP_TARGETS is essentially empty. In the latter case, the eclass
-   # src_prepare does nothing. We only call the eclass phase conditionally
-   # because the correct version of e.g. "phpize" may not be there
-   # unless USE=extension is set.
-   eapply_user
-   use extension && php-ext-source-r3_src_prepare
-}
-
-src_configure() {
-   # The eclass phase will try to run the ./configure script even if it
-   # doesn't exist (in contrast to the default src_configure), so we
-   # need to skip it if the eclass src_prepare (that creates said
-   # script) is not run.
-   use extension && php-ext-source-r3_src_configure
-}
-
-src_compile() {
-   # Avoids the same problem as in src_configure.
-   use extension && php-ext-source-r3_src_compile
-}
-
-src_install() {
-   dodoc CHANGELOG.md README.md
-   insinto /usr/share/php
-   doins -r src/MaxMind
-   insinto /usr/share/php/MaxMind/Db
-   doins "${FILESDIR}/autoload.php"
-
-   use extension && php-ext-source-r3_src_install
-}
-
-src_test() {
-   # The PHP API has its own set of tests that isn't shipped with the
-   # release tarballs at the moment (github issues 55).
-   use extension && php-ext-source-r3_src_test
-}
-
-pkg_postinst(){
-   elog "${PN} has been installed in /usr/share/php/MaxMind/Db/."
-   elog "To use it in a script, require('MaxMind/Db/autoload.php'),"
-   elog "and then most of the examples in the documentation should"
-   elog "work without further modification."
-}

diff --git a/dev-php/maxmind-db-reader/maxmind-db-reader-1.3.0.ebuild 
b/dev-php/maxmind-db-reader/maxmind-db-reader-1.3.0.ebuild
deleted file mode 100644
index 7d53d3fc64d..000
--- a/dev-php/maxmind-db-reader/maxmind-db-reader-1.3.0.ebuild
+++ /dev/null
@@ -1,77 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-MY_PN="MaxMind-DB-Reader-php"
-MY_P="${MY_PN}-${PV}"
-S="${WORKDIR}/${MY_P}"
-PHP_EXT_S="${S}/ext"
-PHP_EXT_NAME="maxminddb"
-PHP_EXT_OPTIONAL_USE="extension"
-
-USE_PHP="php5-6 php7-0 php7-1 php7-2"
-
-inherit php-ext-source-r3
-
-DESCRIPTION="PHP reader for the MaxMind database format"
-HOMEPAGE="https://github.com/maxmind/${MY_PN};

[gentoo-commits] repo/gentoo:master commit in: dev-php/maxmind-db-reader/

2019-08-16 Thread Brian Evans
commit: 1e420947b668b639bd4e0ee45bfbb0030acb5c72
Author: Brian Evans  gentoo  org>
AuthorDate: Fri Aug 16 13:43:00 2019 +
Commit: Brian Evans  gentoo  org>
CommitDate: Fri Aug 16 14:17:25 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e420947

dev-php/maxmind-db-reader: Fix SRC_URI; Drop 7-0; RESTRICT on USE test

Package-Manager: Portage-2.3.71, Repoman-2.3.17
Signed-off-by: Brian Evans  gentoo.org>

 dev-php/maxmind-db-reader/maxmind-db-reader-1.4.1.ebuild | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/dev-php/maxmind-db-reader/maxmind-db-reader-1.4.1.ebuild 
b/dev-php/maxmind-db-reader/maxmind-db-reader-1.4.1.ebuild
index e5bac06988f..5663a274a2d 100644
--- a/dev-php/maxmind-db-reader/maxmind-db-reader-1.4.1.ebuild
+++ b/dev-php/maxmind-db-reader/maxmind-db-reader-1.4.1.ebuild
@@ -10,18 +10,19 @@ PHP_EXT_S="${S}/ext"
 PHP_EXT_NAME="maxminddb"
 PHP_EXT_OPTIONAL_USE="extension"
 
-USE_PHP="php5-6 php7-0 php7-1 php7-2 php7-3"
+USE_PHP="php5-6 php7-1 php7-2 php7-3"
 
 inherit php-ext-source-r3
 
 DESCRIPTION="PHP reader for the MaxMind database format"
 HOMEPAGE="https://github.com/maxmind/${MY_PN};
-SRC_URI="${HOMEPAGE}/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz"
+SRC_URI="https://github.com/maxmind/${MY_PN}/archive/v${PV}.tar.gz -> 
${MY_P}.tar.gz"
 
 LICENSE="Apache-2.0"
 SLOT="0"
 KEYWORDS="~amd64"
 IUSE="extension test"
+RESTRICT="!test? ( test )"
 
 DEPEND="extension? ( dev-libs/libmaxminddb )"
 RDEPEND="${DEPEND}"



[gentoo-commits] repo/gentoo:master commit in: dev-php/maxmind-db-reader/

2019-06-07 Thread Thomas Deutschmann
commit: d363b61c1cbc5374aecf55726ccb3677af34f48d
Author: Thomas Deutschmann  gentoo  org>
AuthorDate: Fri Jun  7 12:26:46 2019 +
Commit: Thomas Deutschmann  gentoo  org>
CommitDate: Fri Jun  7 14:07:53 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d363b61c

dev-php/maxmind-db-reader: bump to v1.4.1

Package-Manager: Portage-2.3.67, Repoman-2.3.14
Signed-off-by: Thomas Deutschmann  gentoo.org>

 dev-php/maxmind-db-reader/Manifest |  1 +
 .../maxmind-db-reader-1.4.1.ebuild | 77 ++
 2 files changed, 78 insertions(+)

diff --git a/dev-php/maxmind-db-reader/Manifest 
b/dev-php/maxmind-db-reader/Manifest
index aef27a8a5f1..154db8897aa 100644
--- a/dev-php/maxmind-db-reader/Manifest
+++ b/dev-php/maxmind-db-reader/Manifest
@@ -1,2 +1,3 @@
 DIST MaxMind-DB-Reader-php-1.2.0.tar.gz 17488 BLAKE2B 
2a511f84091ade374eb5b9a975fa6dafe75d69c4c057113790492840acfb9b8e50137bf4927814d8d77b2e17f4e0a7fe1ffda511f7c599a604bc69d4f38af406
 SHA512 
2965c5348ec787e503c04322961b00fe7806cd95c5f711efd9833adc0acb21f0c40cab1983868f8ea0bb4e8576186d83e1e1913b203aab999f3870ea298a9b2a
 DIST MaxMind-DB-Reader-php-1.3.0.tar.gz 18573 BLAKE2B 
6f093b4343438d37a44639dd47d4c149bcfdd351b9fe68eb19c1b739a28e7c7605728e47471cc7d5d257d56df5da37b5ffd32c275cb705befe9e6d60a137ac46
 SHA512 
480fb38122d1700b18bb0b85d8062397ddc7f003897829f3533901c12a409d76eea9d499ffc0fdd1bfaf4d35b954a30606a053b78e787eda27771995e2a1800b
+DIST MaxMind-DB-Reader-php-1.4.1.tar.gz 19667 BLAKE2B 
b397eb1bb7fa00c3382c7ee7c019c401d390c88d9bccd7742873445e95cb87d780ac17affe5cd1ec98e6f60d16660784dc5fdb188f8e4d2956df816397a9c251
 SHA512 
2407f3d1af10830078c9f5ba93ee74761084b06e630242eff0f707b98bdb78e6e87dabc999c36b29780ba9c8c38aec022575b66d95b3707bdc06875c6dd5

diff --git a/dev-php/maxmind-db-reader/maxmind-db-reader-1.4.1.ebuild 
b/dev-php/maxmind-db-reader/maxmind-db-reader-1.4.1.ebuild
new file mode 100644
index 000..e5bac06988f
--- /dev/null
+++ b/dev-php/maxmind-db-reader/maxmind-db-reader-1.4.1.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+MY_PN="MaxMind-DB-Reader-php"
+MY_P="${MY_PN}-${PV}"
+S="${WORKDIR}/${MY_P}"
+PHP_EXT_S="${S}/ext"
+PHP_EXT_NAME="maxminddb"
+PHP_EXT_OPTIONAL_USE="extension"
+
+USE_PHP="php5-6 php7-0 php7-1 php7-2 php7-3"
+
+inherit php-ext-source-r3
+
+DESCRIPTION="PHP reader for the MaxMind database format"
+HOMEPAGE="https://github.com/maxmind/${MY_PN};
+SRC_URI="${HOMEPAGE}/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="extension test"
+
+DEPEND="extension? ( dev-libs/libmaxminddb )"
+RDEPEND="${DEPEND}"
+
+src_prepare(){
+   # We need to call eapply_user ourselves, because it may be skipped
+   # if either the "extension" USE flag is not set, or if the user's
+   # PHP_TARGETS is essentially empty. In the latter case, the eclass
+   # src_prepare does nothing. We only call the eclass phase conditionally
+   # because the correct version of e.g. "phpize" may not be there
+   # unless USE=extension is set.
+   if use extension ; then
+   php-ext-source-r3_src_prepare
+   else
+   default
+   fi
+}
+
+src_configure() {
+   # The eclass phase will try to run the ./configure script even if it
+   # doesn't exist (in contrast to the default src_configure), so we
+   # need to skip it if the eclass src_prepare (that creates said
+   # script) is not run.
+   use extension && php-ext-source-r3_src_configure
+}
+
+src_compile() {
+   # Avoids the same problem as in src_configure.
+   use extension && php-ext-source-r3_src_compile
+}
+
+src_install() {
+   dodoc CHANGELOG.md README.md
+   insinto /usr/share/php
+   doins -r src/MaxMind
+   insinto /usr/share/php/MaxMind/Db
+   doins autoload.php
+
+   use extension && php-ext-source-r3_src_install
+}
+
+src_test() {
+   # The PHP API has its own set of tests that isn't shipped with the
+   # release tarballs at the moment (github issues 55).
+   use extension && php-ext-source-r3_src_test
+}
+
+pkg_postinst(){
+   elog "${PN} has been installed in /usr/share/php/MaxMind/Db/."
+   elog "To use it in a script, require('MaxMind/Db/autoload.php'),"
+   elog "and then most of the examples in the documentation should"
+   elog "work without further modification."
+}



[gentoo-commits] repo/gentoo:master commit in: dev-php/maxmind-db-reader/

2018-04-10 Thread Brian Evans
commit: b777ed6924d39efbe2f1beb4db879719a9c33aac
Author: Brian Evans  gentoo  org>
AuthorDate: Tue Apr 10 16:28:16 2018 +
Commit: Brian Evans  gentoo  org>
CommitDate: Tue Apr 10 16:28:16 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b777ed69

dev-php/maxmind-db-reader: Version bump to 1.3.0

Package-Manager: Portage-2.3.28, Repoman-2.3.9

 dev-php/maxmind-db-reader/Manifest |  1 +
 .../maxmind-db-reader-1.3.0.ebuild | 77 ++
 2 files changed, 78 insertions(+)

diff --git a/dev-php/maxmind-db-reader/Manifest 
b/dev-php/maxmind-db-reader/Manifest
index 3995e3bb8e0..aef27a8a5f1 100644
--- a/dev-php/maxmind-db-reader/Manifest
+++ b/dev-php/maxmind-db-reader/Manifest
@@ -1 +1,2 @@
 DIST MaxMind-DB-Reader-php-1.2.0.tar.gz 17488 BLAKE2B 
2a511f84091ade374eb5b9a975fa6dafe75d69c4c057113790492840acfb9b8e50137bf4927814d8d77b2e17f4e0a7fe1ffda511f7c599a604bc69d4f38af406
 SHA512 
2965c5348ec787e503c04322961b00fe7806cd95c5f711efd9833adc0acb21f0c40cab1983868f8ea0bb4e8576186d83e1e1913b203aab999f3870ea298a9b2a
+DIST MaxMind-DB-Reader-php-1.3.0.tar.gz 18573 BLAKE2B 
6f093b4343438d37a44639dd47d4c149bcfdd351b9fe68eb19c1b739a28e7c7605728e47471cc7d5d257d56df5da37b5ffd32c275cb705befe9e6d60a137ac46
 SHA512 
480fb38122d1700b18bb0b85d8062397ddc7f003897829f3533901c12a409d76eea9d499ffc0fdd1bfaf4d35b954a30606a053b78e787eda27771995e2a1800b

diff --git a/dev-php/maxmind-db-reader/maxmind-db-reader-1.3.0.ebuild 
b/dev-php/maxmind-db-reader/maxmind-db-reader-1.3.0.ebuild
new file mode 100644
index 000..7d53d3fc64d
--- /dev/null
+++ b/dev-php/maxmind-db-reader/maxmind-db-reader-1.3.0.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+MY_PN="MaxMind-DB-Reader-php"
+MY_P="${MY_PN}-${PV}"
+S="${WORKDIR}/${MY_P}"
+PHP_EXT_S="${S}/ext"
+PHP_EXT_NAME="maxminddb"
+PHP_EXT_OPTIONAL_USE="extension"
+
+USE_PHP="php5-6 php7-0 php7-1 php7-2"
+
+inherit php-ext-source-r3
+
+DESCRIPTION="PHP reader for the MaxMind database format"
+HOMEPAGE="https://github.com/maxmind/${MY_PN};
+SRC_URI="${HOMEPAGE}/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="extension test"
+
+DEPEND="extension? ( dev-libs/libmaxminddb )"
+RDEPEND="${DEPEND}"
+
+src_prepare(){
+   # We need to call eapply_user ourselves, because it may be skipped
+   # if either the "extension" USE flag is not set, or if the user's
+   # PHP_TARGETS is essentially empty. In the latter case, the eclass
+   # src_prepare does nothing. We only call the eclass phase conditionally
+   # because the correct version of e.g. "phpize" may not be there
+   # unless USE=extension is set.
+   if use extension ; then
+   php-ext-source-r3_src_prepare
+   else
+   default
+   fi
+}
+
+src_configure() {
+   # The eclass phase will try to run the ./configure script even if it
+   # doesn't exist (in contrast to the default src_configure), so we
+   # need to skip it if the eclass src_prepare (that creates said
+   # script) is not run.
+   use extension && php-ext-source-r3_src_configure
+}
+
+src_compile() {
+   # Avoids the same problem as in src_configure.
+   use extension && php-ext-source-r3_src_compile
+}
+
+src_install() {
+   dodoc CHANGELOG.md README.md
+   insinto /usr/share/php
+   doins -r src/MaxMind
+   insinto /usr/share/php/MaxMind/Db
+   doins autoload.php
+
+   use extension && php-ext-source-r3_src_install
+}
+
+src_test() {
+   # The PHP API has its own set of tests that isn't shipped with the
+   # release tarballs at the moment (github issues 55).
+   use extension && php-ext-source-r3_src_test
+}
+
+pkg_postinst(){
+   elog "${PN} has been installed in /usr/share/php/MaxMind/Db/."
+   elog "To use it in a script, require('MaxMind/Db/autoload.php'),"
+   elog "and then most of the examples in the documentation should"
+   elog "work without further modification."
+}



[gentoo-commits] repo/gentoo:master commit in: dev-php/maxmind-db-reader/

2018-03-21 Thread Brian Evans
commit: 4cba844e90bae362be4f1b46230fe5ac779c090f
Author: Brian Evans  gentoo  org>
AuthorDate: Tue Mar 13 00:36:41 2018 +
Commit: Brian Evans  gentoo  org>
CommitDate: Thu Mar 22 01:28:15 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4cba844e

dev-php/maxmind-db-reader: Remove src_unpack as changes to eclass make it 
obsolete

 dev-php/maxmind-db-reader/maxmind-db-reader-1.2.0.ebuild | 11 +--
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/dev-php/maxmind-db-reader/maxmind-db-reader-1.2.0.ebuild 
b/dev-php/maxmind-db-reader/maxmind-db-reader-1.2.0.ebuild
index 6d5d40ddc9c..344af793832 100644
--- a/dev-php/maxmind-db-reader/maxmind-db-reader-1.2.0.ebuild
+++ b/dev-php/maxmind-db-reader/maxmind-db-reader-1.2.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -28,15 +28,6 @@ DEPEND="${COMMON_DEPEND}"
 RDEPEND="${COMMON_DEPEND}
dev-php/fedora-autoloader"
 
-src_unpack() {
-   # Don't make copies of the source tree if they won't be used.
-   if use extension; then
-   php-ext-source-r3_src_unpack
-   else
-   default
-   fi
-}
-
 src_prepare(){
# We need to call eapply_user ourselves, because it may be skipped
# if either the "extension" USE flag is not set, or if the user's



[gentoo-commits] repo/gentoo:master commit in: dev-php/maxmind-db-reader/files/, dev-php/maxmind-db-reader/

2017-11-05 Thread Michael Orlitzky
commit: 80d52ea829aac43e9a067b6a8f3e010c221de717
Author: Michael Orlitzky  gentoo  org>
AuthorDate: Sun Nov  5 22:52:19 2017 +
Commit: Michael Orlitzky  gentoo  org>
CommitDate: Sun Nov  5 22:57:41 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80d52ea8

dev-php/maxmind-db-reader: new PHP interface to the MaxMind databases.

Add the new (Composer-based) PHP interface to the MaxMind binary
database format. This lets you query the newer "mmdb" files directly,
from PHP code. There is an optional C extension that can be built with
USE=extension, and which ostensibly (but I have not tested this)
improves performance through the use of dev-libs/libmaxminddb.

Thanks to Steffen Weber for the initial ebuild.

Reported-by: Steffen Weber
Closes: https://bugs.gentoo.org/511088
Package-Manager: Portage-2.3.8, Repoman-2.3.3

 dev-php/maxmind-db-reader/Manifest |  1 +
 dev-php/maxmind-db-reader/files/autoload.php   |  6 ++
 .../maxmind-db-reader-1.2.0.ebuild | 85 ++
 dev-php/maxmind-db-reader/metadata.xml | 16 
 4 files changed, 108 insertions(+)

diff --git a/dev-php/maxmind-db-reader/Manifest 
b/dev-php/maxmind-db-reader/Manifest
new file mode 100644
index 000..b4042bc7805
--- /dev/null
+++ b/dev-php/maxmind-db-reader/Manifest
@@ -0,0 +1 @@
+DIST MaxMind-DB-Reader-php-1.2.0.tar.gz 17488 SHA256 
b1d0166ac9d7a2df2ec33c2fd3e2ccfcb556f013c8f58df3610e08bbf7e9c383 SHA512 
2965c5348ec787e503c04322961b00fe7806cd95c5f711efd9833adc0acb21f0c40cab1983868f8ea0bb4e8576186d83e1e1913b203aab999f3870ea298a9b2a
 WHIRLPOOL 
6059929c7b6e10ceafc4d50b7b2af2162c5a6e3b4dfc7390bd6b7adebca69de1847a01632e63c4b7de09581fdbd3c21dabe3c5182346d503228fd8e0112ad366

diff --git a/dev-php/maxmind-db-reader/files/autoload.php 
b/dev-php/maxmind-db-reader/files/autoload.php
new file mode 100644
index 000..45e8c2dfba3
--- /dev/null
+++ b/dev-php/maxmind-db-reader/files/autoload.php
@@ -0,0 +1,6 @@
+https://github.com/maxmind/${MY_PN};
+SRC_URI="${HOMEPAGE}/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="extension test"
+
+COMMON_DEPEND="extension? ( dev-libs/libmaxminddb )"
+DEPEND="${COMMON_DEPEND}"
+RDEPEND="${COMMON_DEPEND}
+   dev-php/fedora-autoloader"
+
+src_unpack() {
+   # Don't make copies of the source tree if they won't be used.
+   if use extension; then
+   php-ext-source-r3_src_unpack
+   else
+   default
+   fi
+}
+
+src_prepare(){
+   # We need to call eapply_user ourselves, because it may be skipped
+   # if either the "extension" USE flag is not set, or if the user's
+   # PHP_TARGETS is essentially empty. In the latter case, the eclass
+   # src_prepare does nothing. We only call the eclass phase conditionally
+   # because the correct version of e.g. "phpize" may not be there
+   # unless USE=extension is set.
+   eapply_user
+   use extension && php-ext-source-r3_src_prepare
+}
+
+src_configure() {
+   # The eclass phase will try to run the ./configure script even if it
+   # doesn't exist (in contrast to the default src_configure), so we
+   # need to skip it if the eclass src_prepare (that creates said
+   # script) is not run.
+   use extension && php-ext-source-r3_src_configure
+}
+
+src_compile() {
+   # Avoids the same problem as in src_configure.
+   use extension && php-ext-source-r3_src_compile
+}
+
+src_install() {
+   dodoc CHANGELOG.md README.md
+   insinto /usr/share/php
+   doins -r src/MaxMind
+   insinto /usr/share/php/MaxMind/Db
+   doins "${FILESDIR}/autoload.php"
+
+   use extension && php-ext-source-r3_src_install
+}
+
+src_test() {
+   # The PHP API has its own set of tests that isn't shipped with the
+   # release tarballs at the moment (github issues 55).
+   use extension && php-ext-source-r3_src_test
+}
+
+pkg_postinst(){
+   elog "${PN} has been installed in /usr/share/php/MaxMind/Db/."
+   elog "To use it in a script, require('MaxMind/Db/autoload.php'),"
+   elog "and then most of the examples in the documentation should"
+   elog "work without further modification."
+}

diff --git a/dev-php/maxmind-db-reader/metadata.xml 
b/dev-php/maxmind-db-reader/metadata.xml
new file mode 100644
index 000..c6051cdbefb
--- /dev/null
+++ b/dev-php/maxmind-db-reader/metadata.xml
@@ -0,0 +1,16 @@
+
+http://www.gentoo.org/dtd/metadata.dtd;>
+
+  
+php-b...@gentoo.org
+PHP
+  
+   
+
+  Build the C extension that uses dev-libs/libmaxminddb
+
+  
+  
+maxmind/MaxMind-DB-Reader-php
+  
+