commit: 0e35f3672b4db75ab27e2c99051637898c1962d3
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 20 20:12:08 2014 +0000
Commit: Davide Pesavento <pesa <AT> gentoo <DOT> org>
CommitDate: Sun Oct 26 01:20:43 2014 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/qt.git;a=commit;h=0e35f367
[qt5-build.eclass] Install configs for qtchooser.
---
eclass/qt5-build.eclass | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass
index 4da3887..bb8fc4d 100644
--- a/eclass/qt5-build.eclass
+++ b/eclass/qt5-build.eclass
@@ -279,6 +279,21 @@ qt5-build_src_install() {
sed -i -e '1a#include <Gentoo/gentoo-qconfig.h>\n' \
"${D}${QT5_HEADERDIR}"/QtCore/qconfig.h \
|| die "sed failed (qconfig.h)"
+
+ # install qtchooser configuration file
+ cat > "${T}/qt5-${CHOST}.conf" <<-_EOF_
+ ${QT5_BINDIR}
+ ${QT5_LIBDIR}
+ _EOF_
+
+ (
+ insinto /etc/xdg/qtchooser
+ doins "${T}/qt5-${CHOST}.conf"
+ )
+
+ # convenience symlinks
+ dosym qt5-"${CHOST}".conf /etc/xdg/qtchooser/5.conf
+ dosym qt5-"${CHOST}".conf /etc/xdg/qtchooser/qt5.conf
fi
qt5_install_module_qconfigs