Skip to content

Commit

Permalink
Added version 5.4.10
Browse files Browse the repository at this point in the history
  • Loading branch information
icaoberg committed Dec 16, 2023
1 parent 3383cdd commit 68373fa
Show file tree
Hide file tree
Showing 8 changed files with 131 additions and 0 deletions.
10 changes: 10 additions & 0 deletions 5.4.10/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM alpine:edge

LABEL "MAINTAINER"="icaoberg"
LABEL "EMAIL"="[email protected]"
LABEL "SUPPORT"="[email protected]"
LABEL "REPOSITORY"="http://github.com/pscedu/singularity-gnuplot"
LABEL "COPYRIGHT"="Copyright © 2021-2023 Pittsburgh Supercomputing Center. All Rights Reserved."
LABEL "VERSION"="5.4.10"

RUN apk add --update gnuplot
16 changes: 16 additions & 0 deletions 5.4.10/Singularity
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Bootstrap: docker
From: alpine:edge

%labels
AUTHOR icaoberg
EMAIL [email protected]
SUPPORT [email protected]
WEBSITE http://github.com/icaoberg/singularity-gnuplot
COPYRIGHT Copyright © 2021-2023 Pittsburgh Supercomputing Center. All Rights Reserved.
VERSION 5.4.10-patch-level-1

%post
apk add --update gnuplot

%runscript
gnuplot "$@"
19 changes: 19 additions & 0 deletions 5.4.10/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

# Copyright © 2021-2023 Pittsburgh Supercomputing Center.
# All Rights Reserved.

IMAGE=singularity-gnuplot-5.4.10.sif
DEFINITION=Singularity

if [ -f $IMAGE ]; then
rm -fv $IMAGE
fi

sudo singularity build $IMAGE $DEFINITION

if [ -f $IMAGE ]; then
exit 0
else
exit 1
fi
6 changes: 6 additions & 0 deletions 5.4.10/dbuild.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

# Copyright © 2021-2023 Pittsburgh Supercomputing Center.
# All Rights Reserved.

docker build -t icaoberg/gnuplot:5.4.10 .
18 changes: 18 additions & 0 deletions 5.4.10/gnuplot
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

VERSION=5.4.10
PACKAGE=gnuplot
TOOL=gnuplot
DIRECTORY=$(dirname $0)

STORAGES=(/ocean /bil /hive /local)

OPTIONS=""
for STORAGE in "${STORAGES[@]}"
do
if [ -d "$STORAGE" ]; then
OPTIONS=$OPTIONS" -B $STORAGE"
fi
done

singularity exec $OPTIONS $DIRECTORY/singularity-$PACKAGE-$VERSION.sif $TOOL "$@"
40 changes: 40 additions & 0 deletions 5.4.10/modulefile.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
--
-- gnuplot 5.4.10 modulefile
--
-- "URL: https://www.psc.edu/resources/software"
-- "Category: Other"
-- "Description: gnuplot is a command-line and GUI program that can generate two- and three-dimensional plots of functions, data, and data fits."
-- "Keywords: singularity utilities"

whatis("Name: gnuplot")
whatis("Version: 5.4.10")
whatis("Category: Other")
whatis("URL: https://www.psc.edu/resources/software")
whatis("Description: gnuplot is a command-line and GUI program that can generate two- and three-dimensional plots of functions, data, and data fits.")

help([[
gnuplot is a command-line and GUI program that can generate two- and three-dimensional plots of functions, data, and data fits.
To load the module type
> module load gnuplot/5.4.10
To unload the module type
> module unload gnuplot/5.4.10
Documentation
-------------
For help, type
> gnuplot --help
Tools included in this module are
* gnuplot
]])

local package = "gnuplot"
local version = "5.4.10"
local base = pathJoin("/opt/packages",package,version)
prepend_path("PATH", base)
19 changes: 19 additions & 0 deletions 5.4.10/rbuild.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

# Copyright © 2021-2023 Pittsburgh Supercomputing Center.
# All Rights Reserved.

IMAGE=singularity-gnuplot-5.4.10.sif
DEFINITION=Singularity

if [ -f $IMAGE ]; then
rm -fv $IMAGE
fi

singularity build --remote $IMAGE $DEFINITION

if [ -f $IMAGE ]; then
exit 0
else
exit 1
fi
3 changes: 3 additions & 0 deletions 5.4.10/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

./singularity-gnuplot-5.4.10.sif --help

0 comments on commit 68373fa

Please sign in to comment.