summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAndreas K. Huettel (dilfridge) <mail@akhuettel.de>2010-11-16 20:43:26 +0100
committerAndreas K. Huettel (dilfridge) <mail@akhuettel.de>2010-11-16 20:43:26 +0100
commitab4e3817e41cc7cc0e15a75e8a7dc8c35215fe4e (patch)
tree9eadc0dedbbb20fec101e8132bcecf3ae1921ca3 /eclass
parent[eclass] only allow access to system dbus (diff)
downloaddilfridge-ab4e3817e41cc7cc0e15a75e8a7dc8c35215fe4e.tar.gz
dilfridge-ab4e3817e41cc7cc0e15a75e8a7dc8c35215fe4e.tar.bz2
dilfridge-ab4e3817e41cc7cc0e15a75e8a7dc8c35215fe4e.zip
[eclass] Added variable description, shortened conditional
Diffstat (limited to 'eclass')
-rw-r--r--eclass/kde4-base.eclass13
1 files changed, 11 insertions, 2 deletions
diff --git a/eclass/kde4-base.eclass b/eclass/kde4-base.eclass
index 2a68b84..0c7d704 100644
--- a/eclass/kde4-base.eclass
+++ b/eclass/kde4-base.eclass
@@ -13,6 +13,16 @@
# NOTE: KDE 4 ebuilds by default define EAPI="2", this can be redefined but
# eclass will fail with version older than 2.
+# @ECLASS-VARIABLE: VIRTUALX_REQUIRED
+# @DESCRIPTION:
+# Do we need an X server? Valid values are "always", "optional", and "manual".
+# "tests" is a synonym for "optional". While virtualx.eclass supports in principle
+# also the use of an X server during other ebuild phases, we only use it in
+# src_test here. Most likely you'll want to set "optional", which introduces the
+# use-flag "test" (if not already present), adds dependencies conditional on that
+# use-flag, and automatically runs (only) the ebuild test phase with a virtual X server
+# present. This makes things a lot more comfortable than the bare virtualx eclass.
+
# In case the variable is not set in the ebuild, let virtualx eclass not do anything
: ${VIRTUALX_REQUIRED:=manual}
@@ -757,8 +767,7 @@ kde4-base_src_test() {
kde4-base_src_compile
if [[ ${VIRTUALX_REQUIRED} == always ]] ||
- ( [[ ${VIRTUALX_REQUIRED} == optional ]] && use test ) ||
- ( [[ ${VIRTUALX_REQUIRED} == tests ]] && use test ); then
+ ( [[ ${VIRTUALX_REQUIRED} != manual ]] && use test ); then
if [[ ${maketype} ]]; then
# surprise- we are already INSIDE virtualmake!!!