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-lang/icc: ChangeLog icc-10.1.018.ebuild icc-10.1.017.ebuild
Date: Tue, 02 Sep 2008 09:43:23
Message-Id: E1KaSPw-0007NT-Nz@stork.gentoo.org
1 bicatali 08/09/02 09:43:20
2
3 Modified: ChangeLog
4 Added: icc-10.1.018.ebuild
5 Removed: icc-10.1.017.ebuild
6 Log:
7 Version bump
8 (Portage version: 2.2_rc8/cvs/Linux 2.6.23-gentoo-r9 x86_64)
9
10 Revision Changes Path
11 1.65 dev-lang/icc/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/icc/ChangeLog?rev=1.65&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/icc/ChangeLog?rev=1.65&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/icc/ChangeLog?r1=1.64&r2=1.65
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-lang/icc/ChangeLog,v
20 retrieving revision 1.64
21 retrieving revision 1.65
22 diff -u -r1.64 -r1.65
23 --- ChangeLog 23 Aug 2008 11:00:33 -0000 1.64
24 +++ ChangeLog 2 Sep 2008 09:43:20 -0000 1.65
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-lang/icc
27 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/icc/ChangeLog,v 1.64 2008/08/23 11:00:33 bicatali Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/icc/ChangeLog,v 1.65 2008/09/02 09:43:20 bicatali Exp $
30 +
31 +*icc-10.1.018 (02 Sep 2008)
32 +
33 + 02 Sep 2008; Sébastien Fabbro <bicatali@g.o> -icc-10.1.017.ebuild,
34 + +icc-10.1.018.ebuild:
35 + Version bump
36
37 23 Aug 2008; Sébastien Fabbro <bicatali@g.o>
38 -files/icc-add-amd64-preprocessor-directives.patch,
39
40
41
42 1.1 dev-lang/icc/icc-10.1.018.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/icc/icc-10.1.018.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/icc/icc-10.1.018.ebuild?rev=1.1&content-type=text/plain
46
47 Index: icc-10.1.018.ebuild
48 ===================================================================
49 # Copyright 1999-2008 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-lang/icc/icc-10.1.018.ebuild,v 1.1 2008/09/02 09:43:20 bicatali Exp $
52
53 inherit rpm eutils check-reqs
54
55 PID=1205
56 PB=cc
57 PEXEC="icc icpc"
58 DESCRIPTION="Intel C/C++ optimized compiler for Linux"
59 HOMEPAGE="http://www.intel.com/software/products/compilers/clin/"
60
61 ###
62 # everything below common to ifc and icc
63 # no eclass: very likely to change for next versions
64 ###
65 PACKID="l_${PB}_p_${PV}"
66 KEYWORDS="~amd64 ~ia64 ~x86"
67 SRC_COM="http://registrationcenter-download.intel.com/irc_nas/${PID}/${PACKID}"
68 SRC_URI="amd64? ( ${SRC_COM}_intel64.tar.gz )
69 ia64? ( ${SRC_COM}_ia64.tar.gz )
70 x86? ( ${SRC_COM}_ia32.tar.gz )"
71
72 LICENSE="Intel-SDP"
73 SLOT="0"
74
75 RESTRICT="test strip mirror"
76 IUSE=""
77 DEPEND=""
78 RDEPEND="virtual/libstdc++
79 amd64? ( app-emulation/emul-linux-x86-compat )"
80
81 pkg_setup() {
82 # Check if we have enough RAM and free diskspace
83 CHECKREQS_MEMORY="512"
84 local disk_req="300"
85 use amd64 && disk_req="400"
86 use ia64 && disk_req="350"
87 CHECKREQS_DISK_BUILD=${disk_req}
88 check_reqs
89 }
90
91 src_unpack() {
92 unpack ${A}
93 mv "${WORKDIR}"/l_* "${S}"
94 cd "${S}"
95
96 local ext=
97 use amd64 && ext=e
98 INSTALL_DIR=/opt/intel/${PB}${ext}/${PV}
99
100 # debugger installed with dev-lang/idb
101 rm -f data/intel*idb*.rpm
102
103 for x in data/intel*.rpm; do
104 einfo "Extracting $(basename ${x})..."
105 rpm_unpack "${S}/${x}" || die "rpm_unpack ${x} failed"
106 done
107
108 einfo "Fixing paths and tagging"
109 cd "${S}"/${INSTALL_DIR}/bin
110 sed -e "s|<INSTALLDIR>|${INSTALL_DIR}|g" \
111 -e 's|export -n IA32ROOT;||g' \
112 -i ${PEXEC} *sh \
113 || die "sed fixing shells and paths failed"
114
115 cd "${S}"/${INSTALL_DIR}/doc
116 sed -e "s|\<installpackageid\>|${PACKID}|g" \
117 -e "s|\<INSTALLTIMECOMBOPACKAGEID\>|${PACKID}|g" \
118 -i *support \
119 || die "sed support file failed"
120 chmod 644 *support
121
122 if use amd64; then
123 cat <<-EOF >>"${S}"/${INSTALL_DIR}/bin/icc.cfg
124 -D__amd64=__x86_64
125 -D__amd64__=__x86_64__
126 EOF
127 cat <<-EOF >>"${S}"/${INSTALL_DIR}/bin/icpc.cfg
128 -D__amd64=__x86_64
129 -D__amd64__=__x86_64__
130 EOF
131 fi
132 }
133
134 src_install() {
135 einfo "Copying files"
136 dodir ${INSTALL_DIR}
137 cp -pPR \
138 "${S}"/${INSTALL_DIR}/* \
139 "${D}"/${INSTALL_DIR}/ \
140 || die "Copying ${PN} failed"
141
142 local env_file=05${PN}
143 cat > ${env_file} <<-EOF
144 PATH=${INSTALL_DIR}/bin
145 ROOTPATH=${INSTALL_DIR}/bin
146 LDPATH=${INSTALL_DIR}/lib
147 MANPATH=${INSTALL_DIR}/man
148 EOF
149 doenvd ${env_file} || die "doenvd ${env_file} failed"
150 }
151
152 pkg_postinst () {
153 # remove left over from unpacking
154 rm -f "${ROOT}"/opt/intel/{intel_sdp_products.db,.*.log} \
155 || die "remove logs failed"
156
157 elog "Make sure you have recieved the a license for ${PN},"
158 elog "you cannot run ${PN} without a license file."
159 elog "To receive a non-commercial license, you need to register."
160 elog "Read the website for more information on this license:"
161 elog "${HOMEPAGE}"
162 elog "Then put the license file into ${ROOT}/opt/intel/licenses."
163 elog "\nTo use ${PN} issue first \n\tsource ${ROOT}/etc/profile"
164 elog "Debugger is installed with dev-lang/idb"
165 }