1 |
commit: 108588c553f5cf84809626d8f104a1846e379059 |
2 |
Author: Davide Pesavento <pesa <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 27 00:24:24 2014 +0000 |
4 |
Commit: Davide Pesavento <pesa <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 27 00:24:24 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/qt.git;a=commit;h=108588c5 |
7 |
|
8 |
[Qt4] Handle installation of private headers in qt4-build-multilib.eclass |
9 |
|
10 |
--- |
11 |
dev-qt/qtcore/qtcore-4.8.9999.ebuild | 8 ++------ |
12 |
dev-qt/qtdeclarative/qtdeclarative-4.8.9999.ebuild | 14 -------------- |
13 |
dev-qt/qtgui/qtgui-4.8.9999.ebuild | 13 ------------- |
14 |
dev-qt/qtscript/qtscript-4.8.9999.ebuild | 12 +----------- |
15 |
eclass/qt4-build-multilib.eclass | 12 +++++++++++- |
16 |
5 files changed, 14 insertions(+), 45 deletions(-) |
17 |
|
18 |
diff --git a/dev-qt/qtcore/qtcore-4.8.9999.ebuild b/dev-qt/qtcore/qtcore-4.8.9999.ebuild |
19 |
index cbb48a3..5353b1a 100644 |
20 |
--- a/dev-qt/qtcore/qtcore-4.8.9999.ebuild |
21 |
+++ b/dev-qt/qtcore/qtcore-4.8.9999.ebuild |
22 |
@@ -99,14 +99,10 @@ src_configure() { |
23 |
} |
24 |
|
25 |
src_install() { |
26 |
- emake INSTALL_ROOT="${D}" install_{mkspecs,qmake} |
27 |
- |
28 |
- # install private headers |
29 |
- insinto "${QT4_HEADERDIR#${EPREFIX}}"/QtCore/private |
30 |
- find "${S}"/src/corelib -type f -name "*_p.h" -exec doins '{}' + |
31 |
- |
32 |
qt4-build-multilib_src_install |
33 |
|
34 |
+ emake INSTALL_ROOT="${D}" install_{mkspecs,qmake} |
35 |
+ |
36 |
# List all the multilib libdirs |
37 |
local libdirs= |
38 |
for libdir in $(get_all_libdirs); do |
39 |
|
40 |
diff --git a/dev-qt/qtdeclarative/qtdeclarative-4.8.9999.ebuild b/dev-qt/qtdeclarative/qtdeclarative-4.8.9999.ebuild |
41 |
index 8b1c7b1..38e3027 100644 |
42 |
--- a/dev-qt/qtdeclarative/qtdeclarative-4.8.9999.ebuild |
43 |
+++ b/dev-qt/qtdeclarative/qtdeclarative-4.8.9999.ebuild |
44 |
@@ -60,17 +60,3 @@ src_configure() { |
45 |
$(qt_use webkit)" |
46 |
qt4-build-multilib_src_configure |
47 |
} |
48 |
- |
49 |
-src_install() { |
50 |
- qt4-build-multilib_src_install |
51 |
- |
52 |
- # install private headers |
53 |
- if use aqua && [[ ${CHOST##*-darwin} -ge 9 ]]; then |
54 |
- insinto "${QT4_LIBDIR#${EPREFIX}}"/QtDeclarative.framework/Headers/private |
55 |
- # ran for the 2nd time, need it for the updated headers |
56 |
- fix_includes |
57 |
- else |
58 |
- insinto "${QT4_HEADERDIR#${EPREFIX}}"/QtDeclarative/private |
59 |
- fi |
60 |
- find "${S}"/src/declarative/ -type f -name "*_p.h" -exec doins '{}' + |
61 |
-} |
62 |
|
63 |
diff --git a/dev-qt/qtgui/qtgui-4.8.9999.ebuild b/dev-qt/qtgui/qtgui-4.8.9999.ebuild |
64 |
index 2f90936..2f8209c 100644 |
65 |
--- a/dev-qt/qtgui/qtgui-4.8.9999.ebuild |
66 |
+++ b/dev-qt/qtgui/qtgui-4.8.9999.ebuild |
67 |
@@ -163,19 +163,6 @@ src_install() { |
68 |
|
69 |
qt4-build-multilib_src_install |
70 |
|
71 |
- # install private headers |
72 |
- if use aqua && [[ ${CHOST##*-darwin} -ge 9 ]]; then |
73 |
- insinto "${QT4_LIBDIR#${EPREFIX}}"/QtGui.framework/Headers/private/ |
74 |
- else |
75 |
- insinto "${QT4_HEADERDIR#${EPREFIX}}"/QtGui/private |
76 |
- fi |
77 |
- find "${S}"/src/gui -type f -name '*_p.h' -exec doins '{}' + |
78 |
- |
79 |
- if use aqua && [[ ${CHOST##*-darwin} -ge 9 ]]; then |
80 |
- # rerun to get links to headers right |
81 |
- fix_includes |
82 |
- fi |
83 |
- |
84 |
# touch the available graphics systems |
85 |
dodir /usr/share/qt4/graphicssystems |
86 |
echo "default" > "${ED}"/usr/share/qt4/graphicssystems/raster || die |
87 |
|
88 |
diff --git a/dev-qt/qtscript/qtscript-4.8.9999.ebuild b/dev-qt/qtscript/qtscript-4.8.9999.ebuild |
89 |
index f6796ce..33ef722 100644 |
90 |
--- a/dev-qt/qtscript/qtscript-4.8.9999.ebuild |
91 |
+++ b/dev-qt/qtscript/qtscript-4.8.9999.ebuild |
92 |
@@ -21,9 +21,7 @@ DEPEND=" |
93 |
" |
94 |
RDEPEND="${DEPEND}" |
95 |
|
96 |
-QT4_TARGET_DIRECTORIES=" |
97 |
- src/script" |
98 |
- |
99 |
+QT4_TARGET_DIRECTORIES="src/script" |
100 |
QT4_EXTRACT_DIRECTORIES="${QT4_TARGET_DIRECTORIES} |
101 |
include/Qt |
102 |
include/QtCore |
103 |
@@ -47,11 +45,3 @@ src_configure() { |
104 |
|
105 |
qt4-build-multilib_src_configure |
106 |
} |
107 |
- |
108 |
-src_install() { |
109 |
- qt4-build-multilib_src_install |
110 |
- |
111 |
- # install private headers |
112 |
- insinto "${QT4_HEADERDIR#${EPREFIX}}"/QtScript/private |
113 |
- find "${S}"/src/script -type f -name "*_p.h" -exec doins '{}' + |
114 |
-} |
115 |
|
116 |
diff --git a/eclass/qt4-build-multilib.eclass b/eclass/qt4-build-multilib.eclass |
117 |
index dd919f9..659b369 100644 |
118 |
--- a/eclass/qt4-build-multilib.eclass |
119 |
+++ b/eclass/qt4-build-multilib.eclass |
120 |
@@ -313,7 +313,7 @@ qt4-build-multilib_src_configure() { |
121 |
-shared -fast -largefile -stl -verbose |
122 |
-nomake examples -nomake demos" |
123 |
|
124 |
- # Convert tc-arch to the values supported by Qt |
125 |
+ # convert tc-arch to the values supported by Qt |
126 |
case $(tc-arch) in |
127 |
amd64|x64-*) conf+=" -arch x86_64" ;; |
128 |
ppc*-macos) conf+=" -arch ppc" ;; |
129 |
@@ -438,6 +438,16 @@ qt4-build-multilib_src_install() { |
130 |
popd >/dev/null || die |
131 |
done |
132 |
|
133 |
+ # install private headers of a few modules |
134 |
+ if has ${PN} qtcore qtdeclarative qtgui qtscript; then |
135 |
+ local moduledir=${PN#qt} |
136 |
+ local modulename=Qt$(tr 'a-z' 'A-Z' <<< ${moduledir:0:1})${moduledir:1} |
137 |
+ [[ ${moduledir} == core ]] && moduledir=corelib |
138 |
+ |
139 |
+ insinto "${QT4_HEADERDIR#${EPREFIX}}"/${modulename}/private |
140 |
+ find "${S}"/src/${moduledir} -type f -name '*_p.h' -exec doins '{}' + || die |
141 |
+ fi |
142 |
+ |
143 |
install_qconfigs |
144 |
fix_library_files |
145 |
fix_includes |