/[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.3 - (show annotations) (download)
Fri Oct 5 11:40:25 2007 UTC (7 years, 2 months ago) by bicatali
Branch: MAIN
Changes since 1.2: +3 -2 lines
added virtual/libstdc++ as a dep for all arches, closing bug #194728.
(Portage version: 2.1.3.9)

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.2 2007/10/02 17:05:26 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 src_unpack() {
33 unpack ${A}
34 mv "${WORKDIR}"/l_* "${S}"
35 cd "${S}"
36
37 local ext=
38 use amd64 && ext=e
39 INSTALL_DIR=/opt/intel/${PB}${ext}/${PV}
40
41 # debugger installed with dev-lang/idb
42 rm -f data/intel*idb*.rpm
43
44 for x in data/intel*.rpm; do
45 einfo "Extracting $(basename ${x})..."
46 rpm_unpack "${S}/${x}" || die "rpm_unpack ${x} failed"
47 done
48
49 einfo "Fixing paths and tagging"
50 cd "${S}"/${INSTALL_DIR}/bin
51 sed -e "s|<INSTALLDIR>|${INSTALL_DIR}|g" \
52 -i ${PEXEC} *sh \
53 || die "sed fixing path failed"
54
55 cd "${S}"/${INSTALL_DIR}/doc
56 sed -e "s|\<installpackageid\>|${PACKAGEID}|g" \
57 -e "s|\<INSTALLTIMECOMBOPACKAGEID\>|${PACKAGEID}|g" \
58 -i *support \
59 || die "sed support file failed"
60 chmod 644 *support
61 }
62
63 src_install() {
64 einfo "Copying files"
65 dodir ${INSTALL_DIR}
66 cp -pPR \
67 "${S}"/${INSTALL_DIR}/* \
68 "${D}"/${INSTALL_DIR}/ \
69 || die "copying ${PN} failed"
70
71 local env_file=05${PN}
72 echo "PATH=${INSTALL_DIR}/bin" > ${env_file}
73 echo "ROOTPATH=${INSTALL_DIR}/bin" >> ${env_file}
74 echo "LDPATH=${INSTALL_DIR}/lib" >> ${env_file}
75 echo "MANPATH=${INSTALL_DIR}/man" >> ${env_file}
76 echo "INCLUDE=${INSTALL_DIR}/include" >> ${env_file}
77 doenvd ${env_file} || die "doenvd ${env_file} failed"
78 }
79
80 pkg_postinst () {
81 # remove left over from unpacking
82 rm -f "${ROOT}"/opt/intel/{intel_sdp_products.db,.*.log} || die "remove logs failed"
83
84 elog "Make sure you have recieved the a license for ${PN}"
85 elog "To receive a restrictive non-commercial licenses , you need to register at:"
86 elog "http://www.intel.com/cd/software/products/asmo-na/eng/download/download/219771.htm"
87 elog "Read the website for more information on this license."
88 elog "You cannot run ${PN} without a license file."
89 elog "Then put the license file into ${ROOT}/opt/intel/licenses"
90 elog "\nTo use ${PN} issue first \n\tsource /etc/profile"
91 elog "Debugger is installed with dev-lang/idb"
92 }

  ViewVC Help
Powered by ViewVC 1.1.20