From 825cd586e1517e5f6752614cee7d35ebbed57035 Mon Sep 17 00:00:00 2001 From: RVG|lory <87276663+LoryPelli@users.noreply.github.com> Date: Mon, 10 Apr 2023 17:11:27 +0200 Subject: [PATCH] Updated to `Erlang 25.3.0` --- packages/erlang/25.3.0/build.sh | 20 ++++++++++++++++++++ packages/erlang/25.3.0/environment | 4 ++++ packages/erlang/25.3.0/metadata.json | 5 +++++ packages/erlang/25.3.0/run | 4 ++++ packages/erlang/25.3.0/test.erl | 3 +++ 5 files changed, 36 insertions(+) create mode 100644 packages/erlang/25.3.0/build.sh create mode 100644 packages/erlang/25.3.0/environment create mode 100644 packages/erlang/25.3.0/metadata.json create mode 100644 packages/erlang/25.3.0/run create mode 100644 packages/erlang/25.3.0/test.erl diff --git a/packages/erlang/25.3.0/build.sh b/packages/erlang/25.3.0/build.sh new file mode 100644 index 0000000..8c7908e --- /dev/null +++ b/packages/erlang/25.3.0/build.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +PREFIX=$(realpath $(dirname $0)) + +mkdir -p build + +cd build + +curl "http://erlang.org/download/otp_src_25.3.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 \ No newline at end of file diff --git a/packages/erlang/25.3.0/environment b/packages/erlang/25.3.0/environment new file mode 100644 index 0000000..c6ab089 --- /dev/null +++ b/packages/erlang/25.3.0/environment @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# Put 'export' statements here for environment variables +export PATH=$PWD/bin:$PATH \ No newline at end of file diff --git a/packages/erlang/25.3.0/metadata.json b/packages/erlang/25.3.0/metadata.json new file mode 100644 index 0000000..40367a0 --- /dev/null +++ b/packages/erlang/25.3.0/metadata.json @@ -0,0 +1,5 @@ +{ + "language": "erlang", + "version": "25.3.0", + "aliases": ["erl", "escript"] +} \ No newline at end of file diff --git a/packages/erlang/25.3.0/run b/packages/erlang/25.3.0/run new file mode 100644 index 0000000..135d9f4 --- /dev/null +++ b/packages/erlang/25.3.0/run @@ -0,0 +1,4 @@ +#!/bin/bash + +# Put instructions to run the runtime +escript "$@" \ No newline at end of file diff --git a/packages/erlang/25.3.0/test.erl b/packages/erlang/25.3.0/test.erl new file mode 100644 index 0000000..d898d2c --- /dev/null +++ b/packages/erlang/25.3.0/test.erl @@ -0,0 +1,3 @@ + +main(_) -> + io:format("OK~n"). \ No newline at end of file