commit:     374ba93a75e6b7f5df4d1669a8925bcea06c9d7f
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 16 07:04:11 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Mar 16 07:04:21 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=374ba93a

dev-libs/libedit: Bump to 20210216-3.1

Closes: https://bugs.gentoo.org/776283
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-libs/libedit/Manifest                    |  1 +
 dev-libs/libedit/libedit-20210216.3.1.ebuild | 43 ++++++++++++++++++++++++++++
 2 files changed, 44 insertions(+)

diff --git a/dev-libs/libedit/Manifest b/dev-libs/libedit/Manifest
index a823a21029e..daa6124fd5b 100644
--- a/dev-libs/libedit/Manifest
+++ b/dev-libs/libedit/Manifest
@@ -1 +1,2 @@
 DIST libedit-20191211-3.1.tar.gz 516620 BLAKE2B 
765926c035143e8e409d87d4f75709c861d83e2d725ec02c7ecfc3cccebe895be7d2902dd41970811207db32e6847689368f6544ea49ad42a600037a3a4edb58
 SHA512 
8393477a87e65d330b037494110501b5d6d2c1cbe80d82b9bc7a6315a21fd1327fe91354346966d30541015e2c277be2187fa4bb737b14f706957c70f4083547
+DIST libedit-20210216-3.1.tar.gz 518381 BLAKE2B 
4b29f08ddccd77148c7ae810c3c4e378f6eab4b6d2c530f21aa9c0da1bc156d646bac6404408510639c34298ef3583fd7f2bde5051c0dac8b3a125e2659d8412
 SHA512 
2577c66b3f20a7f3cdaac529bda7f55dbed1cd902f39971b8f792885dec7f8c137a980c570dbab195d3d45989cc9d16a96a3567e02c5ac32ed4757fa36e46b4c

diff --git a/dev-libs/libedit/libedit-20210216.3.1.ebuild 
b/dev-libs/libedit/libedit-20210216.3.1.ebuild
new file mode 100644
index 00000000000..f615587f5f2
--- /dev/null
+++ b/dev-libs/libedit/libedit-20210216.3.1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+inherit autotools multilib-minimal toolchain-funcs usr-ldscript
+
+MY_PV=${PV/./-}
+MY_P=${PN}-${MY_PV}
+
+DESCRIPTION="BSD replacement for libreadline"
+HOMEPAGE="https://thrysoee.dk/editline/";
+SRC_URI="https://thrysoee.dk/editline/${MY_P}.tar.gz";
+S=${WORKDIR}/${MY_P}
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 
~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
+IUSE="static-libs"
+
+RDEPEND=">=sys-libs/ncurses-5.9-r3[static-libs?,${MULTILIB_USEDEP}]"
+DEPEND=${RDEPEND}
+
+multilib_src_configure() {
+       local myconf=(
+               $(use_enable static-libs static)
+               --enable-widec
+               --enable-fast-install
+       )
+
+       ECONF_SOURCE="${S}" econf "${myconf[@]}"
+}
+
+multilib_src_install() {
+       emake DESTDIR="${D}" install
+       gen_usr_ldscript -a edit
+}
+
+multilib_src_install_all() {
+       einstalldocs
+       find "${D}" -name '*.la' -delete || die
+       # file collision with sys-libs/readline
+       rm "${ED}/usr/share/man/man3/history.3" || die
+}

Reply via email to