1 |
commit: 674f7d916bc4286e107ae103946f5c279eedcb5c |
2 |
Author: Tomas Mozes <hydrapolic <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Mar 21 09:42:06 2019 +0000 |
4 |
Commit: Alexys Jacob <ultrabug <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 14 10:38:40 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=674f7d91 |
7 |
|
8 |
dev-libs/mongo-c-driver: bump to 1.14.0 |
9 |
|
10 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
11 |
Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com> |
12 |
Signed-off-by: Alexys Jacob <ultrabug <AT> gentoo.org> |
13 |
|
14 |
dev-libs/mongo-c-driver/Manifest | 1 + |
15 |
.../files/mongo-c-driver-1.14.0-enable-tests.patch | 25 ++++++ |
16 |
.../files/mongo-c-driver-1.14.0-no-docs.patch | 15 ++++ |
17 |
.../mongo-c-driver/mongo-c-driver-1.14.0.ebuild | 93 ++++++++++++++++++++++ |
18 |
4 files changed, 134 insertions(+) |
19 |
|
20 |
diff --git a/dev-libs/mongo-c-driver/Manifest b/dev-libs/mongo-c-driver/Manifest |
21 |
index 57acfd97ec7..9ecf336d91e 100644 |
22 |
--- a/dev-libs/mongo-c-driver/Manifest |
23 |
+++ b/dev-libs/mongo-c-driver/Manifest |
24 |
@@ -8,6 +8,7 @@ DIST mongo-c-driver-1.11.0.tar.gz 5681593 BLAKE2B 43f70943cc7f1a9f6285c71136b128 |
25 |
DIST mongo-c-driver-1.12.0.tar.gz 5708175 BLAKE2B 113db7ec95f8e9b65433fc20def7224ee8d54c9ddb14cfc68ccf7ccb1995808f4c4c372806e85e1c8bb8b8541bb8b8b5236fd06d7605b78a4bbcee6560642bec SHA512 e4688da8a94fc499893b6001fc444b97fc05c89672fd9700bf30c6af7f1bbb02b1a658aa74470e0e5d5e72bc28a5753aa7dcda14dba7e75fbce0b4bb94b7373f |
26 |
DIST mongo-c-driver-1.13.0.tar.gz 5734887 BLAKE2B ce5c78dde31edc753a6678e90889a0da7129cd1fcf1dce7222df4d25ca109b1bfbb545c755abf8e4cc39dd40dde7ba4c50dd51dcfc67c970e2b8eb278bd543fc SHA512 d2f5b04b3d2dbdeba4547ec1fe8a0da7bad5214de92fff480ef0ff7d97ea45d5e6347c11c249867d4905b1dd81b76c7cfbb9094a58df586dae881955ee246907 |
27 |
DIST mongo-c-driver-1.13.1.tar.gz 5740487 BLAKE2B 92184df6f15f951564a7df14d8ec52eb0199a49af102d44c8fb7678db82a41f915c984e95f5301f533dde63139221cb6e161fa5053b9fcc33080abe1095d9c35 SHA512 454670a145a5f2272daa5ca88f2e7d7e42c9b7df62dfc29b3c4b602ef8f819a740890c40872fa47dc411cc5ef9a34b55a6feea3657a802a5be378c4dbe79f42d |
28 |
+DIST mongo-c-driver-1.14.0.tar.gz 6573651 BLAKE2B 0b1157473554a5aa49e61cf1c85dc7b1f1917581e661a4295876d4c93e72137b4c7c04e1b7545ba7272706499dbe868a36f1c888d2d07a8176f1c4dc01f9fa5f SHA512 99ca4001341d044a8ffc02a5d7175d40f8a998bdaad15a668a7db0558fa616ec18152faeda6da7f28b34c5d2cf4b649180c9390d2229e1342b6c4f6742816994 |
29 |
DIST mongo-c-driver-1.3.5.tar.gz 5860804 BLAKE2B a55de56d285638f21caff06446e3c0c19a5b8722a2ed69fdf046c35973c9bedcc1686065e4355db28afc83c1415872eee2972a6fb3f21647d2cafce12706adc0 SHA512 23844ffe20580998308aa9c8409afcb87dccde874077eefc6806b705e5de5743846ba0513f3a3fe83147fc47842ab8c7438ad1de5f3f55b81586b9e19046aabf |
30 |
DIST mongo-c-driver-1.6.2.tar.gz 6907818 BLAKE2B 7922a50ba58d92d2954eb5c2ccb02fd3b70861bd26516fd12fe6bdf79a926799fbc3a367e1c24a57932870726aa5abc1d264215ea964a56bc318ab0f413afc60 SHA512 b3fe08a31bc83707a4d94f8ea2742fc9b17d024d6c2f92b49cfc4fe012e58cd441c9f0fa4bae9f4205fca44b2a0d8c6d5bc32a05fc9ede9bab0011839a1394af |
31 |
DIST mongo-c-driver-1.8.2.tar.gz 7308675 BLAKE2B ca82c2824486cee78b164d1fdfcf1de062804f0f8637a36ec197efe434ae23a387ec0e6b2e4aa3e9c8bb2434a3cef48fecd17fc4b159a92ad86b8b940b17598a SHA512 af23601ba33694d80acdb890c1b85a354fda966491c4bbfb341a884bcd6314886e405efa3a09e47398adf8dbfdeb1b05ae8b022a72f04a66265bfaeddb661f76 |
32 |
|
33 |
diff --git a/dev-libs/mongo-c-driver/files/mongo-c-driver-1.14.0-enable-tests.patch b/dev-libs/mongo-c-driver/files/mongo-c-driver-1.14.0-enable-tests.patch |
34 |
new file mode 100644 |
35 |
index 00000000000..76202b5e387 |
36 |
--- /dev/null |
37 |
+++ b/dev-libs/mongo-c-driver/files/mongo-c-driver-1.14.0-enable-tests.patch |
38 |
@@ -0,0 +1,25 @@ |
39 |
+diff --git a/CMakeLists.txt b/CMakeLists.txt |
40 |
+index c0e01a8..3371dae 100644 |
41 |
+--- a/CMakeLists.txt |
42 |
++++ b/CMakeLists.txt |
43 |
+@@ -163,7 +163,6 @@ if (ENABLE_BSON STREQUAL SYSTEM) |
44 |
+ message ("-- libbson include path \"${BSON_INCLUDE_DIRS}\"") |
45 |
+ message ("-- libbson libraries \"${BSON_LIBRARIES}\"") |
46 |
+ message ("-- disabling test-libmongoc since using system libbson") |
47 |
+- SET (ENABLE_TESTS OFF) |
48 |
+ |
49 |
+ if (ENABLE_STATIC MATCHES "ON|AUTO") |
50 |
+ find_package (libbson-static-1.0 |
51 |
+diff --git a/src/libbson/tests/test-bson.c b/src/libbson/tests/test-bson.c |
52 |
+index 95356fa..9f9aea3 100644 |
53 |
+--- a/src/libbson/tests/test-bson.c |
54 |
++++ b/src/libbson/tests/test-bson.c |
55 |
+@@ -17,7 +17,7 @@ |
56 |
+ |
57 |
+ #include <bson/bson.h> |
58 |
+ #include <bson/bcon.h> |
59 |
+-#include <bson/bson-private.h> |
60 |
++#include "bson/bson-private.h" |
61 |
+ #include <fcntl.h> |
62 |
+ #include <time.h> |
63 |
+ |
64 |
|
65 |
diff --git a/dev-libs/mongo-c-driver/files/mongo-c-driver-1.14.0-no-docs.patch b/dev-libs/mongo-c-driver/files/mongo-c-driver-1.14.0-no-docs.patch |
66 |
new file mode 100644 |
67 |
index 00000000000..d33fba105ab |
68 |
--- /dev/null |
69 |
+++ b/dev-libs/mongo-c-driver/files/mongo-c-driver-1.14.0-no-docs.patch |
70 |
@@ -0,0 +1,15 @@ |
71 |
+diff --git a/CMakeLists.txt b/CMakeLists.txt |
72 |
+index 3371dae..a6edf0f 100644 |
73 |
+--- a/CMakeLists.txt |
74 |
++++ b/CMakeLists.txt |
75 |
+@@ -380,10 +380,6 @@ if (ENABLE_MONGOC) |
76 |
+ |
77 |
+ endif () |
78 |
+ |
79 |
+-install (FILES COPYING NEWS README.rst THIRD_PARTY_NOTICES |
80 |
+- DESTINATION ${CMAKE_INSTALL_DATADIR}/mongo-c-driver |
81 |
+-) |
82 |
+- |
83 |
+ if (ENABLE_UNINSTALL) |
84 |
+ if (WIN32) |
85 |
+ if (ENABLE_MONGOC) |
86 |
|
87 |
diff --git a/dev-libs/mongo-c-driver/mongo-c-driver-1.14.0.ebuild b/dev-libs/mongo-c-driver/mongo-c-driver-1.14.0.ebuild |
88 |
new file mode 100644 |
89 |
index 00000000000..eaea5a9fc5a |
90 |
--- /dev/null |
91 |
+++ b/dev-libs/mongo-c-driver/mongo-c-driver-1.14.0.ebuild |
92 |
@@ -0,0 +1,93 @@ |
93 |
+# Copyright 1999-2019 Gentoo Authors |
94 |
+# Distributed under the terms of the GNU General Public License v2 |
95 |
+ |
96 |
+EAPI=7 |
97 |
+ |
98 |
+inherit cmake-utils |
99 |
+ |
100 |
+DESCRIPTION="Client library written in C for MongoDB" |
101 |
+HOMEPAGE="https://github.com/mongodb/mongo-c-driver" |
102 |
+SRC_URI="https://github.com/mongodb/mongo-c-driver/releases/download/${PV}/${P}.tar.gz -> ${P}.tar.gz" |
103 |
+ |
104 |
+LICENSE="Apache-2.0" |
105 |
+SLOT="0" |
106 |
+KEYWORDS="~amd64 ~hppa ~s390 ~x86" |
107 |
+IUSE="debug examples icu libressl sasl ssl static-libs test" |
108 |
+REQUIRED_USE="test? ( static-libs )" |
109 |
+ |
110 |
+RDEPEND="app-arch/snappy:= |
111 |
+ >=dev-libs/libbson-${PV} |
112 |
+ dev-python/sphinx |
113 |
+ sys-libs/zlib:= |
114 |
+ icu? ( dev-libs/icu:= ) |
115 |
+ sasl? ( dev-libs/cyrus-sasl:= ) |
116 |
+ ssl? ( |
117 |
+ !libressl? ( dev-libs/openssl:0= ) |
118 |
+ libressl? ( dev-libs/libressl:0= ) |
119 |
+ )" |
120 |
+DEPEND="${RDEPEND} |
121 |
+ test? ( |
122 |
+ dev-db/mongodb |
123 |
+ dev-libs/libbson[static-libs] |
124 |
+ )" |
125 |
+ |
126 |
+# No tests on x86 because tests require dev-db/mongodb which don't support |
127 |
+# x86 anymore (bug #645994) |
128 |
+RESTRICT="x86? ( test )" |
129 |
+ |
130 |
+PATCHES=( |
131 |
+ "${FILESDIR}/${PN}-1.13.1-drop-failing-test.patch" # one test fails |
132 |
+ "${FILESDIR}/${PN}-1.14.0-enable-tests.patch" # enable tests with system libbson |
133 |
+ "${FILESDIR}/${PN}-1.14.0-no-docs.patch" |
134 |
+) |
135 |
+ |
136 |
+src_prepare() { |
137 |
+ cmake-utils_src_prepare |
138 |
+ |
139 |
+ # copy private headers for tests since we don't build libbson |
140 |
+ if use test; then |
141 |
+ mkdir -p src/libbson/tests/bson || die |
142 |
+ for f in bson-context-private.h bson-iso8601-private.h bson-private.h; do |
143 |
+ cp -v src/libbson/src/bson/${f} src/libbson/tests/bson/ || die |
144 |
+ done |
145 |
+ fi |
146 |
+} |
147 |
+ |
148 |
+src_configure() { |
149 |
+ local mycmakeargs=( |
150 |
+ -DCMAKE_SKIP_RPATH=ON # mongoc-stat insecure runpath |
151 |
+ -DENABLE_BSON=SYSTEM |
152 |
+ -DENABLE_EXAMPLES=OFF |
153 |
+ -DENABLE_ICU="$(usex icu ON OFF)" |
154 |
+ -DENABLE_MAN_PAGES=ON |
155 |
+ -DENABLE_MONGOC=ON |
156 |
+ -DENABLE_SNAPPY=SYSTEM |
157 |
+ -DENABLE_ZLIB=SYSTEM |
158 |
+ -DENABLE_SASL="$(usex sasl CYRUS OFF)" |
159 |
+ -DENABLE_SSL="$(usex ssl $(usex libressl LIBRESSL OPENSSL) OFF)" |
160 |
+ -DENABLE_STATIC="$(usex static-libs ON OFF)" |
161 |
+ -DENABLE_TESTS="$(usex test ON OFF)" |
162 |
+ -DENABLE_TRACING="$(usex debug ON OFF)" |
163 |
+ -DENABLE_UNINSTALL=OFF |
164 |
+ ) |
165 |
+ |
166 |
+ cmake-utils_src_configure |
167 |
+} |
168 |
+ |
169 |
+# FEATURES="test" USE="static-libs" emerge dev-libs/mongo-c-driver |
170 |
+src_test() { |
171 |
+ local PORT=27099 |
172 |
+ mongod --port ${PORT} --bind_ip 127.0.0.1 --nounixsocket --fork \ |
173 |
+ --dbpath="${T}" --logpath="${T}/mongod.log" || die |
174 |
+ MONGOC_TEST_URI="mongodb://[127.0.0.1]:${PORT}" ../mongo-c-driver-${PV}_build/src/libmongoc/test-libmongoc || die |
175 |
+ kill $(<"${T}/mongod.lock") |
176 |
+} |
177 |
+ |
178 |
+src_install() { |
179 |
+ if use examples; then |
180 |
+ docinto examples |
181 |
+ dodoc src/libmongoc/examples/*.c |
182 |
+ fi |
183 |
+ |
184 |
+ cmake-utils_src_install |
185 |
+} |