public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Johannes Huber" <johu@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] dev/johu:master commit in: dev-libs/qtkeychain/
Date: Thu, 17 Apr 2014 19:59:53 +0000 (UTC)	[thread overview]
Message-ID: <1397757562.35452a2020f4baf53dda5fcde222dc8a8bce7cc6.johu@gentoo> (raw)

commit:     35452a2020f4baf53dda5fcde222dc8a8bce7cc6
Author:     Johannes Huber <johu <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 17 17:59:22 2014 +0000
Commit:     Johannes Huber <johu <AT> gentoo <DOT> org>
CommitDate: Thu Apr 17 17:59:22 2014 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=dev/johu.git;a=commit;h=35452a20

[dev-libs/qtkeychain] Qt multibuild by Uwe L. Korn <uwelk <AT> xhochy.com>

Package-Manager: portage-2.2.10

---
 dev-libs/qtkeychain/qtkeychain-9999.ebuild | 50 ++++++++++++++++++++++++------
 1 file changed, 41 insertions(+), 9 deletions(-)

diff --git a/dev-libs/qtkeychain/qtkeychain-9999.ebuild b/dev-libs/qtkeychain/qtkeychain-9999.ebuild
index 5b4e581..b8daadb 100644
--- a/dev-libs/qtkeychain/qtkeychain-9999.ebuild
+++ b/dev-libs/qtkeychain/qtkeychain-9999.ebuild
@@ -4,7 +4,7 @@
 
 EAPI=5
 
-inherit cmake-utils git-r3
+inherit cmake-utils multibuild git-r3
 
 DESCRIPTION="Qt API for storing passwords securely"
 HOMEPAGE="https://github.com/frankosterfeld/qtkeychain"
@@ -13,26 +13,58 @@ EGIT_REPO_URI="git://github.com/frankosterfeld/${PN}"
 LICENSE="BSD"
 SLOT="0"
 KEYWORDS=""
-IUSE="qt5"
+IUSE="+qt4 qt5"
 
-DEPEND="
+REQUIRED_USE="|| ( qt4 qt5 )"
+
+RDEPEND="
 	qt5? (
 		dev-qt/qtcore:5
 		dev-qt/qtdbus:5
 	)
-	!qt5? (
+	qt4? (
 		dev-qt/qtcore:4
 		dev-qt/qtdbus:4
 	)
 "
-RDEPEND="${DEPEND}"
+DEPEND="${RDEPEND}
+	qt5? ( dev-qt/linguist-tools:5 )
+"
 
 DOCS=( ChangeLog ReadMe.txt )
 
+pkg_setup() {
+	MULTIBUILD_VARIANTS=()
+	if use qt4; then
+		MULTIBUILD_VARIANTS+=(qt4)
+	fi
+	if use qt5; then
+		MULTIBUILD_VARIANTS+=(qt5)
+	fi
+}
+
 src_configure() {
-	local mycmakeargs=(
-		$(cmake-utils_use_build !qt5 WITH_QT4)
-	)
+	myconfigure() {
+		if [[ ${MULTIBUILD_VARIANT} = qt4 ]]; then
+			local mycmakeargs=(-DBUILD_WITH_QT4=ON)
+		fi
+		if [[ ${MULTIBUILD_VARIANT} = qt5 ]]; then
+			local mycmakeargs=(-DBUILD_WITH_QT4=OFF)
+		fi
+		cmake-utils_src_configure
+	}
+
+	multibuild_foreach_variant myconfigure
+}
+
+src_compile() {
+	multibuild_foreach_variant cmake-utils_src_compile
+}
+
+src_install() {
+	multibuild_foreach_variant cmake-utils_src_install
+}
 
-	cmake-utils_src_configure
+src_test() {
+	multibuild_foreach_variant cmake-utils_src_test
 }


             reply	other threads:[~2014-04-17 19:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-17 19:59 Johannes Huber [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-05-23 20:04 [gentoo-commits] dev/johu:master commit in: dev-libs/qtkeychain/ Johannes Huber
2016-04-11 17:00 Johannes Huber
2016-03-13 11:33 Johannes Huber
2015-05-29 20:19 Johannes Huber
2014-03-15 14:12 Johannes Huber

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=1397757562.35452a2020f4baf53dda5fcde222dc8a8bce7cc6.johu@gentoo \
    --to=johu@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