mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 12:03:02 -04:00
crystal-utils.eclass: support EAPI 9
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
@@ -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 <cyber+gentoo@sysrq.in>
|
||||
# @AUTHOR:
|
||||
# Anna <cyber+gentoo@sysrq.in>
|
||||
# @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
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user