summaryrefslogtreecommitdiff
path: root/dev-tcltk/tclreadline/tclreadline-2.4.0.ebuild
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2024-11-04 21:47:12 +0100
committerAlfredo Tupone <tupone@gentoo.org>2024-11-04 21:47:39 +0100
commit063f3a381f21a2643e2ca99d1eb03f5e26b67cab (patch)
tree0605b57b848e6c21feef007aa4b4b634b70b70f2 /dev-tcltk/tclreadline/tclreadline-2.4.0.ebuild
parent894c69b76782f5f3627787a8625aaac1f246b331 (diff)
downloadgentoo-063f3a381f21a2643e2ca99d1eb03f5e26b67cab.tar.gz
gentoo-063f3a381f21a2643e2ca99d1eb03f5e26b67cab.tar.bz2
gentoo-063f3a381f21a2643e2ca99d1eb03f5e26b67cab.zip
dev-tcltk/tclreadline: add 2.4.0
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-tcltk/tclreadline/tclreadline-2.4.0.ebuild')
-rw-r--r--dev-tcltk/tclreadline/tclreadline-2.4.0.ebuild50
1 files changed, 50 insertions, 0 deletions
diff --git a/dev-tcltk/tclreadline/tclreadline-2.4.0.ebuild b/dev-tcltk/tclreadline/tclreadline-2.4.0.ebuild
new file mode 100644
index 000000000000..38f7f219a740
--- /dev/null
+++ b/dev-tcltk/tclreadline/tclreadline-2.4.0.ebuild
@@ -0,0 +1,50 @@
+# Copyright 2020-2024 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/${PN}/archive/refs/tags/v${PV}.tar.gz
+ -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="tk"
+
+DEPEND="
+ dev-lang/tcl:=
+ sys-libs/readline:=
+ tk? ( dev-lang/tk:= )
+"
+RDEPEND="${DEPEND}"
+
+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
+}