Gentoo Archives: gentoo-commits

From: "Sebastien Fabbro (bicatali)" <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-cpp/tbb: tbb-4.2.20140122.ebuild ChangeLog tbb-4.2.20131003.ebuild
Date: Wed, 30 Apr 2014 16:44:32
Message-Id: 20140430164425.ADF442004B@flycatcher.gentoo.org
1 bicatali 14/04/30 16:44:25
2
3 Modified: ChangeLog
4 Added: tbb-4.2.20140122.ebuild
5 Removed: tbb-4.2.20131003.ebuild
6 Log:
7 Version bump
8
9 (Portage version: 2.2.8-prefix/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360)
10
11 Revision Changes Path
12 1.46 dev-cpp/tbb/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-cpp/tbb/ChangeLog?rev=1.46&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-cpp/tbb/ChangeLog?rev=1.46&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-cpp/tbb/ChangeLog?r1=1.45&r2=1.46
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/dev-cpp/tbb/ChangeLog,v
21 retrieving revision 1.45
22 retrieving revision 1.46
23 diff -u -r1.45 -r1.46
24 --- ChangeLog 5 Feb 2014 18:10:26 -0000 1.45
25 +++ ChangeLog 30 Apr 2014 16:44:25 -0000 1.46
26 @@ -1,6 +1,12 @@
27 # ChangeLog for dev-cpp/tbb
28 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/dev-cpp/tbb/ChangeLog,v 1.45 2014/02/05 18:10:26 bicatali Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/dev-cpp/tbb/ChangeLog,v 1.46 2014/04/30 16:44:25 bicatali Exp $
31 +
32 +*tbb-4.2.20140122 (30 Apr 2014)
33 +
34 + 30 Apr 2014; Sébastien Fabbro <bicatali@g.o> +tbb-4.2.20140122.ebuild,
35 + -tbb-4.2.20131003.ebuild:
36 + Version bump
37
38 *tbb-4.2.20131118 (05 Feb 2014)
39
40
41
42
43 1.1 dev-cpp/tbb/tbb-4.2.20140122.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-cpp/tbb/tbb-4.2.20140122.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-cpp/tbb/tbb-4.2.20140122.ebuild?rev=1.1&content-type=text/plain
47
48 Index: tbb-4.2.20140122.ebuild
49 ===================================================================
50 # Copyright 1999-2014 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/dev-cpp/tbb/tbb-4.2.20140122.ebuild,v 1.1 2014/04/30 16:44:25 bicatali Exp $
53
54 EAPI=5
55 inherit eutils flag-o-matic multilib versionator toolchain-funcs
56
57 PV1="$(get_version_component_range 1)"
58 PV2="$(get_version_component_range 2)"
59 PV3="$(get_version_component_range 3)"
60 MYP="${PN}${PV1}${PV2}_${PV3}oss"
61
62 DESCRIPTION="High level abstract threading library"
63 HOMEPAGE="http://www.threadingbuildingblocks.org/"
64 SRC_URI="http://threadingbuildingblocks.org/sites/default/files/software_releases/source/${MYP}_src.tgz"
65 LICENSE="GPL-2-with-exceptions"
66
67 SLOT="0"
68 KEYWORDS="~amd64 ~ppc ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux"
69 IUSE="debug doc examples"
70
71 DEPEND=""
72 RDEPEND="${DEPEND}"
73 S="${WORKDIR}/${MYP}"
74
75 src_prepare() {
76 epatch \
77 "${FILESDIR}"/${PN}-4.0.297-underlinking.patch
78 # use fully qualified gcc compilers. do not force march/mcpu
79 # not tested with icc
80 # order in sed expressions is important
81 sed -i \
82 -e "s/g++/$(tc-getCXX)/g" \
83 -e "s/gcc/$(tc-getCC)/g" \
84 -e 's/-m\(arch\|cpu\)=*[[:space:]]//g' \
85 -e 's/-\(m\|-\)\(64\|32\)//g' \
86 -e 's/-O2/$(CXXFLAGS)/g' \
87 -e "/^ASM/s/as/$(tc-getAS)/g" \
88 build/*.gcc.inc || die
89
90 # Give it a soname on FreeBSD
91 echo 'LIB_LINK_FLAGS += -Wl,-soname=$(BUILDING_LIBRARY)' >> build/FreeBSD.gcc.inc
92 # Set proper versionning on FreeBSD
93 sed -i -e '/.DLL =/s/$/.1/' build/FreeBSD.inc || die
94
95 # force 64bit where applicable, 32bit where applicable...
96 # built-in detection is based on running kernel, which messes up
97 # e.g. in a x86 chroot on amd64 kernel. Bug 462130
98 # see build/linux.inc for values
99 use amd64 && export arch=x86_64
100 use amd64-linux && export arch=x86_64
101 use x86 && export arch=ia32
102 use x86-linux && export arch=ia32
103 # no idea what to do with ppc but so far it seems to work
104
105 find include -name \*.html -delete || die
106
107 # pc files are for debian and fedora compatibility
108 # some deps use them
109 cat <<-EOF > ${PN}.pc.template
110 prefix=${EPREFIX}/usr
111 libdir=\${prefix}/$(get_libdir)
112 includedir=\${prefix}/include
113 Name: ${PN}
114 Description: ${DESCRIPTION}
115 Version: ${PV}
116 URL: ${HOMEPAGE}
117 Cflags: -I\${includedir}
118 EOF
119 cp ${PN}.pc.template ${PN}.pc
120 cat <<-EOF >> ${PN}.pc
121 Libs: -L\${libdir} -ltbb
122 Libs.private: -lm -lrt
123 EOF
124 cp ${PN}.pc.template ${PN}malloc.pc
125 cat <<-EOF >> ${PN}malloc.pc
126 Libs: -L\${libdir} -ltbbmalloc
127 Libs.private: -lm -lrt
128 EOF
129 cp ${PN}.pc.template ${PN}malloc_proxy.pc
130 cat <<-EOF >> ${PN}malloc_proxy.pc
131 Libs: -L\${libdir} -ltbbmalloc_proxy
132 Libs.private: -lrt
133 Requires: tbbmalloc
134 EOF
135 use debug || sed -i -e '/_debug/d' Makefile
136 }
137
138 src_compile() {
139 if [[ $(tc-getCXX) == *g++ ]]; then
140 comp="gcc"
141 elif [[ $(tc-getCXX) == *ic*c ]]; then
142 comp="icc"
143 else
144 die "compiler $(tc-getCXX) not supported by build system"
145 fi
146 emake compiler=${comp} tbb tbbmalloc
147 }
148
149 src_test() {
150 append-cxxflags -fabi-version=4
151 # avoid oversubscribing with -j1
152 emake -j1 compiler=${comp} test
153 }
154
155 src_install(){
156 local l
157 for l in $(find build -name lib\*.so.\*); do
158 dolib.so ${l}
159 local bl=$(basename ${l})
160 dosym ${bl} /usr/$(get_libdir)/${bl%.*}
161 done
162 doheader -r include/*
163
164 insinto /usr/$(get_libdir)/pkgconfig
165 doins *.pc
166
167 dodoc README CHANGES doc/Release_Notes.txt
168 use doc && dohtml -r doc/html/*
169
170 if use examples ; then
171 insinto /usr/share/doc/${PF}/examples/build
172 doins build/*.inc
173 insinto /usr/share/doc/${PF}/examples
174 doins -r examples
175 fi
176 }