dev-tcltk/tclreadline - 2.3.8 (gentoo)

Search

Install

Install this version:

emerge -a =dev-tcltk/tclreadline-2.3.8

Package Information

Description:
Readline extension to TCL
Homepage:
https://github.com/flightaware/tclreadline
License:
BSD

Ebuild Details

Version EAPI Keywords Slot
2.3.8 8 ~alpha amd64 ppc ~sparc x86 0
View Raw Ebuild
# Copyright 2020-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit autotools

DESCRIPTION="Readline extension to TCL"
HOMEPAGE="https://github.com/flightaware/tclreadline"
SRC_URI="https://github.com/flightaware/tclreadline/archive/v${PV}.tar.gz
	-> ${P}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha amd64 ppc ~sparc x86"
IUSE="tk"

DEPEND="
	dev-lang/tcl:=
	sys-libs/readline:=
	tk? ( dev-lang/tk:= )
"
RDEPEND="${DEPEND}"

PATCHES=(
	"${FILESDIR}"/${PN}-2.3.8-configure-clang16.patch
)

src_prepare() {
	default

	# Needed for Clang 16 patch, can drop once in a release
	eautoreconf

	sed -i \
		-e "s|^\(TCLRL_LIBDIR\)=.*|\1=\"${EPREFIX}/usr/$(get_libdir)\"|" \
		configure || die
}

src_configure() {
	local myConf=(
		--with-tcl="${EPREFIX}/usr/$(get_libdir)"
		--with-readline-includes="${EPREFIX}/usr/include/readline"
	)
	if ! use tk; then
		myConf+=(--without-tk)
	fi
	econf "${myConf[@]}"
}
src_install() {
	default
	find "${ED}" -name \*.la -delete
}

USE Flags

Manage flags for this package: euse -i <flag> -p dev-tcltk/tclreadline | euse -E <flag> -p dev-tcltk/tclreadline | euse -D <flag> -p dev-tcltk/tclreadline

Global/Standard Flags

tk

Inherited Eclasses

Dependencies

DEPEND

	dev-lang/tcl:=
	sys-libs/readline:=
	tk? ( dev-lang/tk:= )

RDEPEND

	dev-lang/tcl:=
	sys-libs/readline:=
	tk? ( dev-lang/tk:= )

Manifest for 2.3.8

Type File Size Source URLs
DIST tclreadline-2.3.8.tar.gz 393167 bytes https://github.com/flightaware/tclreadline/archive/v2.3.8.tar.gz