blob: 5162ba94c7d244ca4015259f3f75f44e6d22d886 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/idb/idb-11.1.056.ebuild,v 1.2 2010/04/20 20:58:28 bicatali Exp $
EAPI=2
inherit versionator multilib
RELEASE="$(get_version_component_range 1-2)"
BUILD="$(get_version_component_range 3)"
DESCRIPTION="Intel C/C++/FORTRAN debugger for Linux"
HOMEPAGE="http://www.intel.com/software/products/compilers/"
SRC_URI=""
KEYWORDS="~amd64 ~x86"
LICENSE="Intel-SDP"
SLOT="0"
IUSE="eclipse"
DEPEND=""
RDEPEND="|| ( ~dev-lang/icc-${PV}[idb] ~dev-lang/ifc-${PV}[idb] )
>=virtual/jre-1.5
eclipse? ( >=dev-util/eclipse-sdk-3.4 )"
DESTINATION="${ROOT}opt/intel/Compiler/${RELEASE}/${BUILD}"
link_eclipse_plugins() {
ECLIPSE_V="$1"
CDT_V="$2"
einfo "Linking eclipse (v${ECLIPSE_V}) plugin cdt (v${CDT_V})"
dodir /usr/$(get_libdir)/eclipse-${ECLIPSE_V}/plugins
dodir /usr/$(get_libdir)/eclipse-${ECLIPSE_V}/features
for f in "${DESTINATION}/idb/eclipse_support/cdt${CDT_V}/eclipse/plugins"/*; do
dosym "${ROOT}${f}" /usr/$(get_libdir)/eclipse-${ECLIPSE_V}/plugins
done
for f in "${DESTINATION}/idb/eclipse_support/cdt${CDT_V}/eclipse/features"/*; do
dosym /"${ROOT}${f}" /usr/$(get_libdir)/eclipse-${ECLIPSE_V}/features
done
eend $?
}
src_install() {
cat > 06idb <<-EOF
NLSPATH=${DESTINATION}/idb/${IARCH}/locale/%l_%t/%N
EOF
doenvd 06idb || die "doenvd 06idb failed"
if use eclipse; then
if has_version 'dev-util/eclipse-sdk:3.4'; then
link_eclipse_plugins "3.4" "5.0" || die
fi
if has_version 'dev-util/eclipse-sdk:3.5'; then
link_eclipse_plugins "3.5" "6.0" || die
fi
fi
}
|