1 |
commit: 8ba9493bd91a9f0886d415ca84d29006007820a5 |
2 |
Author: Guilherme Amadio <amadio <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Mar 31 21:01:04 2020 +0000 |
4 |
Commit: Guilherme Amadio <amadio <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 1 08:50:48 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ba9493b |
7 |
|
8 |
dev-cpp/tbb: version bump to 2020.2 |
9 |
|
10 |
Package-Manager: Portage-2.3.96, Repoman-2.3.22 |
11 |
Signed-off-by: Guilherme Amadio <amadio <AT> gentoo.org> |
12 |
|
13 |
dev-cpp/tbb/Manifest | 1 + |
14 |
dev-cpp/tbb/tbb-2020.2.ebuild | 151 ++++++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 152 insertions(+) |
16 |
|
17 |
diff --git a/dev-cpp/tbb/Manifest b/dev-cpp/tbb/Manifest |
18 |
index 2b389097681..fd7b4501a2b 100644 |
19 |
--- a/dev-cpp/tbb/Manifest |
20 |
+++ b/dev-cpp/tbb/Manifest |
21 |
@@ -1,4 +1,5 @@ |
22 |
DIST tbb-2018.20180312.tar.gz 2911740 BLAKE2B 5c6dab4a892f3b61ed0b02ea36dc41bebd5b33a22bcc3d5f2960f21e134f2eb9bccf1466193a573489e12638c0bb0bccc2da83f699968ffd62417f2d0f093289 SHA512 7ac74e714122e25f7704630d3d52992dbea54d1e761b5e487251a771f401aa864f78b8ddf11d78f38758088df387abb6987f6a2db562c86cbb28ba8f33a25680 |
23 |
DIST tbb-2019.8.tar.gz 2580540 BLAKE2B 1cddb0c8ade6f6363811b7f9b323a2bb7739a18114acd56e1b4a13f33904ddff8cb6aec9b4b0add995cd307ff7815f0b55ce33fa64b7dd92c0062fbaa13d0833 SHA512 924a8dde011452a2c46c5152942a9835e76fe5610e08b69eb0e985de3fb46bdb49f0f628d10fa7704428f6e61ec63f7002da5399d47da6ee6004fa236d346dc8 |
24 |
DIST tbb-2020.1.tar.gz 2639115 BLAKE2B 058438351738eeab01c230ec10ff0a1dde77e5cc4fd77f292c31ee0320f41d079c8f90fc06f4640ffa375d5f0c0b5fbed13ac5a64a9cb9f1737cb66bc80442ea SHA512 79810c27c84bd3b3432bef471fa1c782f1f162a0d1038e88c03a77499cc7aeaa10d57317729fd23472e2d0f358395955f7570e8c679685a552a833eb45cf5f1d |
25 |
+DIST tbb-2020.2.tar.gz 2637172 BLAKE2B 6b6e65732d3971f7374058513004ca3cfc3855b83c0a2dde59d50e08c26ff220470e31db86f4ab9f009c7e02e454a00a348730e63c829aa8d217320f7879cfc9 SHA512 6d7412fa6ce12d27736af3c8942c5ab5ea6945dd3ca93f309535c0dba3ff757d6507a5ffc3bcd73e6fdcda043cdedfa657631b25ae86fbf221d0f1d66a85b48f |
26 |
DIST tbb2017_20161128oss_src.tgz 2965854 BLAKE2B 8c5aed6d8477297922767803617346feebb712d1f4b2df6d71a86f039b5563afc666454985e68a528a812aaad40b5fd0562bb91d357c45156fec46e5389ec542 SHA512 3c48ce196d2d3557e86cea7ede9dea456bbaeb29dbed34210f99c6f380406403a6056ccfa3d5befe6b29c4f8a9ee58ca6da545249cf4ec4ec85b463e04e4518c |
27 |
|
28 |
diff --git a/dev-cpp/tbb/tbb-2020.2.ebuild b/dev-cpp/tbb/tbb-2020.2.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..25976f821ba |
31 |
--- /dev/null |
32 |
+++ b/dev-cpp/tbb/tbb-2020.2.ebuild |
33 |
@@ -0,0 +1,151 @@ |
34 |
+# Copyright 1999-2020 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=7 |
38 |
+ |
39 |
+inherit eutils flag-o-matic multilib-minimal multilib toolchain-funcs |
40 |
+ |
41 |
+PV1="$(ver_cut 1)" |
42 |
+PV2="$(ver_cut 2)" |
43 |
+MY_PV="${PV1}_U${PV2}" |
44 |
+ |
45 |
+DESCRIPTION="High level abstract threading library" |
46 |
+HOMEPAGE="https://www.threadingbuildingblocks.org" |
47 |
+SRC_URI="https://github.com/intel/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" |
48 |
+LICENSE="Apache-2.0" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" |
51 |
+IUSE="debug examples" |
52 |
+ |
53 |
+DEPEND="" |
54 |
+RDEPEND="${DEPEND}" |
55 |
+S="${WORKDIR}/oneTBB-${MY_PV}" |
56 |
+ |
57 |
+DOCS=( CHANGES README README.md doc/Release_Notes.txt ) |
58 |
+ |
59 |
+PATCHES=( "${FILESDIR}"/${PN}-2020.1-makefile-debug.patch ) |
60 |
+ |
61 |
+src_prepare() { |
62 |
+ default |
63 |
+ |
64 |
+ find include -name \*.html -delete || die |
65 |
+ |
66 |
+ # Give it a soname on FreeBSD |
67 |
+ echo 'LIB_LINK_FLAGS += -Wl,-soname=$(BUILDING_LIBRARY)' >> build/FreeBSD.gcc.inc |
68 |
+ # Set proper versionning on FreeBSD |
69 |
+ sed -i -e '/.DLL =/s/$/.1/' build/FreeBSD.inc || die |
70 |
+ |
71 |
+ use debug || sed -i -e '/_debug/d' Makefile |
72 |
+} |
73 |
+ |
74 |
+multilib_src_configure() { |
75 |
+ # pc files are for debian and fedora compatibility |
76 |
+ # some deps use them |
77 |
+ cat <<-EOF > ${PN}.pc.template |
78 |
+ prefix=${EPREFIX}/usr |
79 |
+ libdir=\${prefix}/$(get_libdir) |
80 |
+ includedir=\${prefix}/include |
81 |
+ Name: ${PN} |
82 |
+ Description: ${DESCRIPTION} |
83 |
+ Version: ${PV} |
84 |
+ URL: ${HOMEPAGE} |
85 |
+ Cflags: -I\${includedir} |
86 |
+ EOF |
87 |
+ cp ${PN}.pc.template ${PN}.pc || die |
88 |
+ cat <<-EOF >> ${PN}.pc |
89 |
+ Libs: -L\${libdir} -ltbb |
90 |
+ Libs.private: -lm -lrt |
91 |
+ EOF |
92 |
+ cp ${PN}.pc.template ${PN}malloc.pc || die |
93 |
+ cat <<-EOF >> ${PN}malloc.pc |
94 |
+ Libs: -L\${libdir} -ltbbmalloc |
95 |
+ Libs.private: -lm -lrt |
96 |
+ EOF |
97 |
+ cp ${PN}.pc.template ${PN}malloc_proxy.pc || die |
98 |
+ cat <<-EOF >> ${PN}malloc_proxy.pc |
99 |
+ Libs: -L\${libdir} -ltbbmalloc_proxy |
100 |
+ Libs.private: -lrt |
101 |
+ Requires: tbbmalloc |
102 |
+ EOF |
103 |
+} |
104 |
+ |
105 |
+local_src_compile() { |
106 |
+ cd "${S}" |
107 |
+ |
108 |
+ local comp arch |
109 |
+ local bt buildtypes |
110 |
+ |
111 |
+ case ${MULTILIB_ABI_FLAG} in |
112 |
+ abi_x86_64) arch=x86_64 ;; |
113 |
+ abi_x86_32) arch=ia32 ;; |
114 |
+# abi_ppc_64) arch=ppc64 ;; |
115 |
+# abi_ppc_32) arch=ppc32 ;; |
116 |
+ esac |
117 |
+ |
118 |
+ case "$(tc-getCXX)" in |
119 |
+ *clang*) comp="clang" ;; |
120 |
+ *g++*) comp="gcc" ;; |
121 |
+ *ic*c) comp="icc" ;; |
122 |
+ *) die "compiler $(tc-getCXX) not supported by build system" ;; |
123 |
+ esac |
124 |
+ |
125 |
+ if use debug ; then |
126 |
+ buildtypes="release debug" |
127 |
+ else |
128 |
+ buildtypes="release" |
129 |
+ fi |
130 |
+ |
131 |
+ for bt in ${buildtypes}; do |
132 |
+ CXX="$(tc-getCXX)" \ |
133 |
+ CC="$(tc-getCC)" \ |
134 |
+ AS="$(tc-getAS)" \ |
135 |
+ arch=${arch} \ |
136 |
+ CPLUS_FLAGS="${CXXFLAGS}" \ |
137 |
+ emake compiler=${comp} work_dir="${BUILD_DIR}" tbb_root="${S}" cfg=${bt} $@ |
138 |
+ done |
139 |
+} |
140 |
+ |
141 |
+multilib_src_compile() { |
142 |
+ local_src_compile tbb tbbmalloc |
143 |
+} |
144 |
+ |
145 |
+multilib_src_test() { |
146 |
+ local_src_compile test |
147 |
+} |
148 |
+ |
149 |
+multilib_src_install() { |
150 |
+ local bt |
151 |
+ local buildtypes |
152 |
+ if use debug ; then |
153 |
+ buildtypes="release debug" |
154 |
+ else |
155 |
+ buildtypes="release" |
156 |
+ fi |
157 |
+ for bt in ${buildtypes}; do |
158 |
+ cd "${BUILD_DIR}_${bt}" || die |
159 |
+ local l |
160 |
+ for l in $(find . -name lib\*$(get_libname \*)); do |
161 |
+ dolib.so ${l} |
162 |
+ local bl=$(basename ${l}) |
163 |
+ dosym ${bl} /usr/$(get_libdir)/${bl%%.*}$(get_libname) |
164 |
+ done |
165 |
+ done |
166 |
+ |
167 |
+ cd "${BUILD_DIR}" || die |
168 |
+ insinto /usr/$(get_libdir)/pkgconfig |
169 |
+ doins *.pc |
170 |
+} |
171 |
+ |
172 |
+multilib_src_install_all() { |
173 |
+ doheader -r include/* |
174 |
+ |
175 |
+ einstalldocs |
176 |
+ |
177 |
+ if use examples ; then |
178 |
+ insinto /usr/share/doc/${PF}/examples/build |
179 |
+ doins build/*.inc |
180 |
+ insinto /usr/share/doc/${PF}/examples |
181 |
+ doins -r examples |
182 |
+ docompress -x "/usr/share/doc/${PF}/examples" |
183 |
+ fi |
184 |
+} |