mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-10-12 17:51:11 -04:00
Signed-off-by: Darren Kirby <bulliver@gmail.com> Part-of: https://codeberg.org/gentoo/guru/pulls/53 Merges: https://codeberg.org/gentoo/guru/pulls/53 Signed-off-by: Michał Górny <mgorny@gentoo.org>
46 lines
1010 B
Bash
46 lines
1010 B
Bash
# Copyright 2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
DESCRIPTION="A Scheme-derived Lisp written in C"
|
|
HOMEPAGE="https://github.com/DarrenKirby/cozenage"
|
|
SRC_URI="https://github.com/DarrenKirby/cozenage/releases/download/v${PV}/${P}.tar.xz"
|
|
|
|
LICENSE="GPL-3"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~arm64"
|
|
IUSE="test"
|
|
RESTRICT="!test? ( test )"
|
|
|
|
DEPEND="dev-libs/icu
|
|
dev-libs/boehm-gc
|
|
dev-libs/gmp
|
|
dev-libs/openssl"
|
|
RDEPEND="${DEPEND}"
|
|
BDEPEND=" test? ( dev-libs/criterion ) "
|
|
|
|
src_prepare() {
|
|
default
|
|
|
|
# Strip AddressSanitizer from tests as it conflicts with Portage's LD_PRELOAD sandbox.
|
|
# Strip -Werror per Gentoo QA policy to prevent build failures on future GCC bumps.
|
|
sed -i \
|
|
-e 's/-fsanitize=address//g' \
|
|
-e 's/-Werror//g' \
|
|
Makefile || die
|
|
}
|
|
|
|
src_test() {
|
|
emake test
|
|
./run_tests || die "package tests failed"
|
|
}
|
|
|
|
src_install() {
|
|
emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
|
|
|
|
# install documentation
|
|
dodoc *.md
|
|
doman docs/cozenage.1
|
|
}
|