diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-03-03 10:28:17 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-03-03 10:28:17 +0000 |
commit | d99093fb4bb5652015c06274d64083daa2439e4f (patch) | |
tree | cf61513204d97974179580065e85df5c8009087c /dev-tcltk/tclreadline/tclreadline-2.3.8-r1.ebuild | |
parent | 463397cf1e064185110fe57c568d73f99a06f5d1 (diff) |
gentoo resync : 03.03.2021
Diffstat (limited to 'dev-tcltk/tclreadline/tclreadline-2.3.8-r1.ebuild')
-rw-r--r-- | dev-tcltk/tclreadline/tclreadline-2.3.8-r1.ebuild | 40 |
1 files changed, 40 insertions, 0 deletions
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 000000000000..8d94f9c47fb3 --- /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 +} |