diff options
author | Michał Górny <mgorny@gentoo.org> | 2019-07-20 22:55:15 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2019-07-21 00:34:40 +0200 |
commit | 3a542a2ead185237a2899e9b06fad164da6a9b19 (patch) | |
tree | 4930f64f6252209f66fc9e8349ee029e44e8423a /sys-devel/clang | |
parent | sys-devel/clang-common: Bump -9999 to EAPI 7 (diff) | |
download | gentoo-3a542a2ead185237a2899e9b06fad164da6a9b19.tar.gz gentoo-3a542a2ead185237a2899e9b06fad164da6a9b19.tar.bz2 gentoo-3a542a2ead185237a2899e9b06fad164da6a9b19.zip |
sys-devel/clang: Bump -9999 to EAPI 7
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-devel/clang')
-rw-r--r-- | sys-devel/clang/clang-9999.ebuild | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/sys-devel/clang/clang-9999.ebuild b/sys-devel/clang/clang-9999.ebuild index 6465115dc357..071fea2b586f 100644 --- a/sys-devel/clang/clang-9999.ebuild +++ b/sys-devel/clang/clang-9999.ebuild @@ -1,16 +1,15 @@ # Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 : ${CMAKE_MAKEFILE_GENERATOR:=ninja} # (needed due to CMAKE_BUILD_TYPE != Gentoo) CMAKE_MIN_VERSION=3.7.0-r1 PYTHON_COMPAT=( python{2_7,3_{5,6,7}} ) -inherit cmake-utils eapi7-ver flag-o-matic git-r3 llvm \ - multilib-minimal multiprocessing pax-utils python-single-r1 \ - toolchain-funcs +inherit cmake-utils git-r3 llvm multilib-minimal multiprocessing \ + pax-utils python-single-r1 toolchain-funcs DESCRIPTION="C language family frontend for LLVM" HOMEPAGE="https://llvm.org/" @@ -212,9 +211,9 @@ src_install() { multilib-minimal_src_install # Move runtime headers to /usr/lib/clang, where they belong - mv "${ED%/}"/usr/include/clangrt "${ED%/}"/usr/lib/clang || die + mv "${ED}"/usr/include/clangrt "${ED}"/usr/lib/clang || die # move (remaining) wrapped headers back - mv "${ED%/}"/usr/include "${ED%/}"/usr/lib/llvm/${SLOT}/include || die + mv "${ED}"/usr/include "${ED}"/usr/lib/llvm/${SLOT}/include || die # Apply CHOST and version suffix to clang tools # note: we use two version components here (vs 3 in runtime path) @@ -234,7 +233,7 @@ src_install() { # - clang, clang++, clang-cl, clang-cpp -> clang*-X # also in CHOST variant for i in "${clang_tools[@]:1}"; do - rm "${ED%/}/usr/lib/llvm/${SLOT}/bin/${i}" || die + rm "${ED}/usr/lib/llvm/${SLOT}/bin/${i}" || die dosym "clang-${clang_version}" "/usr/lib/llvm/${SLOT}/bin/${i}-${clang_version}" dosym "${i}-${clang_version}" "/usr/lib/llvm/${SLOT}/bin/${i}" done @@ -261,9 +260,9 @@ multilib_src_install() { # move headers to /usr/include for wrapping & ABI mismatch checks # (also drop the version suffix from runtime headers) - rm -rf "${ED%/}"/usr/include || die - mv "${ED%/}"/usr/lib/llvm/${SLOT}/include "${ED%/}"/usr/include || die - mv "${ED%/}"/usr/lib/llvm/${SLOT}/$(get_libdir)/clang "${ED%/}"/usr/include/clangrt || die + rm -rf "${ED}"/usr/include || die + mv "${ED}"/usr/lib/llvm/${SLOT}/include "${ED}"/usr/include || die + mv "${ED}"/usr/lib/llvm/${SLOT}/$(get_libdir)/clang "${ED}"/usr/include/clangrt || die } multilib_src_install_all() { @@ -280,7 +279,7 @@ multilib_src_install_all() { } pkg_postinst() { - if [[ ${ROOT} == / && -f ${EPREFIX}/usr/share/eselect/modules/compiler-shadow.eselect ]] ; then + if [[ -z ${ROOT} && -f ${EPREFIX}/usr/share/eselect/modules/compiler-shadow.eselect ]] ; then eselect compiler-shadow update all fi @@ -293,7 +292,7 @@ pkg_postinst() { } pkg_postrm() { - if [[ ${ROOT} == / && -f ${EPREFIX}/usr/share/eselect/modules/compiler-shadow.eselect ]] ; then + if [[ -z ${ROOT} && -f ${EPREFIX}/usr/share/eselect/modules/compiler-shadow.eselect ]] ; then eselect compiler-shadow clean all fi } |