1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="Library routines related to building,parsing and iterating BSON documents"
9 HOMEPAGE="https://github.com/mongodb/mongo-c-driver/tree/master/src/libbson"
10 SRC_URI="https://github.com/mongodb/mongo-c-driver/releases/download/${PV}/mongo-c-driver-${PV}.tar.gz -> ${P}.tar.gz"
14 KEYWORDS="~amd64 ~hppa ~ppc ~x86"
15 IUSE="examples static-libs"
17 DEPEND="dev-python/sphinx"
20 "${FILESDIR}/${PN}-1.14.0-no-docs.patch"
21 "${FILESDIR}/${PN}-1.16.2-single-doc-job.patch"
22 "${FILESDIR}/${PN}-1.16.2-sphinx.patch"
25 S="${WORKDIR}/mongo-c-driver-${PV}"
34 -DENABLE_STATIC="$(usex static-libs ON OFF)"
35 -DENABLE_UNINSTALL=OFF
38 cmake-utils_src_configure
44 dodoc src/libbson/examples/*.c
47 cmake-utils_src_install