summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /kde-misc/nightmode
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'kde-misc/nightmode')
-rw-r--r--kde-misc/nightmode/Manifest1
-rw-r--r--kde-misc/nightmode/files/nightmode-0.3-kde-4.10.patch13
-rw-r--r--kde-misc/nightmode/metadata.xml5
-rw-r--r--kde-misc/nightmode/nightmode-0.3-r1.ebuild24
4 files changed, 43 insertions, 0 deletions
diff --git a/kde-misc/nightmode/Manifest b/kde-misc/nightmode/Manifest
new file mode 100644
index 000000000000..594ec1b1fbf2
--- /dev/null
+++ b/kde-misc/nightmode/Manifest
@@ -0,0 +1 @@
+DIST nightmode_0.3.tar.gz 15190 SHA256 5aea1373041cde344b573794f95a70e2bcb7380e00d1919b6474add2e18d32eb SHA512 61b9673c81a4a4413860366def9d36277e01513f8706699aae2dca6b9219e3f31cc47c071994750dd9d7e16152438a21e59c3d5d0b029f94baa7e09d7d8da21f WHIRLPOOL 82487201e4c601701211b1906a29eb22867c9369b5833f564321a2cc0724a66db09d9930c8a1dcdb72fc398d5edbd5a4ededc914e85358f5eb2b063045e5f28b
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 000000000000..f1f0da20749b
--- /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 000000000000..8d1e86a9cefb
--- /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>
+<herd>kde</herd>
+</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 000000000000..1568cfde7f40
--- /dev/null
+++ b/kde-misc/nightmode/nightmode-0.3-r1.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2014 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="$(add_kdebase_dep kwin)"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}
+
+PATCHES=( "${FILESDIR}/${P}-kde-4.10.patch" )