summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-09-19 11:02:07 +0200
committerMichał Górny <mgorny@gentoo.org>2017-09-19 13:08:28 +0200
commit6826fb2190c8c98957b0798eacf7efacb301b045 (patch)
treeb760008db048270dc28a5e9476d0c17e403499fb /sys-devel
parentsys-devel/llvm: Use eapi7-ver.eclass (diff)
downloadgentoo-6826fb2190c8c98957b0798eacf7efacb301b045.tar.gz
gentoo-6826fb2190c8c98957b0798eacf7efacb301b045.tar.bz2
gentoo-6826fb2190c8c98957b0798eacf7efacb301b045.zip
sys-devel/clang: Use eapi7-ver.eclass
Diffstat (limited to 'sys-devel')
-rw-r--r--sys-devel/clang/clang-5.0.9999.ebuild12
-rw-r--r--sys-devel/clang/clang-9999.ebuild10
2 files changed, 11 insertions, 11 deletions
diff --git a/sys-devel/clang/clang-5.0.9999.ebuild b/sys-devel/clang/clang-5.0.9999.ebuild
index a42fcb56372a..82cff8b91407 100644
--- a/sys-devel/clang/clang-5.0.9999.ebuild
+++ b/sys-devel/clang/clang-5.0.9999.ebuild
@@ -8,8 +8,8 @@ EAPI=6
CMAKE_MIN_VERSION=3.7.0-r1
PYTHON_COMPAT=( python2_7 )
-inherit cmake-utils flag-o-matic git-r3 llvm multilib-minimal \
- python-single-r1 toolchain-funcs pax-utils versionator
+inherit cmake-utils eapi7-ver flag-o-matic git-r3 llvm \
+ multilib-minimal pax-utils python-single-r1 toolchain-funcs
DESCRIPTION="C language family frontend for LLVM"
HOMEPAGE="https://llvm.org/"
@@ -25,7 +25,7 @@ ALL_LLVM_TARGETS=( "${ALL_LLVM_TARGETS[@]/#/llvm_targets_}" )
LLVM_TARGET_USEDEPS=${ALL_LLVM_TARGETS[@]/%/?}
LICENSE="UoI-NCSA"
-SLOT="$(get_major_version)"
+SLOT="$(ver_cut 1)"
KEYWORDS=""
IUSE="debug default-compiler-rt default-libcxx +doc +static-analyzer
test xml z3 kernel_FreeBSD ${ALL_LLVM_TARGETS[*]}"
@@ -116,7 +116,7 @@ src_prepare() {
multilib_src_configure() {
local llvm_version=$(llvm-config --version) || die
- local clang_version=$(get_version_component_range 1-3 "${llvm_version}")
+ local clang_version=$(ver_cut 1-3 "${llvm_version}")
local mycmakeargs=(
# ensure that the correct llvm-config is used
@@ -225,8 +225,8 @@ src_install() {
# Apply CHOST and version suffix to clang tools
# note: we use two version components here (vs 3 in runtime path)
local llvm_version=$(llvm-config --version) || die
- local clang_version=$(get_version_component_range 1-2 "${llvm_version}")
- local clang_full_version=$(get_version_component_range 1-3 "${llvm_version}")
+ local clang_version=$(ver_cut 1-2 "${llvm_version}")
+ local clang_full_version=$(ver_cut 1-3 "${llvm_version}")
local clang_tools=( clang clang++ clang-cl clang-cpp )
local abi i
diff --git a/sys-devel/clang/clang-9999.ebuild b/sys-devel/clang/clang-9999.ebuild
index d7de72aa2447..b64ba22305c9 100644
--- a/sys-devel/clang/clang-9999.ebuild
+++ b/sys-devel/clang/clang-9999.ebuild
@@ -8,8 +8,8 @@ EAPI=6
CMAKE_MIN_VERSION=3.7.0-r1
PYTHON_COMPAT=( python2_7 )
-inherit cmake-utils flag-o-matic git-r3 llvm multilib-minimal \
- python-single-r1 toolchain-funcs pax-utils versionator
+inherit cmake-utils eapi7-ver flag-o-matic git-r3 llvm \
+ multilib-minimal pax-utils python-single-r1 toolchain-funcs
DESCRIPTION="C language family frontend for LLVM"
HOMEPAGE="https://llvm.org/"
@@ -104,7 +104,7 @@ src_unpack() {
multilib_src_configure() {
local llvm_version=$(llvm-config --version) || die
- local clang_version=$(get_version_component_range 1-3 "${llvm_version}")
+ local clang_version=$(ver_cut 1-3 "${llvm_version}")
local mycmakeargs=(
# ensure that the correct llvm-config is used
@@ -209,8 +209,8 @@ src_install() {
# Apply CHOST and version suffix to clang tools
# note: we use two version components here (vs 3 in runtime path)
local llvm_version=$(llvm-config --version) || die
- local clang_version=$(get_version_component_range 1-2 "${llvm_version}")
- local clang_full_version=$(get_version_component_range 1-3 "${llvm_version}")
+ local clang_version=$(ver_cut 1-2 "${llvm_version}")
+ local clang_full_version=$(ver_cut 1-3 "${llvm_version}")
local clang_tools=( clang clang++ clang-cl clang-cpp )
local abi i