summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2015-11-27 08:28:31 +0100
committerJustin Lecher <jlec@gentoo.org>2015-12-07 10:11:54 +0100
commit28cd3ce3c04558c338615fa11c9d4d85a4f0040a (patch)
tree6443c51af0002abd52ffad9866bf105a24f09b2b /eclass/virtualx.eclass
parentvirtualx.eclass: Use case/esac to handle supported EAPIs (diff)
downloadgentoo-28cd3ce3c04558c338615fa11c9d4d85a4f0040a.tar.gz
gentoo-28cd3ce3c04558c338615fa11c9d4d85a4f0040a.tar.bz2
gentoo-28cd3ce3c04558c338615fa11c9d4d85a4f0040a.zip
virtualx.eclass: Only source eclass once
Signed-off-by: Justin Lecher <jlec@gentoo.org>
Diffstat (limited to 'eclass/virtualx.eclass')
-rw-r--r--eclass/virtualx.eclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/eclass/virtualx.eclass b/eclass/virtualx.eclass
index e9ff3af9b755..8d66da0c17a2 100644
--- a/eclass/virtualx.eclass
+++ b/eclass/virtualx.eclass
@@ -9,6 +9,8 @@
# Original author: Martin Schlemmer <azarah@gentoo.org>
# @BLURB: This eclass can be used for packages that needs a working X environment to build.
+if [[ ! ${_VIRTUAL_X} ]]; then
+
case "${EAPI:-0}" in
0|1)
die "virtualx.eclass: EAPI ${EAPI} is too old."
@@ -195,3 +197,6 @@ Xeconf() {
VIRTUALX_COMMAND="econf" virtualmake "$@"
}
+
+_VIRTUAL_X=1
+fi