diff options
| author | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
|---|---|---|
| committer | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
| commit | ecdac123787b96ce6649f0f91da12ea6458cc2b1 (patch) | |
| tree | b89c74d9e6fe6e8aebc4c77bcbeb4ab73214127d /dev-libs/libedit | |
| parent | 1be72aa41cf41dedadeecf59dca9f01de6381f5e (diff) | |
| download | baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.gz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.xz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.zip | |
Updating liguros repo
Diffstat (limited to 'dev-libs/libedit')
| -rw-r--r-- | dev-libs/libedit/Manifest | 1 | ||||
| -rw-r--r-- | dev-libs/libedit/files/libedit-20170329.3.1-tinfo.patch | 30 | ||||
| -rw-r--r-- | dev-libs/libedit/libedit-20191211.3.1.ebuild | 49 | ||||
| -rw-r--r-- | dev-libs/libedit/metadata.xml | 17 |
4 files changed, 97 insertions, 0 deletions
diff --git a/dev-libs/libedit/Manifest b/dev-libs/libedit/Manifest new file mode 100644 index 000000000000..a823a21029ed --- /dev/null +++ b/dev-libs/libedit/Manifest @@ -0,0 +1 @@ +DIST libedit-20191211-3.1.tar.gz 516620 BLAKE2B 765926c035143e8e409d87d4f75709c861d83e2d725ec02c7ecfc3cccebe895be7d2902dd41970811207db32e6847689368f6544ea49ad42a600037a3a4edb58 SHA512 8393477a87e65d330b037494110501b5d6d2c1cbe80d82b9bc7a6315a21fd1327fe91354346966d30541015e2c277be2187fa4bb737b14f706957c70f4083547 diff --git a/dev-libs/libedit/files/libedit-20170329.3.1-tinfo.patch b/dev-libs/libedit/files/libedit-20170329.3.1-tinfo.patch new file mode 100644 index 000000000000..e52b2559aa75 --- /dev/null +++ b/dev-libs/libedit/files/libedit-20170329.3.1-tinfo.patch @@ -0,0 +1,30 @@ +From 7aa660fd9d446567d3280765ba2a50a46b2a9159 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +Date: Mon, 12 Jun 2017 21:36:54 +0200 +Subject: [PATCH] configure: Support -ltinfo as split in newer ncurses + +The newer versions of ncurses support building terminfo routines +as a split -ltinfo library. Account for that by adding this library +to the search list. +--- + configure.ac | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index 9a571b2..5d714b5 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -49,7 +49,9 @@ EL_MANTYPE + AC_CHECK_LIB(ncurses, tgetent,, + [AC_CHECK_LIB(curses, tgetent,, + [AC_CHECK_LIB(termcap, tgetent,, +- [AC_MSG_ERROR([libncurses, libcurses, or libtermcap is required!])] ++ [AC_CHECK_LIB(tinfo, tgetent,, ++ [AC_MSG_ERROR([libncurses, libcurses, libtermcap or libtinfo is required!])] ++ )] + )] + )] + ) +-- +2.13.1 + diff --git a/dev-libs/libedit/libedit-20191211.3.1.ebuild b/dev-libs/libedit/libedit-20191211.3.1.ebuild new file mode 100644 index 000000000000..e67d99473532 --- /dev/null +++ b/dev-libs/libedit/libedit-20191211.3.1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2020 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 ~x86-macos" +IUSE="static-libs" + +RDEPEND=">=sys-libs/ncurses-5.9-r3[static-libs?,${MULTILIB_USEDEP}]" +DEPEND=${RDEPEND} + +PATCHES=( + "${FILESDIR}/${PN}-20170329.3.1-tinfo.patch" +) + +src_prepare() { + default + eautoreconf +} + +multilib_src_configure() { + ECONF_SOURCE="${S}" econf \ + $(use_enable static-libs static) \ + --enable-widec \ + --enable-fast-install +} + +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 +} diff --git a/dev-libs/libedit/metadata.xml b/dev-libs/libedit/metadata.xml new file mode 100644 index 000000000000..a80acb7358b3 --- /dev/null +++ b/dev-libs/libedit/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="person"> + <email>mgorny@gentoo.org</email> + <name>Michał Górny</name> +</maintainer> +<longdescription> +GNU Readline is cool, but BSD Readline is cooler :) +Thus here is libedit by the NetBSD folks! +The glibc/bsdlibc stuff comes from the debian tarball, thanks to them too :) +The patch is handcrafted with a few ideas from libedit.sf.net and a few ideas +from the debian package. This patch aims to be as small as possible (so as +to make future cvs snapshots cake). +</longdescription> + <origin>gentoo-staging</origin> +</pkgmetadata> |
