Compare commits

..

6 Commits

Author SHA1 Message Date
Thomas 7c67be39b0
Merge pull request #171 from dvargas46/v3-add-prolog
pkg(prolog-8.2.4): Add prolog 8.2.4
2021-03-19 08:29:49 +13:00
Thomas 6e0bff24a2
Merge pull request #168 from dvargas46/v3-add-prolog
pkg(prolog-8.2.4): Add deps for prolog
2021-03-19 07:56:51 +13:00
Thomas 25d4d2e04f
Merge pull request #170 from dvargas46/v3-add-scala
pkg(scala-3.0.0): Add scala 3.0.0
2021-03-19 07:56:38 +13:00
Vargas, Dan 389c9be86c pkg(scala-3.0.0): Add scala 3.0.0 2021-03-18 13:34:03 -05:00
Vargas, Dan d5723a11d2 pkg(prolog-8.2.4): Add prolog 8.2.4 2021-03-18 09:20:37 -05:00
Vargas, Dan d50403230c pkg(prolog-8.2.4): Add deps for prolog 2021-03-18 09:13:02 -05:00
11 changed files with 69 additions and 1 deletions

View File

@ -5,7 +5,7 @@ RUN for i in $(seq 1001 1500); do \
useradd -M runner$i -g $i -u $i ; \ useradd -M runner$i -g $i -u $i ; \
done done
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y libxml2 gnupg tar coreutils util-linux libc6-dev binutils build-essential locales libpcre3-dev libevent-dev libgmp3-dev && \ apt-get install -y libxml2 gnupg tar coreutils util-linux libc6-dev binutils build-essential locales libpcre3-dev libevent-dev libgmp3-dev libncurses6 && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen

22
packages/prolog/8.2.4/build.sh vendored Executable file
View File

@ -0,0 +1,22 @@
#!/bin/bash
PREFIX=$(realpath $(dirname $0))
mkdir -p build
cd build
# Source compile
curl -L "https://www.swi-prolog.org/download/stable/src/swipl-8.2.4.tar.gz" -o swipl.tar.gz
tar xzf swipl.tar.gz --strip-components=1
rm swipl.tar.gz
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX="$PREFIX" -DSWIPL_PACKAGES_JAVA=OFF -DSWIPL_PACKAGES_X=OFF -DMULTI_THREADED=OFF -DINSTALL_DOCUMENTATION=OFF ..
make -j$(nproc)
make install -j$(nproc)
cd ../../
rm -rf build

1
packages/prolog/8.2.4/environment vendored Normal file
View File

@ -0,0 +1 @@
export PATH=$PWD/bin:$PATH

6
packages/prolog/8.2.4/metadata.json vendored Normal file
View File

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

4
packages/prolog/8.2.4/run vendored Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# Put instructions to run the runtime
swipl -g true -t halt "$@"

1
packages/prolog/8.2.4/test.prolog vendored Normal file
View File

@ -0,0 +1 @@
:- write('OK'), nl.

16
packages/scala/3.0.0/build.sh vendored Executable file
View File

@ -0,0 +1,16 @@
#!/usr/bin/env bash
# Scala depends on Java
mkdir -p java
cd java
curl "https://download.java.net/java/GA/jdk15.0.2/0d1cfde4252546c6931946de8db48ee2/7/GPL/openjdk-15.0.2_linux-x64_bin.tar.gz" -o java.tar.gz
tar xzf java.tar.gz --strip-components=1
rm java.tar.gz
cd ..
mkdir -p scala
cd scala
curl -L "https://github.com/lampepfl/dotty/releases/download/3.0.0-RC1/scala3-3.0.0-RC1.tar.gz" -o scala.tar.gz
tar -xzf scala.tar.gz --strip-components=1
rm scala.tar.gz
cd ..

5
packages/scala/3.0.0/environment vendored Normal file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env bash
# Scala requires JAVA_HOME to be set
export JAVA_HOME=$PWD/java
export PATH=$PWD/scala/bin:$PATH

6
packages/scala/3.0.0/metadata.json vendored Normal file
View File

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

4
packages/scala/3.0.0/run vendored Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# Put instructions to run the runtime
scala -color never "$@"

3
packages/scala/3.0.0/test.scala vendored Normal file
View File

@ -0,0 +1,3 @@
@main def run(): Unit = {
println("OK")
}