From 09c9c13d07e1fb6a13dcf34d9decd279432c5412 Mon Sep 17 00:00:00 2001 From: "Vargas, Dan" Date: Wed, 17 Mar 2021 18:10:35 -0500 Subject: [PATCH] pkg(lisp-2.1.2): Add lisp (SBCL) 2.1.2 --- packages/lisp/2.1.2/build.sh | 19 +++++++++++++++++++ packages/lisp/2.1.2/environment | 4 ++++ packages/lisp/2.1.2/metadata.json | 6 ++++++ packages/lisp/2.1.2/run | 4 ++++ packages/lisp/2.1.2/test.cl | 1 + 5 files changed, 34 insertions(+) create mode 100755 packages/lisp/2.1.2/build.sh create mode 100644 packages/lisp/2.1.2/environment create mode 100644 packages/lisp/2.1.2/metadata.json create mode 100644 packages/lisp/2.1.2/run create mode 100644 packages/lisp/2.1.2/test.cl diff --git a/packages/lisp/2.1.2/build.sh b/packages/lisp/2.1.2/build.sh new file mode 100755 index 0000000..37f1f8a --- /dev/null +++ b/packages/lisp/2.1.2/build.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env bash + +# Put instructions to build your package in here +PREFIX=$(realpath $(dirname $0)) + +mkdir -p build + +cd build + +# Prebuilt binary install since source compile requires lisp to be installed already +curl -L "http://prdownloads.sourceforge.net/sbcl/sbcl-2.1.2-x86-64-linux-binary.tar.bz2" -o sbcl.tar.bz2 +tar xf sbcl.tar.bz2 --strip-components=1 +rm sbcl.tar.bz2 + +INSTALL_ROOT=$PREFIX sh install.sh + +cd ../ + +rm -rf build diff --git a/packages/lisp/2.1.2/environment b/packages/lisp/2.1.2/environment new file mode 100644 index 0000000..780b668 --- /dev/null +++ b/packages/lisp/2.1.2/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/lisp/2.1.2/metadata.json b/packages/lisp/2.1.2/metadata.json new file mode 100644 index 0000000..fd35513 --- /dev/null +++ b/packages/lisp/2.1.2/metadata.json @@ -0,0 +1,6 @@ +{ + "language": "lisp", + "version": "2.1.2", + "aliases": ["lisp","cl","sbcl","commonlisp"], + "author": "Dan Vargas " +} diff --git a/packages/lisp/2.1.2/run b/packages/lisp/2.1.2/run new file mode 100644 index 0000000..74a5cf3 --- /dev/null +++ b/packages/lisp/2.1.2/run @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# Put instructions to run the runtime +sbcl --script "$@" diff --git a/packages/lisp/2.1.2/test.cl b/packages/lisp/2.1.2/test.cl new file mode 100644 index 0000000..1de92b7 --- /dev/null +++ b/packages/lisp/2.1.2/test.cl @@ -0,0 +1 @@ +(write-line "OK") \ No newline at end of file