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: ChangeLog icc-11.1.072-r1.ebuild
Date: Fri, 26 Nov 2010 13:20:37
Message-Id: 20101126132012.880F820051@flycatcher.gentoo.org
1 jlec 10/11/26 13:20:12
2
3 Modified: ChangeLog
4 Added: icc-11.1.072-r1.ebuild
5 Log:
6 Adding missing LIBRARY/LDPATH for idb, QA check fixes #330211
7
8 (Portage version: 2.2.0_alpha5/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.82 dev-lang/icc/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/icc/ChangeLog?rev=1.82&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/icc/ChangeLog?rev=1.82&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/icc/ChangeLog?r1=1.81&r2=1.82
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-lang/icc/ChangeLog,v
20 retrieving revision 1.81
21 retrieving revision 1.82
22 diff -u -r1.81 -r1.82
23 --- ChangeLog 28 Jul 2010 13:05:36 -0000 1.81
24 +++ ChangeLog 26 Nov 2010 13:20:12 -0000 1.82
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-lang/icc
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/icc/ChangeLog,v 1.81 2010/07/28 13:05:36 flameeyes Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/icc/ChangeLog,v 1.82 2010/11/26 13:20:12 jlec Exp $
30 +
31 +*icc-11.1.072-r1 (26 Nov 2010)
32 +
33 + 26 Nov 2010; Justin Lecher <jlec@g.o> +icc-11.1.072-r1.ebuild:
34 + Adding missing LIBRARY/LDPATH for idb, QA check fixes #330211
35
36 28 Jul 2010; Diego E. Pettenò <flameeyes@g.o>
37 icc-11.1.046-r2.ebuild, icc-11.1.056.ebuild, icc-11.1.056-r1.ebuild,
38
39
40
41 1.1 dev-lang/icc/icc-11.1.072-r1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/icc/icc-11.1.072-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/icc/icc-11.1.072-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: icc-11.1.072-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.072-r1.ebuild,v 1.1 2010/11/26 13:20:12 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=1768
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 ~ia64 ~x86 ~amd64-linux ~x86-linux"
73
74 RESTRICT="mirror"
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="opt/intel/Compiler/${RELEASE}/${BUILD}"
82 EDESTINATION="${EROOT#/}${DESTINATION}"
83
84 QA_TEXTRELS="${EDESTINATION}/*"
85 QA_EXECSTACK="${EDESTINATION}/*"
86 QA_PRESTRIPPED="${EDESTINATION}/lib/*/.*libFNP.so ${EDESTINATION}/bin/*/.* ${EDESTINATION}/idb/*/*/.*"
87 QA_DT_HASH="
88 ${EDESTINATION}/bin/*/.*
89 ${EDESTINATION}/lib/*/.*
90 ${EDESTINATION}/mkl/lib/*/.*
91 ${EDESTINATION}/mkl/benchmarks/mp_linpack/bin_intel/*/.*
92 ${EDESTINATION}/idb/*/*/.*"
93
94 pkg_setup() {
95 CHECKREQS_MEMORY=1024
96 CHECKREQS_DISK_BUILD=2048
97 use idb && use ipp && use mkl && CHECKREQS_DISK_BUILD=3072
98 check_reqs
99 IARCH=ia32
100 use amd64 && IARCH=intel64
101 use ia64 && IARCH=ia64
102 }
103
104 src_unpack() {
105 unpack ${A}
106 mv "${WORKDIR}"/l_* "${S}"
107 cd "${S}"
108 # tbb is open source, thus built from sources in dev-cpp/tbb
109 rm -f rpm/*tbb*.rpm
110 use idb || rm -f rpm/*idb*.rpm
111 use ipp || rm -f rpm/*ipp*.rpm
112 use mkl || rm -f rpm/*mkl*.rpm
113 use eclipse || rm -f rpm/*cdt*.rpm
114 if has_version "~dev-lang/ifc-${PV}"; then
115 rm -f rpm/*cprolib*.rpm
116 use idb && built_with_use dev-lang/ifc idb && rm -f rpm/*idb*.rpm
117 use mkl && built_with_use dev-lang/ifc mkl && rm -f rpm/*mkl*.rpm
118 fi
119 for x in rpm/intel*.rpm; do
120 einfo "Extracting $(basename ${x})..."
121 rpm_unpack ./${x} || die "rpm_unpack ${x} failed"
122 done
123 }
124
125 link_eclipse_plugins() {
126 ECLIPSE_V="$1"
127 CDT_V="$2"
128 einfo "Linking eclipse (v${ECLIPSE_V}) plugin cdt (v${CDT_V})"
129 dodir /usr/$(get_libdir)/eclipse-${ECLIPSE_V}/plugins
130 dodir /usr/$(get_libdir)/eclipse-${ECLIPSE_V}/features
131
132 for f in "${DESTINATION}/eclipse_support/cdt${CDT_V}/eclipse/plugins"/*; do
133 dosym "${EROOT}${f}" /usr/$(get_libdir)/eclipse-${ECLIPSE_V}/plugins
134 done
135
136 for f in "${DESTINATION}/eclipse_support/cdt${CDT_V}/eclipse/features"/*; do
137 dosym "${EROOT}${f}" /usr/$(get_libdir)/eclipse-${ECLIPSE_V}/features
138 done
139 eend $?
140 }
141
142 src_prepare() {
143 # from the PURGE_UB804_FNP in pset/install_cc.sh
144 # rm -f "${DESTINATION}"/lib/*/*libFNP.so || die
145
146 # extract the tag function from the original install
147 sed -n \
148 -e "s|find \$DESTINATION|find ${DESTINATION}|g" \
149 -e "s|@\$DESTINATION|@${EROOT}${DESTINATION}|g" \
150 -e '/^UNTAG_CFG_FILES[[:space:]]*(/,/^}/p' \
151 pset/install_cc.sh > tag.sh || die
152 # fix world writeable files
153 [[ -d ${DESTINATION}/mkl ]] && chmod 644 \
154 ${DESTINATION}/mkl/tools/{environment,builder}/* \
155 ${DESTINATION}/mkl/tools/plugins/*/*
156 # remove for collision (bug #288038)
157 has_version "~dev-lang/ifc-${PV}" && \
158 rm -f ${DESTINATION}/lib/*/locale/*/flexnet.cat
159 }
160
161 src_install() {
162 einfo "Tagging"
163 . ./tag.sh
164 UNTAG_CFG_FILES
165
166 keepdir /opt/intel/licenses
167 einfo "Copying files"
168 dodir "/${DESTINATION}"
169 cp -pPR \
170 ${DESTINATION}/* \
171 "${ED}"/${DESTINATION}/ \
172 || die "Copying ${PN} failed"
173
174 local envf=05icfc
175 cat > ${envf} <<-EOF
176 PATH="${EROOT}${DESTINATION}/bin/${IARCH}"
177 ROOTPATH="${EROOT}${DESTINATION}/bin/${IARCH}"
178 LDPATH="${EROOT}${DESTINATION}/lib/${IARCH}:${EROOT}${DESTINATION}/idb/lib/${IARCH}"
179 LIBRARY_PATH="${EROOT}${DESTINATION}/lib/${IARCH}:${EROOT}${DESTINATION}/idb/lib/${IARCH}"
180 NLSPATH="${EROOT}${DESTINATION}/lib/locale/en_US/%N"
181 MANPATH="${EROOT}${DESTINATION}/man/en_US"
182 EOF
183 if [[ ! -e "${EROOT}"etc/env.d/${envf} ]] ||
184 [[ -n $(diff "${EROOT}"etc/env.d/${envf} ./${envf}) ]]; then
185 doenvd ${envf} || die "doenvd ${envf} failed"
186 fi
187 [[ -d ${DESTINATION}/idb ]] && \
188 dosym ../../common/com.intel.debugger.help_1.0.0 \
189 ${DESTINATION}/idb/gui/${IARCH}/plugins
190
191 if use eclipse; then
192 if has_version 'dev-util/eclipse-sdk:3.4'; then
193 link_eclipse_plugins "3.4" "5.0" || die
194 fi
195 if has_version 'dev-util/eclipse-sdk:3.5'; then
196 link_eclipse_plugins "3.5" "6.0" || die
197 fi
198 fi
199 }
200
201 pkg_postinst() {
202 elog "Make sure you have recieved the an Intel license."
203 elog "To receive a non-commercial license, you need to register at:"
204 elog "http://software.intel.com/en-us/articles/non-commercial-software-development/"
205 elog "Install the license file into ${EROOT}opt/intel/licenses."
206 }