Diff jimtcl-0.78-r2 with a jimtcl-0.81

/usr/portage/dev-lang/jimtcl/jimtcl-0.81.ebuild 2024-07-02 13:51:44.485851470 +0300
1 1
# Copyright 1999-2024 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI="7"
4
EAPI="8"
5 5

  
6 6
DESCRIPTION="Small footprint implementation of Tcl programming language"
7 7
HOMEPAGE="https://jim.tcl.tk/"
8 8
SRC_URI="https://github.com/msteveb/jimtcl/archive/${PV}.tar.gz -> ${P}.tar.gz"
9 9

  
10 10
LICENSE="LGPL-2"
11
SLOT="0/78" # SONAME=libjim.so.0.78
11
SLOT="0/${PV}"
12 12
KEYWORDS="amd64 arm ~arm64 ~m68k ~mips ~s390 x86"
13 13
IUSE="doc static-libs"
14 14

  
15 15
DEPEND="
16
	doc? ( app-text/asciidoc )
17
	app-arch/unzip
18 16
	dev-lang/tcl:0
19 17
"
20 18

  
21
PATCHES="
22
	"${FILESDIR}"/${PN}-0.78-no-bootstrap.patch
23
"
24

  
25 19
src_configure() {
26
	CCACHE=None econf --with-jim-shared
20
	CCACHE=none econf --disable-docs --shared
27 21
	if use static-libs ; then
28 22
		# The build does not support doing both simultaneously.
29 23
		mkdir static-libs || die
30 24
		cd static-libs || die
31
		CCACHE=None ECONF_SOURCE=${S} econf
25
		CCACHE=none ECONF_SOURCE="${S}" econf --disable-docs
32 26
	fi
33 27
}
34 28

  
......
36 30
	# Must build static-libs first.
37 31
	use static-libs && emake -C static-libs libjim.a
38 32
	emake all
39
	use doc && emake docs
40 33
}
41 34

  
42 35
src_install() {
43
	dobin jimsh
36
	default
37
	ln -sf libjim.so.${PV} "${ED}"/usr/$(get_libdir)/libjim.so || die
44 38
	use static-libs && dolib.a static-libs/libjim.a
45
	ln -sf libjim.so.* libjim.so || die
46
	dolib.so libjim.so*
47
	insinto /usr/include
48
	doins jim.h jimautoconf.h jim-subcmd.h jim-signal.h \
49
		jim-win32compat.h jim-eventloop.h jim-config.h
50
	dodoc AUTHORS README TODO
51
	if use doc; then
52
		docinto html
53
		dodoc Tcl.html
54
	fi
39
	use doc && dodoc Tcl_shipped.html
55 40
}
Thank you!