crystal-utils.eclass: support EAPI 9

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova committed 2026-05-21 10:38:58 +05:00
1 parent 8adeb61578
commit e4ede36510
1 file changed
+6 -5
+6 -5
View File
@@ -1,4 +1,4 @@
# Copyright 2022-2025 Gentoo Authors # Copyright 2022-2026 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
@@ -6,7 +6,7 @@
# Anna <cyber+gentoo@sysrq.in> # Anna <cyber+gentoo@sysrq.in>
# @AUTHOR: # @AUTHOR:
# Anna <cyber+gentoo@sysrq.in> # Anna <cyber+gentoo@sysrq.in>
# @SUPPORTED_EAPIS: 8 # @SUPPORTED_EAPIS: 8 9
# @BLURB: utility functions for Crystal packages # @BLURB: utility functions for Crystal packages
# @DESCRIPTION: # @DESCRIPTION:
# A utility eclass providing functions to invoke Crystal. # A utility eclass providing functions to invoke Crystal.
@@ -17,14 +17,15 @@
# All helper functions die on failure and support being called via 'nonfatal'. # All helper functions die on failure and support being called via 'nonfatal'.
case ${EAPI} in case ${EAPI} in
8) ;; 8) inherit edo ;;
9) ;;
*) die "${ECLASS}: EAPI ${EAPI} unsupported." *) die "${ECLASS}: EAPI ${EAPI} unsupported."
esac esac
if [[ ! ${_CRYSTAL_UTILS_ECLASS} ]]; then if [[ ! ${_CRYSTAL_UTILS_ECLASS} ]]; then
_CRYSTAL_UTILS_ECLASS=1 _CRYSTAL_UTILS_ECLASS=1
inherit edo flag-o-matic multiprocessing inherit flag-o-matic multiprocessing
# @ECLASS_VARIABLE: CRYSTAL_MAX_VER # @ECLASS_VARIABLE: CRYSTAL_MAX_VER
# @DEFAULT_UNSET # @DEFAULT_UNSET
@@ -173,7 +174,7 @@ eshards() {
# Function for building a target. All arguments are passed to crystal. # Function for building a target. All arguments are passed to crystal.
crystal_build() { crystal_build() {
local build_args=( local build_args=(
--threads=$(makeopts_jobs) --threads=$(get_makeopts_jobs)
--verbose --verbose
) )