1 |
commit: 31a27d4ac18f40f9a8bc25630271c2f13fd9fe51 |
2 |
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Feb 26 19:04:30 2021 +0000 |
4 |
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 26 19:10:16 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31a27d4a |
7 |
|
8 |
dev-tcltk/tclreadline: fix 64 bit location |
9 |
|
10 |
Package-Manager: Portage-3.0.13, Repoman-3.0.2 |
11 |
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> |
12 |
|
13 |
dev-tcltk/tclreadline/tclreadline-2.3.8-r1.ebuild | 40 +++++++++++++++++++++++ |
14 |
1 file changed, 40 insertions(+) |
15 |
|
16 |
diff --git a/dev-tcltk/tclreadline/tclreadline-2.3.8-r1.ebuild b/dev-tcltk/tclreadline/tclreadline-2.3.8-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..8d94f9c47fb |
19 |
--- /dev/null |
20 |
+++ b/dev-tcltk/tclreadline/tclreadline-2.3.8-r1.ebuild |
21 |
@@ -0,0 +1,40 @@ |
22 |
+# Copyright 2020-2021 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+ |
27 |
+DESCRIPTION="Readline extension to TCL" |
28 |
+HOMEPAGE="https://github.com/flightaware/tclreadline" |
29 |
+SRC_URI="https://github.com/flightaware/tclreadline/archive/v${PV}.tar.gz |
30 |
+ -> ${P}.tar.gz" |
31 |
+ |
32 |
+LICENSE="BSD" |
33 |
+SLOT="0" |
34 |
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux" |
35 |
+IUSE="tk" |
36 |
+ |
37 |
+DEPEND="dev-lang/tcl:0= |
38 |
+ sys-libs/readline:0= |
39 |
+ tk? ( dev-lang/tk:0= )" |
40 |
+RDEPEND="${DEPEND}" |
41 |
+BDEPEND="" |
42 |
+ |
43 |
+src_prepare() { |
44 |
+ default |
45 |
+ sed -i \ |
46 |
+ -e "s|^\(TCLRL_LIBDIR\)=.*|\1=\"${EPREFIX}/usr/$(get_libdir)\"|" \ |
47 |
+ configure || die |
48 |
+} |
49 |
+ |
50 |
+src_configure() { |
51 |
+ local myConf=--with-tcl="${EPREFIX}/usr/$(get_libdir)" |
52 |
+ if ! use tk; then |
53 |
+ myConf="$myConf --without-tk" |
54 |
+ fi |
55 |
+ econf $myConf |
56 |
+} |
57 |
+ |
58 |
+src_install() { |
59 |
+ default |
60 |
+ find "${D}" -name \*.la -delete |
61 |
+} |