From 6d50745db896daf39cd35f1942fa06abf07b65bd Mon Sep 17 00:00:00 2001 From: Dan Vargas Date: Fri, 6 Aug 2021 13:30:48 -0600 Subject: [PATCH] pkg(forte-1.0.0): add forte --- packages/forte/1.0.0/build.sh | 15 +++++++++++++++ packages/forte/1.0.0/environment | 4 ++++ packages/forte/1.0.0/metadata.json | 5 +++++ packages/forte/1.0.0/run | 3 +++ packages/forte/1.0.0/test.forte | 2 ++ readme.md | 1 + 6 files changed, 30 insertions(+) create mode 100755 packages/forte/1.0.0/build.sh create mode 100644 packages/forte/1.0.0/environment create mode 100644 packages/forte/1.0.0/metadata.json create mode 100644 packages/forte/1.0.0/run create mode 100644 packages/forte/1.0.0/test.forte diff --git a/packages/forte/1.0.0/build.sh b/packages/forte/1.0.0/build.sh new file mode 100755 index 0000000..b3e39a8 --- /dev/null +++ b/packages/forte/1.0.0/build.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +# the forter interpreter requries ruby +source ../../ruby/3.0.1/build.sh + +mkdir -p build + +git clone -q "https://github.com/judofyr/forter" build/forter +cd build/forter + +mv bin/* ../../bin/ +mv lib/* ../../lib/ + +cd ../../ +rm -rf build diff --git a/packages/forte/1.0.0/environment b/packages/forte/1.0.0/environment new file mode 100644 index 0000000..e75919d --- /dev/null +++ b/packages/forte/1.0.0/environment @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# interpreter location +export PATH=$PWD/bin:$PATH diff --git a/packages/forte/1.0.0/metadata.json b/packages/forte/1.0.0/metadata.json new file mode 100644 index 0000000..fd4ec12 --- /dev/null +++ b/packages/forte/1.0.0/metadata.json @@ -0,0 +1,5 @@ +{ + "language": "forte", + "version": "1.0.0", + "aliases": ["forter"] +} diff --git a/packages/forte/1.0.0/run b/packages/forte/1.0.0/run new file mode 100644 index 0000000..79ee95b --- /dev/null +++ b/packages/forte/1.0.0/run @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +forter "$@" diff --git a/packages/forte/1.0.0/test.forte b/packages/forte/1.0.0/test.forte new file mode 100644 index 0000000..7482949 --- /dev/null +++ b/packages/forte/1.0.0/test.forte @@ -0,0 +1,2 @@ +1 PRINT "OK" +2 END diff --git a/readme.md b/readme.md index 01f3a2a..e95de75 100644 --- a/readme.md +++ b/readme.md @@ -306,6 +306,7 @@ Content-Type: application/json `elixir`, `emacs`, `erlang`, +`forte`, `fortran`, `go`, `golfscript`,