public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michael Palimaka" <kensington@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/kde:master commit in: kde-base/breeze/
Date: Tue, 23 Sep 2014 16:32:26 +0000 (UTC)	[thread overview]
Message-ID: <1411489927.fbebe0280aba0f1df4e746641e9b84b4f710d4e0.kensington@gentoo> (raw)

commit:     fbebe0280aba0f1df4e746641e9b84b4f710d4e0
Author:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Tue Sep 23 16:32:07 2014 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Tue Sep 23 16:32:07 2014 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=fbebe028

[kde-base/breeze] Add KDE 4 support.

Package-Manager: portage-2.2.10

---
 kde-base/breeze/breeze-9999.ebuild | 37 +++++++++++++++++++++++++++++++++++--
 kde-base/breeze/metadata.xml       |  3 +++
 2 files changed, 38 insertions(+), 2 deletions(-)

diff --git a/kde-base/breeze/breeze-9999.ebuild b/kde-base/breeze/breeze-9999.ebuild
index caaf47e..6df3d77 100644
--- a/kde-base/breeze/breeze-9999.ebuild
+++ b/kde-base/breeze/breeze-9999.ebuild
@@ -4,12 +4,12 @@
 
 EAPI=5
 
-inherit kde5
+inherit kde5 multibuild
 
 DESCRIPTION="Breeze visual style for the Plasma desktop"
 HOMEPAGE="https://projects.kde.org/projects/kde/workspace/breeze"
 KEYWORDS=""
-IUSE=""
+IUSE="kde4"
 
 DEPEND="
 	$(add_frameworks_dep frameworkintegration)
@@ -25,8 +25,41 @@ DEPEND="
 	dev-qt/qtwidgets:5
 	dev-qt/qtx11extras:5
 	x11-libs/libxcb
+	kde4? (
+		kde-base/kdelibs:4
+		x11-libs/libX11
+	)
 "
 RDEPEND="
 	${DEPEND}
 	dev-qt/qtgraphicaleffects:5
 "
+
+pkg_setup() {
+	kde5_pkg_setup
+
+	MULTIBUILD_VARIANTS=( kf5 )
+	use kde4 && MULTIBUILD_VARIANTS+=( kde4 )
+}
+
+src_configure() {
+	myconfigure() {
+		local mycmakeargs=()
+
+		if [[ ${MULTIBUILD_VARIANT} = kde4 ]] ; then
+			mycmakeargs+=( -DUSE_KDE4=true )
+		fi
+
+		kde5_src_configure
+	}
+
+	multibuild_foreach_variant myconfigure
+}
+
+src_compile() {
+	multibuild_foreach_variant kde5_src_compile
+}
+
+src_install() {
+	multibuild_foreach_variant kde5_src_install
+}

diff --git a/kde-base/breeze/metadata.xml b/kde-base/breeze/metadata.xml
index a23f444..603058a 100644
--- a/kde-base/breeze/metadata.xml
+++ b/kde-base/breeze/metadata.xml
@@ -2,4 +2,7 @@
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
 	<herd>kde</herd>
+	<use>
+		<flag name="kde4">Build the Breeze style for KDE 4</flag>
+	</use>
 </pkgmetadata>


             reply	other threads:[~2014-09-23 16:32 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-23 16:32 Michael Palimaka [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-12-02 19:08 [gentoo-commits] proj/kde:master commit in: kde-base/breeze/ Manuel Rüger
2014-08-24  8:26 Michael Palimaka
2014-08-24  8:18 Michael Palimaka
2014-06-16 12:10 Michael Palimaka
2014-06-02  9:35 Michael Palimaka
2014-05-01 15:07 Michael Palimaka

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=1411489927.fbebe0280aba0f1df4e746641e9b84b4f710d4e0.kensington@gentoo \
    --to=kensington@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