commit: 69360898d45afea1890802334450b74fbedde97a
Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Thu Oct 30 17:16:33 2025 +0000
Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Thu Nov 6 12:25:30 2025 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=69360898
shards.eclass: add CRYSTAL_DEPS to RDEPEND for libraries
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
eclass/shards.eclass | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/eclass/shards.eclass b/eclass/shards.eclass
index 3258cea48d..0b81c185e1 100644
--- a/eclass/shards.eclass
+++ b/eclass/shards.eclass
@@ -1,4 +1,4 @@
-# Copyright 2022 Gentoo Authors
+# Copyright 2022-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: shards.eclass
@@ -32,6 +32,12 @@ BDEPEND="
"
IUSE="debug doc"
+if [[ ${CATEGORY} == dev-crystal ]]; then
+ # To build a correct dependency graph, add Crystal version
+ # restrictions to runtime dependencies of Crystal libraries.
+ RDEPEND="${CRYSTAL_DEPS}"
+fi
+
# Crystal packages do not use CFLAGS
QA_FLAGS_IGNORED='.*'