Gentoo Archives: gentoo-commits

From: Matthias Maier <tamiko@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-cpp/tbb/
Date: Fri, 31 Mar 2017 02:21:01
Message-Id: 1490926836.48daedc3c2e0570a4a160b41d9689e1a2d92b131.tamiko@gentoo
1 commit: 48daedc3c2e0570a4a160b41d9689e1a2d92b131
2 Author: Matthias Maier <tamiko <AT> gentoo <DOT> org>
3 AuthorDate: Fri Mar 31 02:20:36 2017 +0000
4 Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org>
5 CommitDate: Fri Mar 31 02:20:36 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48daedc3
7
8 dev-cpp/tbb: drop old
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.2
11
12 dev-cpp/tbb/tbb-4.3.20150611-r1.ebuild | 142 ---------------------------------
13 1 file changed, 142 deletions(-)
14
15 diff --git a/dev-cpp/tbb/tbb-4.3.20150611-r1.ebuild b/dev-cpp/tbb/tbb-4.3.20150611-r1.ebuild
16 deleted file mode 100644
17 index a482af8fd15..00000000000
18 --- a/dev-cpp/tbb/tbb-4.3.20150611-r1.ebuild
19 +++ /dev/null
20 @@ -1,142 +0,0 @@
21 -# Copyright 1999-2016 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=5
25 -
26 -inherit eutils flag-o-matic multilib-minimal toolchain-funcs versionator
27 -
28 -PV1="$(get_version_component_range 1)"
29 -PV2="$(get_version_component_range 2)"
30 -PV3="$(get_version_component_range 3)"
31 -MYP="${PN}${PV1}${PV2}_${PV3}oss"
32 -
33 -DESCRIPTION="High level abstract threading library"
34 -HOMEPAGE="http://www.threadingbuildingblocks.org/"
35 -SRC_URI="http://threadingbuildingblocks.org/sites/default/files/software_releases/source/${MYP}_src.tgz"
36 -LICENSE="GPL-2-with-exceptions"
37 -SLOT="0"
38 -KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux"
39 -IUSE="debug doc examples"
40 -
41 -DEPEND=""
42 -RDEPEND="${DEPEND}"
43 -S="${WORKDIR}/${MYP}"
44 -
45 -src_prepare() {
46 - epatch \
47 - "${FILESDIR}"/${PN}-4.0.297-underlinking.patch \
48 - "${FILESDIR}"/${P}-build.patch
49 -
50 - find include -name \*.html -delete || die
51 -
52 - # Give it a soname on FreeBSD
53 - echo 'LIB_LINK_FLAGS += -Wl,-soname=$(BUILDING_LIBRARY)' >> build/FreeBSD.gcc.inc
54 - # Set proper versionning on FreeBSD
55 - sed -i -e '/.DLL =/s/$/.1/' build/FreeBSD.inc || die
56 -
57 - use debug || sed -i -e '/_debug/d' Makefile
58 -}
59 -
60 -multilib_src_configure() {
61 - # pc files are for debian and fedora compatibility
62 - # some deps use them
63 - cat <<-EOF > ${PN}.pc.template
64 - prefix=${EPREFIX}/usr
65 - libdir=\${prefix}/$(get_libdir)
66 - includedir=\${prefix}/include
67 - Name: ${PN}
68 - Description: ${DESCRIPTION}
69 - Version: ${PV}
70 - URL: ${HOMEPAGE}
71 - Cflags: -I\${includedir}
72 - EOF
73 - cp ${PN}.pc.template ${PN}.pc || die
74 - cat <<-EOF >> ${PN}.pc
75 - Libs: -L\${libdir} -ltbb
76 - Libs.private: -lm -lrt
77 - EOF
78 - cp ${PN}.pc.template ${PN}malloc.pc || die
79 - cat <<-EOF >> ${PN}malloc.pc
80 - Libs: -L\${libdir} -ltbbmalloc
81 - Libs.private: -lm -lrt
82 - EOF
83 - cp ${PN}.pc.template ${PN}malloc_proxy.pc || die
84 - cat <<-EOF >> ${PN}malloc_proxy.pc
85 - Libs: -L\${libdir} -ltbbmalloc_proxy
86 - Libs.private: -lrt
87 - Requires: tbbmalloc
88 - EOF
89 -}
90 -
91 -local_src_compile() {
92 - cd "${S}"
93 -
94 - local comp arch
95 -
96 - case ${MULTILIB_ABI_FLAG} in
97 - abi_x86_64) arch=x86_64 ;;
98 - abi_x86_32) arch=ia32 ;;
99 - abi_ppc_64) arch=ppc64 ;;
100 - abi_ppc_32) arch=ppc32 ;;
101 - esac
102 -
103 - case "$(tc-getCXX)" in
104 - *g++*) comp="gcc" ;;
105 - *ic*c) comp="icc" ;;
106 - *clang*) comp="clang" ;;
107 - *) die "compiler $(tc-getCXX) not supported by build system" ;;
108 - esac
109 -
110 - CXX="$(tc-getCXX)" \
111 - CC="$(tc-getCC)" \
112 - AS="$(tc-getAS)" \
113 - arch=${arch} \
114 - CPLUS_FLAGS="${CXXFLAGS}" \
115 - emake compiler=${comp} work_dir="${BUILD_DIR}" tbb_root="${S}" $@
116 -}
117 -
118 -multilib_src_compile() {
119 - local_src_compile tbb tbbmalloc
120 -}
121 -
122 -multilib_src_test() {
123 - CXXFLAGS="${CXXFLAGS} -fabi-version=4" \
124 - local_src_compile -j1 test
125 -}
126 -
127 -multilib_src_install() {
128 - local bt
129 - local buildtypes
130 - if use debug ; then
131 - buildtypes="release debug"
132 - else
133 - buildtypes="release"
134 - fi
135 - for bt in ${buildtypes}; do
136 - cd "${BUILD_DIR}_${bt}" || die
137 - local l
138 - for l in $(find . -name lib\*.so.\*); do
139 - dolib.so ${l}
140 - local bl=$(basename ${l})
141 - dosym ${bl} /usr/$(get_libdir)/${bl%.*}
142 - done
143 - done
144 -
145 - cd "${BUILD_DIR}" || die
146 - insinto /usr/$(get_libdir)/pkgconfig
147 - doins *.pc
148 -}
149 -
150 -multilib_src_install_all() {
151 - doheader -r include/*
152 -
153 - dodoc README CHANGES doc/Release_Notes.txt
154 - use doc && dohtml -r doc/html/*
155 -
156 - if use examples ; then
157 - insinto /usr/share/doc/${PF}/examples/build
158 - doins build/*.inc
159 - insinto /usr/share/doc/${PF}/examples
160 - doins -r examples
161 - fi
162 -}