Merge pull request #171 from dvargas46/v3-add-prolog

pkg(prolog-8.2.4): Add prolog 8.2.4
This commit is contained in:
Thomas 2021-03-19 08:29:49 +13:00 committed by GitHub
commit 7c67be39b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 34 additions and 0 deletions

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.