Add dev-scheme/skint

This commit is contained in:
cælōrum spectātrīx 2026-01-01 16:45:47 +01:00
parent 5ec8959f18
commit c630bef868
3 changed files with 54 additions and 0 deletions

View file

@ -0,0 +1,41 @@
# Copyright 2025-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Cheap and fast R7RS Scheme interpreter"
HOMEPAGE="https://github.com/false-schemers/skint"
SRC_URI="https://github.com/false-schemers/skint/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+srfi"
inherit toolchain-funcs
src_prepare() {
default
sed '/INSTALL/s/-s//g' -i Makefile || die # Don't strip
}
src_configure() {
true # The configure script is useless
}
src_compile() {
emake \
PREFIX="/usr" \
LIBROOT="/usr/lib/${PN}" \
CC="$(tc-getCC)" \
CFLAGS="${CFLAGS} -DNDEBUG -DNAN_BOXING -DLIBDIR=/usr/lib/${PN}/lib" \
LDFLAGS="${LDFLAGS}"
}
src_install() {
emake PREFIX="${D}/usr" install
if use srfi; then
emake LIBROOT="${D}/usr/lib/${PN}" libinstall
fi
einstalldocs
}