Skip to content

Commit

Permalink
dev-tcltk/tclreadline: fix dependency and add use tk
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/724038
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Alfredo Tupone <[email protected]>
  • Loading branch information
atupone committed May 26, 2020
1 parent d5c22d5 commit 3b796cc
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions dev-tcltk/tclreadline/tclreadline-2.3.8.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 3b796cc

Please sign in to comment.