public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/kde-sunset:master commit in: kde-misc/nightmode/files/, kde-misc/nightmode/
@ 2017-01-17 21:12 Johannes Huber
  0 siblings, 0 replies; only message in thread
From: Johannes Huber @ 2017-01-17 21:12 UTC (permalink / raw
  To: gentoo-commits

commit:     7ca976764c4930cfb55a30e3e79587ccb6f22578
Author:     Johannes Huber <johu <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 17 20:21:07 2017 +0000
Commit:     Johannes Huber <johu <AT> gentoo <DOT> org>
CommitDate: Tue Jan 17 20:21:07 2017 +0000
URL:        https://gitweb.gentoo.org/proj/kde-sunset.git/commit/?id=7ca97676

kde-misc/nightmode: Import latest from gentoo main tree

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 .../nightmode/files/nightmode-0.3-kde-4.10.patch   | 13 ++++++++++++
 kde-misc/nightmode/metadata.xml                    |  5 +++++
 kde-misc/nightmode/nightmode-0.3-r1.ebuild         | 24 ++++++++++++++++++++++
 3 files changed, 42 insertions(+)

diff --git a/kde-misc/nightmode/files/nightmode-0.3-kde-4.10.patch b/kde-misc/nightmode/files/nightmode-0.3-kde-4.10.patch
new file mode 100644
index 0000000..f1f0da2
--- /dev/null
+++ b/kde-misc/nightmode/files/nightmode-0.3-kde-4.10.patch
@@ -0,0 +1,13 @@
+Fixes build error caused by API changes in KDE 4.10
+
+--- nightmode.cpp
++++ nightmode.cpp
+@@ -74,7 +74,7 @@
+ void NightmodeEffect::paintWindow(EffectWindow *w, int mask, QRegion region, WindowPaintData &data )
+ {
+     if (m_active) {
+-        data.brightness *= (m_brightness / 100.0);
++        data.setBrightness(data.brightness() * (m_brightness / 100.0));
+ //         data.saturation *= (m_brightness / 100.0);
+     }
+     effects->paintWindow( w, mask, region, data );

diff --git a/kde-misc/nightmode/metadata.xml b/kde-misc/nightmode/metadata.xml
new file mode 100644
index 0000000..7a38bb9
--- /dev/null
+++ b/kde-misc/nightmode/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<!-- maintainer-needed -->
+</pkgmetadata>

diff --git a/kde-misc/nightmode/nightmode-0.3-r1.ebuild b/kde-misc/nightmode/nightmode-0.3-r1.ebuild
new file mode 100644
index 0000000..e183faf
--- /dev/null
+++ b/kde-misc/nightmode/nightmode-0.3-r1.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+KDE_MINIMAL="4.8"
+inherit kde4-base
+
+DESCRIPTION="kwin plugin that makes the entire screen darker"
+HOMEPAGE="http://kde-apps.org/content/show.php/Nightmode?content=123805"
+SRC_URI="http://static.davidedmundson.co.uk/${PN}_${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="4"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug"
+
+DEPEND="kde-plasma/kwin:4"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}
+
+PATCHES=( "${FILESDIR}/${P}-kde-4.10.patch" )


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-01-17 21:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-17 21:12 [gentoo-commits] proj/kde-sunset:master commit in: kde-misc/nightmode/files/, kde-misc/nightmode/ Johannes Huber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox