From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1BD9A138334 for ; Sat, 21 Dec 2019 08:30:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 55E0BE08DC; Sat, 21 Dec 2019 08:30:28 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3F666E08DC for ; Sat, 21 Dec 2019 08:30:28 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4A70434D49C for ; Sat, 21 Dec 2019 08:30:27 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E77CA991 for ; Sat, 21 Dec 2019 08:30:23 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1576917002.1c00443e329ca1c9f3994be4b0764b14ddf983ff.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/llvm/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-devel/llvm/llvm-9.0.1.ebuild X-VCS-Directories: sys-devel/llvm/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 1c00443e329ca1c9f3994be4b0764b14ddf983ff X-VCS-Branch: master Date: Sat, 21 Dec 2019 08:30:23 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e0b6ad6f-43a2-4c93-b5d6-fcf578b50718 X-Archives-Hash: 556497de0581ae410d17ea7c20f1f6de commit: 1c00443e329ca1c9f3994be4b0764b14ddf983ff Author: Michał Górny gentoo org> AuthorDate: Sat Dec 21 08:10:15 2019 +0000 Commit: Michał Górny gentoo org> CommitDate: Sat Dec 21 08:30:02 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c00443e sys-devel/llvm: Support pregenerated manpages Signed-off-by: Michał Górny gentoo.org> sys-devel/llvm/llvm-9.0.1.ebuild | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/sys-devel/llvm/llvm-9.0.1.ebuild b/sys-devel/llvm/llvm-9.0.1.ebuild index 656ecf1927e..938ddb97448 100644 --- a/sys-devel/llvm/llvm-9.0.1.ebuild +++ b/sys-devel/llvm/llvm-9.0.1.ebuild @@ -7,8 +7,12 @@ PYTHON_COMPAT=( python{2_7,3_{5,6,7}} ) inherit cmake-utils llvm.org multilib-minimal multiprocessing \ pax-utils python-any-r1 toolchain-funcs +# no changes in 9.0.1 +MANPAGE_P=llvm-9.0.0-manpages DESCRIPTION="Low Level Virtual Machine" HOMEPAGE="https://llvm.org/" +SRC_URI=" + !doc? ( https://dev.gentoo.org/~mgorny/dist/llvm/${MANPAGE_P}.tar.bz2 )" LLVM_COMPONENTS=( llvm ) llvm.org_set_globals @@ -80,6 +84,16 @@ python_check_deps() { has_version -b "dev-python/sphinx[${PYTHON_USEDEP}]" } +src_unpack() { + llvm.org_src_unpack + + if ! use doc; then + ebegin "Unpacking ${MANPAGE_P}.tar.bz2" + tar -xf "${DISTDIR}/${MANPAGE_P}.tar.bz2" || die + eend + fi +} + src_prepare() { # Fix llvm-config for shared linking and sane flags # https://bugs.gentoo.org/show_bug.cgi?id=565358 @@ -266,6 +280,13 @@ multilib_src_install_all() { LDPATH="$( IFS=:; echo "${LLVM_LDPATHS[*]}" )" _EOF_ + # install pre-generated manpages + if ! use doc; then + # (doman does not support custom paths) + insinto "/usr/lib/llvm/${SLOT}/share/man/man1" + doins "${WORKDIR}/${MANPAGE_P}/llvm"/*.1 + fi + docompress "/usr/lib/llvm/${SLOT}/share/man" }