blob: a08526e789e7ca56c213af5f6fa5a31da5683f5d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
CSV="csv${PV}"
inherit multilib
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}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${CSV}"
# 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="X examples ncurses threads"
DEPEND="
X? ( x11-libs/libX11 )
ncurses? ( sys-libs/ncurses )
"
RDEPEND="${DEPEND}"
src_prepare() {
tc-export AR CC CXX LD RANLIB
if use ncurses; then
eapply "${FILESDIR}/tinfo.patch"
fi
default
}
src_configure() {
local myconfargs=(
$(usex threads '--threads' '')
$(usex ncurses '' '--disable-curses')
$(usex X '' '--disable-x11')
--installprefix="/usr"
--installbin="/usr/bin"
--installlib="/usr/$(get_libdir)"
--installman="/usr/share/man"
--temproot="${D}"
--installschemename=chezscheme
--installpetitename=chezscheme-petite
--installscriptname=chezscheme-script
--nogzip-man-pages
)
sh ./configure "${myconfargs[@]}" || die
}
src_install() {
default
if ! use examples; then
rm -r "${D}/usr/$(get_libdir)/${CSV}/examples" || die
fi
}
|