commit: 9e3a87b9f8373da31d9cd9890b4622d9bd07a586
Author: Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 9 10:07:22 2025 +0000
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Mon Jun 9 10:07:34 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9e3a87b9
sys-apps/ripgrep-all: unbundle -sys crates
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
...-0.10.9.ebuild => ripgrep-all-0.10.9-r1.ebuild} | 28 ++++++++++++++++++++--
1 file changed, 26 insertions(+), 2 deletions(-)
diff --git a/sys-apps/ripgrep-all/ripgrep-all-0.10.9.ebuild
b/sys-apps/ripgrep-all/ripgrep-all-0.10.9-r1.ebuild
similarity index 91%
rename from sys-apps/ripgrep-all/ripgrep-all-0.10.9.ebuild
rename to sys-apps/ripgrep-all/ripgrep-all-0.10.9-r1.ebuild
index 2a4214146fe8..0468b213b124 100644
--- a/sys-apps/ripgrep-all/ripgrep-all-0.10.9.ebuild
+++ b/sys-apps/ripgrep-all/ripgrep-all-0.10.9-r1.ebuild
@@ -267,12 +267,18 @@ KEYWORDS="~amd64"
IUSE="test"
RESTRICT="!test? ( test )"
-RDEPEND="
+COMMON_DEPEND="
app-arch/xz-utils
sys-apps/ripgrep
"
+RDEPEND="
+ ${COMMON_DEPEND}
+ app-arch/zstd:=
+ dev-db/sqlite:3
+ app-arch/bzip2:=
+"
DEPEND="
- ${RDEPEND}
+ ${COMMON_DEPEND}
test? (
app-text/poppler
virtual/pandoc
@@ -286,6 +292,24 @@ QA_FLAGS_IGNORED="
usr/bin/rga-preproc
"
+src_configure() {
+ export ZSTD_SYS_USE_PKG_CONFIG=1
+ export LIBSQLITE3_SYS_USE_PKG_CONFIG=1
+
+ # bzip2-sys requires a pkg-config file
+ # https://github.com/alexcrichton/bzip2-rs/issues/104
+ mkdir "${T}/pkg-config" || die
+ export
PKG_CONFIG_PATH=${T}/pkg-config${PKG_CONFIG_PATH+:${PKG_CONFIG_PATH}}
+ cat >> "${T}/pkg-config/bzip2.pc" <<-EOF || die
+ Name: bzip2
+ Version: 9999
+ Description:
+ Libs: -lbz2
+ EOF
+
+ cargo_src_configure
+}
+
pkg_postinst() {
optfeature "pandoc support" virtual/pandoc
optfeature "pdf support" app-text/poppler