qt5-build.eclass: move VIRTUALX_REQUIRED definition before inherit
authorDavide Pesavento <pesa@gentoo.org>
Mon, 28 Dec 2015 01:18:33 +0000 (02:18 +0100)
committerDavide Pesavento <pesa@gentoo.org>
Tue, 2 Feb 2016 18:34:53 +0000 (19:34 +0100)
Otherwise it has no effect.

(cherry picked from proj/qt commit 79c446995b8aaacc6e14116763c9bb92dfe2d175)

eclass/qt5-build.eclass

index 8120c9f7416178f0180d1b31821e282a69be5111..284febfa59a0f63e36d7cd33b211500fa45bd485 100644 (file)
@@ -17,6 +17,13 @@ case ${EAPI} in
        *)      die "qt5-build.eclass: unsupported EAPI=${EAPI:-0}" ;;
 esac
 
+# @ECLASS-VARIABLE: VIRTUALX_REQUIRED
+# @DESCRIPTION:
+# For proper description see virtualx.eclass man page.
+# Here we redefine default value to be manual, if your package needs virtualx
+# for tests you should proceed with setting VIRTUALX_REQUIRED=test.
+: ${VIRTUALX_REQUIRED:=manual}
+
 [[ ${EAPI} == 5 ]] && inherit multilib
 inherit eutils flag-o-matic toolchain-funcs versionator virtualx
 
@@ -123,13 +130,6 @@ esac
 # definitions, which are then merged together with all other Qt5 packages
 # installed on the system to obtain the global qconfig.{h,pri} files.
 
-# @ECLASS-VARIABLE: VIRTUALX_REQUIRED
-# @DESCRIPTION:
-# For proper description see virtualx.eclass man page.
-# Here we redefine default value to be manual, if your package needs virtualx
-# for tests you should proceed with setting VIRTUALX_REQUIRED=test.
-: ${VIRTUALX_REQUIRED:=manual}
-
 
 ######  Phase functions  ######