commit:     763bb059da04b824ddfe92544e2abc8a71b92d20
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 16 11:28:54 2024 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Sun Jun 16 11:37:07 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=763bb059

dev-libs/editline: bump to 1.17.1_p20240527

Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 dev-libs/editline/Manifest                         |  1 +
 dev-libs/editline/editline-1.17.1_p20240527.ebuild | 50 ++++++++++++++++++++++
 .../editline-1.17.1_p20240527-rename-man.patch     | 11 +++++
 3 files changed, 62 insertions(+)

diff --git a/dev-libs/editline/Manifest b/dev-libs/editline/Manifest
index ae0a7cb6a6ea..b6d493b3ce9b 100644
--- a/dev-libs/editline/Manifest
+++ b/dev-libs/editline/Manifest
@@ -1 +1,2 @@
 DIST editline-1.17.1.tar.xz 252196 BLAKE2B 
ae25ebc8efcc5ddf7d68553b6a5d93738e4fbf67c556b4089ace7386cb70058f36137d99df2385e324b36a285aa319b49e1c2eb82059d99d511c43c70f55ce11
 SHA512 
9b3f5f4a833e9e38c4f99d2e7f8d2716d4db74b6a2d3362e6c513505ff17a79044496405458835d508efd79cbe9046f3c1db602aaad210926312c22057145d35
+DIST editline-1.17.1_p20240527.tar.gz 45801 BLAKE2B 
d9a529f72a6b0f5e70b12f96902405c0600c187a21a6af328763e9bfc7b47fcde862e523380ccc3fb3472f131a8f6c51adbd41c54ef4c2d681cf7f46a809f8c1
 SHA512 
e12221864432f2da75715737a2fe687eb5af17fb96f689c69e17a728802140ff908355017627a0e5ff9fcc2e78376a3f9bd1fdb335394140016c6e2939c5a77b

diff --git a/dev-libs/editline/editline-1.17.1_p20240527.ebuild 
b/dev-libs/editline/editline-1.17.1_p20240527.ebuild
new file mode 100644
index 000000000000..5bb5cf61df41
--- /dev/null
+++ b/dev-libs/editline/editline-1.17.1_p20240527.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+DESCRIPTION="line editing library for UNIX call compatible with the FSF 
readline"
+HOMEPAGE="https://troglobit.com/projects/editline/
+       https://github.com/troglobit/editline/";
+
+if [[ "${PV}" == *9999* ]] ; then
+       inherit git-r3
+
+       EGIT_REPO_URI="https://github.com/troglobit/${PN}.git";
+else
+       [[ "${PV}" == *p20240527 ]] && 
COMMIT="caf4b3c0ce3b0785791198b11de6f3134e9f05d8"
+
+       SRC_URI="https://github.com/troglobit/${PN}/archive/${COMMIT}.tar.gz
+               -> ${P}.tar.gz"
+       S="${WORKDIR}/${PN}-${COMMIT}"
+
+       KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="Apache-2.0"
+SLOT="0/1.0.2"
+
+PATCHES=(
+       "${FILESDIR}/${PN}-1.17.1_p20240527-rename-man.patch"
+)
+
+src_prepare() {
+       default
+       eautoreconf
+
+       # To avoid collision with dev-libs/libedit
+       # we rename man/editline.3 to man/libeditline.3
+       mv man/editline.3 man/libeditline.3 || die
+}
+
+src_configure() {
+       econf --disable-static
+}
+
+src_install() {
+       default
+
+       find "${D}" -type f -name "*.la" -delete || die
+}

diff --git a/dev-libs/editline/files/editline-1.17.1_p20240527-rename-man.patch 
b/dev-libs/editline/files/editline-1.17.1_p20240527-rename-man.patch
new file mode 100644
index 000000000000..d7b6aec5e55c
--- /dev/null
+++ b/dev-libs/editline/files/editline-1.17.1_p20240527-rename-man.patch
@@ -0,0 +1,11 @@
+To avoid collision with dev-libs/libedit
+we rename man/editline.3 to man/libeditline.3
+
+This patch also needs a rename from outside the patch:
+    $ mv man/editline.3 man/libeditline.3
+
+--- a/man/Makefile.am
++++ b/man/Makefile.am
+@@ -3,1 +3,1 @@
+-dist_man_MANS = editline.3
++dist_man_MANS = libeditline.3

Reply via email to