From d64a2667dc24860af87f65ec2b62e0f7f561a7a4 Mon Sep 17 00:00:00 2001 From: Dan Vargas Date: Mon, 15 Mar 2021 11:36:50 -0500 Subject: [PATCH] pkg(elixir-1.11.3): Added elixir 1.11.3 --- packages/elixir/1.11.3/build.sh | 25 +++++++++++++++++++++++++ packages/elixir/1.11.3/environment | 4 ++++ packages/elixir/1.11.3/metadata.json | 6 ++++++ packages/elixir/1.11.3/run | 4 ++++ packages/elixir/1.11.3/test.exs | 1 + 5 files changed, 40 insertions(+) create mode 100755 packages/elixir/1.11.3/build.sh create mode 100644 packages/elixir/1.11.3/environment create mode 100644 packages/elixir/1.11.3/metadata.json create mode 100644 packages/elixir/1.11.3/run create mode 100644 packages/elixir/1.11.3/test.exs diff --git a/packages/elixir/1.11.3/build.sh b/packages/elixir/1.11.3/build.sh new file mode 100755 index 0000000..9328d8c --- /dev/null +++ b/packages/elixir/1.11.3/build.sh @@ -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 diff --git a/packages/elixir/1.11.3/environment b/packages/elixir/1.11.3/environment new file mode 100644 index 0000000..780b668 --- /dev/null +++ b/packages/elixir/1.11.3/environment @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# Put 'export' statements here for environment variables +export PATH=$PWD/bin:$PATH diff --git a/packages/elixir/1.11.3/metadata.json b/packages/elixir/1.11.3/metadata.json new file mode 100644 index 0000000..6349e0e --- /dev/null +++ b/packages/elixir/1.11.3/metadata.json @@ -0,0 +1,6 @@ +{ + "language": "elixir", + "version": "1.11.3", + "author": "Dan Vargas ", + "aliases": ["elixir", "exs"] +} \ No newline at end of file diff --git a/packages/elixir/1.11.3/run b/packages/elixir/1.11.3/run new file mode 100644 index 0000000..9b3ba9c --- /dev/null +++ b/packages/elixir/1.11.3/run @@ -0,0 +1,4 @@ +#!/bin/bash + +# Put instructions to run the runtime +elixir "$@" \ No newline at end of file diff --git a/packages/elixir/1.11.3/test.exs b/packages/elixir/1.11.3/test.exs new file mode 100644 index 0000000..bc837c6 --- /dev/null +++ b/packages/elixir/1.11.3/test.exs @@ -0,0 +1 @@ +IO.puts("OK") \ No newline at end of file