inherit cmake-utils llvm llvm.org multilib-minimal multiprocessing \
pax-utils python-single-r1 toolchain-funcs
+MANPAGE_P=llvm-9.0.0-manpages
DESCRIPTION="C language family frontend for LLVM"
HOMEPAGE="https://llvm.org/"
+SRC_URI="
+ !doc? ( https://dev.gentoo.org/~mgorny/dist/llvm/${MANPAGE_P}.tar.bz2 )"
LLVM_COMPONENTS=( clang clang-tools-extra )
LLVM_TEST_COMPONENTS=(
llvm/lib/Testing/Support
cd x/y || die
llvm.org_src_unpack
mv clang-tools-extra clang/tools/extra || die
+
+ if ! use doc; then
+ ebegin "Unpacking ${MANPAGE_P}.tar.bz2"
+ tar -xf "${DISTDIR}/${MANPAGE_P}.tar.bz2" || die
+ eend
+ fi
}
multilib_src_configure() {
python_optimize "${ED}"/usr/lib/llvm/${SLOT}/share/scan-view
fi
+ # install pre-generated manpages
+ if ! use doc; then
+ insinto "/usr/lib/llvm/${SLOT}/share/man/man1"
+ doins "${WORKDIR}/x/y/${MANPAGE_P}/clang"/*.1
+ fi
+
docompress "/usr/lib/llvm/${SLOT}/share/man"
# match 'html' non-compression
use doc && docompress -x "/usr/share/doc/${PF}/tools-extra"