commit:     8aae5020b96f9e252e9f3a562c89551493877bba
Author:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 14 18:28:06 2016 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Thu Jan 14 18:28:06 2016 +0000
URL:        https://gitweb.gentoo.org/proj/qt.git/commit/?id=8aae5020

qt5-build.eclass: stop the eclass from being used accidentally

 eclass/qt5-build.eclass | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass
index 18dff7a..fe49b00 100644
--- a/eclass/qt5-build.eclass
+++ b/eclass/qt5-build.eclass
@@ -12,6 +12,10 @@
 # This eclass contains various functions that are used when building Qt5.
 # Requires EAPI 5 or 6.
 
+if [[ ${CATEGORY} != dev-qt ]]; then
+       die "qt5-build.eclass is only to be used for building Qt 5."
+fi
+
 case ${EAPI} in
        5|6)    : ;;
        *)      die "qt5-build.eclass: unsupported EAPI=${EAPI:-0}" ;;

Reply via email to