Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/libcxxrt/
Date: Thu, 22 Sep 2016 15:46:41
Message-Id: 1474559191.7a2e0589b95ea6ce11c71cbbade2a2fb1958a539.aballier@gentoo
1 commit: 7a2e0589b95ea6ce11c71cbbade2a2fb1958a539
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 22 15:33:38 2016 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 22 15:46:31 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a2e0589
7
8 sys-libs/libcxxrt: bump a new snapshot
9
10 Package-Manager: portage-2.3.1
11
12 sys-libs/libcxxrt/Manifest | 1 +
13 sys-libs/libcxxrt/libcxxrt-0.0_p20160922.ebuild | 72 +++++++++++++++++++++++++
14 2 files changed, 73 insertions(+)
15
16 diff --git a/sys-libs/libcxxrt/Manifest b/sys-libs/libcxxrt/Manifest
17 index 34a5c0f..fb19118 100644
18 --- a/sys-libs/libcxxrt/Manifest
19 +++ b/sys-libs/libcxxrt/Manifest
20 @@ -1,2 +1,3 @@
21 DIST libcxxrt-0.0_p20140322.tar.xz 58208 SHA256 39392e1081710d7bf62de1a9723632adbaed5cd516e8b27af764195b8ea9aeb0 SHA512 8cc2f3779a28b8eb215c3dc97e1382651016127ec6b1feb5067de435841c20e6338662172176f003242f1393b8df3ecf91eaa85b54281e1c588dab44d01ca930 WHIRLPOOL 1e6b105cb6650762025f3ce0b6853eff84c94d6fb6c34269b6e3d92984c66308d59c20f2b4311cafea24928f0e3e645527ea6b041b939e941a05f2fea9a2c02e
22 DIST libcxxrt-0.0_p20150423.tar.xz 58596 SHA256 a633256ffe43261dd873866aa4a0be9aaa8bdd38f8d554f16c209e84be2f1a88 SHA512 67a3b9204cee7b7900228483b8e24898d83f76b3ff2ed94bbbd67ca3fba623021e1b346c91ef46955da78f2e001395dc84a2f496223b52a0e59e97ff2e27e247 WHIRLPOOL bcf34a715b7aafa4169d39f045896be9230d3365dfffc422d91af160c64a254561a7f2e67bcdc35b4e2a2032a9d1c5e87eeebbc5c40607737f5715bbeeb4b530
23 +DIST libcxxrt-0.0_p20160922.tar.xz 60460 SHA256 be52f2e5a57344bd856e5dd155eaec5e4606edb0118f1ad4cadc2f2bd00d394e SHA512 3ec60ef2127a7e51793f90291ef61c6853d9a7b23201617f9dde0d27d987901db5ad0b142e3adb3eee64884e11793676912f2fb8e8b090d35288277a54d261bd WHIRLPOOL 841f21edaa8fc7aac4636826b7510b7f35cd5c5d580d5f13b1b06b00b101e2f097cec3f073463275fe54fbd337aa3e08f254be4fdacf9155ca8b625c0beb4f0e
24
25 diff --git a/sys-libs/libcxxrt/libcxxrt-0.0_p20160922.ebuild b/sys-libs/libcxxrt/libcxxrt-0.0_p20160922.ebuild
26 new file mode 100644
27 index 00000000..bcb21bd
28 --- /dev/null
29 +++ b/sys-libs/libcxxrt/libcxxrt-0.0_p20160922.ebuild
30 @@ -0,0 +1,72 @@
31 +# Copyright 1999-2016 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +# $Id$
34 +
35 +EAPI=5
36 +
37 +EGIT_REPO_URI="git://github.com/pathscale/libcxxrt.git"
38 +
39 +[ "${PV%9999}" != "${PV}" ] && SCM="git-2" || SCM=""
40 +
41 +inherit flag-o-matic toolchain-funcs portability ${SCM} multilib-minimal
42 +
43 +DESCRIPTION="C++ Runtime from PathScale, FreeBSD and NetBSD"
44 +HOMEPAGE="https://github.com/pathscale/libcxxrt http://www.pathscale.com/node/265"
45 +if [ "${PV%9999}" = "${PV}" ] ; then
46 + SRC_URI="mirror://gentoo/${P}.tar.xz"
47 + DEPEND="app-arch/xz-utils"
48 +else
49 + SRC_URI=""
50 +fi
51 +
52 +LICENSE="BSD-2"
53 +SLOT="0"
54 +if [ "${PV%9999}" = "${PV}" ] ; then
55 + KEYWORDS="~amd64 ~mips ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
56 +else
57 + KEYWORDS=""
58 +fi
59 +IUSE="libunwind +static-libs"
60 +
61 +RDEPEND="libunwind? ( || ( >=sys-libs/libunwind-1.0.1-r1[static-libs?]
62 + sys-libs/llvm-libunwind[static-libs?] ) )"
63 +DEPEND="${RDEPEND}
64 + ${DEPEND}"
65 +
66 +DOCS=( AUTHORS COPYRIGHT README )
67 +
68 +src_prepare() {
69 + cp "${FILESDIR}/Makefile" src/ || die
70 + cp "${FILESDIR}/Makefile.test" test/Makefile || die
71 + multilib_copy_sources
72 +}
73 +
74 +multilib_src_compile() {
75 + # Notes: we build -nodefaultlibs to avoid linking to gcc libs.
76 + # libcxxrt needs: dladdr (dlopen_lib), libunwind or libgcc_s and the libc.
77 + tc-export CC CXX AR
78 + append-ldflags "-Wl,-z,defs" # make sure we are not underlinked
79 + cd "${BUILD_DIR}/src"
80 + LIBS="$(dlopen_lib) -l$(usex libunwind unwind gcc_s) -lc" emake shared
81 + use static-libs && emake static
82 +}
83 +
84 +multilib_src_test() {
85 + cd "${BUILD_DIR}/test"
86 + LD_LIBRARY_PATH="${BUILD_DIR}/src:${LD_LIBRARY_PATH}" \
87 + LIBS="-L${BUILD_DIR}/src -lcxxrt -l$(usex libunwind unwind gcc_s) -lc" \
88 + emake check
89 +}
90 +
91 +multilib_src_install() {
92 + # TODO: See README. Maybe hide it in a subdir and let only libcxx know about
93 + # it. FreeBSD head installs it in /lib
94 + dolib.so src/${PN}.so*
95 + use static-libs && dolib.a src/${PN}.a
96 +}
97 +
98 +multilib_src_install_all() {
99 + einstalldocs
100 + insinto /usr/include/libcxxrt/
101 + doins src/cxxabi.h src/unwind*.h
102 +}