From 99b03e20d0f46363229ae1a34725d74e43b0ae3f Mon Sep 17 00:00:00 2001 From: Slendi Date: Mon, 12 Jun 2023 13:32:33 +0300 Subject: [PATCH] pkg(holyc-1.0.0): Added holyc 1.0.0 This patch adds support for the HolyC programming language by Terry A. Davis. The compiler used is based on a modified version of the 3Days compiler. Both 3Days and the fork used here do not have a specific version so 1.0.0 has been used and will be used forwards in future commits unless 3Days gets versioning (which it wont since development stopped). Signed-off-by: Slendi --- packages/holyc/1.0.0/build.sh | 22 ++++++++++++++++++++++ packages/holyc/1.0.0/environment | 1 + packages/holyc/1.0.0/metadata.json | 5 +++++ packages/holyc/1.0.0/run | 3 +++ packages/holyc/1.0.0/test.HC | 1 + 5 files changed, 32 insertions(+) create mode 100755 packages/holyc/1.0.0/build.sh create mode 100644 packages/holyc/1.0.0/environment create mode 100644 packages/holyc/1.0.0/metadata.json create mode 100644 packages/holyc/1.0.0/run create mode 100644 packages/holyc/1.0.0/test.HC diff --git a/packages/holyc/1.0.0/build.sh b/packages/holyc/1.0.0/build.sh new file mode 100755 index 0000000..6929c35 --- /dev/null +++ b/packages/holyc/1.0.0/build.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +PREFIX=$(realpath $(dirname $0)) + +mkdir -p build + +cd build + +curl https://git.xslendi.xyz/slendi/3Days/archive/main.tar.gz -o 3days.tar.gz + +tar xzf 3days.tar.gz --strip-components=1 +rm 3days.tar.gz + +make + +cp -v 3d_loader $PREFIX/. +cp -rv T $PREFIX/. + +cd .. + +rm -rf build + diff --git a/packages/holyc/1.0.0/environment b/packages/holyc/1.0.0/environment new file mode 100644 index 0000000..977a5e8 --- /dev/null +++ b/packages/holyc/1.0.0/environment @@ -0,0 +1 @@ +export PATH=$PWD/bin:$PATH diff --git a/packages/holyc/1.0.0/metadata.json b/packages/holyc/1.0.0/metadata.json new file mode 100644 index 0000000..3113f44 --- /dev/null +++ b/packages/holyc/1.0.0/metadata.json @@ -0,0 +1,5 @@ +{ + "language": "holyc", + "version": "1.0.0", + "aliases": ["hc"] +} diff --git a/packages/holyc/1.0.0/run b/packages/holyc/1.0.0/run new file mode 100644 index 0000000..b249787 --- /dev/null +++ b/packages/holyc/1.0.0/run @@ -0,0 +1,3 @@ +#!/bin/bash + +3d_loader -T $PWD/bin/ -c "$@" diff --git a/packages/holyc/1.0.0/test.HC b/packages/holyc/1.0.0/test.HC new file mode 100644 index 0000000..b490971 --- /dev/null +++ b/packages/holyc/1.0.0/test.HC @@ -0,0 +1 @@ +"OK";