Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/libcxxrt/
Date: Fri, 24 May 2019 21:59:09
Message-Id: 1558734994.215d4c8e828459eb09bb718ec71ab1be1d64b513.mgorny@gentoo
1 commit: 215d4c8e828459eb09bb718ec71ab1be1d64b513
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 24 21:56:34 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri May 24 21:56:34 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=215d4c8e
7
8 sys-libs/libcxxrt: Drop old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 sys-libs/libcxxrt/Manifest | 1 -
13 sys-libs/libcxxrt/libcxxrt-0.0_p20170515.ebuild | 87 -------------------------
14 2 files changed, 88 deletions(-)
15
16 diff --git a/sys-libs/libcxxrt/Manifest b/sys-libs/libcxxrt/Manifest
17 index df6be90d3ee..1e32270bfa0 100644
18 --- a/sys-libs/libcxxrt/Manifest
19 +++ b/sys-libs/libcxxrt/Manifest
20 @@ -1,2 +1 @@
21 -DIST libcxxrt-0.0_p20170515.tar.xz 60488 BLAKE2B ae605dbd85a619886a3dca4ded06529bf51309d2c12028aaa4d27180efcbb6a6cd40e59fe731511cc920ba1e3c5786a5051a560186923d60c9aa7eae34b1679e SHA512 cf0539ca8f836adadf83195784ad008008faea2b0dd8953191fa1012d542f10f546eb58ecc42fa8e864c1113530a6bceb28a8005aa62276570343a3aaba09266
22 DIST libcxxrt-0.0_p20180311.tar.xz 60920 BLAKE2B c75bf5bb88e0f5c448a377a7ae58b33444e644c5e4ce7d6e0f5242c4ee61335be6a8b878bcc06f47bb44f9c48895845b174ca398c95aabb90182ebefd3d31815 SHA512 625aa0fab7d54c584faf4cf1e7f8f694776337fc0c6f441683f035743d00e3d18be3339a8ccfc8b61eb07819e4ccf7b1e5f3e7948fd584eefc5d61b200b32d50
23
24 diff --git a/sys-libs/libcxxrt/libcxxrt-0.0_p20170515.ebuild b/sys-libs/libcxxrt/libcxxrt-0.0_p20170515.ebuild
25 deleted file mode 100644
26 index 8492baad661..00000000000
27 --- a/sys-libs/libcxxrt/libcxxrt-0.0_p20170515.ebuild
28 +++ /dev/null
29 @@ -1,87 +0,0 @@
30 -# Copyright 1999-2017 Gentoo Foundation
31 -# Distributed under the terms of the GNU General Public License v2
32 -
33 -EAPI=5
34 -
35 -EGIT_REPO_URI="https://github.com/pathscale/libcxxrt.git"
36 -
37 -[ "${PV%9999}" != "${PV}" ] && SCM="git-2" || SCM=""
38 -
39 -inherit flag-o-matic toolchain-funcs portability ${SCM} multilib-minimal
40 -
41 -DESCRIPTION="C++ Runtime from PathScale, FreeBSD and NetBSD"
42 -HOMEPAGE="https://github.com/pathscale/libcxxrt http://www.pathscale.com/node/265"
43 -if [ "${PV%9999}" = "${PV}" ] ; then
44 - SRC_URI="mirror://gentoo/${P}.tar.xz"
45 - DEPEND="app-arch/xz-utils"
46 -else
47 - SRC_URI=""
48 -fi
49 -
50 -LICENSE="BSD-2"
51 -SLOT="0"
52 -if [ "${PV%9999}" = "${PV}" ] ; then
53 - KEYWORDS="amd64 ~arm64 x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
54 -else
55 - KEYWORDS="amd64 x86"
56 -fi
57 -IUSE="+libunwind +static-libs test"
58 -
59 -RDEPEND="libunwind? ( || ( >=sys-libs/libunwind-1.0.1-r1[static-libs?,${MULTILIB_USEDEP}]
60 - sys-libs/llvm-libunwind[static-libs?,${MULTILIB_USEDEP}] ) )"
61 -DEPEND="${RDEPEND}
62 - ${DEPEND}"
63 -
64 -DOCS=( AUTHORS COPYRIGHT README )
65 -
66 -gcc_check() {
67 - if tc-is-gcc && [[ $(gcc-major-version) -lt 6 ]] && use test; then
68 - eerror "At least gcc-6 is required to run tests. Please switch to a newer"
69 - eerror "compiler before proceeding."
70 - die "gcc-6 required for tests"
71 - fi
72 -}
73 -
74 -pkg_pretend() {
75 - gcc_check
76 -}
77 -
78 -pkg_setup() {
79 - gcc_check
80 -}
81 -
82 -src_prepare() {
83 - cp "${FILESDIR}/Makefile" src/ || die
84 - cp "${FILESDIR}/Makefile.test" test/Makefile || die
85 - multilib_copy_sources
86 -}
87 -
88 -multilib_src_compile() {
89 - # Notes: we build -nodefaultlibs to avoid linking to gcc libs.
90 - # libcxxrt needs: dladdr (dlopen_lib), libunwind or libgcc_s and the libc.
91 - tc-export CC CXX AR
92 - append-ldflags "-Wl,-z,defs" # make sure we are not underlinked
93 - cd "${BUILD_DIR}/src"
94 - LIBS="$(dlopen_lib) -l$(usex libunwind unwind gcc_s) -lc" emake shared
95 - use static-libs && emake static
96 -}
97 -
98 -multilib_src_test() {
99 - cd "${BUILD_DIR}/test"
100 - LD_LIBRARY_PATH="${BUILD_DIR}/src:${LD_LIBRARY_PATH}" \
101 - LIBS="-L${BUILD_DIR}/src -lcxxrt -l$(usex libunwind unwind gcc_s) -lc" \
102 - emake check
103 -}
104 -
105 -multilib_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 -
112 -multilib_src_install_all() {
113 - einstalldocs
114 - insinto /usr/include/libcxxrt/
115 - doins src/cxxabi.h src/unwind*.h
116 -}