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>

Reply via email to