Diff jimtcl-0.78-r2 with a jimtcl-0.81
/usr/portage/dev-lang/jimtcl/jimtcl-0.81.ebuild 2023-10-09 14:52:29.464368349 +0300 | ||
---|---|---|
1 |
# Copyright 1999-2021 Gentoo Authors |
|
1 |
# Copyright 1999-2022 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 |
SRC_URI="https://github.com/msteveb/jimtcl/archive/${PV}.tar.gz -> ${P}.tar.gz" |
7 | 7 |
KEYWORDS="amd64 arm ~arm64 ~m68k ~mips ~s390 x86" |
... | ... | |
10 | 10 |
HOMEPAGE="http://jim.tcl.tk/" |
11 | 11 | |
12 | 12 |
LICENSE="LGPL-2" |
13 |
SLOT="0/78" # SONAME=libjim.so.0.78 |
|
13 |
SLOT="0/${PV}" |
|
14 | 14 |
IUSE="doc static-libs" |
15 | 15 | |
16 | 16 |
RDEPEND="" |
17 | 17 |
DEPEND=" |
18 |
doc? ( app-text/asciidoc ) |
|
19 |
app-arch/unzip |
|
20 | 18 |
dev-lang/tcl:0 |
21 | 19 |
" |
22 | 20 | |
23 |
PATCHES=" |
|
24 |
"${FILESDIR}"/${PN}-0.78-no-bootstrap.patch |
|
25 |
" |
|
26 | ||
27 | 21 |
src_configure() { |
28 |
CCACHE=None econf --with-jim-shared |
|
22 |
CCACHE=none econf --disable-docs --shared |
|
29 | 23 |
if use static-libs ; then |
30 | 24 |
# The build does not support doing both simultaneously. |
31 | 25 |
mkdir static-libs || die |
32 | 26 |
cd static-libs || die |
33 |
CCACHE=None ECONF_SOURCE=${S} econf |
|
27 |
CCACHE=none ECONF_SOURCE="${S}" econf --disable-docs |
|
34 | 28 |
fi |
35 | 29 |
} |
36 | 30 | |
... | ... | |
38 | 32 |
# Must build static-libs first. |
39 | 33 |
use static-libs && emake -C static-libs libjim.a |
40 | 34 |
emake all |
41 |
use doc && emake docs |
|
42 | 35 |
} |
43 | 36 | |
44 | 37 |
src_install() { |
45 |
dobin jimsh |
|
38 |
default |
|
39 |
ln -sf libjim.so.${PV} "${ED}"/usr/$(get_libdir)/libjim.so || die |
|
46 | 40 |
use static-libs && dolib.a static-libs/libjim.a |
47 |
ln -sf libjim.so.* libjim.so || die |
|
48 |
dolib.so libjim.so* |
|
49 |
insinto /usr/include |
|
50 |
doins jim.h jimautoconf.h jim-subcmd.h jim-signal.h \ |
|
51 |
jim-win32compat.h jim-eventloop.h jim-config.h |
|
52 |
dodoc AUTHORS README TODO |
|
53 |
if use doc; then |
|
54 |
docinto html |
|
55 |
dodoc Tcl.html |
|
56 |
fi |
|
41 |
use doc && dodoc Tcl_shipped.html |
|
57 | 42 |
} |