From 69360898d45afea1890802334450b74fbedde97a Mon Sep 17 00:00:00 2001 From: "Anna (cybertailor) Vyalkova" Date: Thu, 30 Oct 2025 22:16:33 +0500 Subject: [PATCH] shards.eclass: add CRYSTAL_DEPS to RDEPEND for libraries Signed-off-by: Anna (cybertailor) Vyalkova --- 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='.*'