Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/llvm/
Date: Fri, 31 Aug 2018 08:35:54
Message-Id: 1535704529.b62875d30a0cd0298332a78d60f58b3f0468f2d9.mgorny@gentoo
1 commit: b62875d30a0cd0298332a78d60f58b3f0468f2d9
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 31 08:35:29 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 31 08:35:29 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b62875d3
7
8 sys-devel/llvm: Add new doc-dep on recommonmark, in -9999
9
10 sys-devel/llvm/llvm-9999.ebuild | 13 ++++++++++++-
11 1 file changed, 12 insertions(+), 1 deletion(-)
12
13 diff --git a/sys-devel/llvm/llvm-9999.ebuild b/sys-devel/llvm/llvm-9999.ebuild
14 index ed5dd0b817a..196984744a5 100644
15 --- a/sys-devel/llvm/llvm-9999.ebuild
16 +++ b/sys-devel/llvm/llvm-9999.ebuild
17 @@ -59,7 +59,11 @@ DEPEND="${RDEPEND}
18 <sys-libs/libcxx-$(ver_cut 1-3).9999
19 >=sys-devel/binutils-apple-5.1
20 )
21 - doc? ( dev-python/sphinx )
22 + doc? ( $(python_gen_any_dep '
23 + dev-python/recommonmark[${PYTHON_USEDEP}]
24 + dev-python/sphinx[${PYTHON_USEDEP}]
25 + ') )
26 + !doc? ( ${PYTHON_DEPS} )
27 gold? ( sys-libs/binutils-libs )
28 libffi? ( virtual/pkgconfig )
29 !!<dev-python/configparser-3.3.0.2
30 @@ -77,6 +81,13 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE}
31 # least intrusive of all
32 CMAKE_BUILD_TYPE=RelWithDebInfo
33
34 +python_check_deps() {
35 + use doc || return 0
36 +
37 + has_version "dev-python/recommonmark[${PYTHON_USEDEP}]" &&
38 + has_version "dev-python/sphinx[${PYTHON_USEDEP}]"
39 +}
40 +
41 src_prepare() {
42 # Fix llvm-config for shared linking and sane flags
43 # https://bugs.gentoo.org/show_bug.cgi?id=565358