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='.*'