/[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.12 - (show annotations) (download)
Mon Dec 24 19:35:12 2007 UTC (6 years, 4 months ago) by armin76
Branch: MAIN
Changes since 1.11: +2 -2 lines
Re-add ia64
(Portage version: 2.1.3.19, RepoMan options: --force)

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.11 2007/12/05 20:38:52 armin76 Exp $
4
5 inherit rpm eutils
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 -e 's|export -n IA32ROOT;||g' \
62 -i ${PEXEC} *sh \
63 || die "sed fixing shells and paths failed"
64
65 cd "${S}"/${INSTALL_DIR}/doc
66 sed -e "s|\<installpackageid\>|${PACKAGEID}|g" \
67 -e "s|\<INSTALLTIMECOMBOPACKAGEID\>|${PACKAGEID}|g" \
68 -i *support \
69 || die "sed support file failed"
70 chmod 644 *support
71 }
72
73 src_install() {
74 einfo "Copying files"
75 dodir ${INSTALL_DIR}
76 cp -pPR \
77 "${S}"/${INSTALL_DIR}/* \
78 "${D}"/${INSTALL_DIR}/ \
79 || die "copying ${PN} failed"
80
81 local env_file=05${PN}
82 echo "PATH=${INSTALL_DIR}/bin" > ${env_file}
83 echo "ROOTPATH=${INSTALL_DIR}/bin" >> ${env_file}
84 echo "LDPATH=${INSTALL_DIR}/lib" >> ${env_file}
85 echo "MANPATH=${INSTALL_DIR}/man" >> ${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