diff --git a/sys-apps/lr/Manifest b/sys-apps/lr/Manifest new file mode 100644 index 0000000000..a779032450 --- /dev/null +++ b/sys-apps/lr/Manifest @@ -0,0 +1 @@ +DIST lr-1.6.tar.gz 37992 BLAKE2B a2d4b80f0d62d558a9d724401693044ae6d7549f8c7822374a2e00022c548ee95accd70c9beb98cb345bfeb3f12803667eff73d0f709b1bd581ffa96368cf110 SHA512 64ac199d660caba0c1ce774f6b0a0ce5c7d41c2eb0bbe2b21bcd87a2928aad47e9129ececc55a96e5cd3f5c83ec7705d8931273c5f4f783ca21648911c4672f7 diff --git a/sys-apps/lr/files/options-order.patch b/sys-apps/lr/files/options-order.patch new file mode 100644 index 0000000000..7748e19e6e --- /dev/null +++ b/sys-apps/lr/files/options-order.patch @@ -0,0 +1,25 @@ +From 64e90e76acb4d6575273c57eaa02c9b4f2665b91 Mon Sep 17 00:00:00 2001 +From: Leah Neukirchen +Date: Sat, 12 Aug 2023 15:39:24 +0200 +Subject: [PATCH] allow -l and -F in any order + +-l takes preference (and implies -F). + +Closes #24. +--- + lr.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lr.c b/lr.c +index 1b81b00..17236c5 100644 +--- a/lr.c ++++ b/lr.c +@@ -2502,7 +2502,7 @@ main(int argc, char *argv[]) + Gflag += 2; /* force color on */ + break; + case 'D': Dflag++; Bflag = 0; break; +- case 'F': format = type_format; break; ++ case 'F': if (!lflag) format = type_format; break; + case 'G': Gflag++; break; + case 'H': Hflag++; break; + case 'L': Lflag++; break; diff --git a/sys-apps/lr/lr-1.6.ebuild b/sys-apps/lr/lr-1.6.ebuild new file mode 100644 index 0000000000..d3eaa006e1 --- /dev/null +++ b/sys-apps/lr/lr-1.6.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="list files, recursively" +HOMEPAGE="https://github.com/leahneukirchen/lr" +SRC_URI="https://github.com/leahneukirchen/lr/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +PATCHES=( "${FILESDIR}/options-order.patch" ) + +src_compile() { + emake CC="$(tc-getCC)" CFLAGS="$CFLAGS" +} + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install +} diff --git a/sys-apps/lr/metadata.xml b/sys-apps/lr/metadata.xml new file mode 100644 index 0000000000..c4135ab990 --- /dev/null +++ b/sys-apps/lr/metadata.xml @@ -0,0 +1,11 @@ + + + + + carana2099@gmail.org + Carlos E. + + + leahneukirchen/lr + +