commit:     e395547d7eb8679c22de54407de53671a4fa3ce5
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 16 11:12:28 2024 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Sun Jun 16 11:37:06 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e395547d

dev-libs/editline: bump EAPI - 7 -> 8; misc tweaks

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

 ...ine-1.17.1.ebuild => editline-1.17.1-r1.ebuild} | 26 +++++++++++++++-------
 1 file changed, 18 insertions(+), 8 deletions(-)

diff --git a/dev-libs/editline/editline-1.17.1.ebuild 
b/dev-libs/editline/editline-1.17.1-r1.ebuild
similarity index 50%
rename from dev-libs/editline/editline-1.17.1.ebuild
rename to dev-libs/editline/editline-1.17.1-r1.ebuild
index 0bba672748cf..72f6f005b20b 100644
--- a/dev-libs/editline/editline-1.17.1.ebuild
+++ b/dev-libs/editline/editline-1.17.1-r1.ebuild
@@ -1,17 +1,28 @@
 # Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
+EAPI=8
 
 DESCRIPTION="line editing library for UNIX call compatible with the FSF 
readline"
-HOMEPAGE="https://troglobit.com/projects/editline/";
-SRC_URI="https://github.com/troglobit/editline/releases/download/${PV}/${P}.tar.xz";
+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
+       
SRC_URI="https://github.com/troglobit/${PN}/releases/download/${PV}/${P}.tar.xz";
+
+       KEYWORDS="~amd64 ~x86"
+fi
 
 LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
+SLOT="0/1.0.2"
 
-PATCHES=("${FILESDIR}"/${PN}-1.16.0-rename-man.patch)
+PATCHES=(
+       "${FILESDIR}/${PN}-1.16.0-rename-man.patch"
+)
 
 src_prepare() {
        default
@@ -28,6 +39,5 @@ src_configure() {
 src_install() {
        default
 
-       # package installs .pc file
-       find "${D}" -name '*.la' -delete || die
+       find "${D}" -type f -name "*.la" -delete || die
 }

Reply via email to