# 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() { sed '/INSTALL/s/-s//g' # 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 }