diff options
Diffstat (limited to 'dev-libs/mongo-c-driver')
23 files changed, 11 insertions, 1383 deletions
diff --git a/dev-libs/mongo-c-driver/Manifest b/dev-libs/mongo-c-driver/Manifest index d7d56ed6c129..f14c2a101476 100644 --- a/dev-libs/mongo-c-driver/Manifest +++ b/dev-libs/mongo-c-driver/Manifest @@ -1,44 +1,9 @@ -AUX mongo-c-driver-1.10.3-enable-tests.patch 866 BLAKE2B b4abf32f0915f28185b8e036ed5083a37795cb84980dee755649ca63322f29469d1be614c1d2d97455ca37639c25956cdba08efa320db213561cddd337b1bc31 SHA512 23e41702d7e1d64c3baab4045f87945c36f028f9802701c37316bbddba667c2e1c038c1234b3374c66b252e9b2ff068f3dfd513a397ee56d170397cc268277c2 -AUX mongo-c-driver-1.11.0-enable-tests.patch 866 BLAKE2B d07afeb06dc61ddf15bbb46576e21c773a87e71ef8618130f8055b03080147e68a5c9a9b805149eb328510ccea172b790df8a512b45241173c5f1a5052ce7db6 SHA512 ce81feab28a06d003c731d4b14a611f705c0f45123282b7a1836d7eb0befdca4a1a041896b3d4b9bb49027c3fafa72feebfff2a26657df56f21862d0125c13c6 -AUX mongo-c-driver-1.12.0-libressl.patch 637 BLAKE2B df52868ae9253125cc77973de4d385bdbebd1b90bfc7bc49bed4a4d6cbcb02768fd98b9bf110e9b463893131d44538f1d2ff2b4cba3ce2242832d1149cbd7498 SHA512 fd4b083695e7db3e407e2068fbc76ec063040f200f2087fdad6b21b15bb0da4a8eb74123908a3798af2b81811e8813c047d44117aebdc0d5393069c1ac653ed6 -AUX mongo-c-driver-1.13.0-enable-tests.patch 886 BLAKE2B 9a568e6498ec9ed7b08bcd8e5ae92c8e439bcce6bc04a91f128411efdbeafa64f3258f687963c861aea14c268587972ca679fbcd380098a3eefcc50a0c0a4e24 SHA512 c7f4ca10791c2eae60ea50214c1605d9d4ff48a804511d8dd9b181046f794a61499033ae0f0a8657257ee378dc30976e78984270d7fdc8cb4791b7690c89102f -AUX mongo-c-driver-1.13.0-no-uninstall.patch 866 BLAKE2B de38a7659be91d293b33c03036c14607bc3f6214a5970d28b8cbc02d77ee32a04f077e082cb7bf9ae126d13d5537a634c29e31230d444cfb72734fc417b0d604 SHA512 ccfca1aafb4b918a14950ccd99ca6b4f4a3d7d0178a726f6c9de7096a5e5ed700953672ae457a43064b61595df4e955774a4836e5d653d6d73b50cd5772f87d9 -AUX mongo-c-driver-1.13.1-drop-failing-test.patch 842 BLAKE2B ce51289a0e16e9c5fdd072081b85bfd7fcc2d5450a5c34f148f8b81a0ab13e7e79f7ffdbfb7f951566f3fd5af28c2f9cd0b491af91d2d8f3a89312189760c056 SHA512 77a0ea5dcc76ce1fd18a15ae910fa1507282f36f47068b357cac3ae63f4a4368da848dd077747080f423e80a34665dd677f083eab6c16d258e75d5c2f99817fa -AUX mongo-c-driver-1.14.0-enable-tests.patch 849 BLAKE2B ddae62c9f8d6f94f3c8f2bc48921f1825d8cef150026ea4a1047455901c9224c32f3ef2fdf9b426e73f752207fe9fc617c16547e0a2b7c4526350ba76358947c SHA512 4044c9580fb570640f1bd0e53c55a0699b5a22a93b78e2165ca08a0f99c6f09823e012021f86ff0b9ac2e1a2364b15b9eef77740833130ee08b4aed15afdb98d AUX mongo-c-driver-1.14.0-no-docs.patch 356 BLAKE2B 801760527a7511a0472d85ba6a6ca00d4b59306f5ec69f0f6b5d89c1858d342a7ec724c7dece3a56ea6506a794c876496e54c498d1d69ec8fb5d7869e68ee94e SHA512 e28f9099f382f7e96ce804c32d30976af4df26f2153c3dd250504b33f522f16ded73563a45f306a9439bf27e723c931df53217cc3735362120e88e4c8f3ce8aa AUX mongo-c-driver-1.16.2-enable-tests.patch 1167 BLAKE2B 750a692000dcb2abfc38d477dfa5df091ade3ffdf6c72f7a71e0c2da17c8ec875fefa6f049a7f57cfafdcebd7fe044fb6d68582b33845debd877de4760b86e57 SHA512 fb44a8f33f7905dfa71cc5bc0a9198872f008b499af3102f289fe46b57504abbf3eb4ec337d916dac1bd0284e3e955c4a7e75db1256e5b32e628443ffc447f29 AUX mongo-c-driver-1.16.2-single-doc-job.patch 845 BLAKE2B e0b49afc8e8085697ead1dc63673cbe0e25dc21e32cb418abeeb65ef2569d2e794e8141be5f6489f53423e1bf8dc70c343b18388b258f7179e97de0b9fb9abb3 SHA512 3a2e93b80ca63a8d13c10f1a530140ba2647676d1f955957833d71e50c05fba6a45400e294b2bbe324a1af9403ab07fdc1947e70835878e782252a2bad9276dd AUX mongo-c-driver-1.16.2-sphinx.patch 390 BLAKE2B e7ddac61c4f0b766d39149b0eba136c4c1f2a553b12516d7009be71ecfdc27fe189d10f54b602be4cf6ec608118b61086a34bc1acbe707a72a21484c3aba156f SHA512 4a8aaccd99117953c9351ab7da8e4ae1f420d2b053f4b02da98ee36bf3e7efd9095d81e67f16c3babd48ac56a21e92da653774d5914bdfdbecfd3656c441687f -DIST mongo-c-driver-0.98.2.tar.gz 5342760 BLAKE2B 399fb03464234c87dcb66647c5383c505e654238e72e86794fdbc56716590ea6637aa7bfb0d25c0fb6aae8fce6055741753ac33125cb1b475c7bfe1e198a0a1e SHA512 6e3abc31b1e0e02d3bb864882444a95aa01ec4a85ee77abdc52675a730790be7f1924f3c6ea36405ff0f2066e332302ca567bbfa35ba7b918bce81fb409600eb -DIST mongo-c-driver-1.1.10.tar.gz 5321144 BLAKE2B d63ba4b1a256b8b29654398a53d9ca46d49faad0e0327db0d51cfc4e2a1771568341ff4e7ba6ff2ff31fb11ad8a14c452e52cabdd83da7eb1c1ceb8af7bef7d2 SHA512 10ebd1bddc0c713c0934679974fb1ed29eda1bf8e2ebbe2a1ebbcba219574092c34c4b352231ec65ffe3e350d8d701ef85debaaa9f9c10e6ab36fc3fa29f69df -DIST mongo-c-driver-1.1.2.tar.gz 5443153 BLAKE2B f8004486baf6d2d3086e458bdb4bc8060462fd52ba700cbf05fdb9827adcbd087b61d7e0e00169cf635c8021983dc851b7f34c3e08d66efc65483fce98a85f74 SHA512 d420fc407f6a04c06a959b8971dc2643c987df5c3d82f2b13bfdf6a44e96bc377478c4d0e385abf67f21b56892c915c79675fe9ebf6efa9aab51fe452c5e6f95 -DIST mongo-c-driver-1.10.3.tar.gz 5616159 BLAKE2B 368e273aedc21ec79b804625276a49f7b670f027b410595b1e6455228dc776f0ed629d6ee599d16b9d0db08ec08a8e4dac2bdf06fa931ef1578849bf86d85726 SHA512 47af1baad1ad74bbbdf2fd22a437034d317a2f3ec02fee485e983ae6829b3f01af2649a09577f08144a88385fa940dfa211ea02bfa3c0e25b59dbe2090269603 -DIST mongo-c-driver-1.11.0.tar.gz 5681593 BLAKE2B 43f70943cc7f1a9f6285c71136b1284be7ef0f223b777d5884d795102910aedb8d4f516d5d50cdecfa9219835a884b237aa98ab3742067c36944f0abdc67a8e4 SHA512 d20d83c9470972641407550bf835701df28c196b1cf19097450a062fd3c560c452c658aa5080bb28066079cea27888731f3670e81bd1b0cd5be1b97a2988074e -DIST mongo-c-driver-1.12.0.tar.gz 5708175 BLAKE2B 113db7ec95f8e9b65433fc20def7224ee8d54c9ddb14cfc68ccf7ccb1995808f4c4c372806e85e1c8bb8b8541bb8b8b5236fd06d7605b78a4bbcee6560642bec SHA512 e4688da8a94fc499893b6001fc444b97fc05c89672fd9700bf30c6af7f1bbb02b1a658aa74470e0e5d5e72bc28a5753aa7dcda14dba7e75fbce0b4bb94b7373f -DIST mongo-c-driver-1.13.0.tar.gz 5734887 BLAKE2B ce5c78dde31edc753a6678e90889a0da7129cd1fcf1dce7222df4d25ca109b1bfbb545c755abf8e4cc39dd40dde7ba4c50dd51dcfc67c970e2b8eb278bd543fc SHA512 d2f5b04b3d2dbdeba4547ec1fe8a0da7bad5214de92fff480ef0ff7d97ea45d5e6347c11c249867d4905b1dd81b76c7cfbb9094a58df586dae881955ee246907 -DIST mongo-c-driver-1.13.1.tar.gz 5740487 BLAKE2B 92184df6f15f951564a7df14d8ec52eb0199a49af102d44c8fb7678db82a41f915c984e95f5301f533dde63139221cb6e161fa5053b9fcc33080abe1095d9c35 SHA512 454670a145a5f2272daa5ca88f2e7d7e42c9b7df62dfc29b3c4b602ef8f819a740890c40872fa47dc411cc5ef9a34b55a6feea3657a802a5be378c4dbe79f42d -DIST mongo-c-driver-1.14.0.tar.gz 6573651 BLAKE2B 0b1157473554a5aa49e61cf1c85dc7b1f1917581e661a4295876d4c93e72137b4c7c04e1b7545ba7272706499dbe868a36f1c888d2d07a8176f1c4dc01f9fa5f SHA512 99ca4001341d044a8ffc02a5d7175d40f8a998bdaad15a668a7db0558fa616ec18152faeda6da7f28b34c5d2cf4b649180c9390d2229e1342b6c4f6742816994 -DIST mongo-c-driver-1.15.1.tar.gz 6699867 BLAKE2B afb75b6f50173bbe161a37a5cd3afd7d2ce3d9ab73019e2a27e2b15b0be0a54c5e3b423dda2e6d65b85ff7c1dbbd883f3a0e0ebc244a13c531d2c39297d9a5e9 SHA512 7544900809dd008da110b412acc1e5e42ea908d804fdf3bced8100e48f1695844605407c9733b285b8833b636bcaec8687df25a01c9749612c61df2325214fe5 DIST mongo-c-driver-1.16.2.tar.gz 6888287 BLAKE2B 40d2b73f495a8c71ca8b3c39c1b3c85b4a01ea088428967ed49f4758ef749e3288b046bde767a83aad022933f30f7307a4be65141f477bb1dcf912b4099129d6 SHA512 0930a80692f08329cad558644c25c46da64a0c8b6a9fc7412db0f547dae63bf59e9d29ee774d329c63af186eea751670bf21ccee8cf255f8bc8d5bd78c0e736a DIST mongo-c-driver-1.17.0.tar.gz 7092911 BLAKE2B f93de6f3ded0f22ff8af65113ed207ca6dcc8ecbaedb24b33ddf7ada93b913eae33a802245f386d75fef01bf53c2d9630e68138a5715de001b7acea7dbde05f1 SHA512 49889b9d777dc3cb151b9cbef7bc2dd1785e327ae641569281efcc040d208cb034da3a74ae1115a033cc86e5b70079dab76c3478df8f171cc083d686f7568858 -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.98.2.ebuild 1840 BLAKE2B 2fb16cd97763ff2af007e76670f3d424dafc90c56171be4afca356811a2df7f9c2d6bc21f99d7195f4f09344b6910ea8003807ca9be006a6ce443ba662c9344c SHA512 9c3a12d619c20f018aebd9585504621bfb18067390c5cdfe1a61f3ea449377905718c5bcbd98c2fdbae4c0a8266d79b5482ca3eb8884a47512eac36d591b95c0 -EBUILD mongo-c-driver-1.1.10.ebuild 1951 BLAKE2B f2b3a15a6aa9a0887ae6ab52d7ee1e79d7b3fa06bb1b3684657719dc69f10894070d002ce0f06abad742ee753daaa4dd85e586785e29bf84e7bf9a2a4f2ec46b SHA512 7226237c58d4b94fa052ac455e7b67aaebac2bc14d285f74829fab289eb4d3a0dc4f3b7e5fdbc6ee28b6eeea59dbe0bc0cd3511c959844f0915cd2b1390875f3 -EBUILD mongo-c-driver-1.1.2-r1.ebuild 1948 BLAKE2B 65296d043f84794efa8d8c69c174211097c73f14fbc945f81d6068663c2b23cd2a0b4eea33b5832a32d0bd1adf05e051c481625f767ddf708dc2b2851a5999f8 SHA512 9c8b583be17df5d3a32ab71483c69f2974e6c3634285c1ea6ddf46ab305ffe8852bff95b26361efeca0b0051632b69b267c40041dc13dc8f90a0f766ceba486a -EBUILD mongo-c-driver-1.10.3.ebuild 2210 BLAKE2B 70d4b065d7b14b605665f03b231162156f30fe099a5fcbe273142be29e10fbfc26d0008974d750a06b079f536bf66eefb526463f85b826d9a482ae45f1f4fecb SHA512 db43cf703c2c4b26d116d4c2c57c4a50777bb8d0cde2d88542399ddb42c6055027f20a6e24b26ea933d258074929b1f37c1c4e8f067549be61c1e1f7b1247762 -EBUILD mongo-c-driver-1.11.0.ebuild 2312 BLAKE2B aa3443f6ff0d5b8d14878fa692fbb746c1d3af47a9c95bced9c0ff51db2cb6c702351b2d730c2825b4a22ba95021a127383e46f5bd76429d02b17b2c70eb46ba SHA512 da4c8f2b4f4f85f188f7546a4275ea60903ff85e1326fb01f9c559f48da40c75f6cb25a165e4dc5be46cb56f4820f183e01a3059842f9caec4468355113c46f4 -EBUILD mongo-c-driver-1.12.0.ebuild 2359 BLAKE2B fdc03adb7e0d826777a84a15137d5901ff5a8ddf56d5a89b6a0899f473d8e3bd9d9357a7f42961398b655bfe2d7a61b5b488375fae96e4995f23912e1a948adc SHA512 12e54afd326cb5697c46e792a54416bc745669c48928457dd7581dc74e953b7f0940bd3b839f26ac11eb503fc703ec14ec773ba5621ba6df7cb174fc74644daa -EBUILD mongo-c-driver-1.13.0-r1.ebuild 2447 BLAKE2B 9d78225d7dfad62360686f37b607c101ef25718224dc627fdc0d8d6b01733e0cec823cc951e5ee955bdd205c421e48ebed98e7e802a3dc974bd1a55b26b178a6 SHA512 d63b7db0564ee4443b72aed22f043f367004716509f4b91374a07cf70ae6dafe627efa936082ad7cf62176e412f0bc179b7bb3e6df88a2979824de00790df23b -EBUILD mongo-c-driver-1.13.1.ebuild 2482 BLAKE2B a023ec4ab0d023c30e6f664eb1209136429c19321f07fbdf7def6b2fcb7d66f873fd394d48db98f08f2466c4c46a9fbba8f8a48e57a355b09c2d9e4582d1ebda SHA512 f587c3e03233039d8869b5d75b8fd1cee617da4a1b4fd6acd97a043c78a7604320c42e78e5e21df0783da98092252e4301011804384988df548449a350e89a47 -EBUILD mongo-c-driver-1.14.0.ebuild 2551 BLAKE2B 63c599838498a5893429ff5def20a62f50205e9c6eb8cbc09fd32bcdacd8b70531cc46041023999a634f990c4982a3b94a027cef2314e1b6d5e0a8edb8d9768a SHA512 3ad5c4651b4c3d00c9c01159648750f46cc52e8c9c910ca5534518c7ee7255bba6069ef5a26f5734d52b7a978cdf089ffac52af10fcc15c41a573e6cd6f7fcb6 -EBUILD mongo-c-driver-1.15.1.ebuild 2536 BLAKE2B b4d2263f92d32b3605188b6ea91d8dd1a3100ad13e73c300b6efe5a684483a9669c389d591c6681c5f6a2a1501bbc1d2fc4c1db88533c868ca1b4fe30348203c SHA512 393ffad442d3db5ad0661459f3ef9cbe9d37a5087079436ac6c534dee378d207c802f928b6dbef13626d6c77026971215c52413e8ea7bf21167f74526b9b6560 EBUILD mongo-c-driver-1.16.2.ebuild 2540 BLAKE2B bb6de7ee9d45012925342455a1b5510769009620a85046c7aaa5edf6ad8b1be21463559528976118ed6628cfd911ab76fc5e7261a9e0a71911ef484af573002d SHA512 199881586c7b65d760667630d6b6fcca3f284ad5165fde7031a59885ae2a036578d1da6cf2f1c4400e88e91f70f3107846728f97f737fc3072efbb7334a8b8fd -EBUILD mongo-c-driver-1.17.0.ebuild 2493 BLAKE2B 7b32636dba41d0baefd313d353f2ec5edeeddb7a233eab73fc2ce9d120b0554276a9bda73c39d5e25977655c97d9c3157caa6276d709e307d38e3b1af60937ba SHA512 3b2fcd5f061d97d0bf3c9b31823b703d201bffab759ab9da93ffb68d96cdbb8fe82f0ce5c92516bf83283bf380543ef4df5ff8e582a4f4672bdd1a9c6bc8199a -EBUILD mongo-c-driver-1.3.5.ebuild 2171 BLAKE2B 62807837e21c6ce5c098fb5160aae99b01d6dd01550d3bd837ca727616036ec453a9e37f0b4ae71979bdce01344a265d0ccc23d324d9827084bfc302b980a6d1 SHA512 1b22d611b3c235883d4115fbf82d800fae0fd81453d2b4dff8abe8dbeab065b04e2abd506ad6050c10862a7bb7f28cc7ad41b08bf16a53598c20eabcaaec4cd8 -EBUILD mongo-c-driver-1.6.2.ebuild 2070 BLAKE2B b2a25755c6a37247c42f41134684387b2e584a241a411fce98c96f057ef18c050bc4e8ec3aadc4de716fa7369ca797ca75cf9ac2fb39d3dba0827190d9cad2be SHA512 22a44789068ec7277d10feb6d41b82526b09aad1213ae8b9827131e63df1d78ce07704f295178cfa085a6c6c645f7d456150caca51265b00dd8bf6cca2c6f42c -EBUILD mongo-c-driver-1.8.2.ebuild 2129 BLAKE2B 138cbaa6afbda5ea53dd3e039e17aa9ba84aad005f372e0568d82c5a373b1550f38ee8da005b00a788ecff5e824f3c5c6c1e3dab2839f3f009531a859749f98f SHA512 35ed648328d28eac36c4cd5ce03301220d9677fd0492f2d9a5d1b2d33d859817f38a1374dc7ec273e6fd59bcc5aa0480729a38ad131a5db4e723dd7c606b299d -EBUILD mongo-c-driver-1.9.3.ebuild 2131 BLAKE2B 59aa363b4bffd5ebcabf8644341884b9cba4caa7afbe03dbaab01c08aff11c29b2d1b3b4e3f109a0f792b67f8b3d5914b59d8aad48c9c2ab065c36820a8fb3dc SHA512 eedb120627a3a4510783b42dc03985a595bc2ce1e6cfe75fdec9f1748ab506b9549a2a8a5e0d7db05d2fef5032a115d03eb798dcb8f2982fa2317dbc01783633 +EBUILD mongo-c-driver-1.17.0.ebuild 2469 BLAKE2B 9d774c4f93c510d3f176f58c152f64e995c15f4d6f31e5653cc4c12bb5b0a4b104605cb1c5e573958d898d3cfce222dfe5af4b9e782571982540fa6f9b648236 SHA512 8e3b0ddd189dd7a05446a6a99cebb07c096b0d31fa3a2efd90db88abb1b8ef0632cea131d062de56b57896f52847d9a4303f45457cf849068563f5033db71889 MISC metadata.xml 334 BLAKE2B 7e10c3396a8bf28586240a95cc10a42de507d995b9f67dcf3b016cd586a973ce7478fe3974188dfb215123c8ca7188479d0d5be46ebcbb6b7790472f4e6ce225 SHA512 80ff1ae78c264618a7d5253d80ea5f4d1a15a568d5215d03dbe3062a591ec1c99d6625feff3b7baabe314bb284b5e5340c873b8846d05fd932f8cbc78df00d34 diff --git a/dev-libs/mongo-c-driver/files/mongo-c-driver-1.10.3-enable-tests.patch b/dev-libs/mongo-c-driver/files/mongo-c-driver-1.10.3-enable-tests.patch deleted file mode 100644 index af26b6953139..000000000000 --- a/dev-libs/mongo-c-driver/files/mongo-c-driver-1.10.3-enable-tests.patch +++ /dev/null @@ -1,25 +0,0 @@ -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 2eeb6cb..aeaa23b 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -109,7 +109,6 @@ if (ENABLE_BSON STREQUAL SYSTEM) - message ("-- libbson include path \"${BSON_INCLUDE_DIRS}\"") - message ("-- libbson libraries \"${BSON_LIBRARIES}\"") - message ("-- disabling test-libmongoc since using system libbson") -- SET (ENABLE_TESTS OFF) - - if (ENABLE_STATIC MATCHES "ON|AUTO") - find_package (libbson-static-1.0 -diff --git a/src/libbson/tests/test-bson.c b/src/libbson/tests/test-bson.c -index 51514ed..accb251 100644 ---- a/src/libbson/tests/test-bson.c -+++ b/src/libbson/tests/test-bson.c -@@ -18,7 +18,7 @@ - #include <bson.h> - #include <bcon.h> - #define BSON_INSIDE --#include <bson-private.h> -+#include "bson-private.h" - #undef BSON_INSIDE - #include <fcntl.h> - #include <time.h> diff --git a/dev-libs/mongo-c-driver/files/mongo-c-driver-1.11.0-enable-tests.patch b/dev-libs/mongo-c-driver/files/mongo-c-driver-1.11.0-enable-tests.patch deleted file mode 100644 index 67fafafc93b2..000000000000 --- a/dev-libs/mongo-c-driver/files/mongo-c-driver-1.11.0-enable-tests.patch +++ /dev/null @@ -1,25 +0,0 @@ -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 860e4ea..7d646b1 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -110,7 +110,6 @@ if (ENABLE_BSON STREQUAL SYSTEM) - message ("-- libbson include path \"${BSON_INCLUDE_DIRS}\"") - message ("-- libbson libraries \"${BSON_LIBRARIES}\"") - message ("-- disabling test-libmongoc since using system libbson") -- SET (ENABLE_TESTS OFF) - - if (ENABLE_STATIC MATCHES "ON|AUTO") - find_package (libbson-static-1.0 -diff --git a/src/libbson/tests/test-bson.c b/src/libbson/tests/test-bson.c -index 51514ed..accb251 100644 ---- a/src/libbson/tests/test-bson.c -+++ b/src/libbson/tests/test-bson.c -@@ -18,7 +18,7 @@ - #include <bson.h> - #include <bcon.h> - #define BSON_INSIDE --#include <bson-private.h> -+#include "bson-private.h" - #undef BSON_INSIDE - #include <fcntl.h> - #include <time.h> diff --git a/dev-libs/mongo-c-driver/files/mongo-c-driver-1.12.0-libressl.patch b/dev-libs/mongo-c-driver/files/mongo-c-driver-1.12.0-libressl.patch deleted file mode 100644 index e61bffafeed6..000000000000 --- a/dev-libs/mongo-c-driver/files/mongo-c-driver-1.12.0-libressl.patch +++ /dev/null @@ -1,15 +0,0 @@ -diff --git a/src/libmongoc/CMakeLists.txt b/src/libmongoc/CMakeLists.txt -index d09d706..5d84225 100644 ---- a/src/libmongoc/CMakeLists.txt -+++ b/src/libmongoc/CMakeLists.txt -@@ -109,7 +109,9 @@ if (NOT ENABLE_SSL STREQUAL OFF) - if (LIBRESSL_FOUND) - message ("-- Found ${LIBRESSL_LIBRARIES}") - set (SSL_LIBRARIES ${LIBRESSL_LIBRARIES}) -- include_directories ("${LIBRESSL_INCLUDE_DIRS}") -+ if (${LIBRESSL_INCLUDE_DIRS}) -+ include_directories ("${LIBRESSL_INCLUDE_DIRS}") -+ endif () - link_directories ("${LIBRESSL_LIBRARY_DIRS}") - set (LIBRESSL 1) - else () diff --git a/dev-libs/mongo-c-driver/files/mongo-c-driver-1.13.0-enable-tests.patch b/dev-libs/mongo-c-driver/files/mongo-c-driver-1.13.0-enable-tests.patch deleted file mode 100644 index 983e025b9170..000000000000 --- a/dev-libs/mongo-c-driver/files/mongo-c-driver-1.13.0-enable-tests.patch +++ /dev/null @@ -1,25 +0,0 @@ -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 22d1f4f..8ab33c6 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -118,7 +118,6 @@ if (ENABLE_BSON STREQUAL SYSTEM) - message ("-- libbson include path \"${BSON_INCLUDE_DIRS}\"") - message ("-- libbson libraries \"${BSON_LIBRARIES}\"") - message ("-- disabling test-libmongoc since using system libbson") -- SET (ENABLE_TESTS OFF) - - if (ENABLE_STATIC MATCHES "ON|AUTO") - find_package (libbson-static-1.0 -diff --git a/src/libbson/tests/test-bson.c b/src/libbson/tests/test-bson.c -index 6ac94f3..cec430f 100644 ---- a/src/libbson/tests/test-bson.c -+++ b/src/libbson/tests/test-bson.c -@@ -18,7 +18,7 @@ - #include <bson/bson.h> - #include <bson/bcon.h> - #define BSON_INSIDE --#include <bson/bson-private.h> -+#include "bson/bson-private.h" - #undef BSON_INSIDE - #include <fcntl.h> - #include <time.h> diff --git a/dev-libs/mongo-c-driver/files/mongo-c-driver-1.13.0-no-uninstall.patch b/dev-libs/mongo-c-driver/files/mongo-c-driver-1.13.0-no-uninstall.patch deleted file mode 100644 index 64a90bbe3ece..000000000000 --- a/dev-libs/mongo-c-driver/files/mongo-c-driver-1.13.0-no-uninstall.patch +++ /dev/null @@ -1,27 +0,0 @@ -diff --git a/CMakeLists.txt b/CMakeLists.txt -index f7a0dfe..22d1f4f 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -271,7 +271,6 @@ if (ENABLE_MONGOC) - VERSION_CURRENT - VERSION_RELEASED - # This sub-directory is added later, so manually include here -- generate_uninstall/CMakeLists.txt - ) - - set_local_dist (top_DIST ${top_DIST_local}) -@@ -341,14 +340,8 @@ if (WIN32) - else () - set (UNINSTALL_PROG "uninstall.sh") - endif () --set (UNINSTALL_PROG_DIR "${CMAKE_INSTALL_FULL_DATADIR}/mongo-c-driver") - - # Create uninstall program and associated uninstall target - # - # This needs to be last (after all other add_subdirectory calls) to ensure that - # the generated uninstall program is complete and correct --add_subdirectory (generate_uninstall) -- --add_custom_target (uninstall -- COMMAND "${UNINSTALL_PROG_DIR}/${UNINSTALL_PROG}" --) diff --git a/dev-libs/mongo-c-driver/files/mongo-c-driver-1.13.1-drop-failing-test.patch b/dev-libs/mongo-c-driver/files/mongo-c-driver-1.13.1-drop-failing-test.patch deleted file mode 100644 index 6ef137fdba7c..000000000000 --- a/dev-libs/mongo-c-driver/files/mongo-c-driver-1.13.1-drop-failing-test.patch +++ /dev/null @@ -1,17 +0,0 @@ -diff --git a/src/libmongoc/tests/test-mongoc-topology.c b/src/libmongoc/tests/test-mongoc-topology.c -index d1ca7cf..245a470 100644 ---- a/src/libmongoc/tests/test-mongoc-topology.c -+++ b/src/libmongoc/tests/test-mongoc-topology.c -@@ -1964,12 +1964,6 @@ test_topology_install (TestSuite *suite) - NULL, - NULL, - test_framework_skip_if_slow); -- TestSuite_AddFull (suite, -- "/Topology/multiple_selection_errors", -- test_multiple_selection_errors, -- NULL, -- NULL, -- test_framework_skip_if_offline); - TestSuite_AddMockServerTest ( - suite, "/Topology/connect_timeout/succeed", test_select_after_timeout); - TestSuite_AddMockServerTest ( 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 deleted file mode 100644 index 76202b5e387a..000000000000 --- a/dev-libs/mongo-c-driver/files/mongo-c-driver-1.14.0-enable-tests.patch +++ /dev/null @@ -1,25 +0,0 @@ -diff --git a/CMakeLists.txt b/CMakeLists.txt -index c0e01a8..3371dae 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -163,7 +163,6 @@ if (ENABLE_BSON STREQUAL SYSTEM) - message ("-- libbson include path \"${BSON_INCLUDE_DIRS}\"") - message ("-- libbson libraries \"${BSON_LIBRARIES}\"") - message ("-- disabling test-libmongoc since using system libbson") -- SET (ENABLE_TESTS OFF) - - if (ENABLE_STATIC MATCHES "ON|AUTO") - find_package (libbson-static-1.0 -diff --git a/src/libbson/tests/test-bson.c b/src/libbson/tests/test-bson.c -index 95356fa..9f9aea3 100644 ---- a/src/libbson/tests/test-bson.c -+++ b/src/libbson/tests/test-bson.c -@@ -17,7 +17,7 @@ - - #include <bson/bson.h> - #include <bson/bcon.h> --#include <bson/bson-private.h> -+#include "bson/bson-private.h" - #include <fcntl.h> - #include <time.h> - diff --git a/dev-libs/mongo-c-driver/mongo-c-driver-0.98.2.ebuild b/dev-libs/mongo-c-driver/mongo-c-driver-0.98.2.ebuild deleted file mode 100644 index e57a3560443f..000000000000 --- a/dev-libs/mongo-c-driver/mongo-c-driver-0.98.2.ebuild +++ /dev/null @@ -1,70 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -inherit autotools eutils - -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 ~s390 ~x86" -IUSE="debug examples libressl sasl ssl static-libs test" - -RDEPEND=">=dev-libs/libbson-0.98.0 - sasl? ( dev-libs/cyrus-sasl ) - ssl? ( - !libressl? ( dev-libs/openssl:0= ) - libressl? ( dev-libs/libressl:0= ) - )" -DEPEND="${RDEPEND} - test? ( dev-db/mongodb )" - -DOCS=( NEWS README.rst TUTORIAL.md ) - -# No tests on x86 because tests require dev-db/mongodb which don't support -# x86 anymore (bug #645994) -RESTRICT="!test? ( test ) x86? ( test )" - -src_prepare() { - # https://github.com/mongodb/mongo-c-driver/issues/54 - sed -i -e "s/PTHREAD_LIBS/PTHREAD_CFLAGS/g" src/Makefile.am \ - tests/Makefile.am || die - eautoreconf -} - -src_configure() { - econf --disable-hardening \ - --disable-optimizations \ - --disable-examples \ - $(use_enable sasl) \ - $(use_enable ssl) \ - $(use_enable debug) \ - $(use_enable static-libs static) -} - -src_install() { - emake DESTDIR="${D}" install - doman doc/*.3 - - use static-libs || find "${D}" -name '*.la' -delete - - if use examples; then - insinto /usr/share/${PF}/examples - doins -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" - 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 `cat "${T}/mongod.lock"` -} diff --git a/dev-libs/mongo-c-driver/mongo-c-driver-1.1.10.ebuild b/dev-libs/mongo-c-driver/mongo-c-driver-1.1.10.ebuild deleted file mode 100644 index 06580e8e4bb9..000000000000 --- a/dev-libs/mongo-c-driver/mongo-c-driver-1.1.10.ebuild +++ /dev/null @@ -1,74 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -inherit autotools eutils - -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 ~s390 ~x86" -IUSE="debug examples libressl sasl ssl static-libs test" - -RDEPEND=">=dev-libs/libbson-1.1.10 - sasl? ( dev-libs/cyrus-sasl ) - ssl? ( - !libressl? ( dev-libs/openssl:0= ) - libressl? ( dev-libs/libressl:0= ) - )" -DEPEND="${RDEPEND} - test? ( dev-db/mongodb )" - -DOCS=( NEWS README.rst TUTORIAL.md ) - -# No tests on x86 because tests require dev-db/mongodb which don't support -# x86 anymore (bug #645994) -RESTRICT="!test? ( test ) x86? ( test )" - -src_prepare() { - rm -r src/libbson || die - sed -i -e '/SUBDIRS/s:src/libbson::g' Makefile.am || die - - # https://github.com/mongodb/mongo-c-driver/issues/54 - sed -i -e "s/PTHREAD_LIBS/PTHREAD_CFLAGS/g" src/Makefile.am \ - tests/Makefile.am || die - eautoreconf -} - -src_configure() { - econf --with-libbson=system \ - --disable-hardening \ - --disable-optimizations \ - --disable-examples \ - $(use_enable sasl) \ - $(use_enable ssl) \ - $(use_enable debug) \ - $(use_enable static-libs static) -} - -src_install() { - emake DESTDIR="${D}" install - doman doc/*.3 - - use static-libs || find "${D}" -name '*.la' -delete - - if use examples; then - insinto /usr/share/${PF}/examples - doins -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" - 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 `cat "${T}/mongod.lock"` -} diff --git a/dev-libs/mongo-c-driver/mongo-c-driver-1.1.2-r1.ebuild b/dev-libs/mongo-c-driver/mongo-c-driver-1.1.2-r1.ebuild deleted file mode 100644 index 8bb38f883513..000000000000 --- a/dev-libs/mongo-c-driver/mongo-c-driver-1.1.2-r1.ebuild +++ /dev/null @@ -1,74 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -inherit autotools eutils - -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 ~s390 ~x86" -IUSE="debug examples libressl sasl ssl static-libs test" - -RDEPEND=">=dev-libs/libbson-1.0 - sasl? ( dev-libs/cyrus-sasl ) - ssl? ( - !libressl? ( dev-libs/openssl:0= ) - libressl? ( dev-libs/libressl:0= ) - )" -DEPEND="${RDEPEND} - test? ( dev-db/mongodb )" - -DOCS=( NEWS README.rst TUTORIAL.md ) - -# No tests on x86 because tests require dev-db/mongodb which don't support -# x86 anymore (bug #645994) -RESTRICT="!test? ( test ) x86? ( test )" - -src_prepare() { - rm -r src/libbson || die - sed -i -e '/SUBDIRS/s:src/libbson::g' Makefile.am || die - - # https://github.com/mongodb/mongo-c-driver/issues/54 - sed -i -e "s/PTHREAD_LIBS/PTHREAD_CFLAGS/g" src/Makefile.am \ - tests/Makefile.am || die - eautoreconf -} - -src_configure() { - econf --with-libbson=system \ - --disable-hardening \ - --disable-optimizations \ - --disable-examples \ - $(use_enable sasl) \ - $(use_enable ssl) \ - $(use_enable debug) \ - $(use_enable static-libs static) -} - -src_install() { - emake DESTDIR="${D}" install - doman doc/*.3 - - use static-libs || find "${D}" -name '*.la' -delete - - if use examples; then - insinto /usr/share/${PF}/examples - doins -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" - 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 `cat "${T}/mongod.lock"` -} diff --git a/dev-libs/mongo-c-driver/mongo-c-driver-1.10.3.ebuild b/dev-libs/mongo-c-driver/mongo-c-driver-1.10.3.ebuild deleted file mode 100644 index 7e671d96e059..000000000000 --- a/dev-libs/mongo-c-driver/mongo-c-driver-1.10.3.ebuild +++ /dev/null @@ -1,86 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit cmake-utils - -DESCRIPTION="Client library written in C for MongoDB" -HOMEPAGE="https://github.com/mongodb/mongo-c-driver" -SRC_URI="https://github.com/mongodb/mongo-c-driver/archive/${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~amd64 ~hppa ~s390 ~x86" -IUSE="debug examples libressl sasl ssl static-libs test" -REQUIRED_USE="test? ( static-libs )" - -RDEPEND="app-arch/snappy:= - >=dev-libs/libbson-1.10.3 - dev-python/sphinx - 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 - dev-libs/libbson[static-libs] - )" - -# No tests on x86 because tests require dev-db/mongodb which don't support -# x86 anymore (bug #645994) -RESTRICT="!test? ( test ) x86? ( test )" - -PATCHES=( - "${FILESDIR}/${P}-enable-tests.patch" # enable tests without libbson -) - -src_prepare() { - cmake-utils_src_prepare - - # copy private headers for tests since we don't build libbson - if use test; then - for f in bson-private.h bson-iso8601-private.h bson-thread-private.h; do - cp -v src/libbson/src/bson/${f} src/libbson/tests/ || die - done - fi -} - -src_configure() { - local mycmakeargs=( - -DCMAKE_SKIP_RPATH=ON # mongoc-stat insecure runpath - -DENABLE_BSON=SYSTEM - -DENABLE_EXAMPLES=OFF - -DENABLE_MAN_PAGES=ON - -DENABLE_MONGOC=ON - -DENABLE_SNAPPY=SYSTEM - -DENABLE_ZLIB=SYSTEM - -DENABLE_SASL="$(usex sasl CYRUS OFF)" - -DENABLE_SSL="$(usex ssl $(usex libressl LIBRESSL OPENSSL) OFF)" - -DENABLE_STATIC="$(usex static-libs ON OFF)" - -DENABLE_TESTS="$(usex test ON OFF)" - -DENABLE_TRACING="$(usex debug ON OFF)" - ) - - cmake-utils_src_configure -} - -src_test() { - local PORT=27099 - mongod --port ${PORT} --bind_ip 127.0.0.1 --nounixsocket --fork \ - --dbpath="${T}" --logpath="${T}/mongod.log" || die - MONGOC_TEST_URI="mongodb://[127.0.0.1]:${PORT}" ../mongo-c-driver-${PV}_build/src/libmongoc/test-libmongoc || die - kill $(<"${T}/mongod.lock") -} - -src_install() { - if use examples; then - docinto examples - dodoc src/libmongoc/examples/*.c - fi - - cmake-utils_src_install -} diff --git a/dev-libs/mongo-c-driver/mongo-c-driver-1.11.0.ebuild b/dev-libs/mongo-c-driver/mongo-c-driver-1.11.0.ebuild deleted file mode 100644 index ec8f06577251..000000000000 --- a/dev-libs/mongo-c-driver/mongo-c-driver-1.11.0.ebuild +++ /dev/null @@ -1,87 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit cmake-utils - -DESCRIPTION="Client library written in C for MongoDB" -HOMEPAGE="https://github.com/mongodb/mongo-c-driver" -SRC_URI="https://github.com/mongodb/mongo-c-driver/archive/${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~amd64 ~hppa ~s390 ~x86" -IUSE="debug examples libressl sasl ssl static-libs test" -REQUIRED_USE="test? ( static-libs )" - -RDEPEND="app-arch/snappy:= - >=dev-libs/libbson-${PV} - dev-python/sphinx - 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 - dev-libs/libbson[static-libs] - )" - -# No tests on x86 because tests require dev-db/mongodb which don't support -# x86 anymore (bug #645994) -RESTRICT="!test? ( test ) x86? ( test )" - -PATCHES=( - "${FILESDIR}/${P}-enable-tests.patch" # enable tests without libbson -) - -src_prepare() { - cmake-utils_src_prepare - - # copy private headers for tests since we don't build libbson - if use test; then - for f in bson-fnv-private.h bson-iso8601-private.h bson-private.h bson-thread-private.h; do - cp -v src/libbson/src/bson/${f} src/libbson/tests/ || die - done - fi -} - -src_configure() { - local mycmakeargs=( - -DCMAKE_SKIP_RPATH=ON # mongoc-stat insecure runpath - -DENABLE_BSON=SYSTEM - -DENABLE_EXAMPLES=OFF - -DENABLE_MAN_PAGES=ON - -DENABLE_MONGOC=ON - -DENABLE_SNAPPY=SYSTEM - -DENABLE_ZLIB=SYSTEM - -DENABLE_SASL="$(usex sasl CYRUS OFF)" - -DENABLE_SSL="$(usex ssl $(usex libressl LIBRESSL OPENSSL) OFF)" - -DENABLE_STATIC="$(usex static-libs ON OFF)" - -DENABLE_TESTS="$(usex test ON OFF)" - -DENABLE_TRACING="$(usex debug ON OFF)" - ) - - cmake-utils_src_configure -} - -# FEATURES="test -network-sandbox" USE="static-libs" emerge dev-libs/mongo-c-driver -src_test() { - local PORT=27099 - mongod --port ${PORT} --bind_ip 127.0.0.1 --nounixsocket --fork \ - --dbpath="${T}" --logpath="${T}/mongod.log" || die - MONGOC_TEST_URI="mongodb://[127.0.0.1]:${PORT}" ../mongo-c-driver-${PV}_build/src/libmongoc/test-libmongoc || die - kill $(<"${T}/mongod.lock") -} - -src_install() { - if use examples; then - docinto examples - dodoc src/libmongoc/examples/*.c - fi - - cmake-utils_src_install -} diff --git a/dev-libs/mongo-c-driver/mongo-c-driver-1.12.0.ebuild b/dev-libs/mongo-c-driver/mongo-c-driver-1.12.0.ebuild deleted file mode 100644 index 0755827f8491..000000000000 --- a/dev-libs/mongo-c-driver/mongo-c-driver-1.12.0.ebuild +++ /dev/null @@ -1,88 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit cmake-utils - -DESCRIPTION="Client library written in C for MongoDB" -HOMEPAGE="https://github.com/mongodb/mongo-c-driver" -SRC_URI="https://github.com/mongodb/mongo-c-driver/archive/${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~amd64 ~hppa ~s390 ~x86" -IUSE="debug examples libressl sasl ssl static-libs test" -REQUIRED_USE="test? ( static-libs )" - -RDEPEND="app-arch/snappy:= - >=dev-libs/libbson-${PV} - dev-python/sphinx - 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 - dev-libs/libbson[static-libs] - )" - -# No tests on x86 because tests require dev-db/mongodb which don't support -# x86 anymore (bug #645994) -RESTRICT="!test? ( test ) x86? ( test )" - -PATCHES=( - "${FILESDIR}/${PN}-1.11.0-enable-tests.patch" # enable tests without libbson - "${FILESDIR}/${PN}-1.12.0-libressl.patch" # Bug 662654 -) - -src_prepare() { - cmake-utils_src_prepare - - # copy private headers for tests since we don't build libbson - if use test; then - for f in bson-fnv-private.h bson-iso8601-private.h bson-private.h bson-thread-private.h; do - cp -v src/libbson/src/bson/${f} src/libbson/tests/ || die - done - fi -} - -src_configure() { - local mycmakeargs=( - -DCMAKE_SKIP_RPATH=ON # mongoc-stat insecure runpath - -DENABLE_BSON=SYSTEM - -DENABLE_EXAMPLES=OFF - -DENABLE_MAN_PAGES=ON - -DENABLE_MONGOC=ON - -DENABLE_SNAPPY=SYSTEM - -DENABLE_ZLIB=SYSTEM - -DENABLE_SASL="$(usex sasl CYRUS OFF)" - -DENABLE_SSL="$(usex ssl $(usex libressl LIBRESSL OPENSSL) OFF)" - -DENABLE_STATIC="$(usex static-libs ON OFF)" - -DENABLE_TESTS="$(usex test ON OFF)" - -DENABLE_TRACING="$(usex debug ON OFF)" - ) - - cmake-utils_src_configure -} - -# FEATURES="test" USE="static-libs" emerge dev-libs/mongo-c-driver -src_test() { - local PORT=27099 - mongod --port ${PORT} --bind_ip 127.0.0.1 --nounixsocket --fork \ - --dbpath="${T}" --logpath="${T}/mongod.log" || die - MONGOC_TEST_URI="mongodb://[127.0.0.1]:${PORT}" ../mongo-c-driver-${PV}_build/src/libmongoc/test-libmongoc || die - kill $(<"${T}/mongod.lock") -} - -src_install() { - if use examples; then - docinto examples - dodoc src/libmongoc/examples/*.c - fi - - cmake-utils_src_install -} diff --git a/dev-libs/mongo-c-driver/mongo-c-driver-1.13.0-r1.ebuild b/dev-libs/mongo-c-driver/mongo-c-driver-1.13.0-r1.ebuild deleted file mode 100644 index 415dc7078333..000000000000 --- a/dev-libs/mongo-c-driver/mongo-c-driver-1.13.0-r1.ebuild +++ /dev/null @@ -1,91 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit cmake-utils - -DESCRIPTION="Client library written in C for MongoDB" -HOMEPAGE="https://github.com/mongodb/mongo-c-driver" -SRC_URI="https://github.com/mongodb/mongo-c-driver/archive/${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="amd64 ~hppa ~s390 x86" -IUSE="debug examples icu libressl sasl ssl static-libs test" -REQUIRED_USE="test? ( static-libs )" - -RDEPEND="app-arch/snappy:= - >=dev-libs/libbson-${PV} - dev-python/sphinx - sys-libs/zlib:= - icu? ( dev-libs/icu:= ) - sasl? ( dev-libs/cyrus-sasl:= ) - ssl? ( - !libressl? ( dev-libs/openssl:0= ) - libressl? ( dev-libs/libressl:0= ) - )" -DEPEND="${RDEPEND} - test? ( - dev-db/mongodb - dev-libs/libbson[static-libs] - )" - -# No tests on x86 because tests require dev-db/mongodb which don't support -# x86 anymore (bug #645994) -RESTRICT="!test? ( test ) x86? ( test )" - -PATCHES=( - "${FILESDIR}/${P}-no-uninstall.patch" - "${FILESDIR}/${P}-enable-tests.patch" # enable tests with system libbson -) - -src_prepare() { - cmake-utils_src_prepare - - # copy private headers for tests since we don't build libbson - if use test; then - mkdir -p src/libbson/tests/bson || die - for f in bson-fnv-private.h bson-iso8601-private.h bson-private.h bson-thread-private.h; do - cp -v src/libbson/src/bson/${f} src/libbson/tests/bson/ || die - done - fi -} - -src_configure() { - local mycmakeargs=( - -DCMAKE_SKIP_RPATH=ON # mongoc-stat insecure runpath - -DENABLE_BSON=SYSTEM - -DENABLE_EXAMPLES=OFF - -DENABLE_ICU="$(usex icu ON OFF)" - -DENABLE_MAN_PAGES=ON - -DENABLE_MONGOC=ON - -DENABLE_SNAPPY=SYSTEM - -DENABLE_ZLIB=SYSTEM - -DENABLE_SASL="$(usex sasl CYRUS OFF)" - -DENABLE_SSL="$(usex ssl $(usex libressl LIBRESSL OPENSSL) OFF)" - -DENABLE_STATIC="$(usex static-libs ON OFF)" - -DENABLE_TESTS="$(usex test ON OFF)" - -DENABLE_TRACING="$(usex debug ON OFF)" - ) - - cmake-utils_src_configure -} - -# FEATURES="test" USE="static-libs" emerge dev-libs/mongo-c-driver -src_test() { - local PORT=27099 - mongod --port ${PORT} --bind_ip 127.0.0.1 --nounixsocket --fork \ - --dbpath="${T}" --logpath="${T}/mongod.log" || die - MONGOC_TEST_URI="mongodb://[127.0.0.1]:${PORT}" ../mongo-c-driver-${PV}_build/src/libmongoc/test-libmongoc || die - kill $(<"${T}/mongod.lock") -} - -src_install() { - if use examples; then - docinto examples - dodoc src/libmongoc/examples/*.c - fi - - cmake-utils_src_install -} diff --git a/dev-libs/mongo-c-driver/mongo-c-driver-1.13.1.ebuild b/dev-libs/mongo-c-driver/mongo-c-driver-1.13.1.ebuild deleted file mode 100644 index e61cc887ea3d..000000000000 --- a/dev-libs/mongo-c-driver/mongo-c-driver-1.13.1.ebuild +++ /dev/null @@ -1,92 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit cmake-utils - -DESCRIPTION="Client library written in C for MongoDB" -HOMEPAGE="https://github.com/mongodb/mongo-c-driver" -SRC_URI="https://github.com/mongodb/mongo-c-driver/archive/${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~amd64 ~hppa ~s390 ~x86" -IUSE="debug examples icu libressl sasl ssl static-libs test" -REQUIRED_USE="test? ( static-libs )" - -RDEPEND="app-arch/snappy:= - >=dev-libs/libbson-${PV} - dev-python/sphinx - sys-libs/zlib:= - icu? ( dev-libs/icu:= ) - sasl? ( dev-libs/cyrus-sasl:= ) - ssl? ( - !libressl? ( dev-libs/openssl:0= ) - libressl? ( dev-libs/libressl:0= ) - )" -DEPEND="${RDEPEND} - test? ( - dev-db/mongodb - dev-libs/libbson[static-libs] - )" - -# No tests on x86 because tests require dev-db/mongodb which don't support -# x86 anymore (bug #645994) -RESTRICT="!test? ( test ) x86? ( test )" - -PATCHES=( - "${FILESDIR}/${PN}-1.13.0-enable-tests.patch" # enable tests with system libbson - "${FILESDIR}/${P}-drop-failing-test.patch" # one test fails -) - -src_prepare() { - cmake-utils_src_prepare - - # copy private headers for tests since we don't build libbson - if use test; then - mkdir -p src/libbson/tests/bson || die - for f in bson-fnv-private.h bson-iso8601-private.h bson-private.h; do - cp -v src/libbson/src/bson/${f} src/libbson/tests/bson/ || die - done - fi -} - -src_configure() { - local mycmakeargs=( - -DCMAKE_SKIP_RPATH=ON # mongoc-stat insecure runpath - -DENABLE_BSON=SYSTEM - -DENABLE_EXAMPLES=OFF - -DENABLE_ICU="$(usex icu ON OFF)" - -DENABLE_MAN_PAGES=ON - -DENABLE_MONGOC=ON - -DENABLE_SNAPPY=SYSTEM - -DENABLE_ZLIB=SYSTEM - -DENABLE_SASL="$(usex sasl CYRUS OFF)" - -DENABLE_SSL="$(usex ssl $(usex libressl LIBRESSL OPENSSL) OFF)" - -DENABLE_STATIC="$(usex static-libs ON OFF)" - -DENABLE_TESTS="$(usex test ON OFF)" - -DENABLE_TRACING="$(usex debug ON OFF)" - -DENABLE_UNINSTALL=OFF - ) - - cmake-utils_src_configure -} - -# FEATURES="test" USE="static-libs" emerge dev-libs/mongo-c-driver -src_test() { - local PORT=27099 - mongod --port ${PORT} --bind_ip 127.0.0.1 --nounixsocket --fork \ - --dbpath="${T}" --logpath="${T}/mongod.log" || die - MONGOC_TEST_URI="mongodb://[127.0.0.1]:${PORT}" ../mongo-c-driver-${PV}_build/src/libmongoc/test-libmongoc || die - kill $(<"${T}/mongod.lock") -} - -src_install() { - if use examples; then - docinto examples - dodoc src/libmongoc/examples/*.c - fi - - cmake-utils_src_install -} 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 deleted file mode 100644 index 4ad9e86cd71e..000000000000 --- a/dev-libs/mongo-c-driver/mongo-c-driver-1.14.0.ebuild +++ /dev/null @@ -1,93 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit cmake-utils - -DESCRIPTION="Client library written in C for MongoDB" -HOMEPAGE="https://github.com/mongodb/mongo-c-driver" -SRC_URI="https://github.com/mongodb/mongo-c-driver/releases/download/${PV}/${P}.tar.gz -> ${P}.tar.gz" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~amd64 ~hppa ~s390 ~x86" -IUSE="debug examples icu libressl sasl ssl static-libs test" -REQUIRED_USE="test? ( static-libs )" - -RDEPEND="app-arch/snappy:= - >=dev-libs/libbson-${PV} - dev-python/sphinx - sys-libs/zlib:= - icu? ( dev-libs/icu:= ) - sasl? ( dev-libs/cyrus-sasl:= ) - ssl? ( - !libressl? ( dev-libs/openssl:0= ) - libressl? ( dev-libs/libressl:0= ) - )" -DEPEND="${RDEPEND} - test? ( - dev-db/mongodb - dev-libs/libbson[static-libs] - )" - -# No tests on x86 because tests require dev-db/mongodb which don't support -# x86 anymore (bug #645994) -RESTRICT="!test? ( test ) x86? ( test )" - -PATCHES=( - "${FILESDIR}/${PN}-1.13.1-drop-failing-test.patch" # one test fails - "${FILESDIR}/${PN}-1.14.0-enable-tests.patch" # enable tests with system libbson - "${FILESDIR}/${PN}-1.14.0-no-docs.patch" -) - -src_prepare() { - cmake-utils_src_prepare - - # copy private headers for tests since we don't build libbson - if use test; then - mkdir -p src/libbson/tests/bson || die - for f in bson-context-private.h bson-iso8601-private.h bson-private.h; do - cp -v src/libbson/src/bson/${f} src/libbson/tests/bson/ || die - done - fi -} - -src_configure() { - local mycmakeargs=( - -DCMAKE_SKIP_RPATH=ON # mongoc-stat insecure runpath - -DENABLE_BSON=SYSTEM - -DENABLE_EXAMPLES=OFF - -DENABLE_ICU="$(usex icu ON OFF)" - -DENABLE_MAN_PAGES=ON - -DENABLE_MONGOC=ON - -DENABLE_SNAPPY=SYSTEM - -DENABLE_ZLIB=SYSTEM - -DENABLE_SASL="$(usex sasl CYRUS OFF)" - -DENABLE_SSL="$(usex ssl $(usex libressl LIBRESSL OPENSSL) OFF)" - -DENABLE_STATIC="$(usex static-libs ON OFF)" - -DENABLE_TESTS="$(usex test ON OFF)" - -DENABLE_TRACING="$(usex debug ON OFF)" - -DENABLE_UNINSTALL=OFF - ) - - cmake-utils_src_configure -} - -# FEATURES="test" USE="static-libs" emerge dev-libs/mongo-c-driver -src_test() { - local PORT=27099 - mongod --port ${PORT} --bind_ip 127.0.0.1 --nounixsocket --fork \ - --dbpath="${T}" --logpath="${T}/mongod.log" || die - MONGOC_TEST_URI="mongodb://[127.0.0.1]:${PORT}" ../mongo-c-driver-${PV}_build/src/libmongoc/test-libmongoc || die - kill $(<"${T}/mongod.lock") -} - -src_install() { - if use examples; then - docinto examples - dodoc src/libmongoc/examples/*.c - fi - - cmake-utils_src_install -} diff --git a/dev-libs/mongo-c-driver/mongo-c-driver-1.15.1.ebuild b/dev-libs/mongo-c-driver/mongo-c-driver-1.15.1.ebuild deleted file mode 100644 index 6bded6a0a993..000000000000 --- a/dev-libs/mongo-c-driver/mongo-c-driver-1.15.1.ebuild +++ /dev/null @@ -1,95 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit cmake-utils - -DESCRIPTION="Client library written in C for MongoDB" -HOMEPAGE="https://github.com/mongodb/mongo-c-driver" -SRC_URI="https://github.com/mongodb/mongo-c-driver/releases/download/${PV}/${P}.tar.gz -> ${P}.tar.gz" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~amd64 ~hppa ~s390 ~x86" -IUSE="debug examples icu libressl sasl ssl static-libs test" -REQUIRED_USE="test? ( static-libs )" - -RDEPEND="app-arch/snappy:= - app-arch/zstd:= - >=dev-libs/libbson-${PV} - dev-python/sphinx - sys-libs/zlib:= - icu? ( dev-libs/icu:= ) - sasl? ( dev-libs/cyrus-sasl:= ) - ssl? ( - !libressl? ( dev-libs/openssl:0= ) - libressl? ( dev-libs/libressl:0= ) - )" -DEPEND="${RDEPEND} - test? ( - dev-db/mongodb - dev-libs/libbson[static-libs] - )" - -# No tests on x86 because tests require dev-db/mongodb which don't support -# x86 anymore (bug #645994) -RESTRICT="x86? ( test ) - !test? ( test )" - -PATCHES=( - "${FILESDIR}/${PN}-1.14.0-enable-tests.patch" # enable tests with system libbson - "${FILESDIR}/${PN}-1.14.0-no-docs.patch" -) - -src_prepare() { - cmake-utils_src_prepare - - # copy private headers for tests since we don't build libbson - if use test; then - mkdir -p src/libbson/tests/bson || die - for f in bson-context-private.h bson-iso8601-private.h bson-private.h; do - cp -v src/libbson/src/bson/${f} src/libbson/tests/bson/ || die - done - fi -} - -src_configure() { - local mycmakeargs=( - -DCMAKE_SKIP_RPATH=ON # mongoc-stat insecure runpath - -DENABLE_BSON=SYSTEM - -DENABLE_EXAMPLES=OFF - -DENABLE_ICU="$(usex icu ON OFF)" - -DENABLE_MAN_PAGES=ON - -DENABLE_MONGOC=ON - -DENABLE_SNAPPY=SYSTEM - -DENABLE_ZLIB=SYSTEM - -DENABLE_SASL="$(usex sasl CYRUS OFF)" - -DENABLE_SSL="$(usex ssl $(usex libressl LIBRESSL OPENSSL) OFF)" - -DENABLE_STATIC="$(usex static-libs ON OFF)" - -DENABLE_TESTS="$(usex test ON OFF)" - -DENABLE_TRACING="$(usex debug ON OFF)" - -DENABLE_UNINSTALL=OFF - -DENABLE_ZSTD=ON - ) - - cmake-utils_src_configure -} - -# FEATURES="test -network-sandbox" USE="static-libs" emerge dev-libs/mongo-c-driver -src_test() { - local PORT=27099 - mongod --port ${PORT} --bind_ip 127.0.0.1 --nounixsocket --fork \ - --dbpath="${T}" --logpath="${T}/mongod.log" || die - MONGOC_TEST_URI="mongodb://[127.0.0.1]:${PORT}" ../mongo-c-driver-${PV}_build/src/libmongoc/test-libmongoc || die - kill $(<"${T}/mongod.lock") -} - -src_install() { - if use examples; then - docinto examples - dodoc src/libmongoc/examples/*.c - fi - - cmake-utils_src_install -} diff --git a/dev-libs/mongo-c-driver/mongo-c-driver-1.17.0.ebuild b/dev-libs/mongo-c-driver/mongo-c-driver-1.17.0.ebuild index 72b58f751ba6..f58927b7e0fe 100644 --- a/dev-libs/mongo-c-driver/mongo-c-driver-1.17.0.ebuild +++ b/dev-libs/mongo-c-driver/mongo-c-driver-1.17.0.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -inherit cmake-utils +inherit cmake DESCRIPTION="Client library written in C for MongoDB" HOMEPAGE="https://github.com/mongodb/mongo-c-driver" @@ -15,6 +15,11 @@ KEYWORDS="~amd64 ~hppa ~s390 ~x86" IUSE="debug examples icu libressl sasl ssl static-libs test" REQUIRED_USE="test? ( static-libs )" +# No tests on x86 because tests require dev-db/mongodb which don't support +# x86 anymore (bug #645994) +RESTRICT="x86? ( test ) + !test? ( test )" + RDEPEND="app-arch/snappy:= app-arch/zstd:= >=dev-libs/libbson-${PV}[static-libs?] @@ -32,11 +37,6 @@ DEPEND="${RDEPEND} dev-libs/libbson[static-libs] )" -# No tests on x86 because tests require dev-db/mongodb which don't support -# x86 anymore (bug #645994) -RESTRICT="x86? ( test ) - !test? ( test )" - PATCHES=( "${FILESDIR}/${PN}-1.14.0-no-docs.patch" "${FILESDIR}/${PN}-1.16.2-enable-tests.patch" # enable tests with system libbson @@ -44,7 +44,7 @@ PATCHES=( ) src_prepare() { - cmake-utils_src_prepare + cmake_src_prepare # copy private headers for tests since we don't build libbson if use test; then @@ -72,7 +72,7 @@ src_configure() { -DENABLE_ZSTD=ON ) - cmake-utils_src_configure + cmake_src_configure } # FEATURES="test -network-sandbox" USE="static-libs" emerge dev-libs/mongo-c-driver @@ -90,5 +90,5 @@ src_install() { dodoc src/libmongoc/examples/*.c fi - cmake-utils_src_install + cmake_src_install } diff --git a/dev-libs/mongo-c-driver/mongo-c-driver-1.3.5.ebuild b/dev-libs/mongo-c-driver/mongo-c-driver-1.3.5.ebuild deleted file mode 100644 index dd8921b43802..000000000000 --- a/dev-libs/mongo-c-driver/mongo-c-driver-1.3.5.ebuild +++ /dev/null @@ -1,79 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -inherit autotools eutils - -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 ~s390 ~x86" -IUSE="debug examples libressl sasl ssl static-libs test" - -RDEPEND=">=dev-libs/libbson-1.3.5 - sasl? ( dev-libs/cyrus-sasl ) - ssl? ( - !libressl? ( dev-libs/openssl:0= ) - libressl? ( dev-libs/libressl:0= ) - )" -DEPEND="${RDEPEND} - test? ( dev-db/mongodb )" - -DOCS=( NEWS README.rst ) - -# No tests on x86 because tests require dev-db/mongodb which don't support -# x86 anymore (bug #645994) -RESTRICT="!test? ( test ) x86? ( test )" - -src_prepare() { - rm -r src/libbson || die - sed -i -e '/SUBDIRS/s:src/libbson::g' Makefile.am || die - - # https://github.com/mongodb/mongo-c-driver/issues/54 - sed -i -e "s/PTHREAD_LIBS/PTHREAD_CFLAGS/g" src/Makefile.am \ - tests/Makefile.am || die - eautoreconf -} - -src_configure() { - econf --with-libbson=system \ - --disable-hardening \ - --disable-optimizations \ - --disable-examples \ - --docdir="${EPREFIX}/usr/share/doc/${P}" \ - $(use_enable sasl) \ - $(use_enable ssl ssl openssl) \ - $(use_enable debug) \ - $(use_enable static-libs static) -} - -src_install() { - default_src_install - if [[ -f "${D}usr/share/doc/${P}/COPYING" ]] ; then - rm "${D}usr/share/doc/${P}/COPYING" || die - fi - # Only install the mongoc man pages to avoid conflicts of common names - doman doc/man/mongoc_*.3 - - use static-libs || find "${D}" -name '*.la' -delete - - if use examples; then - insinto /usr/share/${PF}/examples - doins -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" - 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 `cat "${T}/mongod.lock"` -} diff --git a/dev-libs/mongo-c-driver/mongo-c-driver-1.6.2.ebuild b/dev-libs/mongo-c-driver/mongo-c-driver-1.6.2.ebuild deleted file mode 100644 index 574171d957f7..000000000000 --- a/dev-libs/mongo-c-driver/mongo-c-driver-1.6.2.ebuild +++ /dev/null @@ -1,81 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit autotools - -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 ~s390 ~x86" -IUSE="debug examples libressl sasl ssl static-libs test" - -RDEPEND=">=dev-libs/libbson-1.6.2 - sasl? ( dev-libs/cyrus-sasl ) - ssl? ( - !libressl? ( dev-libs/openssl:0= ) - libressl? ( dev-libs/libressl:0= ) - )" -DEPEND="${RDEPEND} - test? ( dev-db/mongodb )" - -DOCS=( NEWS README.rst ) - -# No tests on x86 because tests require dev-db/mongodb which don't support -# x86 anymore (bug #645994) -RESTRICT="!test? ( test ) x86? ( test )" - -src_prepare() { - rm -r src/libbson || die - sed -i -e '/SUBDIRS/s:src/libbson::g' Makefile.am || die - - # https://github.com/mongodb/mongo-c-driver/issues/54 - sed -i -e "s/PTHREAD_LIBS/PTHREAD_CFLAGS/g" src/Makefile.am \ - tests/Makefile.am || die - eautoreconf - - default -} - -src_configure() { - econf \ - --with-libbson=system \ - --disable-optimizations \ - --disable-shm-counters \ - --disable-examples \ - $(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") -} diff --git a/dev-libs/mongo-c-driver/mongo-c-driver-1.8.2.ebuild b/dev-libs/mongo-c-driver/mongo-c-driver-1.8.2.ebuild deleted file mode 100644 index e67b5edaaef3..000000000000 --- a/dev-libs/mongo-c-driver/mongo-c-driver-1.8.2.ebuild +++ /dev/null @@ -1,84 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# 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 ~s390 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="!test? ( test ) 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 \ - $(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") -} 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 deleted file mode 100644 index 9bc7a5d5f33b..000000000000 --- a/dev-libs/mongo-c-driver/mongo-c-driver-1.9.3.ebuild +++ /dev/null @@ -1,84 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# 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 ~s390 ~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="!test? ( test ) 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 \ - $(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") -} |