1 |
commit: 9fede9308d704a29a3a04bfd78159fbf0fac3af2 |
2 |
Author: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 14 18:28:06 2016 +0000 |
4 |
Commit: Davide Pesavento <pesa <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 2 18:35:01 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9fede930 |
7 |
|
8 |
qt5-build.eclass: stop the eclass from being used accidentally |
9 |
|
10 |
(cherry picked from proj/qt commit 8aae5020b96f9e252e9f3a562c89551493877bba) |
11 |
|
12 |
eclass/qt5-build.eclass | 4 ++++ |
13 |
1 file changed, 4 insertions(+) |
14 |
|
15 |
diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass |
16 |
index dc9e19a..db08161 100644 |
17 |
--- a/eclass/qt5-build.eclass |
18 |
+++ b/eclass/qt5-build.eclass |
19 |
@@ -12,6 +12,10 @@ |
20 |
# This eclass contains various functions that are used when building Qt5. |
21 |
# Requires EAPI 5 or 6. |
22 |
|
23 |
+if [[ ${CATEGORY} != dev-qt ]]; then |
24 |
+ die "qt5-build.eclass is only to be used for building Qt 5." |
25 |
+fi |
26 |
+ |
27 |
case ${EAPI} in |
28 |
5|6) : ;; |
29 |
*) die "qt5-build.eclass: unsupported EAPI=${EAPI:-0}" ;; |