Currently the $ARCH variable is available within ebuilds, but not the other parts of GLEP 22. Propose $USERLAND, $LIBC, and $KERNEL. Reference: http://www.gentoo.org/proj/en/glep/glep-0022.html
GLEP 22 refers to KEYWORDS not variables. Please clarify.
GLEP 22 defines KEYWORDS as a combination of ARCH-KERNEL-USERLAND-LIBC When writing ebuilds I can use $ARCH, for example: case ${ARCH} in x86) PLATFORM="IA32";; ppc|ppc64) PLATFORM="POWERPC";; amd64) PLATFORM="AMD64";; ia64) PLATFORM="IA64";; *) die "Architecture ${ARCH} not supported" ;; esac It would be nice to have the a similar ability with KERNEL, for example: case ${KERNEL} in freebsd|netbsd|openbsd|dragonfly) OSNAME="BSD" ;; macosx) OSNAME="OSX" ;; *) OSNAME="LINUX" ;; esac This is just an example, and I think that KERNEL would be a poor name which would probably interfere with other things...
(In reply to comment #2) > It would be nice to have the a similar ability with KERNEL, for example: It is. %% portageq envvar ARCH amd64 %% portageq envvar KERNEL linux