Files
guru/dev-scheme/chez/chez-9.5.4.ebuild
Matt Smith 32c3ee199c dev-scheme/chez: Change binary names
Previously installed as /usr/bin/scheme which clashes with other
scheme implementations.  Installing as chezscheme allows managing
/usr/bin/scheme with eselect-scheme.

Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Matt Smith <matt@offtopica.uk>
2021-06-19 22:11:31 +01:00

37 lines
992 B
Bash

# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="A programming language based on R6RS"
HOMEPAGE="https://cisco.github.io/ChezScheme/ https://github.com/cisco/ChezScheme"
SRC_URI="https://github.com/cisco/ChezScheme/releases/download/v${PV}/csv${PV}.tar.gz"
# Chez Scheme itself is Apache 2.0, but it vendors LZ4 (BSD-2),
# Nanopass (MIT), stex (MIT), and zlib (ZLIB).
LICENSE="Apache-2.0 BSD-2 MIT ZLIB"
SLOT="0"
KEYWORDS="~amd64"
IUSE="examples"
S="${WORKDIR}"/csv${PV}
src_configure() {
local myconfargs=(
--installschemename=chezscheme
--installpetitename=chezscheme-petite
--installscriptname=chezscheme-script
--installprefix="${EPREFIX}"/usr
--nogzip-man-pages
--disable-curses # TODO: ncurses USE flag.
--disable-x11 # TODO: X USE flag.
)
./configure "${myconfargs[@]}" || die
}
src_install() {
emake install TempRoot="${D}"
use examples || rm -r "${D}"/usr/lib/csv${PV}/examples || die
}