1 |
commit: 242e23f1f5e8139c644fa60ef100f98a8d8f47d7 |
2 |
Author: Davide Pesavento <pesa <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 23 18:14:17 2014 +0000 |
4 |
Commit: Davide Pesavento <pesa <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 23 18:14:17 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/qt.git;a=commit;h=242e23f1 |
7 |
|
8 |
[dev-qt/qtcore:4] Use eclass's src_install rather than internal functions. |
9 |
|
10 |
So that installation paths are respected. |
11 |
|
12 |
Package-Manager: portage-2.2.10 |
13 |
|
14 |
--- |
15 |
dev-qt/qtcore/qtcore-4.8.9999.ebuild | 36 ++++++++++++------------------------ |
16 |
1 file changed, 12 insertions(+), 24 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 4c4f5a3..85a3a37 100644 |
20 |
--- a/dev-qt/qtcore/qtcore-4.8.9999.ebuild |
21 |
+++ b/dev-qt/qtcore/qtcore-4.8.9999.ebuild |
22 |
@@ -105,29 +105,13 @@ src_configure() { |
23 |
} |
24 |
|
25 |
src_install() { |
26 |
- dobin bin/{qmake,moc,rcc,uic,lconvert,lrelease,lupdate} |
27 |
- |
28 |
- install_directories src/{corelib,xml,network,plugins/codecs} |
29 |
- |
30 |
- emake INSTALL_ROOT="${D}" install_mkspecs |
31 |
+ emake INSTALL_ROOT="${D}" install_{mkspecs,qmake} |
32 |
|
33 |
# install private headers |
34 |
insinto "${QT4_HEADERDIR#${EPREFIX}}"/QtCore/private |
35 |
find "${S}"/src/corelib -type f -name "*_p.h" -exec doins '{}' + |
36 |
|
37 |
- # use freshly built libraries |
38 |
- local DYLD_FPATH= |
39 |
- [[ -d "${S}"/lib/QtCore.framework ]] \ |
40 |
- && DYLD_FPATH=$(for x in "${S}"/lib/*.framework; do echo -n ":$x"; done) |
41 |
- DYLD_LIBRARY_PATH="${S}/lib${DYLD_FPATH}" \ |
42 |
- LD_LIBRARY_PATH="${S}/lib" \ |
43 |
- "${S}"/bin/lrelease translations/*.ts \ |
44 |
- || die "generating translations failed" |
45 |
- insinto "${QT4_TRANSLATIONDIR#${EPREFIX}}" |
46 |
- doins translations/*.qm |
47 |
- |
48 |
- setqtenv |
49 |
- fix_library_files |
50 |
+ qt4-build-multilib_src_install |
51 |
|
52 |
# List all the multilib libdirs |
53 |
local libdirs= |
54 |
@@ -157,13 +141,17 @@ src_install() { |
55 |
|| die "sed for qconfig.h failed" |
56 |
fi |
57 |
|
58 |
- install_qconfigs |
59 |
- |
60 |
- # remove .la files |
61 |
- prune_libtool_files |
62 |
+ # use freshly built libraries |
63 |
+ local DYLD_FPATH= |
64 |
+ [[ -d "${S}"/lib/QtCore.framework ]] \ |
65 |
+ && DYLD_FPATH=$(for x in "${S}"/lib/*.framework; do echo -n ":$x"; done) |
66 |
+ DYLD_LIBRARY_PATH="${S}/lib${DYLD_FPATH}" \ |
67 |
+ LD_LIBRARY_PATH="${S}/lib" \ |
68 |
+ "${S}"/bin/lrelease translations/*.ts \ |
69 |
+ || die "generating translations failed" |
70 |
|
71 |
- # framework magic |
72 |
- fix_includes |
73 |
+ insinto "${QT4_TRANSLATIONDIR#${EPREFIX}}" |
74 |
+ doins translations/*.qm |
75 |
|
76 |
keepdir "${QT4_SYSCONFDIR#${EPREFIX}}" |
77 |
} |