commit:     31a27d4ac18f40f9a8bc25630271c2f13fd9fe51
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 26 19:04:30 2021 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Fri Feb 26 19:10:16 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31a27d4a

dev-tcltk/tclreadline: fix 64 bit location

Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 dev-tcltk/tclreadline/tclreadline-2.3.8-r1.ebuild | 40 +++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/dev-tcltk/tclreadline/tclreadline-2.3.8-r1.ebuild 
b/dev-tcltk/tclreadline/tclreadline-2.3.8-r1.ebuild
new file mode 100644
index 00000000000..8d94f9c47fb
--- /dev/null
+++ b/dev-tcltk/tclreadline/tclreadline-2.3.8-r1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 2020-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+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 ~amd64-linux ~x86-linux"
+IUSE="tk"
+
+DEPEND="dev-lang/tcl:0=
+       sys-libs/readline:0=
+       tk? ( dev-lang/tk:0= )"
+RDEPEND="${DEPEND}"
+BDEPEND=""
+
+src_prepare() {
+       default
+       sed -i \
+               -e 
"s|^\(TCLRL_LIBDIR\)=.*|\1=\"${EPREFIX}/usr/$(get_libdir)\"|" \
+               configure || die
+}
+
+src_configure() {
+       local myConf=--with-tcl="${EPREFIX}/usr/$(get_libdir)"
+       if ! use tk; then
+               myConf="$myConf --without-tk"
+       fi
+       econf $myConf
+}
+
+src_install() {
+       default
+       find "${D}" -name \*.la -delete
+}

Reply via email to