[dev-libs/libbson] add docs tarball
This commit is contained in:
parent
d0414b7994
commit
7573325668
@ -1,2 +1,3 @@
|
||||
DIST libbson-1.30.5-docs.tar.xz 40388 BLAKE2B e7d7761ce01f4af5bc95f30ddc8abb25bc47414d78f0db5715131bcf7053e18130450fe6a343ed6f39128c6d9ebf82351638226c299df4598b2ea455004e9055 SHA512 fe17fae7c32042d3af23d8fa876ef1d56c937e1481c4cb346cd059c0ff8c19ac5aafd12875610a7bff462355e290589372869b33c9ef93e0447d4dc44a058713
|
||||
DIST mongo-c-driver-1.30.5.tar.gz 7434294 BLAKE2B 910a3929481625add6578f26cddacdbda788a8c6a6828ca7d6c2abc9a4350edc5f0ee13003197f93bb01cbd42e07330344f8a7c8d194ad86525665e23469e3d8 SHA512 3740f91a6d72d400057ecd0920740579ff664f230815bbf2cad1d0a0a268de99b40be3f05cdfe22759ca789d938cf7d3bbd439c431867b82d83c3d1690df3f68
|
||||
DIST mongo-c-driver-1.30.5.tar.gz.asc 833 BLAKE2B f92098b9946a0eb0b633ae5e8b7c444d5c0085fc5980993a25910802289def5cd04e19a0aba077ea9f4c954a65c06769cf63cb6f7961813bfd95c66101072b52 SHA512 5d7cc4037a5a145ed53e8e60d18d47f3d7b867320f08b3c755e00fe11a8305c7f449b30b31e59310577344495406aaeca78b2cd843d7c31c02e03200e55e0bf6
|
||||
|
@ -3,6 +3,14 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
# Generate using a slight deviation from https://github.com/thesamesam/sam-gentoo-scripts/blob/main/niche/generate-cmake-docs
|
||||
# Set to 1 if prebuilt, 0 if not
|
||||
# (the construct below is to allow overriding from env for script)
|
||||
: ${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
|
||||
|
||||
@ -16,20 +24,28 @@ SRC_URI="
|
||||
https://github.com/mongodb/mongo-c-driver/releases/download/${PV}/mongo-c-driver-${PV}.tar.gz.asc
|
||||
)
|
||||
"
|
||||
if [[ ${LIBBSON_DOCS_PREBUILT} == 1 ]] ; then
|
||||
SRC_URI+=" !man? ( https://people.znc.in/~dessa/gentoo/distfiles/${CATEGORY}/${PN}/${PN}-${PV}-docs.tar.xz )"
|
||||
LIBBSON_DOCS_USEFLAG="man"
|
||||
fi
|
||||
|
||||
S="${WORKDIR}/mongo-c-driver-${PV}"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~hppa ~loong ~ppc ~riscv ~sparc ~x86"
|
||||
IUSE="examples static-libs"
|
||||
IUSE="examples ${LIBBSON_DOC_USEFLAG} static-libs"
|
||||
|
||||
# tests are covered in mongo-c-driver and are not easily runnable in here
|
||||
RESTRICT="test"
|
||||
|
||||
BDEPEND="
|
||||
man? (
|
||||
$(python_gen_any_dep '
|
||||
<dev-python/docutils-0.22[${PYTHON_USEDEP}]
|
||||
dev-python/sphinx[${PYTHON_USEDEP}]
|
||||
')
|
||||
)
|
||||
verify-sig? ( sec-keys/openpgp-keys-mongo-c-driver )
|
||||
"
|
||||
|
||||
@ -38,6 +54,7 @@ PATCHES=(
|
||||
)
|
||||
|
||||
python_check_deps() {
|
||||
python_has_version -b "dev-python/docutils[${PYTHON_USEDEP}]"
|
||||
python_has_version -b "dev-python/sphinx[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user