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

  ViewVC Help
Powered by ViewVC 1.1.20