public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Davide Pesavento" <pesa@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/qt:master commit in: dev-qt/qthelp/
Date: Fri, 11 Jul 2014 01:35:33 +0000 (UTC)	[thread overview]
Message-ID: <1405042517.314ebc2b484200c00dcd332e74c5b4a1783f4321.pesa@gentoo> (raw)

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	other threads:[~2014-07-11  1:35 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-11  1:35 Davide Pesavento [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-01-08 21:22 [gentoo-commits] proj/qt:master commit in: dev-qt/qthelp/ Andreas Sturmlechner
2022-03-18 18:07 Andreas Sturmlechner
2019-02-24 15:21 Andreas Sturmlechner
2019-02-24 15:21 Andreas Sturmlechner
2018-08-15 14:20 Jimi Huotari
2018-08-15 14:11 Jimi Huotari
2017-11-25  3:33 Michael Palimaka
2017-05-02  2:40 Davide Pesavento
2016-07-13 17:37 Davide Pesavento
2014-11-26 18:30 Davide Pesavento
2014-11-16  4:09 Davide Pesavento
2014-09-02  0:08 Davide Pesavento
2014-05-27 22:59 Davide Pesavento
2014-05-27 22:59 Davide Pesavento
2014-05-15 16:52 Michael Palimaka
2013-08-01  6:58 Davide Pesavento
2013-07-18 14:03 Michael Palimaka
2013-07-11 18:17 Michael Palimaka
2013-03-08  8:13 Davide Pesavento

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1405042517.314ebc2b484200c00dcd332e74c5b4a1783f4321.pesa@gentoo \
    --to=pesa@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox