commit:     9d775dc7a764ed9d32c78f476ead436612d637b7
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 18 12:21:40 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Oct 18 15:00:44 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d775dc7

sys-devel/llvm: Add zstd flag to 15.0.3*

The support for non-CMake version of zstd has been backported to 15.x,
so add a flag to control it (and avoid the automagic dep).

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 sys-devel/llvm/llvm-15.0.3.9999.ebuild | 7 ++++++-
 sys-devel/llvm/llvm-15.0.3.ebuild      | 7 ++++++-
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/sys-devel/llvm/llvm-15.0.3.9999.ebuild 
b/sys-devel/llvm/llvm-15.0.3.9999.ebuild
index 1f47134cba77..ab36cada7cfb 100644
--- a/sys-devel/llvm/llvm-15.0.3.9999.ebuild
+++ b/sys-devel/llvm/llvm-15.0.3.9999.ebuild
@@ -19,7 +19,10 @@ HOMEPAGE="https://llvm.org/";
 LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA BSD public-domain rc"
 SLOT="${LLVM_MAJOR}/${LLVM_SOABI}"
 KEYWORDS=""
-IUSE="+binutils-plugin debug doc exegesis libedit +libffi ncurses test xar xml 
z3"
+IUSE="
+       +binutils-plugin debug doc exegesis libedit +libffi ncurses test xar
+       xml z3 zstd
+"
 RESTRICT="!test? ( test )"
 
 RDEPEND="
@@ -32,6 +35,7 @@ RDEPEND="
        xar? ( app-arch/xar )
        xml? ( dev-libs/libxml2:2=[${MULTILIB_USEDEP}] )
        z3? ( >=sci-mathematics/z3-4.7.1:0=[${MULTILIB_USEDEP}] )
+       zstd? ( app-arch/zstd:=[${MULTILIB_USEDEP}] )
 "
 DEPEND="
        ${RDEPEND}
@@ -353,6 +357,7 @@ multilib_src_configure() {
                -DLLVM_ENABLE_EH=ON
                -DLLVM_ENABLE_RTTI=ON
                -DLLVM_ENABLE_Z3_SOLVER=$(usex z3)
+               -DLLVM_ENABLE_ZSTD=$(usex zstd)
 
                -DLLVM_HOST_TRIPLE="${CHOST}"
 

diff --git a/sys-devel/llvm/llvm-15.0.3.ebuild 
b/sys-devel/llvm/llvm-15.0.3.ebuild
index 0244aaad636f..7e1b4d4609af 100644
--- a/sys-devel/llvm/llvm-15.0.3.ebuild
+++ b/sys-devel/llvm/llvm-15.0.3.ebuild
@@ -19,7 +19,10 @@ HOMEPAGE="https://llvm.org/";
 LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA BSD public-domain rc"
 SLOT="${LLVM_MAJOR}/${LLVM_SOABI}"
 KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux 
~ppc-macos ~x64-macos"
-IUSE="+binutils-plugin debug doc exegesis libedit +libffi ncurses test xar xml 
z3"
+IUSE="
+       +binutils-plugin debug doc exegesis libedit +libffi ncurses test xar
+       xml z3 zstd
+"
 RESTRICT="!test? ( test )"
 
 RDEPEND="
@@ -32,6 +35,7 @@ RDEPEND="
        xar? ( app-arch/xar )
        xml? ( dev-libs/libxml2:2=[${MULTILIB_USEDEP}] )
        z3? ( >=sci-mathematics/z3-4.7.1:0=[${MULTILIB_USEDEP}] )
+       zstd? ( app-arch/zstd:=[${MULTILIB_USEDEP}] )
 "
 DEPEND="
        ${RDEPEND}
@@ -353,6 +357,7 @@ multilib_src_configure() {
                -DLLVM_ENABLE_EH=ON
                -DLLVM_ENABLE_RTTI=ON
                -DLLVM_ENABLE_Z3_SOLVER=$(usex z3)
+               -DLLVM_ENABLE_ZSTD=$(usex zstd)
 
                -DLLVM_HOST_TRIPLE="${CHOST}"
 

Reply via email to