2021-02-08 01:28:27 +01:00
|
|
|
# Copyright 1999-2021 Gentoo Authors
|
2020-11-23 00:55:03 +01:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
2021-02-08 01:28:27 +01:00
|
|
|
CSV="csv${PV}"
|
|
|
|
|
|
|
|
inherit autotools multilib wrapper
|
2020-11-23 00:55:03 +01:00
|
|
|
|
|
|
|
DESCRIPTION="Open-source Chez Scheme implementation from Cisco"
|
|
|
|
HOMEPAGE="https://cisco.github.io/ChezScheme/"
|
2021-02-08 01:28:27 +01:00
|
|
|
SRC_URI="https://github.com/cisco/ChezScheme/releases/download/v${PV}/${CSV}.tar.gz -> ${P}.tar.gz"
|
2020-11-23 00:55:03 +01:00
|
|
|
|
|
|
|
RESTRICT="mirror test"
|
|
|
|
LICENSE="Apache-2.0"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64"
|
|
|
|
IUSE="threads"
|
|
|
|
|
|
|
|
PATCHES=(
|
2021-02-08 01:28:27 +01:00
|
|
|
"${FILESDIR}/chezscheme-tinfo.patch"
|
2020-11-23 00:55:03 +01:00
|
|
|
)
|
|
|
|
|
2021-02-08 01:28:27 +01:00
|
|
|
S="${WORKDIR}/${CSV}"
|
2020-11-23 00:55:03 +01:00
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
local myconf=(
|
|
|
|
$(usex threads '--threads' '')
|
2021-02-08 01:28:27 +01:00
|
|
|
--installbin="/usr/$(get_libdir)/${CSV}"
|
|
|
|
--installlib="/usr/$(get_libdir)"
|
|
|
|
--installman="/usr/share/man"
|
|
|
|
--installprefix="/usr"
|
2020-11-23 00:55:03 +01:00
|
|
|
--temproot="${D}"
|
|
|
|
)
|
|
|
|
sh ./configure "${myconf[@]}"
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
default
|
|
|
|
|
2021-02-08 01:28:27 +01:00
|
|
|
local chez_dir="${EPREFIX}/usr/$(get_libdir)/${CSV}"
|
|
|
|
make_wrapper "${PN}" "${chez_dir}/scheme"
|
|
|
|
make_wrapper "chez" "${chez_dir}/scheme"
|
|
|
|
make_wrapper "petite" "${chez_dir}/petite"
|
|
|
|
make_wrapper "scheme-script" "${chez_dir}/scheme-script"
|
2020-11-23 00:55:03 +01:00
|
|
|
}
|