[dev-libs/libbson] roll new doc tarball and remove python eclass

This commit is contained in:
2025-10-19 18:13:34 +02:00
parent 7f63b7011b
commit 03f74ef951
2 changed files with 11 additions and 13 deletions

View File

@@ -3,18 +3,17 @@
EAPI=8
# Generate using a slight deviation from https://github.com/thesamesam/sam-gentoo-scripts/blob/main/niche/generate-cmake-docs
# Generate using https://github.com/thesamesam/sam-gentoo-scripts/blob/main/niche/generate-cmake-docs as a template
# Set to 1 if prebuilt, 0 if not
# (the construct below is to allow overriding from env for script)
: ${LIBBSON_DOCS_PREBUILT:=0}
: ${LIBBSON_DOCS_PREBUILT:=1}
# Default to generating docs (inc. man pages) if no prebuilt; overridden later
LIBBSON_DOCS_USEFLAG="+man"
PYTHON_COMPAT=( python3_{11..14} pypy3_11 )
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/mongo-c-driver.asc
inherit cmake dot-a python-any-r1 verify-sig
inherit cmake dot-a verify-sig
DESCRIPTION="Library routines related to building,parsing and iterating BSON documents"
HOMEPAGE="https://github.com/mongodb/mongo-c-driver/tree/master/src/libbson"
@@ -41,10 +40,8 @@ RESTRICT="test"
BDEPEND="
man? (
$(python_gen_any_dep '
<=dev-python/docutils-0.22[${PYTHON_USEDEP}]
dev-python/sphinx[${PYTHON_USEDEP}]
')
<=dev-python/docutils-0.22
dev-python/sphinx
)
verify-sig? ( sec-keys/openpgp-keys-mongo-c-driver )
"
@@ -53,11 +50,6 @@ PATCHES=(
"${FILESDIR}"/libbson-1.30.6-cmake4.patch
)
python_check_deps() {
python_has_version -b "dev-python/docutils[${PYTHON_USEDEP}]"
python_has_version -b "dev-python/sphinx[${PYTHON_USEDEP}]"
}
src_prepare() {
cmake_src_prepare
@@ -87,4 +79,9 @@ src_install() {
cmake_src_install
strip-lto-bytecode
# If USE=man, there'll be newly generated docs which we install instead.
if ! use man && [[ ${LIBBSON_DOCS_PREBUILT} == 1 ]] ; then
doman "${WORKDIR}"/${PN}-${PV}-docs/man*/*.[0-8]
fi
}