1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit autotools eutils
8 DESCRIPTION="A BSON utility library"
9 HOMEPAGE="https://github.com/mongodb/libbson"
10 SRC_URI="https://github.com/mongodb/${PN}/releases/download/${PV}/${P}.tar.gz"
14 KEYWORDS="~amd64 ~hppa ~x86"
15 IUSE="debug examples static-libs"
20 DOCS=( AUTHORS NEWS README )
23 # https://github.com/mongodb/mongo-c-driver/issues/54
24 sed -i -e "s/PTHREAD_LIBS/PTHREAD_CFLAGS/g" src/bson/Makefile.am \
25 tests/Makefile.am || die
30 econf --disable-hardening \
31 --disable-optimizations \
33 $(use_enable static-libs static)
37 emake DESTDIR="${D}" install
40 use static-libs || find "${D}" -name '*.la' -delete
43 insinto /usr/share/${PF}/examples