diff options
author | Sam James <sam@gentoo.org> | 2022-08-05 04:15:32 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-08-05 04:18:37 +0100 |
commit | 54cf529fa143511578b5622fafc911be4706de1a (patch) | |
tree | 37c954bbc966280472e61d79fdc60f15ddb2ccfe /sys-libs | |
parent | sys-libs/libunwind: BDEPEND on texcore for USE=doc (diff) | |
download | gentoo-54cf529fa143511578b5622fafc911be4706de1a.tar.gz gentoo-54cf529fa143511578b5622fafc911be4706de1a.tar.bz2 gentoo-54cf529fa143511578b5622fafc911be4706de1a.zip |
sys-libs/libunwind: provide pre-generated man pages
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-libs')
-rw-r--r-- | sys-libs/libunwind/Manifest | 1 | ||||
-rw-r--r-- | sys-libs/libunwind/libunwind-1.6.2-r1.ebuild | 23 |
2 files changed, 22 insertions, 2 deletions
diff --git a/sys-libs/libunwind/Manifest b/sys-libs/libunwind/Manifest index 7b180086ae0a..77239b73ac2d 100644 --- a/sys-libs/libunwind/Manifest +++ b/sys-libs/libunwind/Manifest @@ -1 +1,2 @@ +DIST libunwind-1.6.2-docs.tar.xz 25372 BLAKE2B d16562b29c49070f0cd6ad9211c7c3283b527bd88677d9ce50b15f27254bac504ea79b807e01f4f2bdb05649ff8980f94346ef9737bf5b5bd7c313e547222f10 SHA512 71bcb781cc37ccbef7b349225b1b3b4cd6ba4ce5a48d8478cea17f8245614b672d8e14b5a088e2d998ea717670a371925d4fbe407dde636611f7c2f2901065d8 DIST libunwind-1.6.2.tar.gz 901392 BLAKE2B 3d0313f7e92cbc3e1a84ad3831a5170f21cdf772f1697ca0a59dea63cdd47da382e9f1fd77325d9ff8bcd47559a425dc883a820c646c628cd00faed82cb0f83f SHA512 1d17dfb14f99a894a6cda256caf9ec481c14068aaf8f3a85fa3befa7c7cca7fca0f544a91a3a7c2f2fc55bab19b06a67ca79f55ac9081151d94478c7f611f8f7 diff --git a/sys-libs/libunwind/libunwind-1.6.2-r1.ebuild b/sys-libs/libunwind/libunwind-1.6.2-r1.ebuild index d14ce27ffb31..fd4226b1c015 100644 --- a/sys-libs/libunwind/libunwind-1.6.2-r1.ebuild +++ b/sys-libs/libunwind/libunwind-1.6.2-r1.ebuild @@ -1,7 +1,17 @@ # Copyright 2005-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 + +# Generate using https://github.com/thesamesam/sam-gentoo-scripts/blob/main/niche/generate-libunwind-docs +# Set to 1 if prebuilt, 0 if not +# (the construct below is to allow overriding from env for script) +LIBUNWIND_DOCS_PREBUILT=${LIBUNWIND_DOCS_PREBUILT:-1} +LIBUNWIND_DOCS_PREBUILT_DEV=sam +LIBUNWIND_DOCS_VERSION=$(ver_cut 1-3) +# Default to generating docs (inc. man pages) if no prebuilt; overridden later +# bug #830088 +LIBUNWIND_DOCS_USEFLAG="+doc" MY_PV=${PV/_/-} MY_P=${PN}-${MY_PV} @@ -10,12 +20,16 @@ inherit multilib-minimal DESCRIPTION="Portable and efficient API to determine the call-chain of a program" HOMEPAGE="https://savannah.nongnu.org/projects/libunwind" SRC_URI="mirror://nongnu/libunwind/${MY_P}.tar.gz" +if [[ ${LIBUNWIND_DOCS_PREBUILT} == 1 ]] ; then + SRC_URI+=" !doc? ( https://dev.gentoo.org/~${LIBUNWIND_DOCS_PREBUILT_DEV}/distfiles/${CATEGORY}/${PN}/${PN}-${LIBUNWIND_DOCS_VERSION}-docs.tar.xz )" +fi + S="${WORKDIR}/${MY_P}" LICENSE="MIT" SLOT="0/8" # libunwind.so.8 KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 -sparc ~x86 ~amd64-linux ~x86-linux" -IUSE="debug debug-frame doc libatomic lzma static-libs test zlib" +IUSE="debug debug-frame ${LIBUNWIND_DOCS_USEFLAG} libatomic lzma static-libs test zlib" RESTRICT="test !test? ( test )" # some tests are broken (toolchain version dependent, rely on external binaries) @@ -94,4 +108,9 @@ multilib_src_test() { multilib_src_install_all() { find "${ED}" -name "*.la" -type f -delete || die + + # If USE=doc, there'll be newly generated docs which we install instead. + if ! use doc && [[ ${LIBUNWIND_DOCS_PREBUILT} == 1 ]] ; then + doman "${WORKDIR}"/${PN}-${LIBUNWIND_DOCS_VERSION}-docs/docs/*.[0-8] + fi } |