mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sys-devel/lld: Use python-any-r1
This commit is contained in:
@@ -9,7 +9,7 @@ EAPI=6
|
||||
CMAKE_MIN_VERSION=3.7.0-r1
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit cmake-utils
|
||||
inherit cmake-utils python-any-r1
|
||||
|
||||
DESCRIPTION="The LLVM linker (link editor)"
|
||||
HOMEPAGE="http://llvm.org/"
|
||||
@@ -23,7 +23,7 @@ IUSE="test"
|
||||
|
||||
RDEPEND="~sys-devel/llvm-${PV}"
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( ~dev-python/lit-${PV} )"
|
||||
test? ( $(python_gen_any_dep "~dev-python/lit-${PV}[\${PYTHON_USEDEP}]") )"
|
||||
|
||||
S=${WORKDIR}/${P/_/}.src
|
||||
|
||||
@@ -33,6 +33,14 @@ RESTRICT="test"
|
||||
# least intrusive of all
|
||||
CMAKE_BUILD_TYPE=RelWithDebInfo
|
||||
|
||||
python_check_deps() {
|
||||
has_version "dev-python/lit[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
use test && python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ EAPI=6
|
||||
CMAKE_MIN_VERSION=3.7.0-r1
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit cmake-utils git-r3
|
||||
inherit cmake-utils git-r3 python-any-r1
|
||||
|
||||
DESCRIPTION="The LLVM linker (link editor)"
|
||||
HOMEPAGE="http://llvm.org/"
|
||||
@@ -24,7 +24,7 @@ IUSE="test"
|
||||
|
||||
RDEPEND="~sys-devel/llvm-${PV}"
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( ~dev-python/lit-${PV} )"
|
||||
test? ( $(python_gen_any_dep "~dev-python/lit-${PV}[\${PYTHON_USEDEP}]") )"
|
||||
|
||||
# TODO: fix test suite to build stand-alone
|
||||
RESTRICT="test"
|
||||
@@ -32,6 +32,14 @@ RESTRICT="test"
|
||||
# least intrusive of all
|
||||
CMAKE_BUILD_TYPE=RelWithDebInfo
|
||||
|
||||
python_check_deps() {
|
||||
has_version "dev-python/lit[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
use test && python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
if use test; then
|
||||
# needed for patched gtest
|
||||
|
||||
Reference in New Issue
Block a user