diff options
-rw-r--r-- | dev-libs/libbson/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/libbson/libbson-1.3.6.ebuild | 51 |
2 files changed, 52 insertions, 0 deletions
diff --git a/dev-libs/libbson/Manifest b/dev-libs/libbson/Manifest index 965056479561..0fc1c0e8914f 100644 --- a/dev-libs/libbson/Manifest +++ b/dev-libs/libbson/Manifest @@ -2,3 +2,4 @@ DIST libbson-0.98.0.tar.gz 4451923 SHA256 5e792a3c4d296a8b9e4316f1c58e94819223c4 DIST libbson-1.1.10.tar.gz 4431658 SHA256 211a62a7a6f93ba21b85afc1522c3a367a264be09626ea15f7be3a0fbe084a70 SHA512 636178bafb19e7b103b5192866dbda0c70b8d7173560b0466f88b3a85cce3292a7caac9521808fa8c09d187f8c96564dcd9fb787e855d1619610f813583379bc WHIRLPOOL 8b29882ce3ebe0da4b0ce952d2b79fff2ce4c211047ff7c05e15f6263546258c134974fdf539ed6173f286c501085e575cebde806f6578ea9fb843f1b92da4f3 DIST libbson-1.1.2.tar.gz 4492014 SHA256 acd8026d4e5bf5034b699af136236a8a38c06613d1800fdf54721fe66280b6ae SHA512 03e2ee337445286c14b846cd7545707959b1d351fa466c6292379a85e48ea1a171dae37dd7aff092212239ad59aac6f1ab216ee5de74ef00a8a2a124559e34da WHIRLPOOL 10a4fee34bcc12a730899553d62405784673ee5beecf63a624fb1527c9dddd0403d855a7557f6a35167bffee2b2ebb9f7d3b7ddc64d2e12cc39d95afe89e0db6 DIST libbson-1.3.5.tar.gz 4547720 SHA256 d380cfc30bbb598e64bc5e4b0851f9e8343071292a9e0a101f49ec06211a1b23 SHA512 b55ae1d424f786aabed6567a77cd09aa26c74ab0a09392e88faef8c156b1650c026f86f245bc8431a0ebcf404c4f80eb1b22e978a24289d32692c84375a66596 WHIRLPOOL fb0d2f05e0a8c60da2d3277ec1413799b8e45c23e408fdd136b3ebe4f6e74ed7d58d767792f1d6454bb6e61785f7ae624ff655b94f39ef6007e1f248caf7cad5 +DIST libbson-1.3.6.tar.gz 4546329 SHA256 77b4f41154457d56e5b837a1a770800e96f3c30a67f6e5a439bf336a2124fbb4 SHA512 a7da914ed0f03212d4fb01879543f0b2c7629923e33200fe30335a9a90a1082ffa2566c7a556b90a6c7ffbef5665a45ec67f87ffff2a5fcb89830769b1df5130 WHIRLPOOL b86efef2e3841b66ef425c022c1e60a32d6fd02d3cbc0af22c28ac5f6e6eeabb709aa06a353f2e0ed8af0ebf65da6d660edb09523ec196ac0a5f7006be4d998b diff --git a/dev-libs/libbson/libbson-1.3.6.ebuild b/dev-libs/libbson/libbson-1.3.6.ebuild new file mode 100644 index 000000000000..e326a2d1a2bd --- /dev/null +++ b/dev-libs/libbson/libbson-1.3.6.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools + +DESCRIPTION="A BSON utility library" +HOMEPAGE="https://github.com/mongodb/libbson" +SRC_URI="https://github.com/mongodb/${PN}/releases/download/${PV}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~x86" +IUSE="debug examples static-libs" + +DOCS=( AUTHORS NEWS README ) + +src_prepare() { + default_src_prepare + # https://github.com/mongodb/mongo-c-driver/issues/54 + sed -i -e "s/PTHREAD_LIBS/PTHREAD_CFLAGS/g" src/bson/Makefile.am \ + tests/Makefile.am || die + eautoreconf +} + +src_configure() { + econf --disable-hardening \ + --disable-optimizations \ + $(use_enable debug) \ + $(use_enable static-libs static) +} + +src_install() { + default + + if [[ -f "${D}usr/share/doc/${P}/COPYING" ]] ; then + rm "${D}usr/share/doc/${P}/COPYING" || die + fi + + # Installing all the manuals conflicts with man-pages + doman doc/man/bson_*.3 + use static-libs || find "${D}" -name '*.la' -delete + + if use examples; then + insinto /usr/share/${PF}/examples + doins examples/*.c + fi + + einstalldocs +} |