mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-23 05:53:12 -04:00
crystal-utils.eclass: support setting minimum and maximum version
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
# Copyright 2022 Gentoo Authors
|
# Copyright 2022-2025 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
# @ECLASS: crystal-utils.eclass
|
# @ECLASS: crystal-utils.eclass
|
||||||
@@ -26,16 +26,34 @@ _CRYSTAL_UTILS_ECLASS=1
|
|||||||
|
|
||||||
inherit edo flag-o-matic multiprocessing
|
inherit edo flag-o-matic multiprocessing
|
||||||
|
|
||||||
|
# @ECLASS_VARIABLE: CRYSTAL_MAX_VER
|
||||||
|
# @DEFAULT_UNSET
|
||||||
|
# @PRE_INHERIT
|
||||||
|
# @DESCRIPTION:
|
||||||
|
# Highest Crystal version supported by the package. If unset, no upper bound
|
||||||
|
# is assumed.
|
||||||
|
|
||||||
|
# @ECLASS_VARIABLE: CRYSTAL_MIN_VER
|
||||||
|
# @PRE_INHERIT
|
||||||
|
# @DESCRIPTION:
|
||||||
|
# Lowest Crystal version supported by the package.
|
||||||
|
: "${CRYSTAL_MIN_VER:=1.16.3}"
|
||||||
|
|
||||||
# @ECLASS_VARIABLE: CRYSTAL_DEPS
|
# @ECLASS_VARIABLE: CRYSTAL_DEPS
|
||||||
# @OUTPUT_VARIABLE
|
# @OUTPUT_VARIABLE
|
||||||
# @DESCRIPTION:
|
# @DESCRIPTION:
|
||||||
# This is an eclass-generated Crystal dependency string.
|
# This is an eclass-generated Crystal dependency string.
|
||||||
CRYSTAL_DEPS="
|
CRYSTAL_DEPS="
|
||||||
|| (
|
|| (
|
||||||
dev-lang/crystal
|
>=dev-lang/crystal-${CRYSTAL_MIN_VER}
|
||||||
dev-lang/crystal-bin
|
>=dev-lang/crystal-bin-${CRYSTAL_MIN_VER}
|
||||||
)
|
)
|
||||||
"
|
${CRYSTAL_MAX_VER:+\
|
||||||
|
|| (
|
||||||
|
<=dev-lang/crystal-${CRYSTAL_MAX_VER}
|
||||||
|
<=dev-lang/crystal-bin-${CRYSTAL_MAX_VER}
|
||||||
|
)
|
||||||
|
}"
|
||||||
|
|
||||||
# @ECLASS_VARIABLE: SHARDS_DEPS
|
# @ECLASS_VARIABLE: SHARDS_DEPS
|
||||||
# @OUTPUT_VARIABLE
|
# @OUTPUT_VARIABLE
|
||||||
|
|||||||
Reference in New Issue
Block a user