1 |
commit: c904e3ec4ca104d03df8171bd628e11510982c43 |
2 |
Author: Davide Pesavento <pesa <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jun 3 23:58:58 2014 +0000 |
4 |
Commit: Davide Pesavento <pesa <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 3 23:58:58 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/qt.git;a=commit;h=c904e3ec |
7 |
|
8 |
[qt4-build-multilib.eclass] Use -dont-process rather than patching configure. |
9 |
|
10 |
--- |
11 |
eclass/qt4-build-multilib.eclass | 28 +++++++++------------------- |
12 |
1 file changed, 9 insertions(+), 19 deletions(-) |
13 |
|
14 |
diff --git a/eclass/qt4-build-multilib.eclass b/eclass/qt4-build-multilib.eclass |
15 |
index 5eef7f7..42e1097 100644 |
16 |
--- a/eclass/qt4-build-multilib.eclass |
17 |
+++ b/eclass/qt4-build-multilib.eclass |
18 |
@@ -107,13 +107,15 @@ qt4-build-multilib_src_unpack() { |
19 |
# the build system in order to respect CFLAGS/CXXFLAGS/LDFLAGS specified in make.conf. |
20 |
qt4-build-multilib_src_prepare() { |
21 |
if [[ ${PN} != qtcore ]]; then |
22 |
- skip_qmake_build |
23 |
- skip_project_generation |
24 |
+ # avoid unnecessary qmake recompilations |
25 |
+ sed -i -e 's/^if true;/if false;/' configure \ |
26 |
+ || die "sed failed (skip qmake bootstrap)" |
27 |
fi |
28 |
|
29 |
# skip X11 tests in non-gui packages to avoid spurious dependencies |
30 |
if has ${PN} qtbearer qtcore qtdbus qtscript qtsql qttest qttranslations qtxmlpatterns; then |
31 |
- sed -i -e '/^if.*PLATFORM_X11.*CFG_GUI/,/^fi$/d' configure || die |
32 |
+ sed -i -e '/^if.*PLATFORM_X11.*CFG_GUI/,/^fi$/d' configure \ |
33 |
+ || die "sed failed (skip X11 tests)" |
34 |
fi |
35 |
|
36 |
if use_if_iuse aqua; then |
37 |
@@ -297,6 +299,10 @@ multilib_src_configure() { |
38 |
fi |
39 |
conf+=" -no-separate-debug-info" |
40 |
|
41 |
+ # skip recursive processing of .pro files at the end of configure |
42 |
+ # (we run qmake by ourselves), thus saving quite a bit of time |
43 |
+ conf+=" -dont-process" |
44 |
+ |
45 |
# exceptions USE flag |
46 |
conf+=" $(in_iuse exceptions && qt_use exceptions || echo -exceptions)" |
47 |
|
48 |
@@ -603,22 +609,6 @@ generate_qconfigs() { |
49 |
fi |
50 |
} |
51 |
|
52 |
-# @FUNCTION: skip_qmake_build |
53 |
-# @INTERNAL |
54 |
-# @DESCRIPTION: |
55 |
-# Patches configure to skip qmake compilation, as it's already installed by qtcore. |
56 |
-skip_qmake_build() { |
57 |
- sed -i -e "s:if true:if false:g" "${S}"/configure || die |
58 |
-} |
59 |
- |
60 |
-# @FUNCTION: skip_project_generation |
61 |
-# @INTERNAL |
62 |
-# @DESCRIPTION: |
63 |
-# Exit the script early by throwing in an exit before all of the .pro files are scanned. |
64 |
-skip_project_generation() { |
65 |
- sed -i -e "s:echo \"Finding:exit 0\n\necho \"Finding:g" "${S}"/configure || die |
66 |
-} |
67 |
- |
68 |
# @FUNCTION: qt4_symlink_tools_to_build_dir |
69 |
# @INTERNAL |
70 |
# @DESCRIPTION: |