mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 12:03:02 -04:00
sys-apps/lr: new package, add 1.6
Signed-off-by: Carlos Eduardo <carana2099@gmail.com>
This commit is contained in:
1
sys-apps/lr/Manifest
Normal file
1
sys-apps/lr/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST lr-1.6.tar.gz 37992 BLAKE2B a2d4b80f0d62d558a9d724401693044ae6d7549f8c7822374a2e00022c548ee95accd70c9beb98cb345bfeb3f12803667eff73d0f709b1bd581ffa96368cf110 SHA512 64ac199d660caba0c1ce774f6b0a0ce5c7d41c2eb0bbe2b21bcd87a2928aad47e9129ececc55a96e5cd3f5c83ec7705d8931273c5f4f783ca21648911c4672f7
|
||||
25
sys-apps/lr/files/options-order.patch
Normal file
25
sys-apps/lr/files/options-order.patch
Normal file
@@ -0,0 +1,25 @@
|
||||
From 64e90e76acb4d6575273c57eaa02c9b4f2665b91 Mon Sep 17 00:00:00 2001
|
||||
From: Leah Neukirchen <leah@vuxu.org>
|
||||
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;
|
||||
23
sys-apps/lr/lr-1.6.ebuild
Normal file
23
sys-apps/lr/lr-1.6.ebuild
Normal file
@@ -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
|
||||
}
|
||||
11
sys-apps/lr/metadata.xml
Normal file
11
sys-apps/lr/metadata.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>carana2099@gmail.org</email>
|
||||
<description>Carlos E.</description>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">leahneukirchen/lr</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user