/[gentoo-x86]/dev-lang/icc/icc-10.0.026.ebuild
Gentoo

Contents of /dev-lang/icc/icc-10.0.026.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Wed Nov 7 07:08:02 2007 UTC (6 years, 5 months ago) by opfer
Branch: MAIN
Changes since 1.4: +2 -2 lines
stable x86, bug 197980
(Portage version: 2.1.3.16)

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-lang/icc/icc-10.0.026.ebuild,v 1.4 2007/11/06 10:45:22 bicatali Exp $
4
5 inherit rpm
6
7 PID=786
8 PB=cc
9 PEXEC="icc icpc"
10 DESCRIPTION="Intel C/C++ optimized compiler for Linux"
11 HOMEPAGE="http://www.intel.com/software/products/compilers/clin/"
12
13 ###
14 # everything below common to ifc and icc
15 # no eclass: very likely to change for next versions
16 ###
17 PACKAGEID="l_${PB}_c_${PV}"
18 KEYWORDS="~amd64 ~ia64 x86"
19 SRC_URI="amd64? ( http://registrationcenter-download.intel.com/irc_nas/${PID}/${PACKAGEID}_intel64.tar.gz )
20 ia64? ( http://registrationcenter-download.intel.com/irc_nas/${PID}/${PACKAGEID}_ia64.tar.gz )
21 x86? ( http://registrationcenter-download.intel.com/irc_nas/${PID}/${PACKAGEID}_ia32.tar.gz )"
22
23 LICENSE="Intel-SDP"
24 SLOT="0"
25
26 RESTRICT="test strip mirror"
27 IUSE=""
28 DEPEND=""
29 RDEPEND="virtual/libstdc++
30 amd64? ( app-emulation/emul-linux-x86-compat )"
31
32 pkg_setup() {
33 if has_version "<dev-lang/${P}"; then
34 ewarn "${PN}-9.x detected, probably with slotting."
35 ewarn "This version has many bugs and was installed with slotting."
36 ewarn "You might want to do an emerge -C ${PN} first"
37 epause 10
38 fi
39 }
40
41 src_unpack() {
42 unpack ${A}
43 mv "${WORKDIR}"/l_* "${S}"
44 cd "${S}"
45
46 local ext=
47 use amd64 && ext=e
48 INSTALL_DIR=/opt/intel/${PB}${ext}/${PV}
49
50 # debugger installed with dev-lang/idb
51 rm -f data/intel*idb*.rpm
52
53 for x in data/intel*.rpm; do
54 einfo "Extracting $(basename ${x})..."
55 rpm_unpack "${S}/${x}" || die "rpm_unpack ${x} failed"
56 done
57
58 einfo "Fixing paths and tagging"
59 cd "${S}"/${INSTALL_DIR}/bin
60 sed -e "s|<INSTALLDIR>|${INSTALL_DIR}|g" \
61 -i ${PEXEC} *sh \
62 || die "sed fixing path failed"
63
64 cd "${S}"/${INSTALL_DIR}/doc
65 sed -e "s|\<installpackageid\>|${PACKAGEID}|g" \
66 -e "s|\<INSTALLTIMECOMBOPACKAGEID\>|${PACKAGEID}|g" \
67 -i *support \
68 || die "sed support file failed"
69 chmod 644 *support
70 }
71
72 src_install() {
73 einfo "Copying files"
74 dodir ${INSTALL_DIR}
75 cp -pPR \
76 "${S}"/${INSTALL_DIR}/* \
77 "${D}"/${INSTALL_DIR}/ \
78 || die "copying ${PN} failed"
79
80 local env_file=05${PN}
81 echo "PATH=${INSTALL_DIR}/bin" > ${env_file}
82 echo "ROOTPATH=${INSTALL_DIR}/bin" >> ${env_file}
83 echo "LDPATH=${INSTALL_DIR}/lib" >> ${env_file}
84 echo "MANPATH=${INSTALL_DIR}/man" >> ${env_file}
85 echo "INCLUDE=${INSTALL_DIR}/include" >> ${env_file}
86 doenvd ${env_file} || die "doenvd ${env_file} failed"
87 }
88
89 pkg_postinst () {
90 # remove left over from unpacking
91 rm -f "${ROOT}"/opt/intel/{intel_sdp_products.db,.*.log} || die "remove logs failed"
92
93 elog "Make sure you have recieved the a license for ${PN}"
94 elog "To receive a restrictive non-commercial licenses , you need to register at:"
95 elog "http://www.intel.com/cd/software/products/asmo-na/eng/download/download/219771.htm"
96 elog "Read the website for more information on this license."
97 elog "You cannot run ${PN} without a license file."
98 elog "Then put the license file into ${ROOT}/opt/intel/licenses"
99 elog "\nTo use ${PN} issue first \n\tsource /etc/profile"
100 elog "Debugger is installed with dev-lang/idb"
101 }

  ViewVC Help
Powered by ViewVC 1.1.20