# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo-x86/dev-lang/ifc/ifc-8.0.034.ebuild,v 1.0 2003/12/14 0:40:26 Cheesefoam Exp $ S=${WORKDIR} DESCRIPTION="Intel Fortran Compiler - The Pentium optimized compiler for Linux" SRC_URI1="ftp://download.intel.com/software/products/compilers/downloads/l_fc_p_8.0.034.tar.gz" SRC_URI2="ftp://download.intel.co.jp/software/products/compilers/downloads/l_fc_p_8.0.034.tar.gz" SRC_URI="${SRC_URI1} ${SRC_URI2}" HOMEPAGE="http://www.intel.com/software/products/compilers/forlin/" LICENSE="icc-8.0" DEPEND=">=sys-libs/glibc-2.2.4 app-arch/cpio app-arch/rpm" RDEPEND=">=sys-libs/glibc-2.2.4" SLOT="8" KEYWORDS="-* x86" IUSE="" src_compile() { cd ${S}/l_fc_p_8.0.034 mkdir opt file=intel-ifort8-8.0-40.i386.rpm einfo "Extracting: ${file}" rpm2cpio ${file} | cpio -i mkdir opt/intel mv opt/intel_fc_80 opt/intel/compiler80/ SD=${S}/l_fc_p_8.0.034/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_fc_p_8.0.034@g $file done } src_install () { dodoc ${SD}/licenses/flicense cp -a l_fc_p_8.0.034/opt ${D} # ifc 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}/ifc doexe ${FILESDIR}/${PVR}/ifort insinto /etc/ doins ${FILESDIR}/${PVR}/iccifc.conf } pkg_postinst () { einfo einfo "http://www.intel.com/software/products/compilers/forlin/noncom.htm" einfo "From the above url you can get a free, non-commercial" einfo "license to use the Intel Fortran Compiler emailed to you." einfo "You cannot run ifc 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 oldversion='' if [ -d /opt/intel/compiler60 ]; then oldversion=60; fi if [ -d /opt/intel/compiler70 ]; then oldversion=70; fi if [ $oldversion ] 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 'compiler70'" ewarn "to 'compiler$oldversion' 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." fi ewarn "If 'ifc' breaks, use 'ifcbin' 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/conf.d/iccifc" einfo }