mirror of
https://github.com/gryf/gryf-overlay.git
synced 2025-12-30 10:22:26 +01:00
20 lines
485 B
Bash
20 lines
485 B
Bash
# Copyright 2016, 2019 Jan Chren (rindeal)
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# @ECLASS: portage-functions-patched.eclass
|
|
# @BLURB: Set of portage functions overrides
|
|
|
|
case "${EAPI:-"0"}" in
|
|
"6" | "7" ) ;;
|
|
* ) die "EAPI='${EAPI}' is not supported by ECLASS='${ECLASS}'" ;;
|
|
esac
|
|
|
|
|
|
## Origin: portage - bin/isolated-functions.sh
|
|
rindeal:has() {
|
|
local -r -- IFS=$'\a'
|
|
|
|
[[ "${IFS}${*:2}${IFS}" == *"${IFS}${1}${IFS}"* ]]
|
|
}
|
|
has() { rindeal:has "${@}" ; }
|