Sit class file for pgi 13.2.

This commit is contained in:
Tünde Erdei 2013-02-26 11:19:41 +00:00 committed by Christoph Niethammer
parent c937a952ae
commit 44aefa4cd3

76
packages/compiler/pgi/pgi-13.2 Executable file
View file

@ -0,0 +1,76 @@
#!/bin/sh
# sit class file
#
# Christoph Niethammer <niethammer@hlrs.de> (C) 2013
#
CATEGORY="compiler"
PACKAGE="pgi"
VERSION="13.2"
URL=""
INSTALLER=""
# Archive A and package name P
A=pgilinux-2013-${VERSION/\./}.tar.gz
P=
BUILDDIR=$SRCDIR
src_build(){
expect - "$SRCDIR" <<EOF
spawn ./install
#set iid "\$spawn_id"
set timeout -1
send "q"
expect "\(accept,decline\)"
send "accept\r"
expect "Please choose install option:"
send "1\r"
expect "Installation directory\? "
send "$PREFIX\r"
expect "Install the ACML\? \(y/n\)"
send "y\r"
send "q"
expect "\(accept,decline\)"
send "accept\r"
expect "This PGI version links with ACML * by default. Also available:"
send "1\r"
expect "Install CUDA Toolkit Components\? \(y/n\)"
send "y\r"
#send "q"
#expect "\(accept,decline\)"
#send "accept\r"
#expect "Install OpenACC compilers\? \(y/n\)"
#send "y\r"
send "q"
expect "\(accept,decline\)"
send "accept\r"
# expect {
# -re "Install JAVA JRE 6.* \[yes\] " {puts "y\r"}
# timeout abort
# }
expect {
-re "Install JAVA JRE.*" {
puts "y\r"
send "q\r"
#expect "\(accept,decline\)"
#send "accept\r"
}
-re "Overwrite the installed JAVA JRE.*" {
send "no\r"
}
}
expect "Do you wish to update/create links in the 20* directory\? \(y/n\)"
send "y\r"
expect "Do you wish to install MPICH1\? \(y/n\)"
send "y\r"
expect "Remote execution method\? \(rsh,ssh\)"
send "ssh\r"
expect "Do you wish to generate license keys\? \(y/n\)"
send "n\r"
expect "Do you want the files in the install directory to be read-only\? \(y/n\)"
send "n\r"
expect eof
#wait \$spawn_id
EOF
}