commit:     314ebc2b484200c00dcd332e74c5b4a1783f4321
Author:     Davide Pesavento <pesa <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 11 01:35:17 2014 +0000
Commit:     Davide Pesavento <pesa <AT> gentoo <DOT> org>
CommitDate: Fri Jul 11 01:35:17 2014 +0000
URL:        
http://git.overlays.gentoo.org/gitweb/?p=proj/qt.git;a=commit;h=314ebc2b

[dev-qt/qthelp:4] Unbreak and simplify docs generation/installation.

Fixes bug 514942

Package-Manager: portage-2.2.10

---
 dev-qt/qthelp/qthelp-4.8.6.ebuild    | 30 +++++++++++++-----------------
 dev-qt/qthelp/qthelp-4.8.9999.ebuild | 30 +++++++++++++-----------------
 2 files changed, 26 insertions(+), 34 deletions(-)

diff --git a/dev-qt/qthelp/qthelp-4.8.6.ebuild 
b/dev-qt/qthelp/qthelp-4.8.6.ebuild
index 9b7a09c..7f63af5 100644
--- a/dev-qt/qthelp/qthelp-4.8.6.ebuild
+++ b/dev-qt/qthelp/qthelp-4.8.6.ebuild
@@ -83,32 +83,28 @@ multilib_src_configure() {
 multilib_src_compile() {
        qt4_multilib_src_compile
 
-       # qhelpgenerator needs libQtHelp.so.4
-       export LD_LIBRARY_PATH=${BUILD_DIR}/lib
-       export 
DYLD_LIBRARY_PATH=${BUILD_DIR}/lib:${BUILD_DIR}/lib/QtHelp.framework
-
-       if use doc; then
+       # release tarballs are shipped with prebuilt docs
+       if [[ ${QT4_BUILD_TYPE} == live ]] && multilib_is_native_abi; then
+               # qhelpgenerator needs libQtHelp.so.4
+               export LD_LIBRARY_PATH=${BUILD_DIR}/lib
+               export 
DYLD_LIBRARY_PATH=${BUILD_DIR}/lib:${BUILD_DIR}/lib/QtHelp.framework
                emake docs
-       elif [[ ${QT4_BUILD_TYPE} == release ]]; then
-               # live ebuild cannot build qch_docs, it will build them through 
emake docs
-               emake qch_docs
        fi
 }
 
 multilib_src_install() {
        qt4_multilib_src_install
 
-       emake INSTALL_ROOT="${D}" install_qchdocs
-
-       # do not compress .qch files
-       docompress -x "${QT4_DOCDIR}"/qch
-
-       if use doc; then
-               emake INSTALL_ROOT="${D}" install_htmldocs
-       fi
-
        if use compat; then
                insinto "${QT4_DATADIR#${EPREFIX}}"/mkspecs/features
                doins tools/assistant/compat/features/assistant.prf
        fi
+
+       if multilib_is_native_abi; then
+               emake INSTALL_ROOT="${D}" install_qchdocs
+               use doc && emake INSTALL_ROOT="${D}" install_htmldocs
+
+               # do not compress .qch files
+               docompress -x "${QT4_DOCDIR}"/qch
+       fi
 }

diff --git a/dev-qt/qthelp/qthelp-4.8.9999.ebuild 
b/dev-qt/qthelp/qthelp-4.8.9999.ebuild
index 9b7a09c..7f63af5 100644
--- a/dev-qt/qthelp/qthelp-4.8.9999.ebuild
+++ b/dev-qt/qthelp/qthelp-4.8.9999.ebuild
@@ -83,32 +83,28 @@ multilib_src_configure() {
 multilib_src_compile() {
        qt4_multilib_src_compile
 
-       # qhelpgenerator needs libQtHelp.so.4
-       export LD_LIBRARY_PATH=${BUILD_DIR}/lib
-       export 
DYLD_LIBRARY_PATH=${BUILD_DIR}/lib:${BUILD_DIR}/lib/QtHelp.framework
-
-       if use doc; then
+       # release tarballs are shipped with prebuilt docs
+       if [[ ${QT4_BUILD_TYPE} == live ]] && multilib_is_native_abi; then
+               # qhelpgenerator needs libQtHelp.so.4
+               export LD_LIBRARY_PATH=${BUILD_DIR}/lib
+               export 
DYLD_LIBRARY_PATH=${BUILD_DIR}/lib:${BUILD_DIR}/lib/QtHelp.framework
                emake docs
-       elif [[ ${QT4_BUILD_TYPE} == release ]]; then
-               # live ebuild cannot build qch_docs, it will build them through 
emake docs
-               emake qch_docs
        fi
 }
 
 multilib_src_install() {
        qt4_multilib_src_install
 
-       emake INSTALL_ROOT="${D}" install_qchdocs
-
-       # do not compress .qch files
-       docompress -x "${QT4_DOCDIR}"/qch
-
-       if use doc; then
-               emake INSTALL_ROOT="${D}" install_htmldocs
-       fi
-
        if use compat; then
                insinto "${QT4_DATADIR#${EPREFIX}}"/mkspecs/features
                doins tools/assistant/compat/features/assistant.prf
        fi
+
+       if multilib_is_native_abi; then
+               emake INSTALL_ROOT="${D}" install_qchdocs
+               use doc && emake INSTALL_ROOT="${D}" install_htmldocs
+
+               # do not compress .qch files
+               docompress -x "${QT4_DOCDIR}"/qch
+       fi
 }

Reply via email to