/[gentoo-x86]/dev-cpp/tbb/tbb-2.2.013-r1.ebuild
Gentoo

Contents of /dev-cpp/tbb/tbb-2.2.013-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Feb 27 02:28:55 2012 UTC (2 years, 8 months ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump. Introduced a pkg-config file, bug #405723

(Portage version: 2.1.10.44/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-cpp/tbb/tbb-2.2.013-r1.ebuild,v 1.1 2010/04/20 20:35:04 bicatali Exp $
4
5 EAPI=2
6 inherit eutils versionator toolchain-funcs alternatives
7 # url number
8 MYU="78/147"
9 # release update
10 MYR="3"
11
12 PV1="$(get_version_component_range 1)"
13 PV2="$(get_version_component_range 2)"
14 PV3="$(get_version_component_range 3)"
15 MYP="${PN}${PV1}${PV2}_${PV3}oss"
16
17 DESCRIPTION="High level abstract threading library"
18 HOMEPAGE="http://www.threadingbuildingblocks.org/"
19 SRC_URI="http://www.threadingbuildingblocks.org/uploads/${MYU}/${PV1}.${PV2}%20update%20${MYR}/${MYP}_src.tgz"
20 LICENSE="GPL-2-with-exceptions"
21
22 SLOT="0"
23 KEYWORDS="~amd64 ~x86"
24 IUSE="debug doc examples"
25
26 DEPEND="!<=dev-cpp/tbb-2.1.016"
27 RDEPEND="${DEPEND}"
28 S="${WORKDIR}/${MYP}"
29
30 src_prepare() {
31 sed -i \
32 -e "s/-O2/${CXXFLAGS}/g" \
33 build/*.inc \
34 || die
35 }
36
37 src_compile() {
38 if [[ $(tc-getCXX) == *g++ ]]; then
39 myconf="compiler=gcc"
40 elif [[ $(tc-getCXX) == *ic*c ]]; then
41 myconf="compiler=icc"
42 fi
43 # from the Makefile, split debug
44 cd src
45 emake ${myconf} tbb_release tbbmalloc_release || die "emake failed"
46 if use debug || use examples; then
47 emake ${myconf} tbb_debug tbbmalloc_debug || die "emake debug failed"
48 fi
49 }
50
51 src_test() {
52 cd src
53 emake ${myconf} test_release || die "emake test failed"
54 if use debug || use examples; then
55 emake ${myconf} test_debug tbbmalloc_test_debug || die "emake test debug failed"
56 fi
57
58 }
59
60 src_install(){
61 for l in $(find build -name lib\*.so.\*); do
62 dolib.so ${l} || die
63 local bl=$(basename ${l})
64 dosym ${bl} /usr/$(get_libdir)/${bl%.*}
65 done
66 insinto /usr
67 doins -r include || die
68
69 dodoc README CHANGES doc/Release_Notes.txt
70 if use doc ; then
71 insinto /usr/share/doc/${PF}
72 doins -r doc/html || die
73 fi
74 if use examples ; then
75 insinto /usr/share/doc/${PF}/examples/build
76 doins build/*.inc || die
77 insinto /usr/share/doc/${PF}/examples
78 doins -r examples || die
79 fi
80 }

  ViewVC Help
Powered by ViewVC 1.1.20