mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-22 10:57:07 -08:00
portability.eclass: [QA] add EAPI guard
Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
@@ -7,6 +7,12 @@
|
||||
# @AUTHOR:
|
||||
# Diego Pettenò <flameeyes@gentoo.org>
|
||||
# @BLURB: This eclass is created to avoid using non-portable GNUisms inside ebuilds
|
||||
# @SUPPORTED_EAPIS: 5 6 7
|
||||
|
||||
case ${EAPI:-0} in
|
||||
[567]) ;;
|
||||
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
||||
esac
|
||||
|
||||
if [[ -z ${_PORTABILITY_ECLASS} ]]; then
|
||||
_PORTABILITY_ECLASS=1
|
||||
|
||||
Reference in New Issue
Block a user