Gentoo Archives: gentoo-commits

From: "Alexis Ballier (aballier)" <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-libs/libcxxrt: ChangeLog libcxxrt-0.0_p20130531.ebuild
Date: Fri, 31 May 2013 15:54:48
Message-Id: 20130531155441.318F12171D@flycatcher.gentoo.org
1 aballier 13/05/31 15:54:41
2
3 Modified: ChangeLog
4 Added: libcxxrt-0.0_p20130531.ebuild
5 Log:
6 bump a new snapshot
7
8 (Portage version: 2.2.0_alpha177/cvs/Linux x86_64, signed Manifest commit with key 160F534A)
9
10 Revision Changes Path
11 1.11 sys-libs/libcxxrt/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libcxxrt/ChangeLog?rev=1.11&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libcxxrt/ChangeLog?rev=1.11&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libcxxrt/ChangeLog?r1=1.10&r2=1.11
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-libs/libcxxrt/ChangeLog,v
20 retrieving revision 1.10
21 retrieving revision 1.11
22 diff -u -r1.10 -r1.11
23 --- ChangeLog 30 May 2013 23:33:32 -0000 1.10
24 +++ ChangeLog 31 May 2013 15:54:40 -0000 1.11
25 @@ -1,6 +1,12 @@
26 # ChangeLog for sys-libs/libcxxrt
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/libcxxrt/ChangeLog,v 1.10 2013/05/30 23:33:32 aballier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libcxxrt/ChangeLog,v 1.11 2013/05/31 15:54:40 aballier Exp $
30 +
31 +*libcxxrt-0.0_p20130531 (31 May 2013)
32 +
33 + 31 May 2013; Alexis Ballier <aballier@g.o>
34 + +libcxxrt-0.0_p20130531.ebuild:
35 + bump a new snapshot
36
37 30 May 2013; Alexis Ballier <aballier@g.o> libcxxrt-9999.ebuild:
38 stop hacking around unwind headers and install them protected under libcxxrt
39
40
41
42 1.1 sys-libs/libcxxrt/libcxxrt-0.0_p20130531.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libcxxrt/libcxxrt-0.0_p20130531.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libcxxrt/libcxxrt-0.0_p20130531.ebuild?rev=1.1&content-type=text/plain
46
47 Index: libcxxrt-0.0_p20130531.ebuild
48 ===================================================================
49 # Copyright 1999-2013 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sys-libs/libcxxrt/libcxxrt-0.0_p20130531.ebuild,v 1.1 2013/05/31 15:54:41 aballier Exp $
52
53 EAPI=4
54
55 EGIT_REPO_URI="git://github.com/pathscale/libcxxrt.git"
56
57 [ "${PV%9999}" != "${PV}" ] && SCM="git-2" || SCM=""
58
59 inherit base flag-o-matic toolchain-funcs portability ${SCM}
60
61 DESCRIPTION="C++ Runtime from PathScale, FreeBSD and NetBSD."
62 HOMEPAGE="https://github.com/pathscale/libcxxrt http://www.pathscale.com/node/265"
63 if [ "${PV%9999}" = "${PV}" ] ; then
64 SRC_URI="mirror://gentoo/${P}.tar.xz"
65 DEPEND="app-arch/xz-utils"
66 else
67 SRC_URI=""
68 fi
69
70 LICENSE="BSD-2"
71 SLOT="0"
72 if [ "${PV%9999}" = "${PV}" ] ; then
73 KEYWORDS="~amd64 ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux"
74 else
75 KEYWORDS=""
76 fi
77 IUSE="static-libs"
78
79 RDEPEND=">=sys-libs/libunwind-1.0.1-r1[static-libs?]"
80 DEPEND="${RDEPEND}
81 ${DEPEND}"
82
83 src_prepare() {
84 base_src_prepare
85 cp "${FILESDIR}/Makefile" src/ || die
86 cp "${FILESDIR}/Makefile.test" test/Makefile || die
87 }
88
89 src_compile() {
90 # Notes: we build -nodefaultlibs to avoid linking to gcc libs.
91 # libcxxrt needs: dladdr (dlopen_lib), libunwind (or libgcc_s but we build
92 # over libunwind) and the libc.
93 tc-export CC CXX AR
94 append-ldflags "-Wl,-z,defs" # make sure we are not underlinked
95 cd "${S}/src"
96 LIBS="$(dlopen_lib) -lunwind -lc" emake shared
97 use static-libs && emake static
98 }
99
100 src_test() {
101 cd "${S}/test"
102 LD_LIBRARY_PATH="${S}/src:${LD_LIBRARY_PATH}" LIBS="-L${S}/src -lcxxrt -lc" emake check
103 }
104
105 src_install() {
106 # TODO: See README. Maybe hide it in a subdir and let only libcxx know about
107 # it. FreeBSD head installs it in /lib
108 dolib.so src/${PN}.so*
109 use static-libs && dolib.a src/${PN}.a
110
111 insinto /usr/include/libcxxrt/
112 doins src/cxxabi.h src/unwind*.h
113
114 dodoc AUTHORS COPYRIGHT README
115 }