Compare commits

...

4 Commits

Author SHA1 Message Date
Dan Vargas 567809ed42 pkg(ruby-2.5.1): Fix runner args ref 2021-03-16 14:07:55 +13:00
Dan Vargas 9b305c7995 pkg(osabie-1.0.1): Added osabie 1.0.1 2021-03-16 14:07:55 +13:00
Dan Vargas d64a2667dc pkg(elixir-1.11.3): Added elixir 1.11.3 2021-03-16 14:07:55 +13:00
Dan Vargas 9b1e487156 pkg(erlang-23.0.0): Added erlang (escript) 23.0.0 2021-03-16 14:07:55 +13:00
16 changed files with 117 additions and 1 deletions

25
packages/elixir/1.11.3/build.sh vendored Executable file
View File

@ -0,0 +1,25 @@
#!/bin/bash
source ../../erlang/23.0.0/build.sh
export PATH=$PWD/bin:$PATH
PREFIX=$(realpath $(dirname $0))
mkdir -p build
cd build
curl -L "https://github.com/elixir-lang/elixir/archive/v1.11.3.tar.gz" -o elixir.tar.gz
tar xzf elixir.tar.gz --strip-components=1
rm elixir.tar.gz
./configure --prefix "$PREFIX"
make -j$(nproc)
cd ..
cp -r build/bin .
cp -r build/lib .
rm -rf build

4
packages/elixir/1.11.3/environment vendored Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# Put 'export' statements here for environment variables
export PATH=$PWD/bin:$PATH

6
packages/elixir/1.11.3/metadata.json vendored Normal file
View File

@ -0,0 +1,6 @@
{
"language": "elixir",
"version": "1.11.3",
"author": "Dan Vargas <danvargas46@gmail.com>",
"aliases": ["elixir", "exs"]
}

4
packages/elixir/1.11.3/run vendored Normal file
View File

@ -0,0 +1,4 @@
#!/bin/bash
# Put instructions to run the runtime
elixir "$@"

1
packages/elixir/1.11.3/test.exs vendored Normal file
View File

@ -0,0 +1 @@
IO.puts("OK")

21
packages/erlang/23.0.0/build.sh vendored Executable file
View File

@ -0,0 +1,21 @@
#!/bin/bash
PREFIX=$(realpath $(dirname $0))
mkdir -p build
cd build
curl "http://erlang.org/download/otp_src_23.0.tar.gz" -o erlang.tar.gz
tar xzf erlang.tar.gz --strip-components=1
rm erlang.tar.gz
export ERL_TOP=$(pwd)
./configure --prefix "$PREFIX"
make -j$(nproc)
make install -j$(nproc)
cd ..
rm -rf build

4
packages/erlang/23.0.0/environment vendored Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# Put 'export' statements here for environment variables
export PATH=$PWD/bin:$PATH

6
packages/erlang/23.0.0/metadata.json vendored Normal file
View File

@ -0,0 +1,6 @@
{
"language": "erlang",
"version": "23.0.0",
"author": "Dan Vargas <danvargas46@gmail.com>",
"aliases": ["erlang", "erl", "escript"]
}

4
packages/erlang/23.0.0/run vendored Normal file
View File

@ -0,0 +1,4 @@
#!/bin/bash
# Put instructions to run the runtime
escript "$@"

3
packages/erlang/23.0.0/test.erl vendored Normal file
View File

@ -0,0 +1,3 @@
main(_) ->
io:format("OK~n").

23
packages/osabie/1.0.1/build.sh vendored Executable file
View File

@ -0,0 +1,23 @@
#!/bin/bash
source ../../elixir/1.11.3/build.sh
export PATH=$PWD/bin:$PATH
PREFIX=$(realpath $(dirname $0))
mkdir -p build
cd build
git clone 'https://github.com/Adriandmen/05AB1E.git' .
mix local.hex --force
mix local.rebar --force
mix deps.get --force
MIX_ENV=prod mix escript.build --force
cd ..
cp -r build/* bin
rm -rf build

4
packages/osabie/1.0.1/environment vendored Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# Put 'export' statements here for environment variables
export PATH=$PWD/bin:$PATH

6
packages/osabie/1.0.1/metadata.json vendored Normal file
View File

@ -0,0 +1,6 @@
{
"language": "osabie",
"version": "1.0.1",
"author": "Dan Vargas <danvargas46@gmail.com>",
"aliases": ["osabie", "05AB1E", "usable"]
}

4
packages/osabie/1.0.1/run vendored Normal file
View File

@ -0,0 +1,4 @@
#!/bin/bash
# Put instructions to run the runtime
osabie "$@"

1
packages/osabie/1.0.1/test.osabie vendored Normal file
View File

@ -0,0 +1 @@
"OK

View File

@ -1,3 +1,3 @@
#!/bin/bash
ruby $*
ruby "$@"