--- ifc-7.0.064-r1.ebuild 2003-06-13 05:31:08.000000000 +0900 +++ ifc-7.0.064-r1.ebuild 2003-08-23 22:55:53.000000000 +0900 @@ -2,6 +2,8 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo-x86/dev-lang/ifc/ifc-7.0.064-r1.ebuild,v 1.2 2003/06/12 20:31:08 msterret Exp $ +inherit rpm + S=${WORKDIR} DESCRIPTION="Intel Fortran Compiler - The Pentium optimized compiler for Linux" @@ -17,26 +19,21 @@ SLOT="0" KEYWORDS="-* x86" - DEPEND=">=virtual/linux-sources-2.4 - >=sys-libs/glibc-2.2.4 - sys-apps/cpio - app-arch/rpm" + >=sys-libs/glibc-2.2.4" RDEPEND=">=virtual/linux-sources-2.4 >=sys-libs/glibc-2.2.4" -src_compile() { +src_unpack() { + unpack ${A} + cd "${S}" # Keep disk space to a minimum rm -f intel-*.ia64.rpm + rpm_unpack intel-*.i386.rpm +} - mkdir opt - - for x in intel-*.i386.rpm - do - einfo "Extracting: ${x}" - rpm2cpio ${x} | cpio --extract --make-directories --unconditional - done +src_compile() { # From UNTAG_CFG_FILES in 'install' SD=${S}/opt/intel # Build DESTINATION @@ -60,6 +57,10 @@ sed s@\@$COMBOPACKAGEID@g $SUPPORTFILE > $SUPPORTFILE.abs mv $SUPPORTFILE.abs $SUPPORTFILE chmod 644 $SUPPORTFILE + + # these should not be executable + find "${SD}/compiler70/"{docs,man,training,ia32/include} -type f -exec chmod -x "{}" ";" + find "${SD}/compiler70/ia32/lib" -name \*.a -exec chmod -x "{}" ";" } src_install () {