From 50cb0f19963b4a9be0314b75e09f46817f5aa8fc Mon Sep 17 00:00:00 2001 From: Dan Vargas <10914883+dvargas46@users.noreply.github.com> Date: Sun, 2 May 2021 01:36:41 -0500 Subject: [PATCH] pkg(octave-6.2.0): add octave 6.2.0 (#247) --- packages/octave/6.2.0/build.sh | 22 ++++++++++++++++++++++ packages/octave/6.2.0/environment | 4 ++++ packages/octave/6.2.0/metadata.json | 5 +++++ packages/octave/6.2.0/run | 4 ++++ packages/octave/6.2.0/test.octave | 1 + 5 files changed, 36 insertions(+) create mode 100755 packages/octave/6.2.0/build.sh create mode 100644 packages/octave/6.2.0/environment create mode 100644 packages/octave/6.2.0/metadata.json create mode 100644 packages/octave/6.2.0/run create mode 100644 packages/octave/6.2.0/test.octave diff --git a/packages/octave/6.2.0/build.sh b/packages/octave/6.2.0/build.sh new file mode 100755 index 0000000..48a9853 --- /dev/null +++ b/packages/octave/6.2.0/build.sh @@ -0,0 +1,22 @@ +#!/usr/bin/env bash + +# Build octave from source +PREFIX=$(realpath $(dirname $0)) + +mkdir -p build + +cd build + +curl -L "https://ftpmirror.gnu.org/octave/octave-6.2.0.tar.gz" -o octave.tar.gz + +tar xzf octave.tar.gz --strip-components=1 + +# === autoconf based === +# Disable support for GUI, HDF5 and Java +./configure --prefix "$PREFIX" --without-opengl --without-qt --without-x --without-hdf5 --disable-java + +make -j$(nproc) +make install -j$(nproc) + +cd ../ +rm -rf build diff --git a/packages/octave/6.2.0/environment b/packages/octave/6.2.0/environment new file mode 100644 index 0000000..fcbc1e3 --- /dev/null +++ b/packages/octave/6.2.0/environment @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# Path to octave binary +export PATH=$PWD/bin:$PATH diff --git a/packages/octave/6.2.0/metadata.json b/packages/octave/6.2.0/metadata.json new file mode 100644 index 0000000..5c37dc9 --- /dev/null +++ b/packages/octave/6.2.0/metadata.json @@ -0,0 +1,5 @@ +{ + "language": "octave", + "version": "6.2.0", + "aliases": [] +} diff --git a/packages/octave/6.2.0/run b/packages/octave/6.2.0/run new file mode 100644 index 0000000..b3e4e73 --- /dev/null +++ b/packages/octave/6.2.0/run @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# Run octave scripts without gui, history, init scripts and initial message +octave --no-gui --no-window-system --no-history --no-init-file --no-site-file --norc --quiet "$@" diff --git a/packages/octave/6.2.0/test.octave b/packages/octave/6.2.0/test.octave new file mode 100644 index 0000000..a94310b --- /dev/null +++ b/packages/octave/6.2.0/test.octave @@ -0,0 +1 @@ +disp('OK') \ No newline at end of file