diff options
Diffstat (limited to 'dev-qt/qdoc')
-rw-r--r-- | dev-qt/qdoc/metadata.xml | 20 | ||||
-rw-r--r-- | dev-qt/qdoc/qdoc-5.10.9999.ebuild | 37 |
2 files changed, 57 insertions, 0 deletions
diff --git a/dev-qt/qdoc/metadata.xml b/dev-qt/qdoc/metadata.xml new file mode 100644 index 0000000..2184bb1 --- /dev/null +++ b/dev-qt/qdoc/metadata.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>qt@gentoo.org</email> + <name>Gentoo Qt Project</name> + </maintainer> + <use> + <flag name="qml">Enable QML/JS parsing support</flag> + </use> + <upstream> + <bugs-to>https://bugreports.qt.io/</bugs-to> + <doc>https://doc.qt.io/</doc> + </upstream> + <slots> + <subslots> + Must only be used by packages that are known to use private parts of the Qt API. + </subslots> + </slots> +</pkgmetadata> diff --git a/dev-qt/qdoc/qdoc-5.10.9999.ebuild b/dev-qt/qdoc/qdoc-5.10.9999.ebuild new file mode 100644 index 0000000..4c656e1 --- /dev/null +++ b/dev-qt/qdoc/qdoc-5.10.9999.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +QT5_MODULE="qttools" +inherit qt5-build + +DESCRIPTION="Qt documentation generator" + +if [[ ${QT5_BUILD_TYPE} == release ]]; then + KEYWORDS="~amd64 ~x86" +fi + +IUSE="qml" + +DEPEND=" + ~dev-qt/qtcore-${PV} + sys-devel/clang:= + qml? ( ~dev-qt/qtdeclarative-${PV} ) +" +RDEPEND="${DEPEND}" + +QT5_TARGET_SUBDIRS=( + src/qdoc +) + +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 +} |