# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-lang/icc/icc-10.0.026.ebuild,v 1.13 2008/08/22 17:16:46 bicatali Exp $ inherit rpm eutils PID=786 PB=cc PEXEC="icc icpc" DESCRIPTION="Intel C/C++ optimized compiler for Linux" HOMEPAGE="http://www.intel.com/software/products/compilers/clin/" ### # everything below common to ifc and icc # no eclass: very likely to change for next versions ### PACKAGEID="l_${PB}_c_${PV}" KEYWORDS="amd64 ia64 x86" SRC_URI="amd64? ( http://registrationcenter-download.intel.com/irc_nas/${PID}/${PACKAGEID}_intel64.tar.gz ) ia64? ( http://registrationcenter-download.intel.com/irc_nas/${PID}/${PACKAGEID}_ia64.tar.gz ) x86? ( http://registrationcenter-download.intel.com/irc_nas/${PID}/${PACKAGEID}_ia32.tar.gz )" LICENSE="Intel-SDP" SLOT="0" RESTRICT="test strip mirror" IUSE="" DEPEND="" RDEPEND="virtual/libstdc++ amd64? ( app-emulation/emul-linux-x86-compat )" pkg_setup() { if has_version "|${INSTALL_DIR}|g" \ -e 's|export -n IA32ROOT;||g' \ -i ${PEXEC} *sh \ || die "sed fixing shells and paths failed" cd "${S}"/${INSTALL_DIR}/doc sed -e "s|\|${PACKAGEID}|g" \ -e "s|\|${PACKAGEID}|g" \ -i *support \ || die "sed support file failed" chmod 644 *support } src_install() { einfo "Copying files" dodir ${INSTALL_DIR} cp -pPR \ "${S}"/${INSTALL_DIR}/* \ "${D}"/${INSTALL_DIR}/ \ || die "copying ${PN} failed" local env_file=05${PN} echo "PATH=${INSTALL_DIR}/bin" > ${env_file} echo "ROOTPATH=${INSTALL_DIR}/bin" >> ${env_file} echo "LDPATH=${INSTALL_DIR}/lib" >> ${env_file} echo "MANPATH=${INSTALL_DIR}/man" >> ${env_file} doenvd ${env_file} || die "doenvd ${env_file} failed" } pkg_postinst () { # remove left over from unpacking rm -f "${ROOT}"/opt/intel/{intel_sdp_products.db,.*.log} || die "remove logs failed" elog "Make sure you have recieved the a license for ${PN}" elog "To receive a restrictive non-commercial licenses , you need to register at:" elog "http://www.intel.com/cd/software/products/asmo-na/eng/download/download/219771.htm" elog "Read the website for more information on this license." elog "You cannot run ${PN} without a license file." elog "Then put the license file into ${ROOT}/opt/intel/licenses" elog "\nTo use ${PN} issue first \n\tsource /etc/profile" elog "Debugger is installed with dev-lang/idb" }