# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo-x86/dev-lang/icc/icc-8.0.055.ebuild,v 1.0 2003/12/14 00:31:26 Cheesefoam Exp $ S=${WORKDIR} DESCRIPTION="Intel C++ Compiler - The Pentium optimized compiler for Linux" SRC_URI1="ftp://download.intel.com/software/products/compilers/downloads/l_cc_p_8.0.055.tar.gz" SRC_URI2="ftp://download.intel.co.jp/software/products/compilers/downloads/l_cc_p_8.0.055.tar.gz" SRC_URI="${SRC_URI1} ${SRC_URI2}" HOMEPAGE="http://www.intel.com/software/products/compilers/clin/" LICENSE="icc-8.0" DEPEND=">=sys-libs/glibc-2.3.2 app-arch/cpio app-arch/rpm" RDEPEND=">=sys-libs/glibc-2.3.2" SLOT="8" KEYWORDS="-* x86" IUSE="" src_compile() { cd ${S}/l_cc_p_8.0.055 mkdir opt for file in intel-*-8.0-44.i386.rpm do einfo "Extracting: ${file}" rpm2cpio ${file} | cpio -i done mkdir opt/intel mv opt/intel_cc_80 opt/intel/compiler80/ SD=${S}/l_cc_p_8.0.055/opt/intel/compiler80 for file in `grep -l \ ${SD}/bin/*` do einfo "Untagging: ${file}" sed -i s@\@/opt/intel/compiler80@g ${file} done for file in ${SD}/doc/?support do einfo "Untagging: ${file}" sed -i s@\@l_cc_p_8.0.055@g $file done } src_install () { dodoc ${SD}/licenses/lgpltext dodoc ${SD}/licenses/clicense cp -a ${S}/l_cc_p_8.0.055/opt ${D} # icc enviroment insinto /etc/env.d doins ${FILESDIR}/${PVR}/05icc-ifc # fix the issue with the primary icc executable exeinto /opt/intel/compiler80/bin doexe ${FILESDIR}/${PVR}/icc doexe ${FILESDIR}/${PVR}/icpc insinto /etc doins ${FILESDIR}/${PVR}/iccifc.conf } pkg_postinst () { einfo einfo "http://www.intel.com/software/products/compilers/clin/noncom.htm" einfo "From the above url you can get a free, non-commercial" einfo "license to use the Intel C++ Compiler emailed to you." einfo "You cannot run icc without this license file." einfo "Read the website for more information on this license." einfo einfo "Documentation can be found in /opt/intel/compiler80/docs/" einfo einfo "You will need to place your license in /opt/intel/compiler80/licenses/" einfo version='' if [ -d /opt/intel/compiler60 ]; then version=60; fi if [ -d /opt/intel/compiler70 ]; then version=70; fi if [ $version ] then ewarn "Packages compiled with older versions of icc will need" ewarn "to be recompiled. Until you do that, old packages will" ewarn "work if you edit /etc/ld.so.conf and change 'compiler80'" ewarn "to 'compiler$version' and run 'ldconfig.' Note that this edit" ewarn "won't persist and will require you to re-edit after each" ewarn "package you re-install." ewarn fi ewarn "If 'icc' breaks, use 'iccbin' instead and report a bug." ewarn "NOTE: Before compiling important applications that your system" ewarn "depends on, read the warning above. This could potentially" ewarn "render your system unusable. This is a problem with Intel's" ewarn "software, _not_ with Gentoo." einfo einfo "Compiler flags and settings can be changed in /etc/iccifc.conf" einfo }