From ea1a9415972e844a5c53b28813a87090c5f05a91 Mon Sep 17 00:00:00 2001 From: Hydrazer Date: Sun, 29 May 2022 18:27:55 -0600 Subject: [PATCH] pkg(forth-0.7.3): added forth --- packages/forth/0.7.3/build.sh | 12 ++++++++++++ packages/forth/0.7.3/environment | 5 +++++ packages/forth/0.7.3/metadata.json | 7 +++++++ packages/forth/0.7.3/run | 4 ++++ packages/forth/0.7.3/test.forth | 1 + readme.md | 1 + 6 files changed, 30 insertions(+) create mode 100644 packages/forth/0.7.3/build.sh create mode 100644 packages/forth/0.7.3/environment create mode 100644 packages/forth/0.7.3/metadata.json create mode 100644 packages/forth/0.7.3/run create mode 100644 packages/forth/0.7.3/test.forth diff --git a/packages/forth/0.7.3/build.sh b/packages/forth/0.7.3/build.sh new file mode 100644 index 0000000..81c2182 --- /dev/null +++ b/packages/forth/0.7.3/build.sh @@ -0,0 +1,12 @@ +curl -L https://ftp.gnu.org/gnu/gforth/gforth-0.7.3.tar.gz -o forth.tar.gz +tar xzf forth.tar.gz +rm forth.tar.gz + +cd gforth-0.7.3/ +./BUILD-FROM-SCRATCH --host=x86_64 --build=x86_64 + +make +make install + +chmod +x ./gforth +cd .. diff --git a/packages/forth/0.7.3/environment b/packages/forth/0.7.3/environment new file mode 100644 index 0000000..10092be --- /dev/null +++ b/packages/forth/0.7.3/environment @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +# Put 'export' statements here for environment variables +export PATH=$PWD/bin:$PATH +export FORTH_PATH=$PWD/gforth-0.7.3 diff --git a/packages/forth/0.7.3/metadata.json b/packages/forth/0.7.3/metadata.json new file mode 100644 index 0000000..cd23825 --- /dev/null +++ b/packages/forth/0.7.3/metadata.json @@ -0,0 +1,7 @@ +{ + "language": "forth", + "version": "0.7.3", + "aliases": [ + "gforth" + ] +} diff --git a/packages/forth/0.7.3/run b/packages/forth/0.7.3/run new file mode 100644 index 0000000..5556ca3 --- /dev/null +++ b/packages/forth/0.7.3/run @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +$FORTH_PATH/gforth "$@" + diff --git a/packages/forth/0.7.3/test.forth b/packages/forth/0.7.3/test.forth new file mode 100644 index 0000000..c50ef0b --- /dev/null +++ b/packages/forth/0.7.3/test.forth @@ -0,0 +1 @@ +.( OK) bye diff --git a/readme.md b/readme.md index 261053c..5c6ab68 100644 --- a/readme.md +++ b/readme.md @@ -332,6 +332,7 @@ Content-Type: application/json `erlang`, `file`, `forte`, +`forth`, `fortran`, `freebasic`, `fsharp.net`,