pkg(elixir-1.11.3): Added elixir 1.11.3

This commit is contained in:
Dan Vargas 2021-03-15 11:36:50 -05:00 committed by Thomas
parent 9b1e487156
commit d64a2667dc
5 changed files with 40 additions and 0 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")