qt5-build.eclass: stop the eclass from being used accidentally
authorMichael Palimaka <kensington@gentoo.org>
Thu, 14 Jan 2016 18:28:06 +0000 (05:28 +1100)
committerDavide Pesavento <pesa@gentoo.org>
Tue, 2 Feb 2016 18:35:01 +0000 (19:35 +0100)
(cherry picked from proj/qt commit 8aae5020b96f9e252e9f3a562c89551493877bba)

eclass/qt5-build.eclass

index dc9e19ac0dc2d5ff674f669641cbba52a9d1b8d9..db08161cc87dba943ca7266bc1667e5cab236a03 100644 (file)
 # 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}" ;;