Skip to content

Commit

Permalink
Merge pull request #1 from pscedu/gnuplot-5.4.10
Browse files Browse the repository at this point in the history
gnuplot 5.4.10
  • Loading branch information
icaoberg authored Dec 16, 2023
2 parents ed6cc8a + 47fe98d commit b07c511
Show file tree
Hide file tree
Showing 14 changed files with 134 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on: [push, pull_request]
jobs:
build:
name: Build
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
strategy:
matrix:
singularity_version:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pretty.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on: [push, pull_request]
jobs:
build:
name: Build
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
Expand Down
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-patch-level-10

%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
Empty file added 5.4.5/.ignore
Empty file.
Empty file added 5.4.6/.ignore
Empty file.
Empty file added 5.4/.ignore
Empty file.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ bash ./test.sh
```

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

The [Biomedical Applications Group](https://www.psc.edu/biomedical-applications/) at the [Pittsburgh Supercomputing Center](http://www.psc.edu) in the [Mellon College of Science](https://www.cmu.edu/mcs/) at [Carnegie Mellon University](http://www.cmu.edu).

0 comments on commit b07c511

Please sign in to comment.