public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Fabian Groffen" <grobian@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/prefix:master commit in: sys-libs/libcxxabi/
Date: Wed,  7 Sep 2016 07:35:51 +0000 (UTC)	[thread overview]
Message-ID: <1473233742.d45dfe190ac9ce2cc7078db5b1481871cf44233c.grobian@gentoo> (raw)

commit:     d45dfe190ac9ce2cc7078db5b1481871cf44233c
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Wed Sep  7 07:33:01 2016 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Wed Sep  7 07:35:42 2016 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=d45dfe19

sys-libs/libcxxabi: sync to 3.8.1 version

Package-Manager: portage-2.2.28-prefix

 sys-libs/libcxxabi/Manifest               |  1 +
 sys-libs/libcxxabi/libcxxabi-3.8.1.ebuild | 85 +++++++++++++++++++++++++++++++
 sys-libs/libcxxabi/metadata.xml           |  5 +-
 3 files changed, 90 insertions(+), 1 deletion(-)

diff --git a/sys-libs/libcxxabi/Manifest b/sys-libs/libcxxabi/Manifest
index 64a925b..ea62313 100644
--- a/sys-libs/libcxxabi/Manifest
+++ b/sys-libs/libcxxabi/Manifest
@@ -1,2 +1,3 @@
 DIST libcxxabi-3.5.1.src.tar.xz 551148 SHA256 7ff14fdce0ed7bfcc532c627c7a2dc7876dd8a3d788b2aa201d3bbdc443d06a3 SHA512 1fa9215aba2228d0bc5547febea69d0497785289d1972103ffb24b202a0a4df06ea1f7d6311ec85fc344414b69e590640b547c66ef1f9b9ea73762cc4f4a83fa WHIRLPOOL 4682de87fc6857d1dc3c401dd9ed24b1e5aa5b3a00338f6493cd0a30f757560c468591e540ac0856ee8d83c3ab5107c9c334f9f5c67755b47d23ec29462d5386
 DIST libcxxabi-3.7.1.src.tar.xz 507428 SHA256 a47faaed90f577da8ca3b5f044be9458d354a53fab03003a44085a912b73ab2a SHA512 d697d1b35a8cc1f27dd0f7d06d3f6e067e4c7ae613af982a8c91d4702a03aedfbdad1d4bd3c213f38db3d58473ad7fc6b4b8d1ffcfc6de04d1eb4e17e151c73a WHIRLPOOL 97d30f81d8d7960f4e3c8208f44f860b48b2aa3e13b0caccf9b2d26947cebf227143e0de77e18f4405612fc11028538ae886e7d21ab6e586c466a54fe1f302d7
+DIST libcxxabi-3.8.1.src.tar.xz 508392 SHA256 e1b55f7be3fad746bdd3025f43e42d429fb6194aac5919c2be17c4a06314dae1 SHA512 c401fe984f44c4f7a0b0fa10099d7a203c1552b89881b8b248645ac4fb3cd7e399c3d07841432cca069e816042ad6629f9cc068b278196fa6bd4c129d95d35be WHIRLPOOL 308b3adffbb3d415e7bcaf8dd2d52df40d9ddfb7f0172d2eec3735b7934a9f32244accff570e94f3c4e8fbeffc254a262e35f3a93c5cf0706a1c343bd0b285df

