diff options
author | Tupone Alfredo <tupone@gentoo.org> | 2020-01-01 16:53:12 +0100 |
---|---|---|
committer | Tupone Alfredo <tupone@gentoo.org> | 2020-01-01 16:53:12 +0100 |
commit | 9e7fdb7443803d886d3a079eed1e9b156dca05e9 (patch) | |
tree | 41edb5a09d3e6c08a8c0992c4cee1448b25040d3 /dev-tcltk | |
parent | dev-libs/glib: remove old (diff) | |
download | gentoo-9e7fdb7443803d886d3a079eed1e9b156dca05e9.tar.gz gentoo-9e7fdb7443803d886d3a079eed1e9b156dca05e9.tar.bz2 gentoo-9e7fdb7443803d886d3a079eed1e9b156dca05e9.zip |
dev-tcltk/tclreadline: EAPI 7
Package-Manager: Portage-2.3.79, Repoman-2.3.16
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-tcltk')
-rw-r--r-- | dev-tcltk/tclreadline/tclreadline-2.1.0-r5.ebuild | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/dev-tcltk/tclreadline/tclreadline-2.1.0-r5.ebuild b/dev-tcltk/tclreadline/tclreadline-2.1.0-r5.ebuild new file mode 100644 index 000000000000..148b7aefd19c --- /dev/null +++ b/dev-tcltk/tclreadline/tclreadline-2.1.0-r5.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools libtool + +DEBIAN_PATCH=12 + +DESCRIPTION="Readline extension to TCL" +HOMEPAGE="http://tclreadline.sf.net/" +SRC_URI=" + mirror://sourceforge/${PN}/${P}.tar.gz + mirror://debian/pool/main/t/${PN}/${PN}_${PV}-${DEBIAN_PATCH}.debian.tar.gz" + +SLOT="0" +LICENSE="BSD" +KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="static-libs" + +DEPEND=" + dev-lang/tcl:0= + sys-libs/readline:0=" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}"/${P}-gold.patch + "${FILESDIR}"/${P}-alloc-free.patch + "${FILESDIR}"/${P}-rl-executing-macro.patch + "${FILESDIR}"/${P}-rl-history-expand.patch + "${FILESDIR}"/${P}-rl-prompt.patch + "${WORKDIR}"/debian/patches/complete_nontcl.patch + "${WORKDIR}"/debian/patches/completion_matches.patch + "${WORKDIR}"/debian/patches/completion_pbug.patch + "${WORKDIR}"/debian/patches/kfreebsd.patch + "${WORKDIR}"/debian/patches/link.patch + "${WORKDIR}"/debian/patches/manpage.patch + "${WORKDIR}"/debian/patches/memuse.patch + "${WORKDIR}"/debian/patches/tclshpath.patch + "${WORKDIR}"/debian/patches/tinfo.patch + "${WORKDIR}"/debian/patches/varnames.patch +) + +src_prepare() { + sed \ + -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" \ + -e "/^TCLRL_LIBDIR/s:lib:$(get_libdir):g" \ + -i configure.in || die + mv configure.{in,ac} || die + sed \ + -e 's:configure.in:configure.ac:g' \ + -i "${WORKDIR}"/debian/patches/* || die + + default + eautoreconf + elibtoolize --patch-only +} + +src_configure() { + econf \ + --enable-shared \ + $(use_enable static-libs static) \ + --with-tcl="${EPREFIX}/usr/$(get_libdir)" \ + --with-tcl-includes="${EPREFIX}/usr/include" \ + --with-readline-includes="${EPREFIX}/usr/include" \ + --with-readline-library="-lreadline" +} + +src_install() { + default + find "${D}" -name \*.la | xargs rm +} |