public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/7zip/
Date: Mon, 24 Mar 2025 06:53:43 +0000 (UTC)	[thread overview]
Message-ID: <1742799175.4dc57a07f0cc2d8df95d63ce7c6244f68efada64.sam@gentoo> (raw)

commit:     4dc57a07f0cc2d8df95d63ce7c6244f68efada64
Author:     NRK <nrk <AT> disroot <DOT> org>
AuthorDate: Fri Mar 14 17:05:07 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Mar 24 06:52:55 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4dc57a07

app-arch/7zip: add symlink useflag

goal is to allow packages which only use the 7z/7zr/7za binaries
to be able to depend on 7zip[symlink] rather than p7zip. this is
a step towards replacing the unmaintained p7zip.

Bug: https://bugs.gentoo.org/942397
Signed-off-by: NRK <nrk <AT> disroot.org>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-arch/7zip/7zip-24.09.ebuild | 11 +++++++++--
 app-arch/7zip/metadata.xml      |  1 +
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/app-arch/7zip/7zip-24.09.ebuild b/app-arch/7zip/7zip-24.09.ebuild
index dee12baa0394..255f34e19905 100644
--- a/app-arch/7zip/7zip-24.09.ebuild
+++ b/app-arch/7zip/7zip-24.09.ebuild
@@ -18,18 +18,20 @@ S="${WORKDIR}"
 LICENSE="LGPL-2 BSD rar? ( unRAR )"
 SLOT="0"
 KEYWORDS="amd64 arm64 ~ppc ~ppc64 ~riscv"
-IUSE="uasm jwasm rar"
+IUSE="uasm jwasm rar symlink"
 REQUIRED_USE="?? ( uasm jwasm )"
 
 DOCS=( readme.txt History.txt License.txt )
 HTML_DOCS=( MANUAL )
 
-DEPEND="${RDEPEND}"
 BDEPEND="
 	app-arch/xz-utils[extra-filters(+)]
 	uasm? ( dev-lang/uasm )
 	jwasm? ( dev-lang/jwasm )
 "
+RDEPEND="
+	symlink? ( !app-arch/p7zip )
+"
 
 PATCHES=(
 	"${FILESDIR}/${PN}-24.05-respect-build-env.patch"
@@ -107,5 +109,10 @@ src_compile() {
 
 src_install() {
 	dobin "./CPP/7zip/Bundles/Alone2/b/${bdir}/7zz"
+	if use symlink; then
+		dosym 7zz /usr/bin/7z
+		dosym 7zz /usr/bin/7za
+		dosym 7zz /usr/bin/7zr
+	fi
 	einstalldocs
 }

diff --git a/app-arch/7zip/metadata.xml b/app-arch/7zip/metadata.xml
index 772c93a14f12..277fdcfd9104 100644
--- a/app-arch/7zip/metadata.xml
+++ b/app-arch/7zip/metadata.xml
@@ -16,6 +16,7 @@
 		<flag name="rar">Enable support for non-free rar decoder</flag>
 		<flag name="uasm">Use <pkg>dev-lang/uasm</pkg> to include optimized code</flag>
 		<flag name="jwasm">Use <pkg>dev-lang/jwasm</pkg> to include optimized code (doesn't support AES)</flag>
+		<flag name="symlink">Install additional symlink to 7z, 7za and 7zr</flag>
 	</use>
 	<upstream>
 		<maintainer>


             reply	other threads:[~2025-03-24  6:53 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-24  6:53 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-07-06  4:19 [gentoo-commits] repo/gentoo:master commit in: app-arch/7zip/ Arthur Zamarin
2025-07-06  4:15 Arthur Zamarin
2025-07-06  4:15 Arthur Zamarin
2025-06-07 14:46 Sam James
2025-05-16 15:15 Arthur Zamarin
2025-04-15 18:55 Arthur Zamarin
2025-04-10  6:47 Sam James
2025-04-05  4:36 Arthur Zamarin
2025-04-03 20:57 Sam James
2025-04-03 20:40 Sam James
2025-01-08 20:43 Sam James
2025-01-08 20:43 Sam James
2024-12-06 19:45 Arthur Zamarin
2024-12-06 19:45 Arthur Zamarin
2024-10-27 18:07 Arthur Zamarin
2024-10-27 18:07 Arthur Zamarin
2024-09-24  5:50 Arthur Zamarin
2024-09-23 17:48 Arthur Zamarin
2024-08-18  1:24 Michael Orlitzky
2024-08-17 22:15 Mike Gilbert
2024-08-13 18:34 Arthur Zamarin
2024-08-02  1:06 Sam James
2024-08-01 19:23 Arthur Zamarin
2024-08-01 19:23 Arthur Zamarin
2024-07-03 19:09 Arthur Zamarin
2024-06-11  5:32 Arthur Zamarin
2024-06-04 18:25 Arthur Zamarin
2024-04-05 14:30 Sam James
2024-04-05 14:26 Sam James
2024-04-05 14:26 Sam James
2024-04-05 14:26 Sam James
2024-04-05 14:26 Sam James

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1742799175.4dc57a07f0cc2d8df95d63ce7c6244f68efada64.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox