summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2020-05-26 22:08:08 +0200
committerAlfredo Tupone <tupone@gentoo.org>2020-05-26 22:08:08 +0200
commit3b796cc233524f8ef026478c645777953883da23 (patch)
tree6f876e4d4b2ea1fb360993343da443c51315ea52 /dev-tcltk/tclreadline
parentdev-python/pkginfo: Port to py39, fix tests (diff)
downloadgentoo-3b796cc233524f8ef026478c645777953883da23.tar.gz
gentoo-3b796cc233524f8ef026478c645777953883da23.tar.bz2
gentoo-3b796cc233524f8ef026478c645777953883da23.zip
dev-tcltk/tclreadline: fix dependency and add use tk
Closes: https://bugs.gentoo.org/724038 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-tcltk/tclreadline')
-rw-r--r--dev-tcltk/tclreadline/tclreadline-2.3.8.ebuild12
1 files changed, 8 insertions, 4 deletions
diff --git a/dev-tcltk/tclreadline/tclreadline-2.3.8.ebuild b/dev-tcltk/tclreadline/tclreadline-2.3.8.ebuild
index afd3eb3663d1..9ebdb8473d89 100644
--- a/dev-tcltk/tclreadline/tclreadline-2.3.8.ebuild
+++ b/dev-tcltk/tclreadline/tclreadline-2.3.8.ebuild
@@ -11,16 +11,20 @@ SRC_URI="https://github.com/flightaware/tclreadline/archive/v${PV}.tar.gz
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux"
-IUSE=""
+IUSE="tk"
DEPEND="dev-lang/tcl:0=
- sys-libs/readline:0="
+ sys-libs/readline:0=
+ tk? ( dev-lang/tk:0= )"
RDEPEND="${DEPEND}"
BDEPEND=""
src_configure() {
- econf \
- --with-tcl="${EPREFIX}/usr/$(get_libdir)"
+ local myConf=--with-tcl="${EPREFIX}/usr/$(get_libdir)"
+ if ! use tk; then
+ myConf="$myConf --without-tk"
+ fi
+ econf $myConf
}
src_install() {