aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schäfer <gentryx@gmx.de>2013-06-02 01:13:23 +0200
committerAndreas Schäfer <gentryx@gmx.de>2013-06-02 01:13:23 +0200
commit7f48a4daa67ffe2f4c76b6bcd6e8fae18c3111f9 (patch)
tree6c56bdf5a9ee7e67279e0b8bd0b43301a6567d44 /dev-lang/pgi/pgi-13.5.ebuild
parentadded updated Manifest (diff)
downloadsci-7f48a4daa67ffe2f4c76b6bcd6e8fae18c3111f9.tar.gz
sci-7f48a4daa67ffe2f4c76b6bcd6e8fae18c3111f9.tar.bz2
sci-7f48a4daa67ffe2f4c76b6bcd6e8fae18c3111f9.zip
added PGI ebuild
Diffstat (limited to 'dev-lang/pgi/pgi-13.5.ebuild')
-rw-r--r--dev-lang/pgi/pgi-13.5.ebuild100
1 files changed, 100 insertions, 0 deletions
diff --git a/dev-lang/pgi/pgi-13.5.ebuild b/dev-lang/pgi/pgi-13.5.ebuild
new file mode 100644
index 000000000..8468e96c1
--- /dev/null
+++ b/dev-lang/pgi/pgi-13.5.ebuild
@@ -0,0 +1,100 @@
+# Copyright 2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit eutils
+
+DESCRIPTION="PGI compiler suite"
+HOMEPAGE="http://www.pgroup.com/"
+SRC_URI="pgilinux-2013-135.tar.gz"
+LICENSE="PGI"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE="acml cuda java"
+
+RESTRICT="mirror strip"
+
+QA_PREBUILT="
+ opt/pgi/linux86/2013/cuda/4.2/lib/lib*.so.*
+ opt/pgi/linux86-64/13.5/bin/*
+ opt/pgi/linux86-64/13.5/lib/lib*
+ opt/pgi/linux86-64/13.5/lib/*.o
+ opt/pgi/linux86-64/13.5/libso/lib*
+ opt/pgi/linux86-64/13.5/libso/*.o
+ opt/pgi/linux86-64/13.5/cray/lib*
+ opt/pgi/linux86-64/13.5/etc/pgi_license_tool/curl
+ opt/pgi/linux86-64/13.5/REDIST/lib*.so
+ opt/pgi/linux86-64/2013/cuda/5.0/nvvm/cicc
+ opt/pgi/linux86-64/2013/cuda/4.2/nvvm/cicc
+ opt/pgi/linux86-64/2013/acml/5.3.0/lib/lib*
+ opt/pgi/linux86-64/2013/acml/5.3.0/libso/lib*.so
+ opt/pgi/linux86/13.5/etc/pgi_license_tool/curl
+ opt/pgi/linux86/13.5/bin/*
+ opt/pgi/linux86/13.5/lib/lib*
+ opt/pgi/linux86/13.5/lib/*.o
+ opt/pgi/linux86/13.5/libso/lib*
+ opt/pgi/linux86/13.5/cray/lib*
+ opt/pgi/linux86/2013/cuda/5.0/nvvm/cicc
+ opt/pgi/linux86/2013/cuda/4.2/nvvm/cicc
+ opt/pgi/linux86/2013/acml/4.4.0/lib/lib*
+ opt/pgi/linux86/2013/acml/4.4.0/libso/lib*.so
+"
+
+S="${WORKDIR}"
+
+pkg_nofetch() {
+ einfo "PGI doesn't provide direct download links. Please download"
+ einfo "${ARCHIVE} from ${HOMEPAGE}"
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/terminal.patch"
+}
+
+src_install() {
+ dodir /opt/pgi
+
+ command="accept
+1
+${ED}/opt/pgi"
+
+ if use acml; then
+ command="${command}
+y
+accept
+"
+ else
+ command="${command}
+n"
+ fi
+
+ if use cuda; then
+ command="${command}
+y
+accept"
+ else
+ command="${command}
+n"
+ fi
+
+ if use java; then
+ command="${command}
+
+accept"
+ else
+ command="${command}
+no"
+ fi
+
+ command="${command}
+y
+n
+n
+y
+"
+ ./install <<EOF
+${command}
+EOF
+}