Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-cpp/tbb/
Date: Wed, 23 Sep 2015 13:04:37
Message-Id: 1443013470.96ff8d893a1f0ff086c9c55d36f84e22a3e22993.jlec@gentoo
1 commit: 96ff8d893a1f0ff086c9c55d36f84e22a3e22993
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 23 13:04:23 2015 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 23 13:04:30 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=96ff8d89
7
8 dev-cpp/tbb: Drop old
9
10 Package-Manager: portage-2.2.21
11 Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
12
13 dev-cpp/tbb/Manifest | 1 -
14 dev-cpp/tbb/tbb-4.3.20141023.ebuild | 127 ------------------------------------
15 2 files changed, 128 deletions(-)
16
17 diff --git a/dev-cpp/tbb/Manifest b/dev-cpp/tbb/Manifest
18 index b19a8e5..2f8b59e 100644
19 --- a/dev-cpp/tbb/Manifest
20 +++ b/dev-cpp/tbb/Manifest
21 @@ -1,2 +1 @@
22 -DIST tbb43_20141023oss_src.tgz 2777177 SHA256 247a8d22d6850caa37d376aaeaf8bfcb06525ec5561fb6f6ed09cdad2c1f6414 SHA512 0718e7bf5f0b9525da9eb45beedc1c3832ccd813d72b10a7ed7c6a281d342325d04c65f797c29e2551d4f2bd470e57c81f38db0d6bd983f7871a90f2b5fe5020 WHIRLPOOL 7a6bc75e9404cbfc9f1e1bc53ff195e63c605aae1cc2883147d69bdd394694d21f916fa6d1c2708ff397a01c620fdb38966d0da5085df6d23dcba235de18c6a8
23 DIST tbb43_20150611oss_src.tgz 2757631 SHA256 221f85fe64e11c9638e43b3c57d5750c26683905fc90827c0bcfefdb286e79c9 SHA512 83d5d827706b774ef5cd6df8082e5d7f48683388684423bb40565dfc25892fc2e57c382f719b78087d83e51edb3f7f7215f33d8b5039b55c32788d80efa6e0b8 WHIRLPOOL 8e98162b2307c759fb26923d76ab784dea81e166c8bf5323869d234da59641c333e5ae30b4a224bccbf20d4f5f6b75c658589f519a165ea3ad7658322f148c72
24
25 diff --git a/dev-cpp/tbb/tbb-4.3.20141023.ebuild b/dev-cpp/tbb/tbb-4.3.20141023.ebuild
26 deleted file mode 100644
27 index 5edd369..0000000
28 --- a/dev-cpp/tbb/tbb-4.3.20141023.ebuild
29 +++ /dev/null
30 @@ -1,127 +0,0 @@
31 -# Copyright 1999-2015 Gentoo Foundation
32 -# Distributed under the terms of the GNU General Public License v2
33 -# $Id$
34 -
35 -EAPI=5
36 -inherit eutils flag-o-matic multilib versionator toolchain-funcs
37 -
38 -PV1="$(get_version_component_range 1)"
39 -PV2="$(get_version_component_range 2)"
40 -PV3="$(get_version_component_range 3)"
41 -MYP="${PN}${PV1}${PV2}_${PV3}oss"
42 -
43 -DESCRIPTION="High level abstract threading library"
44 -HOMEPAGE="http://www.threadingbuildingblocks.org/"
45 -SRC_URI="http://threadingbuildingblocks.org/sites/default/files/software_releases/source/${MYP}_src.tgz"
46 -LICENSE="GPL-2-with-exceptions"
47 -
48 -SLOT="0"
49 -KEYWORDS="amd64 ~arm ppc ppc64 x86 ~amd64-fbsd ~amd64-linux ~x86-linux"
50 -IUSE="debug doc examples"
51 -
52 -DEPEND=""
53 -RDEPEND="${DEPEND}"
54 -S="${WORKDIR}/${MYP}"
55 -
56 -src_prepare() {
57 - epatch \
58 - "${FILESDIR}"/${PN}-4.0.297-underlinking.patch
59 - # use fully qualified gcc compilers. do not force march/mcpu
60 - # not tested with icc
61 - # order in sed expressions is important
62 - sed -i \
63 - -e "s/g++/$(tc-getCXX)/g" \
64 - -e "s/gcc/$(tc-getCC)/g" \
65 - -e 's/-m\(arch\|cpu\)=*[[:space:]]//g' \
66 - -e 's/-\(m\|-\)\(64\|32\)//g' \
67 - -e 's/-O2/$(CXXFLAGS)/g' \
68 - -e "/^ASM/s/as/$(tc-getAS)/g" \
69 - build/*.gcc.inc || die
70 -
71 - # Give it a soname on FreeBSD
72 - echo 'LIB_LINK_FLAGS += -Wl,-soname=$(BUILDING_LIBRARY)' >> build/FreeBSD.gcc.inc
73 - # Set proper versionning on FreeBSD
74 - sed -i -e '/.DLL =/s/$/.1/' build/FreeBSD.inc || die
75 -
76 - # force 64bit where applicable, 32bit where applicable...
77 - # built-in detection is based on running kernel, which messes up
78 - # e.g. in a x86 chroot on amd64 kernel. Bug 462130
79 - # see build/linux.inc for values
80 - use amd64 && export arch=x86_64
81 - use amd64-linux && export arch=x86_64
82 - use x86 && export arch=ia32
83 - use x86-linux && export arch=ia32
84 - # no idea what to do with ppc but so far it seems to work
85 -
86 - find include -name \*.html -delete || die
87 -
88 - # pc files are for debian and fedora compatibility
89 - # some deps use them
90 - cat <<-EOF > ${PN}.pc.template
91 - prefix=${EPREFIX}/usr
92 - libdir=\${prefix}/$(get_libdir)
93 - includedir=\${prefix}/include
94 - Name: ${PN}
95 - Description: ${DESCRIPTION}
96 - Version: ${PV}
97 - URL: ${HOMEPAGE}
98 - Cflags: -I\${includedir}
99 - EOF
100 - cp ${PN}.pc.template ${PN}.pc
101 - cat <<-EOF >> ${PN}.pc
102 - Libs: -L\${libdir} -ltbb
103 - Libs.private: -lm -lrt
104 - EOF
105 - cp ${PN}.pc.template ${PN}malloc.pc
106 - cat <<-EOF >> ${PN}malloc.pc
107 - Libs: -L\${libdir} -ltbbmalloc
108 - Libs.private: -lm -lrt
109 - EOF
110 - cp ${PN}.pc.template ${PN}malloc_proxy.pc
111 - cat <<-EOF >> ${PN}malloc_proxy.pc
112 - Libs: -L\${libdir} -ltbbmalloc_proxy
113 - Libs.private: -lrt
114 - Requires: tbbmalloc
115 - EOF
116 - use debug || sed -i -e '/_debug/d' Makefile
117 -}
118 -
119 -src_compile() {
120 - if [[ $(tc-getCXX) == *g++* ]]; then
121 - comp="gcc"
122 - elif [[ $(tc-getCXX) == *ic*c ]]; then
123 - comp="icc"
124 - else
125 - die "compiler $(tc-getCXX) not supported by build system"
126 - fi
127 - emake compiler=${comp} tbb tbbmalloc
128 -}
129 -
130 -src_test() {
131 - append-cxxflags -fabi-version=4
132 - # avoid oversubscribing with -j1
133 - emake -j1 compiler=${comp} test
134 -}
135 -
136 -src_install(){
137 - local l
138 - for l in $(find build -name lib\*.so.\*); do
139 - dolib.so ${l}
140 - local bl=$(basename ${l})
141 - dosym ${bl} /usr/$(get_libdir)/${bl%.*}
142 - done
143 - doheader -r include/*
144 -
145 - insinto /usr/$(get_libdir)/pkgconfig
146 - doins *.pc
147 -
148 - dodoc README CHANGES doc/Release_Notes.txt
149 - use doc && dohtml -r doc/html/*
150 -
151 - if use examples ; then
152 - insinto /usr/share/doc/${PF}/examples/build
153 - doins build/*.inc
154 - insinto /usr/share/doc/${PF}/examples
155 - doins -r examples
156 - fi
157 -}