Ports: Add tinyscheme 1.42 (#5387)

This commit is contained in:
Marcel Hernandez 2021-02-17 23:07:34 +01:00 committed by GitHub
parent bafb8b0be6
commit b07799060f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 0 deletions

View file

@ -68,6 +68,7 @@ Please make sure to keep this list up to date when adding and updating ports. :^
| [`stress-ng`](stress-ng/) | stress-ng | 0.11.23 | https://github.com/ColinIanKing/stress-ng |
| [`termcap`](termcap/) | GNU termcap | 1.3.1 | https://www.gnu.org/software/termutils/ |
| [`tinycc`](tinycc/) | Tiny C Compiler (TinyCC) | dev | https://github.com/TinyCC/tinycc |
| [`tinyscheme`](tinyscheme/) | TinyScheme Interpreter | 1.42 | https://sourceforge.net/projects/tinyscheme/ |
| [`tr`](tr/) | tr (OpenBSD) | 6.7 | https://github.com/ibara/libpuffy |
| [`vim`](vim/) | Vim | | https://www.vim.org/ |
| [`vttest`](vttest/) | vttest | 20200610 | https://invisible-island.net/vttest/ |

17
Ports/tinyscheme/package.sh Executable file
View file

@ -0,0 +1,17 @@
#!/usr/bin/env -S bash ../.port_include.sh
port=tinyscheme
version=1.42
files="https://downloads.sourceforge.net/project/tinyscheme/tinyscheme/tinyscheme-${version}/tinyscheme-${version}.tar.gz tinyscheme-${version}.tar.gz 273ac5ffe5305986b329e9045f2aea89"
useconfigure=false
build() {
run make scheme CC="i686-pc-serenity-gcc -fpic -pedantic" SYS_LIBS= FEATURES='-DUSE_NO_FEATURES=1 -DInitFile=\"/usr/local/include/tinyscheme/init.scm\"'
}
install() {
run mkdir -p "${SERENITY_ROOT}/Build/Root/usr/local/bin"
run cp scheme "${SERENITY_ROOT}/Build/Root/usr/local/bin/tinyscheme"
run mkdir -p "${SERENITY_ROOT}/Build/Root/usr/local/include/tinyscheme"
run cp init.scm "${SERENITY_ROOT}/Build/Root/usr/local/include/tinyscheme/init.scm"
}