summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2019-11-11 01:16:15 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2019-11-11 01:21:15 +0100
commit113f57dd066b1f940acb2d323a22d69257dc5b3b (patch)
tree3ff0d61fe70a218648e5486f66a75e184b6e6f4e /eclass/ecm.eclass
parentecm.eclass: Fix punt_bogus_dep -> ecm_punt_bogus_dep (diff)
downloadgentoo-113f57dd066b1f940acb2d323a22d69257dc5b3b.tar.gz
gentoo-113f57dd066b1f940acb2d323a22d69257dc5b3b.tar.bz2
gentoo-113f57dd066b1f940acb2d323a22d69257dc5b3b.zip
ecm.eclass: Inherit xdg only if ECM_NONGUI=false
xdg phase functions were already only called based on this var. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'eclass/ecm.eclass')
-rw-r--r--eclass/ecm.eclass30
1 files changed, 17 insertions, 13 deletions
diff --git a/eclass/ecm.eclass b/eclass/ecm.eclass
index 816feed7219e..06c2e9f83ea9 100644
--- a/eclass/ecm.eclass
+++ b/eclass/ecm.eclass
@@ -37,7 +37,23 @@ _ECM_UTILS_ECLASS=1
# for tests you should proceed with setting VIRTUALX_REQUIRED=test.
: ${VIRTUALX_REQUIRED:=manual}
-inherit cmake-utils flag-o-matic toolchain-funcs virtualx xdg
+# @ECLASS-VARIABLE: ECM_NONGUI
+# @DEFAULT_UNSET
+# @DESCRIPTION:
+# By default, for all CATEGORIES except kde-frameworks, assume we are building
+# a GUI application. Add dependency on kde-frameworks/breeze-icons or
+# kde-frameworks/oxygen-icons and run the xdg.eclass routines for pkg_preinst,
+# pkg_postinst and pkg_postrm. If set to "true", do nothing.
+if [[ ${CATEGORY} = kde-frameworks ]] ; then
+ : ${ECM_NONGUI:=true}
+fi
+: ${ECM_NONGUI:=false}
+
+inherit cmake-utils flag-o-matic toolchain-funcs virtualx
+
+if [[ ${ECM_NONGUI} = false ]] ; then
+ inherit xdg
+fi
case ${EAPI} in
7) ;;
@@ -56,18 +72,6 @@ EXPORT_FUNCTIONS pkg_setup src_prepare src_configure src_test pkg_preinst pkg_po
# KDE_INSTALL_USE_QT_SYS_PATHS to ON. If set to "false", do nothing.
: ${ECM_KDEINSTALLDIRS:=true}
-# @ECLASS-VARIABLE: ECM_NONGUI
-# @DEFAULT_UNSET
-# @DESCRIPTION:
-# By default, for all CATEGORIES except kde-frameworks, assume we are building
-# a GUI application. Add dependency on kde-frameworks/breeze-icons or
-# kde-frameworks/oxygen-icons and run the xdg.eclass routines for pkg_preinst,
-# pkg_postinst and pkg_postrm. If set to "true", do nothing.
-if [[ ${CATEGORY} = kde-frameworks ]]; then
- : ${ECM_NONGUI:=true}
-fi
-: ${ECM_NONGUI:=false}
-
# @ECLASS-VARIABLE: ECM_DEBUG
# @DESCRIPTION:
# Add "debug" to IUSE. If !debug, add -DNDEBUG (via cmake-utils_src_configure)