From e4ede365103bc8f4a8f8810a2e8c2ee77317d176 Mon Sep 17 00:00:00 2001 From: "Anna (cybertailor) Vyalkova" Date: Sun, 19 Apr 2026 14:25:45 +0500 Subject: [PATCH] crystal-utils.eclass: support EAPI 9 Signed-off-by: Anna (cybertailor) Vyalkova --- eclass/crystal-utils.eclass | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/eclass/crystal-utils.eclass b/eclass/crystal-utils.eclass index ba491796ef..a1819472d2 100644 --- a/eclass/crystal-utils.eclass +++ b/eclass/crystal-utils.eclass @@ -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 # @ECLASS: crystal-utils.eclass @@ -6,7 +6,7 @@ # Anna # @AUTHOR: # Anna -# @SUPPORTED_EAPIS: 8 +# @SUPPORTED_EAPIS: 8 9 # @BLURB: utility functions for Crystal packages # @DESCRIPTION: # A utility eclass providing functions to invoke Crystal. @@ -17,14 +17,15 @@ # All helper functions die on failure and support being called via 'nonfatal'. case ${EAPI} in - 8) ;; + 8) inherit edo ;; + 9) ;; *) die "${ECLASS}: EAPI ${EAPI} unsupported." esac if [[ ! ${_CRYSTAL_UTILS_ECLASS} ]]; then _CRYSTAL_UTILS_ECLASS=1 -inherit edo flag-o-matic multiprocessing +inherit flag-o-matic multiprocessing # @ECLASS_VARIABLE: CRYSTAL_MAX_VER # @DEFAULT_UNSET @@ -173,7 +174,7 @@ eshards() { # Function for building a target. All arguments are passed to crystal. crystal_build() { local build_args=( - --threads=$(makeopts_jobs) + --threads=$(get_makeopts_jobs) --verbose )