diff --git a/sys-libs/libcxxabi/libcxxabi-3.8.1.ebuild b/sys-libs/libcxxabi/libcxxabi-3.8.1.ebuild
new file mode 100644
index 0000000..83376cd
--- /dev/null
+++ b/sys-libs/libcxxabi/libcxxabi-3.8.1.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id $
+
+EAPI=5
+
+inherit flag-o-matic
+
+S="${WORKDIR}/${P}.src"
+
+inherit eutils
+
+DESCRIPTION="New implementation of low level support for a standard C++ library"
+HOMEPAGE="http://libcxxabi.llvm.org/"
+SRC_URI="http://llvm.org/releases/${PV}/${P}.src.tar.xz"
+
+LICENSE="|| ( UoI-NCSA MIT )"
+SLOT="0"
+KEYWORDS="~x64-macos ~x86-macos"
+IUSE=""
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+	=sys-libs/libcxx-headers-${PV}
+	sys-devel/clang"
+
+pkg_setup() {
+	if [[ ${CHOST} == *darwin* ]] ; then
+		MY_CC=$(tc-getCC)
+		MY_CXX=$(tc-getCXX)
+		if [[ ${MY_CC} != *clang* || ${MY_CXX} != *clang++* ]] ; then
+			eerror "${PN} needs to be built with clang++. Please do not override"
+			eerror "CC ($MY_CC) and CXX ($MY_CXX)"
+			eerror "or point them at clang and eerror clang++ respectively."
+			die
+		fi
+		return
+	fi
+}
+
+src_configure() {
+	tc-export CC CXX
+}
+
+src_prepare() {
+	# libc++abi needs stack unwinding functions provided by libSystem on Mac OS X
+	# >= 10.6. On < 10.6 they're in libgcc_s. So force link against that.
+	# Additionally, the crt1.o provided by our gcc-apple toolchain isn't
+	# universal. Since that's needed for linking any program on OSX <
+	# 10.7, universal support is effectively broken on those older OSXes
+	# even if clang and libc++{,abi} were to support it. So we can just
+	# disable universal compilation.
+	gcc_s=gcc_s.1
+	[[ "${CHOST##*-darwin}" -eq 9 ]] && gcc_s=gcc_s.10.5
+	[[ "${CHOST##*-darwin}" -eq 8 ]] && gcc_s=gcc_s.10.4
+	[[ "${CHOST##*-darwin}" -le 9 ]] && \
+		sed -i -e "s,-lSystem,-lSystem -l${gcc_s},g" \
+			-e "s,-arch i386 -arch x86_64,,g" \
+			lib/buildit
+
+	# assert.h refers to eprintf which is nowhere to be found. That's why
+	# everyone (libstdc++, clang compiler-rt) bring their own
+	# implementation. Ours is nicked from Apple's patch to libstdc++-39.
+	[[ "${CHOST##*-darwin}" -le 8 ]] && \
+		epatch "${FILESDIR}"/${PN}-3.5.1-eprintf.patch
+
+	sed -i -e "s,/usr/lib/libc++abi\.dylib,${EPREFIX}/usr/lib/libc++abi.dylib,g" \
+		lib/buildit
+}
+
+src_compile() {
+	cd "${S}/lib" || die
+	export TRIPLE=-apple-
+	./buildit || die
+}
+
+src_install() {
+	dolib.so lib/libc++*dylib
+
+	# do not install unwind.h and others since they're only in-source
+	# build-time dependencies
+	insinto /usr/include
+	doins -r include/cxxabi.h
+	doins -r include/__cxxabi_config.h
+}

diff --git a/sys-libs/libcxxabi/metadata.xml b/sys-libs/libcxxabi/metadata.xml
index f737f23..b592ddf 100644
--- a/sys-libs/libcxxabi/metadata.xml
+++ b/sys-libs/libcxxabi/metadata.xml
@@ -1,5 +1,8 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
-  <herd>prefix</herd>
+  <maintainer type="project">
+    <email>prefix@gentoo.org</email>
+    <name>Prefix Project</name>
+  </maintainer>
 </pkgmetadata>


             reply	other threads:[~2016-09-07  7:36 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-07  7:35 Fabian Groffen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-10-17  8:20 [gentoo-commits] repo/proj/prefix:master commit in: sys-libs/libcxxabi/ Fabian Groffen
2018-01-10 19:11 Fabian Groffen
2018-01-09  7:55 Fabian Groffen
2018-01-09  7:55 Fabian Groffen
2018-01-08 19:53 Fabian Groffen
2018-01-02 16:21 Fabian Groffen
2016-02-11  9:41 Fabian Groffen
2016-02-11  9:41 Fabian Groffen
2016-02-11  9:28 Fabian Groffen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1473233742.d45dfe190ac9ce2cc7078db5b1481871cf44233c.grobian@gentoo \
    --to=grobian@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox