1 |
commit: d62bab85f4466f694685606e51e664896a1c8146 |
2 |
Author: Tomas Mozes <hydrapolic <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Nov 2 22:09:52 2019 +0000 |
4 |
Commit: Alexys Jacob <ultrabug <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Nov 15 21:54:49 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d62bab85 |
7 |
|
8 |
dev-php/pecl-mongodb: bump to 1.6.0 |
9 |
|
10 |
Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com> |
11 |
Signed-off-by: Alexys Jacob <ultrabug <AT> gentoo.org> |
12 |
|
13 |
dev-php/pecl-mongodb/Manifest | 1 + |
14 |
dev-php/pecl-mongodb/pecl-mongodb-1.6.0.ebuild | 56 ++++++++++++++++++++++++++ |
15 |
2 files changed, 57 insertions(+) |
16 |
|
17 |
diff --git a/dev-php/pecl-mongodb/Manifest b/dev-php/pecl-mongodb/Manifest |
18 |
index 4f129ed93d4..458572d3211 100644 |
19 |
--- a/dev-php/pecl-mongodb/Manifest |
20 |
+++ b/dev-php/pecl-mongodb/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
DIST mongodb-1.3.3.tgz 925476 BLAKE2B 845abd4c7cf5dbb1fb3b04c5fc4070f0a360874ac566f1988025701258141a89afaa0e60c3d7166484fa37eda4ef08d94deeabdcc2ebe2a4f221dcf83aff20df SHA512 16c82ada278eac6996065d3c594237fbb8c1a7fe4e21828aa8af9ef98033cf6dfaf0fee90095e8116e946e620b551a6122238f85865a6c47d4d087f784cd54ea |
23 |
DIST mongodb-1.5.3.tgz 1059580 BLAKE2B 23bd5f6b0f218cf55bd5713a770f3990d5c1492925623712583356d8aee42a1b47519b93ba64036aaf98f97ab4b1b30de9d8aa39659f2575c4f4dba3892d574d SHA512 35704e75bd7867a436d953c00c7560c9a08a4fa8f3555d7cc00aeda34e87c6c7aa7ecc1d7f674747e34f4f8dac35d320f6317e60229528ea9782bbe669bafec0 |
24 |
DIST mongodb-1.5.5.tgz 1060017 BLAKE2B 475ca0f6a1cbd5270c9bde0f195d6092ef25441e0cee0a45ed378a868bd1ad27c7a77c4f4702b6f82004433805563cdaa728cbc11bb5beff83b982122cad339b SHA512 1eefc8f8e359a979082dc7808e89ff5418cd2dc73d4250638e33dc32cce40ef42502e9dbbb07303381e0062b84818568034f4e4cda8c8bf905513d00bf008392 |
25 |
+DIST mongodb-1.6.0.tgz 1096156 BLAKE2B 16c3b1d07d31d29a214aba320347f8e40cfc4f0dae8b0713b02cd0e3ff98fd54b09217472f333722228efdfcae755bbdbfe58da7db89d4dda2893ba7b3b0e8bb SHA512 e75dc607bf41bb71a0fce3b73785ef4203af97a3e8b21bf70a80c2216e9530463a6aaca55b013a4fa2f3c4eb72405a25209935ea1a238475f990763af54aa641 |
26 |
|
27 |
diff --git a/dev-php/pecl-mongodb/pecl-mongodb-1.6.0.ebuild b/dev-php/pecl-mongodb/pecl-mongodb-1.6.0.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..18b9f1a79d6 |
30 |
--- /dev/null |
31 |
+++ b/dev-php/pecl-mongodb/pecl-mongodb-1.6.0.ebuild |
32 |
@@ -0,0 +1,56 @@ |
33 |
+# Copyright 1999-2019 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-1 php7-2 php7-3" |
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-1? ( dev-lang/php:7.1[json,ssl,zlib] ) |
52 |
+ php_targets_php7-2? ( dev-lang/php:7.2[json,ssl,zlib] ) |
53 |
+ php_targets_php7-3? ( dev-lang/php:7.3[json,ssl,zlib] )" |
54 |
+COMMON_DEPEND="${PHP_DEPEND} |
55 |
+ >=dev-libs/libbson-1.15.1 |
56 |
+ >=dev-libs/mongo-c-driver-1.15.1[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 |
+# FEATURES="test" emerge dev-php/pecl-mongodb |
82 |
+src_test() { |
83 |
+ local PORT=27017 |
84 |
+ mongod --port ${PORT} --bind_ip 127.0.0.1 --nounixsocket --fork \ |
85 |
+ --dbpath="${T}" --logpath="${T}/mongod.log" || die |
86 |
+ php-ext-pecl-r3_src_test |
87 |
+ kill $(<"${T}/mongod.lock") |
88 |
+} |