From c0b218f47791117867feb4e5bb53eef6a4e67e9e Mon Sep 17 00:00:00 2001 From: g-w1 <58830309+g-w1@users.noreply.github.com> Date: Tue, 15 Jun 2021 21:25:12 -0400 Subject: [PATCH 1/3] update zig to 0.8.0 (#279) zig 0.8.0 got released, so this pr updates it --- packages/zig/0.7.1/build.sh | 2 +- packages/zig/0.8.0/build.sh | 10 ++++++++++ packages/zig/0.8.0/compile | 6 ++++++ packages/zig/0.8.0/environment | 4 ++++ packages/zig/0.8.0/metadata.json | 5 +++++ packages/zig/0.8.0/run | 4 ++++ packages/zig/0.8.0/test.zig | 6 ++++++ 7 files changed, 36 insertions(+), 1 deletion(-) create mode 100755 packages/zig/0.8.0/build.sh create mode 100644 packages/zig/0.8.0/compile create mode 100644 packages/zig/0.8.0/environment create mode 100644 packages/zig/0.8.0/metadata.json create mode 100644 packages/zig/0.8.0/run create mode 100644 packages/zig/0.8.0/test.zig diff --git a/packages/zig/0.7.1/build.sh b/packages/zig/0.7.1/build.sh index 9714794..284214f 100755 --- a/packages/zig/0.7.1/build.sh +++ b/packages/zig/0.7.1/build.sh @@ -7,4 +7,4 @@ curl -L "https://ziglang.org/download/0.7.1/zig-linux-x86_64-0.7.1.tar.xz" -o zi tar xf zig.tar.xz --strip-components=1 rm zig.tar.xz -cd ../ \ No newline at end of file +cd ../ diff --git a/packages/zig/0.8.0/build.sh b/packages/zig/0.8.0/build.sh new file mode 100755 index 0000000..b3bbaf5 --- /dev/null +++ b/packages/zig/0.8.0/build.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +mkdir -p bin +cd bin/ + +curl -L "https://ziglang.org/download/0.8.0/zig-linux-x86_64-0.8.0.tar.xz" -o zig.tar.xz +tar xf zig.tar.xz --strip-components=1 +rm zig.tar.xz + +cd ../ diff --git a/packages/zig/0.8.0/compile b/packages/zig/0.8.0/compile new file mode 100644 index 0000000..75ee6ba --- /dev/null +++ b/packages/zig/0.8.0/compile @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +# optimizing for small programs +rename 's/$/\.zig/' "$@" # Add .zig extension + +zig build-exe -O ReleaseSafe --color off --cache-dir . --global-cache-dir . --name out *.zig diff --git a/packages/zig/0.8.0/environment b/packages/zig/0.8.0/environment new file mode 100644 index 0000000..a85000c --- /dev/null +++ b/packages/zig/0.8.0/environment @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# compiler path +export PATH=$PWD/bin:$PATH diff --git a/packages/zig/0.8.0/metadata.json b/packages/zig/0.8.0/metadata.json new file mode 100644 index 0000000..7af8ed6 --- /dev/null +++ b/packages/zig/0.8.0/metadata.json @@ -0,0 +1,5 @@ +{ + "language": "zig", + "version": "0.8.0", + "aliases": ["zig"] +} diff --git a/packages/zig/0.8.0/run b/packages/zig/0.8.0/run new file mode 100644 index 0000000..d96e06f --- /dev/null +++ b/packages/zig/0.8.0/run @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +shift # Filename is only used in compile step, so we can take it out here +./out "$@" diff --git a/packages/zig/0.8.0/test.zig b/packages/zig/0.8.0/test.zig new file mode 100644 index 0000000..548c703 --- /dev/null +++ b/packages/zig/0.8.0/test.zig @@ -0,0 +1,6 @@ +const std = @import("std"); + +pub fn main() !void { + const stdout = std.io.getStdOut().writer(); + try stdout.print("OK\n", .{}); +} \ No newline at end of file From ba9503d9f8ad9aa620fb0e12e25874a952058c95 Mon Sep 17 00:00:00 2001 From: Hydrazer <73801166+Hydrazer@users.noreply.github.com> Date: Fri, 18 Jun 2021 17:45:37 -0600 Subject: [PATCH 2/3] Adding Raku (#281) * Adding Raku probably doesn't work lol tried copying the other ones someone could probably implement it using the build instructions from this https://rakudo.org/downloads/rakudo/source * Update test.raku * edited raku implementation put it in version folder 6.d and removed the v from version in the json file * edited raku version changed the same stuff as last time but with different stuff * raku edit build.sh remove some unnecessary lines from the file * raku edit version editing version name again lol --- packages/raku/6.100.0/build.sh | 5 +++++ packages/raku/6.100.0/environment | 4 ++++ packages/raku/6.100.0/metadata.json | 5 +++++ packages/raku/6.100.0/run | 3 +++ packages/raku/6.100.0/test.raku | 1 + 5 files changed, 18 insertions(+) create mode 100644 packages/raku/6.100.0/build.sh create mode 100644 packages/raku/6.100.0/environment create mode 100644 packages/raku/6.100.0/metadata.json create mode 100644 packages/raku/6.100.0/run create mode 100644 packages/raku/6.100.0/test.raku diff --git a/packages/raku/6.100.0/build.sh b/packages/raku/6.100.0/build.sh new file mode 100644 index 0000000..20be2fc --- /dev/null +++ b/packages/raku/6.100.0/build.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +curl -L "https://rakudo.org/dl/rakudo/rakudo-moar-2021.05-01-linux-x86_64-gcc.tar.gz" -o raku.tar.xz +tar xf raku.tar.xz --strip-components=1 +rm raku.tar.xz \ No newline at end of file diff --git a/packages/raku/6.100.0/environment b/packages/raku/6.100.0/environment new file mode 100644 index 0000000..12ab624 --- /dev/null +++ b/packages/raku/6.100.0/environment @@ -0,0 +1,4 @@ +#!/bin/bash + +# Path to raku binary +export PATH=$PWD/bin:$PATH \ No newline at end of file diff --git a/packages/raku/6.100.0/metadata.json b/packages/raku/6.100.0/metadata.json new file mode 100644 index 0000000..7cda1ed --- /dev/null +++ b/packages/raku/6.100.0/metadata.json @@ -0,0 +1,5 @@ +{ + "language": "raku", + "version": "6.100.0", + "aliases": ["raku", "rakudo", "perl6", "p6", "pl6"] +} \ No newline at end of file diff --git a/packages/raku/6.100.0/run b/packages/raku/6.100.0/run new file mode 100644 index 0000000..6c2c077 --- /dev/null +++ b/packages/raku/6.100.0/run @@ -0,0 +1,3 @@ +#!/bin/bash + +raku "$@" \ No newline at end of file diff --git a/packages/raku/6.100.0/test.raku b/packages/raku/6.100.0/test.raku new file mode 100644 index 0000000..f863fac --- /dev/null +++ b/packages/raku/6.100.0/test.raku @@ -0,0 +1 @@ +say "OK" \ No newline at end of file From 95f9628abb8fe098d593463c37660fe8c7b5772a Mon Sep 17 00:00:00 2001 From: dc Date: Sat, 19 Jun 2021 01:46:51 -0700 Subject: [PATCH 3/3] Added cobol and raku to the languages list. (#282) --- readme.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/readme.md b/readme.md index 6165b24..9b864e3 100644 --- a/readme.md +++ b/readme.md @@ -276,6 +276,7 @@ Content-Type: application/json `brainfuck`, `cjam`, `clojure`, +`cobol`, `coffeescript`, `cow`, `crystal`, @@ -314,6 +315,7 @@ Content-Type: application/json `prolog`, `pure`, `python`, +`raku`, `rockstar`, `ruby`, `rust`,