Diff gambit-4.9.3-r2 with a gambit-4.9.4-r1

/usr/portage/dev-scheme/gambit/gambit-4.9.4-r1.ebuild 2023-10-09 14:52:30.896368386 +0300
5 5

  
6 6
inherit flag-o-matic elisp-common
7 7

  
8
MY_PV="${PV//./_}"
9
MY_P="${PN}-v${MY_PV}"
10

  
11 8
DESCRIPTION="Gambit-C is a native Scheme to C compiler and interpreter"
12 9
HOMEPAGE="http://www.iro.umontreal.ca/~gambit/"
13
SRC_URI="http://www-labs.iro.umontreal.ca/~gambit/download/gambit/v${PV%.*}/source/${MY_P}.tgz"
10
SRC_URI="https://github.com/${PN}/${PN}/archive/tags/v${PV}.tar.gz -> ${P}.tar.gz"
11
S="${WORKDIR}/${PN}-tags-v${PV}"
14 12

  
15 13
LICENSE="|| ( Apache-2.0 LGPL-2.1 )"
16 14
SLOT="0"
17 15
KEYWORDS="amd64 ~ppc64 x86 ~amd64-linux ~x86-linux"
16
IUSE="emacs ssl static"
18 17

  
19 18
RDEPEND="ssl? ( dev-libs/openssl:0= )"
20 19
DEPEND="${RDEPEND}"
......
23 22
	emacs? ( >=app-editors/emacs-23.1:* )
24 23
"
25 24

  
26
SITEFILE="50gambit-gentoo.el"
25
PATCHES=( "${FILESDIR}"/${P}-stamp-release-version.patch )
27 26

  
28
S="${WORKDIR}/${MY_P}" #-devel
29

  
30
IUSE="emacs ssl static"
27
DOCS=( INSTALL.txt README README.md )
28
SITEFILE="50gambit-gentoo.el"
31 29

  
32 30
src_configure() {
33 31
	# bug #858254
34 32
	filter-lto
35 33

  
36
	econf \
37
		$(use_enable !static shared) \
38
		$(use_enable ssl openssl) \
39
		--enable-gnu-gcc-specific-options \
40
		--enable-gnu-gcc-no-strict-aliasing \
41
		--enable-single-host \
42
		--disable-absolute-shared-libs \
34
	local myconf=(
35
		$(use_enable !static shared)
36
		$(use_enable ssl openssl)
37
		--enable-gnu-gcc-specific-options
38
		--enable-gnu-gcc-no-strict-aliasing
39
		--enable-single-host
40
		--disable-absolute-shared-libs
43 41
		--enable-type-checking
42
	)
43
	econf ${myconf[@]}
44 44
}
45 45

  
46 46
src_compile() {
......
51 51
	fi
52 52
}
53 53

  
54
src_test() {
55
	cd tests || die
56
	emake test{1..10}
57
}
58

  
54 59
src_install() {
55
	emake DESTDIR="${D}" install
56
	keepdir /usr/share/"${MY_PN}"
60
	emake DESTDIR="${D}" install -j1
61
	dodoc doc/gambit.{pdf,ps,txt}
62
	einstalldocs
63

  
64
	keepdir /usr/share/${PN}
57 65
}
58 66

  
59 67
pkg_postinst() {
Thank you!