1 |
commit: d31ba9a9a7e819b98929554040386e7e214b3be2 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Apr 25 15:28:57 2021 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 25 15:30:09 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d31ba9a9 |
7 |
|
8 |
dev-php/pecl-mongodb: bump to v1.9.1 |
9 |
|
10 |
Package-Manager: Portage-3.0.18, Repoman-3.0.3 |
11 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
12 |
|
13 |
dev-php/pecl-mongodb/Manifest | 1 + |
14 |
dev-php/pecl-mongodb/pecl-mongodb-1.9.1.ebuild | 55 ++++++++++++++++++++++++++ |
15 |
2 files changed, 56 insertions(+) |
16 |
|
17 |
diff --git a/dev-php/pecl-mongodb/Manifest b/dev-php/pecl-mongodb/Manifest |
18 |
index 682116d0c8c..b13d6baf0de 100644 |
19 |
--- a/dev-php/pecl-mongodb/Manifest |
20 |
+++ b/dev-php/pecl-mongodb/Manifest |
21 |
@@ -3,3 +3,4 @@ DIST mongodb-1.7.5.tgz 1223892 BLAKE2B c30a217d1170c31be00259f4bb58cfea186947fa0 |
22 |
DIST mongodb-1.8.0.tgz 1292928 BLAKE2B 3bd9e5eb6b981010637b9e478928fa21268e1d1447f3ff345bfdb45c93637990e261c46b2ce09560cd4e284df73494dac210436cf700b588803e4ceffb8dc67c SHA512 7fd54dabde8df9533abd36d159c3da1c2b4606e7788b8a6d41faf83d0710b74885e8bfb4e1f4837a50248f3af1df2e7414b90f99227fc92c9084f779c7e68698 |
23 |
DIST mongodb-1.8.1.tgz 1292453 BLAKE2B 25fe36b7d966a4dcf631764aeb93c09932cc0643e46fe5e594d9223a9d3f099b75211a813114c3e8cd4a1722da774b669ef968fdbb1d4877a81cf1f637890997 SHA512 a80682e3a90ead699a930185c3d10bc3a86b335b45891be6d41ef829fab6f2f2468adb5973735048fa98bb6aaa9c8568ba9f7df5709916d5b6f7676c77188d0c |
24 |
DIST mongodb-1.9.0.tgz 1300408 BLAKE2B 1cf6a43694e8113df8028c2663db8049421140d53124e6dcf8cb3e42daf961dc6a63cc930c765874eb1ccac13d419980d883e42ba33f3ea389b07ea006217432 SHA512 80ad3caddde045fe5e879167b2b4cfc27bdabf6d3667df4df73f33503c329b0d6bf4da6b287fe454301a9a390434eec19971059c6de8d4c9720a79fe7680366d |
25 |
+DIST mongodb-1.9.1.tgz 1285984 BLAKE2B 7d3dd7635b97d142abdf0882d03f4b7a7b42b9720a8e790dae5d4cfcbee54a2f18d70641851baf9258e59ebe396336ae72956b9f6e09812f017850dbdcc3dd97 SHA512 e1ff9fba2268020862e917a38946a7f5f4cc5caf22b38e9ccf60b491cdee20f55b9643e8904cd934de48d31ca69b1c26dd86454f74572ce977669f908d4ffe51 |
26 |
|
27 |
diff --git a/dev-php/pecl-mongodb/pecl-mongodb-1.9.1.ebuild b/dev-php/pecl-mongodb/pecl-mongodb-1.9.1.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..f214d36f5d0 |
30 |
--- /dev/null |
31 |
+++ b/dev-php/pecl-mongodb/pecl-mongodb-1.9.1.ebuild |
32 |
@@ -0,0 +1,55 @@ |
33 |
+# Copyright 1999-2021 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+PHP_EXT_NAME="mongodb" |
39 |
+USE_PHP="php7-3 php7-4 php8-0" |
40 |
+ |
41 |
+inherit php-ext-pecl-r3 |
42 |
+ |
43 |
+DESCRIPTION="MongoDB database driver for PHP" |
44 |
+ |
45 |
+LICENSE="Apache-2.0" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~x86" |
48 |
+IUSE="libressl sasl test" |
49 |
+ |
50 |
+PHP_DEPEND=" |
51 |
+ php_targets_php7-3? ( dev-lang/php:7.3[json,ssl,zlib] ) |
52 |
+ php_targets_php7-4? ( dev-lang/php:7.4[json,ssl,zlib] ) |
53 |
+ php_targets_php8-0? ( dev-lang/php:8.0[ssl,zlib] )" |
54 |
+COMMON_DEPEND="${PHP_DEPEND} |
55 |
+ >=dev-libs/libbson-1.17.0 |
56 |
+ >=dev-libs/mongo-c-driver-1.17.0[sasl?,ssl] |
57 |
+ !libressl? ( dev-libs/openssl:0= ) |
58 |
+ libressl? ( dev-libs/libressl:0= ) |
59 |
+ sasl? ( dev-libs/cyrus-sasl )" |
60 |
+DEPEND="${COMMON_DEPEND} |
61 |
+ test? ( dev-db/mongodb )" |
62 |
+RDEPEND="${COMMON_DEPEND}" |
63 |
+BDEPEND="${PHP_DEPEND} |
64 |
+ virtual/pkgconfig" |
65 |
+ |
66 |
+# No tests on x86 because tests require dev-db/mongodb which don't support |
67 |
+# x86 anymore (bug #645994) |
68 |
+RESTRICT="x86? ( test ) |
69 |
+ !test? ( test )" |
70 |
+ |
71 |
+src_configure() { |
72 |
+ local PHP_EXT_ECONF_ARGS=( |
73 |
+ --enable-mongodb |
74 |
+ --with-libbson |
75 |
+ --with-libmongoc |
76 |
+ --with-mongodb-sasl=$(usex sasl) |
77 |
+ ) |
78 |
+ php-ext-source-r3_src_configure |
79 |
+} |
80 |
+ |
81 |
+src_test() { |
82 |
+ local PORT=27017 |
83 |
+ mongod --port ${PORT} --bind_ip 127.0.0.1 --nounixsocket --fork \ |
84 |
+ --dbpath="${T}" --logpath="${T}/mongod.log" || die |
85 |
+ php-ext-pecl-r3_src_test |
86 |
+ kill $(<"${T}/mongod.lock") |
87 |
+} |