mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sys-libs/libcxxabi: Wrap up 3.9.0 release
This commit is contained in:
2
sys-libs/libcxxabi/Manifest
Normal file
2
sys-libs/libcxxabi/Manifest
Normal file
@@ -0,0 +1,2 @@
|
||||
DIST libcxx-3.9.0.src.tar.xz 1198308 SHA256 d0b38d51365c6322f5666a2a8105785f2e114430858de4c25a86b49f227f5b06 SHA512 55d5c4adff378ee02b0b99d732bc9f326910f9e49ab8c320a588eccdd0362fe009bc9a6a4337d29faf6338420c91b10d0d7d67f66128268f01258d30502c4f4a WHIRLPOOL 3ee3519acfe95287a862a6c44e30ed52ced1204332913007797da4e4da40dfdc5991ae120f5686827cc208b559936da5bc5485dab75617bdd5cbbd9e95a6032a
|
||||
DIST libcxxabi-3.9.0.src.tar.xz 511324 SHA256 b037a92717856882e05df57221e087d7d595a2ae9f170f7bc1a23ec7a92c8019 SHA512 500207bfd59664bd42d920741d6b467c4b88569453742db6470af081c77be04894e097a14b8419e333b51abce484566366e35cbc3ed2607cd86dfc0ec0ddd0c5 WHIRLPOOL 7b2d3b022c4c539596ce7be0afac724df929f19fb80e6f5b14074e240fb252b04389fe121f987ceaf6f3567d59735238b2940546475e4107f3c32eb55a5f8a80
|
||||
34
sys-libs/libcxxabi/files/libcxxabi-3.9.0-cmake-path.patch
Normal file
34
sys-libs/libcxxabi/files/libcxxabi-3.9.0-cmake-path.patch
Normal file
@@ -0,0 +1,34 @@
|
||||
From 8d4d9af454a985d8c10ffdb0c56e87efec25ddff Mon Sep 17 00:00:00 2001
|
||||
From: Logan Chien <tzuhsiang.chien@gmail.com>
|
||||
Date: Mon, 3 Oct 2016 11:08:17 +0000
|
||||
Subject: [PATCH] [CMake] Fix libc++abi standalone cmake build.
|
||||
|
||||
The cmake files install directory has been changed to
|
||||
${prefix}/lib/cmake/llvm since r259821. Searching cmake modules in
|
||||
${prefix}/share/llvm/cmake will result in fatal errors.
|
||||
|
||||
This commit fixes the out-of-tree build by changing the CMake module
|
||||
search path to: "$(llvm-config --obj-root)/lib/cmake/llvm"
|
||||
|
||||
|
||||
git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@283100 91177308-0d34-0410-b5e6-96231b3b80d8
|
||||
---
|
||||
CMakeLists.txt | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index a33cf48..e75c0b8 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -49,7 +49,7 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
|
||||
set(LLVM_INCLUDE_DIR ${INCLUDE_DIR} CACHE PATH "Path to llvm/include")
|
||||
set(LLVM_BINARY_DIR ${LLVM_OBJ_ROOT} CACHE PATH "Path to LLVM build tree")
|
||||
set(LLVM_MAIN_SRC_DIR ${MAIN_SRC_DIR} CACHE PATH "Path to LLVM source tree")
|
||||
- set(LLVM_CMAKE_PATH "${LLVM_BINARY_DIR}/share/llvm/cmake")
|
||||
+ set(LLVM_CMAKE_PATH "${LLVM_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX}/cmake/llvm")
|
||||
set(LLVM_LIT_PATH "${LLVM_PATH}/utils/lit/lit.py")
|
||||
else()
|
||||
message(FATAL_ERROR "llvm-config not found and LLVM_MAIN_SRC_DIR not defined. "
|
||||
--
|
||||
2.10.1
|
||||
|
||||
90
sys-libs/libcxxabi/libcxxabi-3.9.0.ebuild
Normal file
90
sys-libs/libcxxabi/libcxxabi-3.9.0.ebuild
Normal file
@@ -0,0 +1,90 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
: ${CMAKE_MAKEFILE_GENERATOR:=ninja}
|
||||
CMAKE_MIN_VERSION=3.4.3
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit cmake-multilib python-any-r1
|
||||
|
||||
DESCRIPTION="Low level support for a standard C++ library"
|
||||
HOMEPAGE="http://libcxxabi.llvm.org/"
|
||||
# also needs libcxx sources for headers
|
||||
SRC_URI="http://llvm.org/releases/${PV}/${P}.src.tar.xz
|
||||
http://llvm.org/releases/${PV}/${P/abi/}.src.tar.xz"
|
||||
LICENSE="|| ( UoI-NCSA MIT )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="libunwind +static-libs test"
|
||||
|
||||
RDEPEND="
|
||||
libunwind? (
|
||||
|| (
|
||||
>=sys-libs/libunwind-1.0.1-r1[static-libs?,${MULTILIB_USEDEP}]
|
||||
sys-libs/llvm-libunwind[static-libs?,${MULTILIB_USEDEP}]
|
||||
)
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
>=sys-devel/llvm-3.9.0
|
||||
test? ( >=sys-devel/clang-3.9.0
|
||||
~sys-libs/libcxx-${PV}[libcxxabi(-)]
|
||||
$(python_gen_any_dep 'dev-python/lit[${PYTHON_USEDEP}]') )"
|
||||
|
||||
S=${WORKDIR}/${P}.src
|
||||
|
||||
python_check_deps() {
|
||||
has_version "dev-python/lit[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
use test && python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# backport cmake path fix for llvm-3.9+
|
||||
eapply "${FILESDIR}/${P}-cmake-path.patch"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
NATIVE_LIBDIR=$(get_libdir)
|
||||
cmake-multilib_src_configure
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local libdir=$(get_libdir)
|
||||
local mycmakeargs=(
|
||||
-DLLVM_LIBDIR_SUFFIX=${NATIVE_LIBDIR#lib}
|
||||
-DLIBCXXABI_LIBDIR_SUFFIX=${libdir#lib}
|
||||
-DLIBCXXABI_ENABLE_SHARED=ON
|
||||
-DLIBCXXABI_ENABLE_STATIC=$(usex static-libs)
|
||||
-DLIBCXXABI_USE_LLVM_UNWINDER=$(usex libunwind)
|
||||
-DLLVM_INCLUDE_TESTS=$(usex test)
|
||||
|
||||
-DLIBCXXABI_LIBCXX_INCLUDES="${WORKDIR}"/libcxx-${PV}.src/include
|
||||
)
|
||||
if use test; then
|
||||
mycmakeargs+=(
|
||||
-DLIT_COMMAND="${EPREFIX}"/usr/bin/lit
|
||||
)
|
||||
fi
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
local clang_path=$(type -P "${CHOST:+${CHOST}-}clang" 2>/dev/null)
|
||||
|
||||
[[ -n ${clang_path} ]] || die "Unable to find ${CHOST}-clang for tests"
|
||||
sed -i -e "/cxx_under_test/s^\".*\"^\"${clang_path}\"^" test/lit.site.cfg || die
|
||||
|
||||
cmake-utils_src_make check-libcxxabi
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
insinto /usr/include/libcxxabi
|
||||
doins -r include/.
|
||||
}
|
||||
Reference in New Issue
Block a user