diff options
author | Wulf Krueger <philantrop@gentoo.org> | 2007-08-17 07:59:42 +0000 |
---|---|---|
committer | Wulf Krueger <philantrop@gentoo.org> | 2007-08-17 07:59:42 +0000 |
commit | 9abdc5e9b88958b9161f5455d576926e6326ec15 (patch) | |
tree | 29ca5ccd32de6fbd78b106f7c720514f68b8a011 /kde-base/klaptopdaemon | |
parent | Cope with changes occured in smsd source (#189181). (diff) | |
download | gentoo-2-9abdc5e9b88958b9161f5455d576926e6326ec15.tar.gz gentoo-2-9abdc5e9b88958b9161f5455d576926e6326ec15.tar.bz2 gentoo-2-9abdc5e9b88958b9161f5455d576926e6326ec15.zip |
Added patch to enable hibernating with newer kernels as provided by Sergey Temerkhanov (thanks, Sergey!) on bug 188760.
(Portage version: 2.1.3.5)
Diffstat (limited to 'kde-base/klaptopdaemon')
4 files changed, 91 insertions, 1 deletions
diff --git a/kde-base/klaptopdaemon/ChangeLog b/kde-base/klaptopdaemon/ChangeLog index c9999ba58d31..fd3c21e40376 100644 --- a/kde-base/klaptopdaemon/ChangeLog +++ b/kde-base/klaptopdaemon/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for kde-base/klaptopdaemon # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/kde-base/klaptopdaemon/ChangeLog,v 1.86 2007/08/11 15:15:07 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/kde-base/klaptopdaemon/ChangeLog,v 1.87 2007/08/17 07:59:42 philantrop Exp $ + +*klaptopdaemon-3.5.7-r1 (16 Aug 2007) + + 16 Aug 2007; Wulf C. Krueger <philantrop@gentoo.org> + +files/klaptopdaemon-3.5.7-has_acpi_sleep.patch, + +klaptopdaemon-3.5.7-r1.ebuild: + Added patch to enable hibernating with newer kernels as provided by Sergey + Temerkhanov (thanks, Sergey!) on bug 188760. 11 Aug 2007; Raúl Porcel <armin76@gentoo.org> klaptopdaemon-3.5.7.ebuild: x86 stable wrt #185823 diff --git a/kde-base/klaptopdaemon/files/digest-klaptopdaemon-3.5.7-r1 b/kde-base/klaptopdaemon/files/digest-klaptopdaemon-3.5.7-r1 new file mode 100644 index 000000000000..58ea39070808 --- /dev/null +++ b/kde-base/klaptopdaemon/files/digest-klaptopdaemon-3.5.7-r1 @@ -0,0 +1,6 @@ +MD5 4a5500af2f0170c9f74501093d5393ad kdeutils-3.5-patchset-02.tar.bz2 3019 +RMD160 b4598488995ed7dc7a86349cd68da426e2238773 kdeutils-3.5-patchset-02.tar.bz2 3019 +SHA256 54ddfbec990e3bff3139abf42755be24a450a8969eb77d41a5b0da4dc72580d6 kdeutils-3.5-patchset-02.tar.bz2 3019 +MD5 5f167f53bdbf0b8c71c2d0f0ff7593fd kdeutils-3.5.7.tar.bz2 3068596 +RMD160 0382278d69e71ff77178902f06126bda0f771ee8 kdeutils-3.5.7.tar.bz2 3068596 +SHA256 e72de75dd40e1422e4da5957acafc06278418f60850aea21524d857abb97adf8 kdeutils-3.5.7.tar.bz2 3068596 diff --git a/kde-base/klaptopdaemon/files/klaptopdaemon-3.5.7-has_acpi_sleep.patch b/kde-base/klaptopdaemon/files/klaptopdaemon-3.5.7-has_acpi_sleep.patch new file mode 100644 index 000000000000..33b8a448a14f --- /dev/null +++ b/kde-base/klaptopdaemon/files/klaptopdaemon-3.5.7-has_acpi_sleep.patch @@ -0,0 +1,43 @@ +--- ./klaptopdaemon/portable.cpp.old 2007-05-14 11:40:45.000000000 +0400 ++++ ./klaptopdaemon/portable.cpp 2007-08-14 01:52:30.775790879 +0400 +@@ -690,15 +690,16 @@ has_acpi_sleep(int state) + mask = 0; + + QFile p("/sys/power/state"); +- QFile f("/proc/acpi/sleep"); + + if (p.open(IO_ReadOnly)) { ++ QTextStream stream(&p); + QString l; +- p.readLine(l,500); ++ l = stream.readLine(); ++ + QStringList ll = QStringList::split(' ',l,false); + for (QValueListIterator<QString> i = ll.begin(); i!=ll.end(); i++) { + QString s = *i; +- ++ + if (s.compare("standby")==0) + mask |= (1<<1); + else if (s.compare("mem")==0) +@@ -708,20 +709,6 @@ has_acpi_sleep(int state) + } + p.close(); + } +- else if (f.open(IO_ReadOnly)) { +- QString l; +- f.readLine(l, 500); +- QStringList ll = QStringList::split(' ',l,false); +- for (QValueListIterator<QString> i = ll.begin(); i!=ll.end(); i++) { +- QString s = *i; +- if (s[0] == 'S') { +- int c = s[1].digitValue(); +- if (c >= 0 && c <= 9) +- mask |= 1<<c; +- } +- } +- f.close(); +- } + } + return((mask&acpi_sleep_enabled&(1<<state)) != 0); + } diff --git a/kde-base/klaptopdaemon/klaptopdaemon-3.5.7-r1.ebuild b/kde-base/klaptopdaemon/klaptopdaemon-3.5.7-r1.ebuild new file mode 100644 index 000000000000..69f1b54cf169 --- /dev/null +++ b/kde-base/klaptopdaemon/klaptopdaemon-3.5.7-r1.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/kde-base/klaptopdaemon/klaptopdaemon-3.5.7-r1.ebuild,v 1.1 2007/08/17 07:59:42 philantrop Exp $ + +KMNAME=kdeutils +MAXKDEVER=$PV +KM_DEPRANGE="$PV $MAXKDEVER" +inherit kde-meta eutils + +SRC_URI="${SRC_URI} + mirror://gentoo/kdeutils-3.5-patchset-02.tar.bz2" + +DESCRIPTION="KLaptopdaemon - KDE battery monitoring and management for laptops." +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" +IUSE="kdehiddenvisibility xscreensaver" + +RDEPEND="x11-libs/libXtst" + +DEPEND="${RDEPEND} + xscreensaver? ( x11-libs/libXScrnSaver ) + x11-libs/libX11 + x11-proto/xproto + virtual/os-headers" + +PATCHES="${FILESDIR}/${P}-libXss-linking.patch + ${FILESDIR}/${P}-has_acpi_sleep.patch" +EPATCH_EXCLUDE="klaptopdaemon-3.5-suspend2+xsession-errors.diff" + +src_compile() { + myconf="${myconf} $(use_with xscreensaver)" + + kde_src_compile +} |