From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1436363-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 00695158094
	for <garchives@archives.gentoo.org>; Thu, 15 Sep 2022 15:32:11 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 3BBBEE091D;
	Thu, 15 Sep 2022 15:32:10 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 22D7BE091D
	for <gentoo-commits@lists.gentoo.org>; Thu, 15 Sep 2022 15:32:10 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 11BAA340F5C
	for <gentoo-commits@lists.gentoo.org>; Thu, 15 Sep 2022 15:32:09 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 41F545B5
	for <gentoo-commits@lists.gentoo.org>; Thu, 15 Sep 2022 15:32:07 +0000 (UTC)
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" <sam@gentoo.org>
Message-ID: <1663255921.fff186e55f1cb9eb95ffc0d37cf4c2920bbd7d67.sam@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/file/
X-VCS-Repository: repo/gentoo
X-VCS-Files: sys-apps/file/file-9999.ebuild sys-apps/file/metadata.xml
X-VCS-Directories: sys-apps/file/
X-VCS-Committer: sam
X-VCS-Committer-Name: Sam James
X-VCS-Revision: fff186e55f1cb9eb95ffc0d37cf4c2920bbd7d67
X-VCS-Branch: master
Date: Thu, 15 Sep 2022 15:32:07 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 4b65e55f-8796-41c5-be4e-2a89db2f2059
X-Archives-Hash: fbc53ec37d2cfbb9a50e2b8ca79942aa

commit:     fff186e55f1cb9eb95ffc0d37cf4c2920bbd7d67
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 15 15:31:02 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Sep 15 15:32:01 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fff186e5

sys-apps/file: add lzip support to live

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-apps/file/file-9999.ebuild | 4 +++-
 sys-apps/file/metadata.xml     | 3 +++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/sys-apps/file/file-9999.ebuild b/sys-apps/file/file-9999.ebuild
index 4f8b267d4f06..81f60050024c 100644
--- a/sys-apps/file/file-9999.ebuild
+++ b/sys-apps/file/file-9999.ebuild
@@ -28,11 +28,12 @@ HOMEPAGE="https://www.darwinsys.com/file/"
 
 LICENSE="BSD-2"
 SLOT="0"
-IUSE="bzip2 lzma python seccomp static-libs zlib zstd"
+IUSE="bzip2 lzip lzma python seccomp static-libs zlib zstd"
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 
 DEPEND="
 	bzip2? ( app-arch/bzip2[${MULTILIB_USEDEP}] )
+	lzip? ( app-arch/lzlib )
 	lzma? ( app-arch/xz-utils[${MULTILIB_USEDEP}] )
 	python? (
 		${PYTHON_DEPS}
@@ -75,6 +76,7 @@ multilib_src_configure() {
 	local myeconfargs=(
 		--enable-fsect-man5
 		$(use_enable bzip2 bzlib)
+		$(multilib_native_use_enable lzip lzlib)
 		$(use_enable lzma xzlib)
 		$(use_enable seccomp libseccomp)
 		$(use_enable static-libs static)

diff --git a/sys-apps/file/metadata.xml b/sys-apps/file/metadata.xml
index 9d92ca28bc24..01bf4264459f 100644
--- a/sys-apps/file/metadata.xml
+++ b/sys-apps/file/metadata.xml
@@ -10,4 +10,7 @@
 		<remote-id type="cpe">cpe:/a:file_project:file</remote-id>
 		<remote-id type="github">file/file</remote-id>
 	</upstream>
+	<use>
+		<flag name="lzip">Enable <pkg>app-arch/lzip</pkg> decompression support via <pkg>app-arch/lzlib</pkg></flag>
+	</use>
 </pkgmetadata>