From 06a7b5647e11a8ddf69b1c3d3ded6a8ba28b923e Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 2 Mar 2018 15:59:12 +0000 Subject: gentoo resync : 02.03.2018 --- dev-libs/mongo-c-driver/Manifest | 2 + .../mongo-c-driver/mongo-c-driver-1.9.3.ebuild | 84 ++++++++++++++++++++++ 2 files changed, 86 insertions(+) create mode 100644 dev-libs/mongo-c-driver/mongo-c-driver-1.9.3.ebuild (limited to 'dev-libs/mongo-c-driver') diff --git a/dev-libs/mongo-c-driver/Manifest b/dev-libs/mongo-c-driver/Manifest index b002285b1bd4..b2bffb27bee6 100644 --- a/dev-libs/mongo-c-driver/Manifest +++ b/dev-libs/mongo-c-driver/Manifest @@ -7,6 +7,7 @@ DIST mongo-c-driver-1.1.2.tar.gz 5443153 BLAKE2B f8004486baf6d2d3086e458bdb4bc80 DIST mongo-c-driver-1.3.5.tar.gz 5860804 BLAKE2B a55de56d285638f21caff06446e3c0c19a5b8722a2ed69fdf046c35973c9bedcc1686065e4355db28afc83c1415872eee2972a6fb3f21647d2cafce12706adc0 SHA512 23844ffe20580998308aa9c8409afcb87dccde874077eefc6806b705e5de5743846ba0513f3a3fe83147fc47842ab8c7438ad1de5f3f55b81586b9e19046aabf DIST mongo-c-driver-1.6.2.tar.gz 6907818 BLAKE2B 7922a50ba58d92d2954eb5c2ccb02fd3b70861bd26516fd12fe6bdf79a926799fbc3a367e1c24a57932870726aa5abc1d264215ea964a56bc318ab0f413afc60 SHA512 b3fe08a31bc83707a4d94f8ea2742fc9b17d024d6c2f92b49cfc4fe012e58cd441c9f0fa4bae9f4205fca44b2a0d8c6d5bc32a05fc9ede9bab0011839a1394af DIST mongo-c-driver-1.8.2.tar.gz 7308675 BLAKE2B ca82c2824486cee78b164d1fdfcf1de062804f0f8637a36ec197efe434ae23a387ec0e6b2e4aa3e9c8bb2434a3cef48fecd17fc4b159a92ad86b8b940b17598a SHA512 af23601ba33694d80acdb890c1b85a354fda966491c4bbfb341a884bcd6314886e405efa3a09e47398adf8dbfdeb1b05ae8b022a72f04a66265bfaeddb661f76 +DIST mongo-c-driver-1.9.3.tar.gz 7716783 BLAKE2B 9f5fc8cddbc1c4cf1f85016027e49d4c3bf2ebe50b1df45eda8569d48b88e174fe2c73e76f7afd4f3a36b74c5d02b826f55c610b8c4df273d8ebd4047e823edc SHA512 2c3f915c4f367f5614a904741b4b480896dd521b7039158b2f421d0d7579a45862d5099cd26b6d14cb088f9db49019538aca553c5cf72d9706ec9ab6516ff40a EBUILD mongo-c-driver-0.7.1-r1.ebuild 1265 BLAKE2B 8dd36363056eccf480098c353f77eb89c66e2be3e38568e97a6a92b0adef6c3887324df07fcbf10a81784e2508e2249a7131c6eb288ece61b6691c341a43a476 SHA512 eb9f7c198354e5daf80cccfc3cae0640dbeb5b748bd5e4bd9f9c94400ff56df7616c389234063c362a2dbe89d0bf8908593df06b68d4fb6bce4d350f795ccc94 EBUILD mongo-c-driver-0.8.1-r1.ebuild 1206 BLAKE2B 84720e113ee9577f8d7990adb03665fb4c33dfed609b4a275f0bd87bf34d75eb439161c705827907b3f8084b06b0da8b482c10e8e53d5dded9885bd9adf9e20a SHA512 a8fad804c2fa12ee63bba7167e299db787b9293d2850b7a234d09b3ddb6890ab97987bdf475d937f23de874447b1da80dd0ebff140aeb315c13d598cdfd7a4b3 EBUILD mongo-c-driver-0.98.2.ebuild 1692 BLAKE2B 247c26866b8eb10aef7b0894300157a7522d2e579d7c5f19022f086e0352afaca4d5f6a45f9eea94f99049b102fcca84bcbfa56a138ef8d6afc4cd44008ebe71 SHA512 b74806852fbc46322c52966c987d882866fcf551c865eac0bba641b4ccf0f7f4a2129feb3f610e4fa57d3a0be99f50cd1e4796aafec2a1d6ed851c16125c370e @@ -15,4 +16,5 @@ EBUILD mongo-c-driver-1.1.2-r1.ebuild 1800 BLAKE2B 61782ec9c74e2d67bd884c1e1aa1b EBUILD mongo-c-driver-1.3.5.ebuild 2023 BLAKE2B fc14f7ffb1d3f6c6d8495b10276944240d57a712d76ce58f909de934ee3f1ddd9f9d57723d1e686692de422033859dbec384aff65eb0e16a4a915674980d923f SHA512 30eb5a0bdd2d92de202dc28df98b3038a8015af39d6bc8fdc7b76299efd509bc9bf0690f824d34c1d7ff4a59dabd036567d18e4846411759560a65ae027f4469 EBUILD mongo-c-driver-1.6.2.ebuild 1963 BLAKE2B 6a65450eb17c0de23d4525d9028ecba3b69f8cf6b8be52af3ec81893d3295d30cb25f06869b915da4c6f87e2344777356dac99f1aeb506eaca2def1e1550bae4 SHA512 776b41fa17aa7859aae0a8861647cfa4072e31c75a9189cf59da53b3798d5832b45abb60073cf37176ee05a2abc734da3c9e1f9e5fdad718002670bb99e54cfc EBUILD mongo-c-driver-1.8.2.ebuild 2151 BLAKE2B cbb1bb297830b3cfd66c082be4fd04732b26fe7e23d0edb4a63b69556d326f6d8be143f5ae6e684fa8111ee45ed77be215f830802126ff508b8e216332ee5bbb SHA512 426c0848aad3a0c2ca11cf308a72789ad9cd4e7a3e9ffed267a0ce3fcdb34f51054957eda4d8b9280900cab2ae8bb3da6405e92fc527eb8cf1c9d74f5a8b9aaf +EBUILD mongo-c-driver-1.9.3.ebuild 2153 BLAKE2B d6abb8f98f741dc893ad46c50b8ff92f7f151b83ac402bb07c5a3335f648c04eafa26e85f4f9dceaa3bd2a89e96df4d673f755135fd1e31cd03a203ba4643193 SHA512 75657ac140fc3aeac90342be78a18e999f62813a5ac0dd6de782c1ab603e7b602c2d6351650563d95113d9d936413178650bcdeac66d6774255708a6e4d025d7 MISC metadata.xml 334 BLAKE2B 7e10c3396a8bf28586240a95cc10a42de507d995b9f67dcf3b016cd586a973ce7478fe3974188dfb215123c8ca7188479d0d5be46ebcbb6b7790472f4e6ce225 SHA512 80ff1ae78c264618a7d5253d80ea5f4d1a15a568d5215d03dbe3062a591ec1c99d6625feff3b7baabe314bb284b5e5340c873b8846d05fd932f8cbc78df00d34 diff --git a/dev-libs/mongo-c-driver/mongo-c-driver-1.9.3.ebuild b/dev-libs/mongo-c-driver/mongo-c-driver-1.9.3.ebuild new file mode 100644 index 000000000000..8c5b2194c35f --- /dev/null +++ b/dev-libs/mongo-c-driver/mongo-c-driver-1.9.3.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="A high-performance MongoDB driver for C" +HOMEPAGE="https://github.com/mongodb/mongo-c-driver" +SRC_URI="https://github.com/mongodb/${PN}/releases/download/${PV}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~x86" +IUSE="debug examples libressl sasl ssl static-libs test" + +RDEPEND="app-arch/snappy:= + >=dev-libs/libbson-1.8.2 + sys-libs/zlib:= + sasl? ( dev-libs/cyrus-sasl ) + ssl? ( + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + )" +DEPEND="${RDEPEND} + test? ( dev-db/mongodb )" + +# No tests on x86 because tests require dev-db/mongodb which don't support +# x86 anymore (bug #645994) +RESTRICT="x86? ( test )" + +src_prepare() { + # remove bundled libs + rm -rv src/{libbson,zlib*} || die + + # bundled headers are gone + sed -e '/^ac_config_files/s@src/zlib-.*/zconf.h@@g' \ + -i configure || die + + # this test fails + sed -e '/test_topology_install (&suite)/d' \ + -i tests/test-libmongoc.c || die + + default +} + +src_configure() { + econf --with-libbson=system \ + --with-snappy=system \ + --with-zlib=system \ + --disable-optimizations \ + --disable-shm-counters \ + --disable-examples \ + --docdir="${EPREFIX}/usr/share/doc/${P}" \ + $(use_enable sasl) \ + $(use_enable ssl ssl $(usex libressl libressl openssl)) \ + $(use_enable debug) \ + $(use_enable static-libs static) +} + +src_install() { + default_src_install + + # Only install the mongoc man pages to avoid conflicts of common names + doman doc/man/mongoc_*.3 + + if ! use static-libs; then + find "${D}" -name '*.la' -delete || die + fi + + if use examples; then + docinto examples + dodoc -r examples/*.c examples/aggregation examples/bulk + fi +} + +src_test() { + # Avoid allocating too much disk space by using server.smallFiles = 1 + echo -e "storage:\n smallFiles: true" > "${T}/mongod.conf" || die + local PORT=27099 + mongod --port ${PORT} --bind_ip 127.0.0.1 --nounixsocket --fork \ + -f "${T}/mongod.conf" --dbpath="${T}" \ + --logpath="${T}/mongod.log" || die + MONGOC_TEST_HOST="127.0.0.1:${PORT}" emake test + kill $(<"${T}/mongod.lock") +} -- cgit v1.2.3