commit:     32c9e5c8c0fbeaa1c8abf967d9bb84110373bb57
Author:     zyxhere💭 <zyx <AT> envs <DOT> net>
AuthorDate: Sun Jan 18 11:33:13 2026 +0000
Commit:     Yixun Lan <dlan <AT> gentoo <DOT> org>
CommitDate: Mon Jan 19 20:32:37 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32c9e5c8

app-misc/zellij: Add system-sqlite USE flag

Closes: https://github.com/gentoo/gentoo/pull/45345
Signed-off-by: zyxhere💭 <zyx <AT> envs.net>
Signed-off-by: Yixun Lan <dlan <AT> gentoo.org>

 app-misc/zellij/metadata.xml            | 3 +++
 app-misc/zellij/zellij-0.43.1-r1.ebuild | 6 +++---
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/app-misc/zellij/metadata.xml b/app-misc/zellij/metadata.xml
index 08537a433943..92d70748a0b2 100644
--- a/app-misc/zellij/metadata.xml
+++ b/app-misc/zellij/metadata.xml
@@ -9,6 +9,9 @@
                <email>[email protected]</email>
                <name>Yixun Lan</name>
        </maintainer>
+       <use>
+               <flag name="system-sqlite">Use the system-wide 
<pkg>dev-db/sqlite</pkg> instead of the bundled one</flag>
+       </use>
        <upstream>
                <remote-id type="github">zellij-org/zellij</remote-id>
        </upstream>

diff --git a/app-misc/zellij/zellij-0.43.1-r1.ebuild 
b/app-misc/zellij/zellij-0.43.1-r1.ebuild
index cbf065f81359..f6fcc342226b 100644
--- a/app-misc/zellij/zellij-0.43.1-r1.ebuild
+++ b/app-misc/zellij/zellij-0.43.1-r1.ebuild
@@ -597,12 +597,12 @@ LICENSE+="
 "
 SLOT="0"
 KEYWORDS="~amd64 ~riscv"
-IUSE="man"
+IUSE="man system-sqlite"
 
 # libnghttp2 still bundled
 # https://github.com/alexcrichton/nghttp2-rs/pull/5
 RDEPEND="
-       >=dev-db/sqlite-3.45.3:3
+       system-sqlite? ( >=dev-db/sqlite-3.45.3:3 )
        net-misc/curl
 "
 DEPEND="${RDEPEND}"
@@ -627,7 +627,7 @@ DOCS=(
 
 pkg_setup() {
        # libsqlite3-sys https://wiki.gentoo.org/wiki/Project:Rust/sys_crates
-       export LIBSQLITE3_SYS_USE_PKG_CONFIG=1
+       use system-sqlite && export LIBSQLITE3_SYS_USE_PKG_CONFIG=1
        rust_pkg_setup
 }
 

Reply via email to