summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2009-10-06 20:43:45 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2009-10-06 20:43:45 +0000
commit72637f6c0f41302539e36a485ebec3400c60a2db (patch)
tree61da6080ef61521bd2c2c36be386a7fc170c4da5 /dev-lang
parentVersion bump KDE 4.3.2 (diff)
downloadgentoo-2-72637f6c0f41302539e36a485ebec3400c60a2db.tar.gz
gentoo-2-72637f6c0f41302539e36a485ebec3400c60a2db.tar.bz2
gentoo-2-72637f6c0f41302539e36a485ebec3400c60a2db.zip
Version bump. Completely rewritten. Now ship with mkl, and idb. Synchronize env files with dev-lang/icc
(Portage version: 2.2_rc42/cvs/Linux x86_64)
Diffstat (limited to 'dev-lang')
-rw-r--r--dev-lang/ifc/ChangeLog9
-rw-r--r--dev-lang/ifc/ifc-11.1.056.ebuild113
-rw-r--r--dev-lang/ifc/metadata.xml5
3 files changed, 126 insertions, 1 deletions
diff --git a/dev-lang/ifc/ChangeLog b/dev-lang/ifc/ChangeLog
index 30e1566285d3..55491ade8d63 100644
--- a/dev-lang/ifc/ChangeLog
+++ b/dev-lang/ifc/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-lang/ifc
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/ifc/ChangeLog,v 1.49 2009/08/22 20:23:12 williamh Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/ifc/ChangeLog,v 1.50 2009/10/06 20:43:45 bicatali Exp $
+
+*ifc-11.1.056 (06 Oct 2009)
+
+ 06 Oct 2009; Sébastien Fabbro <bicatali@gentoo.org> +ifc-11.1.056.ebuild,
+ metadata.xml:
+ Version bump. Completely rewritten. Now ship with mkl, and idb.
+ Synchronize env files with dev-lang/icc
22 Aug 2009; William Hubbs <williamh@gentoo.org> ifc-10.0.026-r1.ebuild,
ifc-10.1.017.ebuild, ifc-10.1.018.ebuild:
diff --git a/dev-lang/ifc/ifc-11.1.056.ebuild b/dev-lang/ifc/ifc-11.1.056.ebuild
new file mode 100644
index 000000000000..38d3135a5a86
--- /dev/null
+++ b/dev-lang/ifc/ifc-11.1.056.ebuild
@@ -0,0 +1,113 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/ifc/ifc-11.1.056.ebuild,v 1.1 2009/10/06 20:43:45 bicatali Exp $
+
+EAPI=2
+
+inherit rpm versionator check-reqs
+
+PB=cprof
+PACKAGEID="l_${PB}_p_${PV}"
+RELEASE="$(get_version_component_range 1-2)"
+BUILD="$(get_version_component_range 3)"
+PID=1582
+
+DESCRIPTION="Intel FORTRAN compiler suite for Linux"
+HOMEPAGE="http://www.intel.com/software/products/compilers/clin/"
+SRC_COM="http://registrationcenter-download.intel.com/irc_nas/${PID}/${PACKAGEID}"
+SRC_URI="amd64? ( ${SRC_COM}_intel64.tgz )
+ ia64? ( ${SRC_COM}_ia64.tgz )
+ x86? ( ${SRC_COM}_ia32.tgz )"
+
+LICENSE="Intel-SDP"
+SLOT="0"
+IUSE="idb +mkl"
+KEYWORDS="~amd64 ~ia64 ~x86"
+
+RESTRICT="mirror strip binchecks"
+
+DEPEND=""
+RDEPEND="~virtual/libstdc++-3.3
+ amd64? ( app-emulation/emul-linux-x86-compat )"
+
+DESTINATION="opt/intel/Compiler/${RELEASE}/${BUILD}"
+
+pkg_setup() {
+ CHECKREQS_MEMORY=1024
+ CHECKREQS_DISK_BUILD=1536
+ use idb && use mkl && CHECKREQS_DISK_BUILD=2048
+ check_reqs
+ IARCH=ia32
+ use amd64 && IARCH=intel64
+ use ia64 && IARCH=ia64
+}
+
+src_unpack() {
+ unpack ${A}
+ mv "${WORKDIR}"/l_* "${S}"
+ cd "${S}"
+ use idb || rm -f rpm/*idb*.rpm
+ use mkl || rm -f rpm/*mkl*.rpm
+ if has_version "~dev-lang/icc-${PV}"; then
+ rm -f rpm/*cprolib*.rpm
+ use idb && built_with_use dev-lang/icc idb && rm -f rpm/*idb*.rpm
+ use mkl && built_with_use dev-lang/icc mkl && rm -f rpm/*mkl*.rpm
+ fi
+ for x in rpm/intel*.rpm; do
+ einfo "Extracting $(basename ${x})..."
+ rpm_unpack ./${x} || die "rpm_unpack ${x} failed"
+ done
+}
+
+src_prepare() {
+ # from the PURGE_UB804_FNP in pset/install_fc.sh
+ # rm -f "${DESTINATION}"/lib/*/*libFNP.so || die
+
+ # extract the tag function from the original install
+ sed -n \
+ -e "s|find \$DESTINATION|find ${DESTINATION}|g" \
+ -e "s|@\$DESTINATION|@${ROOT}${DESTINATION}|g" \
+ -e '/^UNTAG_CFG_FILES[[:space:]]*(/,/^}/p' \
+ pset/install_fc.sh > tag.sh || die
+ # fix world writeable files
+ [ -d ${DESTINATION}/mkl ] && chmod 644 \
+ ${DESTINATION}/mkl/tools/{environment,builder}/* \
+ ${DESTINATION}/mkl/tools/plugins/*/*
+}
+
+src_install() {
+ einfo "Tagging"
+ . ./tag.sh
+ UNTAG_CFG_FILES
+
+ keepdir /opt/intel/licenses
+ einfo "Copying files"
+ dodir "${DESTINATION}"
+ cp -pPR \
+ ${DESTINATION}/* \
+ "${D}"/${DESTINATION}/ \
+ || die "Copying ${PN} failed"
+
+ local envf=05icfc
+ cat > ${envf} <<-EOF
+ PATH="${ROOT}${DESTINATION}/bin/${IARCH}"
+ ROOTPATH="${ROOT}${DESTINATION}/bin/${IARCH}"
+ LDPATH="${ROOT}${DESTINATION}/lib/${IARCH}"
+ LIBRARY_PATH="${ROOT}${DESTINATION}/lib/${IARCH}"
+ NLSPATH="${ROOT}${DESTINATION}/lib/locale/en_US/%N"
+ MANPATH="${ROOT}${DESTINATION}/man/en_US"
+ EOF
+ if [ -n "$(diff ${ROOT}etc/env.d/${envf} ./${envf})" ]; then
+ doenvd ${envf} || die "doenvd ${envf} failed"
+ fi
+ [ -d ${DESTINATION}/idb ] && \
+ dosym ../../common/com.intel.debugger.help_1.0.0 \
+ ${DESTINATION}/idb/gui/${IARCH}/plugins
+}
+
+pkg_postinst() {
+ elog "Make sure you have recieved the an Intel license."
+ elog "To receive a non-commercial license, you need to register at:"
+ elog "http://software.intel.com/en-us/articles/non-commercial-software-development/"
+ elog "Install the license file into ${ROOT}opt/intel/licenses."
+}
diff --git a/dev-lang/ifc/metadata.xml b/dev-lang/ifc/metadata.xml
index 401084dfdae3..100431df0d2d 100644
--- a/dev-lang/ifc/metadata.xml
+++ b/dev-lang/ifc/metadata.xml
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+
<pkgmetadata>
<herd>sci</herd>
<longdescription lang="en">
@@ -11,4 +12,8 @@
The product can be installed as a non-commercial as well. License,
terms of qualifications can be found on the web site.
</longdescription>
+<use>
+ <flag name='idb'>Install the Intel Debugger</flag>
+ <flag name='mkl'>Install the Intel Math Kernel Library</flag>
+</use>
</pkgmetadata>