1 |
commit: 9e7fdb7443803d886d3a079eed1e9b156dca05e9 |
2 |
Author: Tupone Alfredo <tupone <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 1 15:53:12 2020 +0000 |
4 |
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 1 15:53:12 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9e7fdb74 |
7 |
|
8 |
dev-tcltk/tclreadline: EAPI 7 |
9 |
|
10 |
Package-Manager: Portage-2.3.79, Repoman-2.3.16 |
11 |
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> |
12 |
|
13 |
dev-tcltk/tclreadline/tclreadline-2.1.0-r5.ebuild | 72 +++++++++++++++++++++++ |
14 |
1 file changed, 72 insertions(+) |
15 |
|
16 |
diff --git a/dev-tcltk/tclreadline/tclreadline-2.1.0-r5.ebuild b/dev-tcltk/tclreadline/tclreadline-2.1.0-r5.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..148b7aefd19 |
19 |
--- /dev/null |
20 |
+++ b/dev-tcltk/tclreadline/tclreadline-2.1.0-r5.ebuild |
21 |
@@ -0,0 +1,72 @@ |
22 |
+# Copyright 1999-2020 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+ |
27 |
+inherit autotools libtool |
28 |
+ |
29 |
+DEBIAN_PATCH=12 |
30 |
+ |
31 |
+DESCRIPTION="Readline extension to TCL" |
32 |
+HOMEPAGE="http://tclreadline.sf.net/" |
33 |
+SRC_URI=" |
34 |
+ mirror://sourceforge/${PN}/${P}.tar.gz |
35 |
+ mirror://debian/pool/main/t/${PN}/${PN}_${PV}-${DEBIAN_PATCH}.debian.tar.gz" |
36 |
+ |
37 |
+SLOT="0" |
38 |
+LICENSE="BSD" |
39 |
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux" |
40 |
+IUSE="static-libs" |
41 |
+ |
42 |
+DEPEND=" |
43 |
+ dev-lang/tcl:0= |
44 |
+ sys-libs/readline:0=" |
45 |
+RDEPEND="${DEPEND}" |
46 |
+ |
47 |
+PATCHES=( |
48 |
+ "${FILESDIR}"/${P}-gold.patch |
49 |
+ "${FILESDIR}"/${P}-alloc-free.patch |
50 |
+ "${FILESDIR}"/${P}-rl-executing-macro.patch |
51 |
+ "${FILESDIR}"/${P}-rl-history-expand.patch |
52 |
+ "${FILESDIR}"/${P}-rl-prompt.patch |
53 |
+ "${WORKDIR}"/debian/patches/complete_nontcl.patch |
54 |
+ "${WORKDIR}"/debian/patches/completion_matches.patch |
55 |
+ "${WORKDIR}"/debian/patches/completion_pbug.patch |
56 |
+ "${WORKDIR}"/debian/patches/kfreebsd.patch |
57 |
+ "${WORKDIR}"/debian/patches/link.patch |
58 |
+ "${WORKDIR}"/debian/patches/manpage.patch |
59 |
+ "${WORKDIR}"/debian/patches/memuse.patch |
60 |
+ "${WORKDIR}"/debian/patches/tclshpath.patch |
61 |
+ "${WORKDIR}"/debian/patches/tinfo.patch |
62 |
+ "${WORKDIR}"/debian/patches/varnames.patch |
63 |
+) |
64 |
+ |
65 |
+src_prepare() { |
66 |
+ sed \ |
67 |
+ -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" \ |
68 |
+ -e "/^TCLRL_LIBDIR/s:lib:$(get_libdir):g" \ |
69 |
+ -i configure.in || die |
70 |
+ mv configure.{in,ac} || die |
71 |
+ sed \ |
72 |
+ -e 's:configure.in:configure.ac:g' \ |
73 |
+ -i "${WORKDIR}"/debian/patches/* || die |
74 |
+ |
75 |
+ default |
76 |
+ eautoreconf |
77 |
+ elibtoolize --patch-only |
78 |
+} |
79 |
+ |
80 |
+src_configure() { |
81 |
+ econf \ |
82 |
+ --enable-shared \ |
83 |
+ $(use_enable static-libs static) \ |
84 |
+ --with-tcl="${EPREFIX}/usr/$(get_libdir)" \ |
85 |
+ --with-tcl-includes="${EPREFIX}/usr/include" \ |
86 |
+ --with-readline-includes="${EPREFIX}/usr/include" \ |
87 |
+ --with-readline-library="-lreadline" |
88 |
+} |
89 |
+ |
90 |
+src_install() { |
91 |
+ default |
92 |
+ find "${D}" -name \*.la | xargs rm |
93 |
+} |