gentoo-ebuilds/dev-lang/arc/arc-3.2-r1.ebuild
Maciej Barć 0e09a4b9c7
dev-lang/arc: require non-minimal Racket
Closes: https://bugs.gentoo.org/941940
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
2024-10-22 02:08:40 +02:00

43 lines
836 B
Bash

# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit wrapper
DESCRIPTION="New dialect of Lisp, works well for web applications"
HOMEPAGE="http://www.arclanguage.org/"
SRC_URI="http://www.arclanguage.org/${PN}${PV}.tar -> ${P}.tar"
S="${WORKDIR}/${PN}${PV}"
LICENSE="Artistic-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND="
!app-arch/arc
dev-scheme/racket:=[-minimal]
"
DEPEND="
${RDEPEND}
"
DOCS=( copyright how-to-run-news )
src_compile() {
# Byte-compile Racket modules.
local mod=""
for mod in ac brackets ; do
raco make --vv "./${mod}.scm" || die "raco failed to compile ${mod}"
done
}
src_install() {
einstalldocs
rm "${DOCS[@]}" || die
insinto "/usr/share/${PN}"
doins -r ./*
make_wrapper "${PN}" "racket --load ./as.scm" "/usr/share/${PN}"
}