commit: 503fc0ecf6e835bff9f8f9a9a524e94b5d517e00
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 20 20:06:16 2014 +0000
Commit: Davide Pesavento <pesa <AT> gentoo <DOT> org>
CommitDate: Sun Oct 26 01:20:36 2014 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/qt.git;a=commit;h=503fc0ec
[qt4-build-multilib.eclass] Install configs for qtchooser.
---
eclass/qt4-build-multilib.eclass | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/eclass/qt4-build-multilib.eclass b/eclass/qt4-build-multilib.eclass
index 9d25622..d677ae5 100644
--- a/eclass/qt4-build-multilib.eclass
+++ b/eclass/qt4-build-multilib.eclass
@@ -411,6 +411,25 @@ qt4_multilib_src_install() {
if [[ ${PN} == qtcore ]]; then
einfo "Running emake INSTALL_ROOT=${D} install_{mkspecs,qmake}"
emake INSTALL_ROOT="${D}" install_{mkspecs,qmake}
+
+ # install qtchooser configuration file
+ cat > "${T}/qt4-${CHOST}.conf" <<-_EOF_
+ ${QT4_BINDIR}
+ ${QT4_LIBDIR}
+ _EOF_
+
+ (
+ insinto /etc/xdg/qtchooser
+ doins "${T}/qt4-${CHOST}.conf"
+ )
+
+ if multilib_is_native_abi; then
+ # convenience symlinks
+ dosym qt4-"${CHOST}".conf /etc/xdg/qtchooser/4.conf
+ dosym qt4-"${CHOST}".conf /etc/xdg/qtchooser/qt4.conf
+ # TODO bug 522646: write an eselect module to manage
default.conf
+ dosym qt4.conf /etc/xdg/qtchooser/default.conf
+ fi
fi
install_qconfigs