Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/icc: icc-11.1.056-r1.ebuild ChangeLog
Date: Thu, 22 Apr 2010 09:23:00
Message-Id: 20100422092256.EA29728AEE@corvid.gentoo.org
1 jlec 10/04/22 09:22:56
2
3 Modified: ChangeLog
4 Added: icc-11.1.056-r1.ebuild
5 Log:
6 Bumped to EAPI=3, keyworded ~amd64-linux ~x86-linux
7 (Portage version: 2.2_rc67/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.77 dev-lang/icc/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/icc/ChangeLog?rev=1.77&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/icc/ChangeLog?rev=1.77&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/icc/ChangeLog?r1=1.76&r2=1.77
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-lang/icc/ChangeLog,v
19 retrieving revision 1.76
20 retrieving revision 1.77
21 diff -u -r1.76 -r1.77
22 --- ChangeLog 8 Oct 2009 03:48:20 -0000 1.76
23 +++ ChangeLog 22 Apr 2010 09:22:56 -0000 1.77
24 @@ -1,6 +1,11 @@
25 # ChangeLog for dev-lang/icc
26 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/icc/ChangeLog,v 1.76 2009/10/08 03:48:20 bicatali Exp $
28 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/icc/ChangeLog,v 1.77 2010/04/22 09:22:56 jlec Exp $
30 +
31 +*icc-11.1.056-r1 (22 Apr 2010)
32 +
33 + 22 Apr 2010; Justin Lecher <jlec@g.o> +icc-11.1.056-r1.ebuild:
34 + Bumped to EAPI=3, keyworded ~amd64-linux ~x86-linux
35
36 08 Oct 2009; Sébastien Fabbro <bicatali@g.o> icc-11.1.056.ebuild:
37 Changed to bash brackets
38
39
40
41 1.1 dev-lang/icc/icc-11.1.056-r1.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/icc/icc-11.1.056-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/icc/icc-11.1.056-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: icc-11.1.056-r1.ebuild
47 ===================================================================
48 # Copyright 1999-2010 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-lang/icc/icc-11.1.056-r1.ebuild,v 1.1 2010/04/22 09:22:56 jlec Exp $
51
52 EAPI="3"
53
54 inherit rpm versionator check-reqs
55
56 PB=cproc
57 PACKAGEID="l_${PB}_p_${PV}"
58 RELEASE="$(get_version_component_range 1-2)"
59 BUILD="$(get_version_component_range 3)"
60 PID=1583
61
62 DESCRIPTION="Intel compiler suite for Linux"
63 HOMEPAGE="http://www.intel.com/software/products/compilers/clin/"
64 SRC_COM="http://registrationcenter-download.intel.com/irc_nas/${PID}/${PACKAGEID}"
65 SRC_URI="amd64? ( ${SRC_COM}_intel64.tgz )
66 ia64? ( ${SRC_COM}_ia64.tgz )
67 x86? ( ${SRC_COM}_ia32.tgz )"
68
69 LICENSE="Intel-SDP"
70 SLOT="0"
71 IUSE="eclipse +idb ipp mkl"
72 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
73
74 RESTRICT="mirror strip binchecks"
75
76 DEPEND=""
77 RDEPEND="~virtual/libstdc++-3.3
78 amd64? ( app-emulation/emul-linux-x86-compat )
79 eclipse? ( >=dev-util/eclipse-sdk-3.4 )"
80
81 DESTINATION="${EPREFIX#/}/opt/intel/Compiler/${RELEASE}/${BUILD}"
82
83 pkg_setup() {
84 CHECKREQS_MEMORY=1024
85 CHECKREQS_DISK_BUILD=2048
86 use idb && use ipp && use mkl && CHECKREQS_DISK_BUILD=3072
87 check_reqs
88 IARCH=ia32
89 use amd64 && IARCH=intel64
90 use ia64 && IARCH=ia64
91 }
92
93 src_unpack() {
94 unpack ${A}
95 mv "${WORKDIR}"/l_* "${S}"
96 cd "${S}"
97 # tbb is open source, thus built from sources in dev-cpp/tbb
98 rm -f rpm/*tbb*.rpm
99 use idb || rm -f rpm/*idb*.rpm
100 use ipp || rm -f rpm/*ipp*.rpm
101 use mkl || rm -f rpm/*mkl*.rpm
102 use eclipse || rm -f rpm/*cdt*.rpm
103 if has_version "~dev-lang/ifc-${PV}"; then
104 rm -f rpm/*cprolib*.rpm
105 use idb && built_with_use dev-lang/ifc idb && rm -f rpm/*idb*.rpm
106 use mkl && built_with_use dev-lang/ifc mkl && rm -f rpm/*mkl*.rpm
107 fi
108 for x in rpm/intel*.rpm; do
109 einfo "Extracting $(basename ${x})..."
110 rpm_unpack ./${x} || die "rpm_unpack ${x} failed"
111 done
112 }
113
114 link_eclipse_plugins() {
115 ECLIPSE_V="$1"
116 CDT_V="$2"
117 einfo "Linking eclipse (v${ECLIPSE_V}) plugin cdt (v${CDT_V})"
118 dodir /usr/$(get_libdir)/eclipse-${ECLIPSE_V}/plugins
119 dodir /usr/$(get_libdir)/eclipse-${ECLIPSE_V}/features
120
121 for f in "${DESTINATION}/eclipse_support/cdt${CDT_V}/eclipse/plugins"/*; do
122 dosym "${ROOT}${f}" /usr/$(get_libdir)/eclipse-${ECLIPSE_V}/plugins
123 done
124
125 for f in "${DESTINATION}/eclipse_support/cdt${CDT_V}/eclipse/features"/*; do
126 dosym "${ROOT}${f}" /usr/$(get_libdir)/eclipse-${ECLIPSE_V}/features
127 done
128 eend $?
129 }
130
131 src_prepare() {
132 # from the PURGE_UB804_FNP in pset/install_cc.sh
133 # rm -f "${DESTINATION}"/lib/*/*libFNP.so || die
134
135 # extract the tag function from the original install
136 sed -n \
137 -e "s|find \$DESTINATION|find ${DESTINATION}|g" \
138 -e "s|@\$DESTINATION|@${ROOT}${DESTINATION}|g" \
139 -e '/^UNTAG_CFG_FILES[[:space:]]*(/,/^}/p' \
140 pset/install_cc.sh > tag.sh || die
141 # fix world writeable files
142 [[ -d ${DESTINATION}/mkl ]] && chmod 644 \
143 ${DESTINATION}/mkl/tools/{environment,builder}/* \
144 ${DESTINATION}/mkl/tools/plugins/*/*
145 # remove for collision (bug #288038)
146 has_version "~dev-lang/ifc-${PV}" && \
147 rm -f ${DESTINATION}/lib/*/locale/*/flexnet.cat
148 }
149
150 src_install() {
151 einfo "Tagging"
152 . ./tag.sh
153 UNTAG_CFG_FILES
154
155 keepdir /opt/intel/licenses
156 einfo "Copying files"
157 dodir "${DESTINATION}"
158 cp -pPR \
159 ${DESTINATION}/* \
160 "${ED}"/${DESTINATION}/ \
161 || die "Copying ${PN} failed"
162
163 local envf=05icfc
164 cat > ${envf} <<-EOF
165 PATH="${EROOT}${DESTINATION}/bin/${IARCH}"
166 ROOTPATH="${EROOT}${DESTINATION}/bin/${IARCH}"
167 LDPATH="${EROOT}${DESTINATION}/lib/${IARCH}"
168 LIBRARY_PATH="${EROOT}${DESTINATION}/lib/${IARCH}"
169 NLSPATH="${EROOT}${DESTINATION}/lib/locale/en_US/%N"
170 MANPATH="${EROOT}${DESTINATION}/man/en_US"
171 EOF
172 if [[ ! -e "${EROOT}"etc/env.d/${envf} ]] ||
173 [[ -n $(diff "${EROOT}"etc/env.d/${envf} ./${envf}) ]]; then
174 doenvd ${envf} || die "doenvd ${envf} failed"
175 fi
176 [[ -d ${DESTINATION}/idb ]] && \
177 dosym ../../common/com.intel.debugger.help_1.0.0 \
178 ${DESTINATION}/idb/gui/${IARCH}/plugins
179
180 if use eclipse; then
181 if has_version 'dev-util/eclipse-sdk:3.4'; then
182 link_eclipse_plugins "3.4" "5.0" || die
183 fi
184 if has_version 'dev-util/eclipse-sdk:3.5'; then
185 link_eclipse_plugins "3.5" "6.0" || die
186 fi
187 fi
188 }
189
190 pkg_postinst() {
191 elog "Make sure you have recieved the an Intel license."
192 elog "To receive a non-commercial license, you need to register at:"
193 elog "http://software.intel.com/en-us/articles/non-commercial-software-development/"
194 elog "Install the license file into ${EROOT}opt/intel/licenses."
195 }