aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOda <edu.oda@gmail.com>2010-05-13 00:57:21 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:57:21 +0200
commit5f90a1d47b5564b93247ac5cac039995e7105c80 (patch)
treef5f10721a2905c14cda911d5e9e8c5e2085f13bd
parent458fbeb26092d7274de2d850745d32e8d1218ac4 (diff)
academic/opengrads: Added to 13.0 repository
-rw-r--r--academic/opengrads/README5
-rw-r--r--academic/opengrads/opengrads.SlackBuild87
-rw-r--r--academic/opengrads/opengrads.csh2
-rw-r--r--academic/opengrads/opengrads.info10
-rw-r--r--academic/opengrads/opengrads.sh2
-rw-r--r--academic/opengrads/slack-desc19
6 files changed, 125 insertions, 0 deletions
diff --git a/academic/opengrads/README b/academic/opengrads/README
new file mode 100644
index 0000000000000..8e53ac4fed3ef
--- /dev/null
+++ b/academic/opengrads/README
@@ -0,0 +1,5 @@
+The Grid Analysis and Display System (GrADS) is an interactive desktop tool for
+easy access, manipulation, and visualization of earth science data.
+
+The OpenGrADS Project seeks to develop advanced interfaces and extensions based
+on the main GrADS engine.
diff --git a/academic/opengrads/opengrads.SlackBuild b/academic/opengrads/opengrads.SlackBuild
new file mode 100644
index 0000000000000..8f2a619e35829
--- /dev/null
+++ b/academic/opengrads/opengrads.SlackBuild
@@ -0,0 +1,87 @@
+#!/bin/sh
+
+# Slackware build script for OpenGrADS
+
+# Copyright 2009 Eduardo Oda
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+# Written by Oda - edu.oda@gmail.com
+
+PRGNAM=opengrads
+VERSION=${VERSION:-2.0.a7.oga.2}
+ARCH=${ARCH:-i686}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+set -e
+
+if [ "$ARCH" != "x86_64" ]; then
+ # Just in case someone has ARCH=i486 set in the environment
+ ARCH=i686
+fi
+
+rm -rf $PKG
+mkdir -p $PKG/opt $OUTPUT
+tar xvf grads-$VERSION-bundle-$ARCH-*-linux-gnu.tar.gz -C $PKG/opt
+cd $PKG/opt
+chown -R root:root grads-$VERSION
+# Let's use an unversioned install directory for less noisy upgrades
+mv grads-$VERSION opengrads
+# and then symlink to replicate the original directory structure
+ln -s opengrads grads-$VERSION
+cd opengrads
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
+
+( cd $PKG
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null || true
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
+)
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+( cd $PKG/usr/doc/$PRGNAM-$VERSION
+ ln -s ../../../opt/opengrads/COPYRIGHT .
+ ln -s ../../../opt/opengrads/INSTALL .
+ ln -s ../../../opt/opengrads/NEWS .
+ ln -s ../../../opt/opengrads/README .
+ ln -s ../../../opt/opengrads/Contents/Resources/Documentation .
+)
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/etc/profile.d
+cp $CWD/opengrads.sh $PKG/etc/profile.d/opengrads.sh
+cp $CWD/opengrads.csh $PKG/etc/profile.d/opengrads.csh
+chmod 0755 $PKG/etc/profile.d/*
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/academic/opengrads/opengrads.csh b/academic/opengrads/opengrads.csh
new file mode 100644
index 0000000000000..b458dddf5cc98
--- /dev/null
+++ b/academic/opengrads/opengrads.csh
@@ -0,0 +1,2 @@
+#!/bin/csh
+setenv PATH ${PATH}:/opt/opengrads/Contents
diff --git a/academic/opengrads/opengrads.info b/academic/opengrads/opengrads.info
new file mode 100644
index 0000000000000..f57a708f22a82
--- /dev/null
+++ b/academic/opengrads/opengrads.info
@@ -0,0 +1,10 @@
+PRGNAM="opengrads"
+VERSION="2.0.a7.oga.2"
+HOMEPAGE="http://www.opengrads.org/"
+DOWNLOAD="http://sourceforge.net/projects/opengrads/files/grads2/2.0.a7.oga.2/grads-2.0.a7.oga.2-bundle-i686-pc-linux-gnu.tar.gz/download"
+MD5SUM="29284d64827012c9a188cf7ecb2e6924"
+DOWNLOAD_x86_64="http://sourceforge.net/projects/opengrads/files/grads2/2.0.a7.oga.2/grads-2.0.a7.oga.2-bundle-x86_64-unknown-linux-gnu.tar.gz/download"
+MD5SUM_x86_64="a426e1995bac6bd89f45f8ef9cb3b3e1"
+MAINTAINER="Oda"
+EMAIL="edu.oda@gmail.com"
+APPROVED="rworkman"
diff --git a/academic/opengrads/opengrads.sh b/academic/opengrads/opengrads.sh
new file mode 100644
index 0000000000000..f5fff6be17c95
--- /dev/null
+++ b/academic/opengrads/opengrads.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+export PATH=${PATH}:/opt/opengrads/Contents
diff --git a/academic/opengrads/slack-desc b/academic/opengrads/slack-desc
new file mode 100644
index 0000000000000..47f25bb953937
--- /dev/null
+++ b/academic/opengrads/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+ |-----handy-ruler-----------------------------------------------------|
+opengrads: OpenGrADS (Grid Analysis and Display System)
+opengrads:
+opengrads: The Grid Analysis and Display System (GrADS) is an interactive
+opengrads: desktop tool for easy access, manipulation, and visualization of
+opengrads: earth science data.
+opengrads:
+opengrads: The OpenGrADS Project seeks to develop advanced interfaces and
+opengrads: extensions based on the main GrADS engine.
+opengrads:
+opengrads:
+opengrads: