diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2019-01-31 20:47:20 +0100 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2019-03-01 10:24:37 +0100 |
commit | 6e8df96298480523c6f0e37a20d843ef5fd263ed (patch) | |
tree | e2ee377506d0e18dee0454193a5677ff8ced48c0 /eclass/qt5-build.eclass | |
parent | qt5-build.eclass: Drop obsolete Qt 5.12.0 quirk (diff) | |
download | gentoo-6e8df96298480523c6f0e37a20d843ef5fd263ed.tar.gz gentoo-6e8df96298480523c6f0e37a20d843ef5fd263ed.tar.bz2 gentoo-6e8df96298480523c6f0e37a20d843ef5fd263ed.zip |
qt5-build.eclass: Relocate QT5_DOCDIR to /usr/share/qt5-doc
Acked-by: Michael Palimaka <kensington@gentoo.org>
Bug: https://bugs.gentoo.org/667280
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'eclass/qt5-build.eclass')
-rw-r--r-- | eclass/qt5-build.eclass | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass index 2f1e6e684ecf..613af912b93a 100644 --- a/eclass/qt5-build.eclass +++ b/eclass/qt5-build.eclass @@ -256,7 +256,9 @@ qt5-build_src_install() { popd >/dev/null || die - docompress -x "${QT5_DOCDIR#${EPREFIX}}"/global + if [[ ${QT5_MINOR_VERSION} -lt 12 ]]; then + docompress -x "${QT5_DOCDIR#${EPREFIX}}"/global + fi # install an empty Gentoo/gentoo-qconfig.h in ${D} # so that it's placed under package manager control @@ -414,7 +416,11 @@ qt5_prepare_env() { QT5_IMPORTDIR=${QT5_ARCHDATADIR}/imports QT5_QMLDIR=${QT5_ARCHDATADIR}/qml QT5_DATADIR=${QT5_PREFIX}/share/qt5 - QT5_DOCDIR=${QT5_PREFIX}/share/doc/qt-${PV} + if [[ ${QT5_MINOR_VERSION} -lt 12 ]]; then + QT5_DOCDIR=${QT5_PREFIX}/share/doc/qt-${PV} + else + QT5_DOCDIR=${QT5_PREFIX}/share/qt5-doc + fi QT5_TRANSLATIONDIR=${QT5_DATADIR}/translations QT5_EXAMPLESDIR=${QT5_DATADIR}/examples QT5_TESTSDIR=${QT5_DATADIR}/tests |