commit:     c2e41a0b6f26293902a86bafa194a1c3c9b0adca
Author:     Tomáš Mózes <hydrapolic <AT> gmail <DOT> com>
AuthorDate: Fri Oct 16 08:58:15 2020 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Fri Oct 16 14:37:55 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2e41a0b

dev-php/pecl-mongodb: bump to 1.8.1

Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/17947
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 dev-php/pecl-mongodb/Manifest                  |  1 +
 dev-php/pecl-mongodb/pecl-mongodb-1.8.1.ebuild | 55 ++++++++++++++++++++++++++
 2 files changed, 56 insertions(+)

diff --git a/dev-php/pecl-mongodb/Manifest b/dev-php/pecl-mongodb/Manifest
index d95d8cbd5c0..2bec588d461 100644
--- a/dev-php/pecl-mongodb/Manifest
+++ b/dev-php/pecl-mongodb/Manifest
@@ -4,3 +4,4 @@ DIST mongodb-1.6.0.tgz 1096156 BLAKE2B 
16c3b1d07d31d29a214aba320347f8e40cfc4f0da
 DIST mongodb-1.7.4.tgz 1223416 BLAKE2B 
9db40284eb2b70e242f26c1661923c5f33de8ab1e33a7e816863b61fcbc49040204ca556b1f384cab958f9dc2cf4e49e97840b78bd520a4e374b83210a964e5d
 SHA512 
6805ce1d0958e24e1edf3bc9698bc1f4a9d31c26250624fd35aebf7a7d310af30050e1974cd9571f989303fce4c5522e793a8cb41388397df66e8f5fe0a648f2
 DIST mongodb-1.7.5.tgz 1223892 BLAKE2B 
c30a217d1170c31be00259f4bb58cfea186947fa0bf1653de32e228a8eb8d3fb25b52d7a5a9e16f6b311418d977f7aa00bf96ca9d7e9ac9a8fa7b6fe05eace8f
 SHA512 
f0565adc42659d4070e42122d02a8306f29d6d70fe0b5e9a92144df346a8c672aafdf36613435b9dc8d50db5e98c2359fdf97408c45439d4d447257b85e93122
 DIST mongodb-1.8.0.tgz 1292928 BLAKE2B 
3bd9e5eb6b981010637b9e478928fa21268e1d1447f3ff345bfdb45c93637990e261c46b2ce09560cd4e284df73494dac210436cf700b588803e4ceffb8dc67c
 SHA512 
7fd54dabde8df9533abd36d159c3da1c2b4606e7788b8a6d41faf83d0710b74885e8bfb4e1f4837a50248f3af1df2e7414b90f99227fc92c9084f779c7e68698
+DIST mongodb-1.8.1.tgz 1292453 BLAKE2B 
25fe36b7d966a4dcf631764aeb93c09932cc0643e46fe5e594d9223a9d3f099b75211a813114c3e8cd4a1722da774b669ef968fdbb1d4877a81cf1f637890997
 SHA512 
a80682e3a90ead699a930185c3d10bc3a86b335b45891be6d41ef829fab6f2f2468adb5973735048fa98bb6aaa9c8568ba9f7df5709916d5b6f7676c77188d0c

diff --git a/dev-php/pecl-mongodb/pecl-mongodb-1.8.1.ebuild 
b/dev-php/pecl-mongodb/pecl-mongodb-1.8.1.ebuild
new file mode 100644
index 00000000000..f2435b28dc8
--- /dev/null
+++ b/dev-php/pecl-mongodb/pecl-mongodb-1.8.1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PHP_EXT_NAME="mongodb"
+USE_PHP="php7-2 php7-3 php7-4"
+
+inherit php-ext-pecl-r3
+
+DESCRIPTION="MongoDB database driver for PHP"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="libressl sasl test"
+
+PHP_DEPEND="
+       php_targets_php7-2? ( dev-lang/php:7.2[json,ssl,zlib] )
+       php_targets_php7-3? ( dev-lang/php:7.3[json,ssl,zlib] )
+       php_targets_php7-4? ( dev-lang/php:7.4[json,ssl,zlib] )"
+COMMON_DEPEND="${PHP_DEPEND}
+       >=dev-libs/libbson-1.17.0
+       >=dev-libs/mongo-c-driver-1.17.0[sasl?,ssl]
+       !libressl? ( dev-libs/openssl:0= )
+       libressl? ( dev-libs/libressl:0= )
+       sasl? ( dev-libs/cyrus-sasl )"
+DEPEND="${COMMON_DEPEND}
+       test? ( dev-db/mongodb )"
+RDEPEND="${COMMON_DEPEND}"
+BDEPEND="${PHP_DEPEND}
+       virtual/pkgconfig"
+
+# No tests on x86 because tests require dev-db/mongodb which don't support
+# x86 anymore (bug #645994)
+RESTRICT="x86? ( test )
+       !test? ( test )"
+
+src_configure() {
+       local PHP_EXT_ECONF_ARGS=(
+               --enable-mongodb
+               --with-libbson
+               --with-libmongoc
+               --with-mongodb-sasl=$(usex sasl)
+       )
+       php-ext-source-r3_src_configure
+}
+
+src_test() {
+       local PORT=27017
+       mongod --port ${PORT} --bind_ip 127.0.0.1 --nounixsocket --fork \
+               --dbpath="${T}" --logpath="${T}/mongod.log" || die
+       php-ext-pecl-r3_src_test
+       kill $(<"${T}/mongod.lock")
+}

Reply via email to