Gentoo Archives: gentoo-commits

From: Alfredo Tupone <tupone@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-tcltk/tclreadline/
Date: Tue, 26 May 2020 20:08:32
Message-Id: 1590523688.3b796cc233524f8ef026478c645777953883da23.tupone@gentoo
1 commit: 3b796cc233524f8ef026478c645777953883da23
2 Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 26 20:08:08 2020 +0000
4 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
5 CommitDate: Tue May 26 20:08:08 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b796cc2
7
8 dev-tcltk/tclreadline: fix dependency and add use tk
9
10 Closes: https://bugs.gentoo.org/724038
11 Package-Manager: Portage-2.3.99, Repoman-2.3.22
12 Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
13
14 dev-tcltk/tclreadline/tclreadline-2.3.8.ebuild | 12 ++++++++----
15 1 file changed, 8 insertions(+), 4 deletions(-)
16
17 diff --git a/dev-tcltk/tclreadline/tclreadline-2.3.8.ebuild b/dev-tcltk/tclreadline/tclreadline-2.3.8.ebuild
18 index afd3eb3663d..9ebdb8473d8 100644
19 --- a/dev-tcltk/tclreadline/tclreadline-2.3.8.ebuild
20 +++ b/dev-tcltk/tclreadline/tclreadline-2.3.8.ebuild
21 @@ -11,16 +11,20 @@ SRC_URI="https://github.com/flightaware/tclreadline/archive/v${PV}.tar.gz
22 LICENSE="BSD"
23 SLOT="0"
24 KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux"
25 -IUSE=""
26 +IUSE="tk"
27
28 DEPEND="dev-lang/tcl:0=
29 - sys-libs/readline:0="
30 + sys-libs/readline:0=
31 + tk? ( dev-lang/tk:0= )"
32 RDEPEND="${DEPEND}"
33 BDEPEND=""
34
35 src_configure() {
36 - econf \
37 - --with-tcl="${EPREFIX}/usr/$(get_libdir)"
38 + local myConf=--with-tcl="${EPREFIX}/usr/$(get_libdir)"
39 + if ! use tk; then
40 + myConf="$myConf --without-tk"
41 + fi
42 + econf $myConf
43 }
44
45 src_install() {