1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 SRC_URI="https://github.com/msteveb/jimtcl/archive/${PV}.tar.gz -> ${P}.tar.gz"
9 KEYWORDS="~amd64 ~arm ~arm64 ~m68k ~mips ~s390 ~x86"
11 DESCRIPTION="Small footprint implementation of Tcl programming language"
12 HOMEPAGE="http://jim.tcl.tk/"
15 SLOT="0/78" # SONAME=libjim.so.0.78
16 IUSE="doc static-libs"
20 doc? ( app-text/asciidoc )
26 "${FILESDIR}"/${PN}-0.78-no-bootstrap.patch
30 CCACHE=None econf --with-jim-shared
31 if use static-libs ; then
32 # The build does not support doing both simultaneously.
33 mkdir static-libs || die
35 CCACHE=None ECONF_SOURCE=${S} econf
40 # Must build static-libs first.
41 use static-libs && emake -C static-libs libjim.a
48 use static-libs && dolib.a static-libs/libjim.a
49 ln -sf libjim.so.* libjim.so || die
52 doins jim.h jimautoconf.h jim-subcmd.h jim-signal.h \
53 jim-win32compat.h jim-eventloop.h jim-config.h
54 dodoc AUTHORS README TODO