summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2022-12-27 17:29:55 +0100
committerDavid Seifert <soap@gentoo.org>2022-12-27 17:29:55 +0100
commitc59b3081a81aafa79fe1b0283eeee6e21122b56f (patch)
treeabdcfadf03ebbf3b12757772d446c80d2ab80a2f /eclass/llvm.eclass
parentlinux-mod.eclass: drop EAPI 6 support (diff)
downloadgentoo-c59b3081a81aafa79fe1b0283eeee6e21122b56f.tar.gz
gentoo-c59b3081a81aafa79fe1b0283eeee6e21122b56f.tar.bz2
gentoo-c59b3081a81aafa79fe1b0283eeee6e21122b56f.zip
llvm.eclass: canonicalize eclass structure
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'eclass/llvm.eclass')
-rw-r--r--eclass/llvm.eclass8
1 files changed, 4 insertions, 4 deletions
diff --git a/eclass/llvm.eclass b/eclass/llvm.eclass
index b4347163face..cdbc766feeb3 100644
--- a/eclass/llvm.eclass
+++ b/eclass/llvm.eclass
@@ -58,12 +58,11 @@
case ${EAPI} in
7|8) ;;
- *) die "EAPI=${EAPI:-0} not supported";;
+ *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac
-EXPORT_FUNCTIONS pkg_setup
-
if [[ ! ${_LLVM_ECLASS} ]]; then
+_LLVM_ECLASS=1
# make sure that the versions installing straight into /usr/bin
# are uninstalled
@@ -278,5 +277,6 @@ llvm_pkg_setup() {
fi
}
-_LLVM_ECLASS=1
fi
+
+EXPORT_FUNCTIONS pkg_setup