/[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.15 - (hide annotations) (download)
Sat Aug 22 19:55:40 2009 UTC (5 years ago) by williamh
Branch: MAIN
Changes since 1.14: +3 -3 lines
fixed dependencies for bug 231870.
(Portage version: 2.2_rc38/cvs/Linux i686)

1 williamh 1.15 # Copyright 1999-2009 Gentoo Foundation
2 bicatali 1.1 # Distributed under the terms of the GNU General Public License v2
3 williamh 1.15 # $Header: /var/cvsroot/gentoo-x86/dev-lang/icc/icc-10.0.026.ebuild,v 1.14 2009/08/22 19:15:24 ssuominen Exp $
4 bicatali 1.1
5 bicatali 1.10 inherit rpm eutils
6 bicatali 1.1
7     PID=786
8     PB=cc
9 bicatali 1.2 PEXEC="icc icpc"
10 bicatali 1.1 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 armin76 1.12 KEYWORDS="amd64 ia64 x86"
19 bicatali 1.1 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 williamh 1.15 RDEPEND="=virtual/libstdc++-3.3
30 bicatali 1.3 amd64? ( app-emulation/emul-linux-x86-compat )"
31 bicatali 1.1
32 bicatali 1.4 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 bicatali 1.1 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 bicatali 1.7 -e 's|export -n IA32ROOT;||g' \
62 bicatali 1.2 -i ${PEXEC} *sh \
63 bicatali 1.7 || die "sed fixing shells and paths failed"
64 bicatali 1.1
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