1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-30 01:27:34 +00:00

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

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"
}