Diff stklos-1.70-r1 with a stklos-2.00

/usr/portage/dev-scheme/stklos/stklos-2.00.ebuild 2023-10-09 14:52:30.900368386 +0300
1
# Copyright 1999-2022 Gentoo Authors
1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI="8"
......
6 6
inherit autotools toolchain-funcs
7 7

  
8 8
DESCRIPTION="Fast and light Scheme implementation"
9
HOMEPAGE="https://www.stklos.net/"
10
SRC_URI="https://www.${PN}.net/download/${P}.tar.gz"
9
HOMEPAGE="https://stklos.net/"
10
SRC_URI="https://${PN}.net/download/${P}.tar.gz"
11 11

  
12 12
LICENSE="GPL-2+"
13 13
SLOT="0"
14
KEYWORDS="amd64 x86"
14
KEYWORDS="~amd64 ~x86"
15 15
IUSE="threads"
16 16

  
17 17
RDEPEND="dev-libs/boehm-gc[threads?]
18 18
	dev-libs/gmp:=
19 19
	dev-libs/libffi:=
20
	dev-libs/libpcre"
20
	dev-libs/libpcre2:="
21 21
DEPEND="${RDEPEND}"
22 22

  
23
DOCS=( AUTHORS ChangeLog {HACKING,NEWS}.md PACKAGES-USED {PORTING-NOTES,README}.md SUPPORTED-SRFIS )
24

  
25
PATCHES=(
26
	"${FILESDIR}"/${P}-gentoo.patch
27
	"${FILESDIR}"/${P}-configure-clang16.patch
28
)
23
PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
24
DOCS=( AUTHORS ChangeLog NEWS.md PACKAGES-USED {PORTING-NOTES,README}.md SUPPORTED-SRFIS )
29 25

  
30 26
src_prepare() {
31 27
	default
32 28

  
33
	use threads || rm -f tests/srfis/216.stk
34

  
29
	if ! use threads; then
30
		sed -i '/threads.adoc/d' doc/refman/${PN}.adoc
31
		rm -f tests/srfis/2{16,30}.stk
32
	fi
35 33
	eautoreconf
34
	export LD="$(tc-getCC)"
35
	export STKLOS_CONFDIR="${T}"/.config/${PN}
36 36
}
37 37

  
38 38
src_configure() {
39
	export LD="$(tc-getCC)"
40

  
41 39
	econf \
42 40
		--enable-threads=$(usex threads pthreads none) \
43
		--without-gmp-light \
41
		--without-provided-bignum \
44 42
		--without-provided-ffi \
45 43
		--without-provided-gc \
46 44
		--without-provided-regexp
47 45
}
48 46

  
49 47
src_compile() {
50
	emake -j1
48
	emake
51 49
}
52 50

  
53 51
src_test() {
Thank you!