From 61f5e8c6fea47560493ecea1a49a7367590edd93 Mon Sep 17 00:00:00 2001 From: Hydrazer Date: Tue, 31 May 2022 07:39:03 -0600 Subject: [PATCH] pkg(smalltalk-3.2.3): add smalltalk --- packages/smalltalk/3.2.3/build.sh | 19 +++++++++++++++++++ packages/smalltalk/3.2.3/environment | 5 +++++ packages/smalltalk/3.2.3/metadata.json | 5 +++++ packages/smalltalk/3.2.3/run | 8 ++++++++ packages/smalltalk/3.2.3/test.st | 1 + readme.md | 1 + repo/Dockerfile | 2 +- 7 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 packages/smalltalk/3.2.3/build.sh create mode 100644 packages/smalltalk/3.2.3/environment create mode 100644 packages/smalltalk/3.2.3/metadata.json create mode 100644 packages/smalltalk/3.2.3/run create mode 100644 packages/smalltalk/3.2.3/test.st diff --git a/packages/smalltalk/3.2.3/build.sh b/packages/smalltalk/3.2.3/build.sh new file mode 100644 index 0000000..5f2290e --- /dev/null +++ b/packages/smalltalk/3.2.3/build.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env bash + +set -e + +curl -L https://ftp.gnu.org/gnu/smalltalk/smalltalk-3.2.3.tar.gz -o smalltalk-3.2.3.tar.gz +tar xzf smalltalk-3.2.3.tar.gz + +rm smalltalk-3.2.3.tar.gz + +cd smalltalk-3.2.3 + +./configure +rm libc.la + +make +make install + +chmod +x gst +cd .. diff --git a/packages/smalltalk/3.2.3/environment b/packages/smalltalk/3.2.3/environment new file mode 100644 index 0000000..df2907d --- /dev/null +++ b/packages/smalltalk/3.2.3/environment @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +# Put 'export' statements here for environment variables +export PATH=$PWD/bin:$PATH +export SMALLTALK_PATH=$PWD/smalltalk-3.2.3 diff --git a/packages/smalltalk/3.2.3/metadata.json b/packages/smalltalk/3.2.3/metadata.json new file mode 100644 index 0000000..accb078 --- /dev/null +++ b/packages/smalltalk/3.2.3/metadata.json @@ -0,0 +1,5 @@ +{ + "language": "smalltalk", + "version": "3.2.3", + "aliases": ["st"] +} diff --git a/packages/smalltalk/3.2.3/run b/packages/smalltalk/3.2.3/run new file mode 100644 index 0000000..7553905 --- /dev/null +++ b/packages/smalltalk/3.2.3/run @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +code_file=`pwd`/"$1" +shift + +cd $SMALLTALK_PATH +$SMALLTALK_PATH/gst "$code_file" "$@" + diff --git a/packages/smalltalk/3.2.3/test.st b/packages/smalltalk/3.2.3/test.st new file mode 100644 index 0000000..d7b2d24 --- /dev/null +++ b/packages/smalltalk/3.2.3/test.st @@ -0,0 +1 @@ +'OK' display diff --git a/readme.md b/readme.md index 261053c..06afe11 100644 --- a/readme.md +++ b/readme.md @@ -378,6 +378,7 @@ Content-Type: application/json `ruby`, `rust`, `scala`, +`smalltalk`, `sqlite3`, `swift`, `typescript`, diff --git a/repo/Dockerfile b/repo/Dockerfile index de28c11..fe61a6f 100644 --- a/repo/Dockerfile +++ b/repo/Dockerfile @@ -9,7 +9,7 @@ RUN apt-get update && apt-get install -y unzip autoconf build-essential libssl-d libncursesw5-dev python3-pip libgmp-dev libmpfr-dev python2 libffi-dev gfortran\ libreadline-dev libblas-dev liblapack-dev libpcre3-dev libarpack2-dev libfftw3-dev \ libglpk-dev libqhull-dev libqrupdate-dev libsuitesparse-dev libsundials-dev \ - libbz2-dev liblzma-dev libpcre2-dev gperf bison flex g++ && \ + libbz2-dev liblzma-dev libpcre2-dev gperf bison flex g++ gawk zip && \ ln -sf /bin/bash /bin/sh && \ rm -rf /var/lib/apt/lists/* && \ update-alternatives --install /usr/bin/python python /usr/bin/python3.7 2