From a1b78e82745fad42fefafb2152ac68be7263b057 Mon Sep 17 00:00:00 2001 From: Tupone Alfredo Date: Sat, 28 Mar 2020 11:44:38 +0100 Subject: [PATCH] dev-tcltk/itk: weaken dependency on dev-tcltk/itcl Closes: https://bugs.gentoo.org/712552 Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Alfredo Tupone --- dev-tcltk/itk/itk-4.1.0.ebuild | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dev-tcltk/itk/itk-4.1.0.ebuild b/dev-tcltk/itk/itk-4.1.0.ebuild index 51ca9d3669c4..639c402f12dc 100644 --- a/dev-tcltk/itk/itk-4.1.0.ebuild +++ b/dev-tcltk/itk/itk-4.1.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -6,7 +6,6 @@ EAPI=7 inherit autotools multilib virtualx MY_PV=${PV/_beta/b} -ITCL_VERSION=$(ver_cut 1-2) DESCRIPTION="Object Oriented Enhancements for Tcl/Tk" HOMEPAGE="http://incrtcl.sourceforge.net/" @@ -20,7 +19,7 @@ RESTRICT="!test? ( test )" DEPEND=" >=dev-lang/tk-8.6:= - =dev-tcltk/itcl-${ITCL_VERSION}*" + >=dev-tcltk/itcl-4.1" RDEPEND="${DEPEND}" S="${WORKDIR}/${PN}${MY_PV}" @@ -33,6 +32,8 @@ src_prepare() { } src_configure() { + local ITCL_VERSION=$(best_version dev-tcltk/itcl) + ITCL_VERSION=${ITCL_VERSION:15} # remove category, package name and dash source "${EPREFIX}"/usr/$(get_libdir)/itcl${ITCL_VERSION}*/itclConfig.sh || die econf \ --with-tcl="${EPREFIX}"/usr/$(get_libdir) \ -- 2.26.2