commit:     4e6dcea6ba01fd3fb245fbb073fa13e9330cd02a
Author:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Sat Jan  6 02:40:28 2018 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Sat Jan  6 02:42:04 2018 +0000
URL:        https://gitweb.gentoo.org/proj/qt.git/commit/?id=4e6dcea6

dev-qt/qdoc: clang is now required

Upstream-commit: b032aee53c8fb6807485186f276ca25b86ac1251
Package-Manager: Portage-2.3.14, Repoman-2.3.6

 dev-qt/qdoc/qdoc-5.9999.ebuild | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/dev-qt/qdoc/qdoc-5.9999.ebuild b/dev-qt/qdoc/qdoc-5.9999.ebuild
index fff12942..61789076 100644
--- a/dev-qt/qdoc/qdoc-5.9999.ebuild
+++ b/dev-qt/qdoc/qdoc-5.9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -15,6 +15,7 @@ IUSE="qml"
 
 DEPEND="
        ~dev-qt/qtcore-${PV}
+       sys-devel/clang:=
        qml? ( ~dev-qt/qtdeclarative-${PV} )
 "
 RDEPEND="${DEPEND}"
@@ -27,5 +28,10 @@ src_prepare() {
        qt_use_disable_mod qml qmldevtools-private \
                src/qdoc/qdoc.pro
 
+       export LLVM_INSTALL_DIR="$(llvm-config --prefix)"
+       # this is normally loaded in qttools.pro, so skipped by using
+       # QT_TARGET_SUBDIRS causing build to fail
+       sed -e '1iload(qt_find_clang)\' -i src/qdoc/qdoc.pro || die
+
        qt5-build_src_prepare
 }

Reply via email to