diff options
author | 2008-09-08 16:20:34 +0000 | |
---|---|---|
committer | 2008-09-08 16:20:34 +0000 | |
commit | 24ef1d22409131af9fe0dede1f2215d8e68d1331 (patch) | |
tree | 138bd0fe7d21293ea04956a3964f1df75447ed56 /xfce-extra | |
parent | Use provided icons instead of our own, bug #236970 (diff) | |
download | gentoo-2-24ef1d22409131af9fe0dede1f2215d8e68d1331.tar.gz gentoo-2-24ef1d22409131af9fe0dede1f2215d8e68d1331.tar.bz2 gentoo-2-24ef1d22409131af9fe0dede1f2215d8e68d1331.zip |
Version bump
(Portage version: 2.2_rc8/cvs/Linux 2.6.26-gentoo-r1 x86_64)
Diffstat (limited to 'xfce-extra')
-rw-r--r-- | xfce-extra/xfce4-battery/ChangeLog | 8 | ||||
-rw-r--r-- | xfce-extra/xfce4-battery/files/xfce4-battery-0.5.1-freebsd.patch | 31 | ||||
-rw-r--r-- | xfce-extra/xfce4-battery/xfce4-battery-0.5.1.ebuild | 27 |
3 files changed, 65 insertions, 1 deletions
diff --git a/xfce-extra/xfce4-battery/ChangeLog b/xfce-extra/xfce4-battery/ChangeLog index 496624c884f2..8e511a04af60 100644 --- a/xfce-extra/xfce4-battery/ChangeLog +++ b/xfce-extra/xfce4-battery/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for xfce-extra/xfce4-battery # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/xfce-extra/xfce4-battery/ChangeLog,v 1.65 2008/08/24 13:40:39 corsair Exp $ +# $Header: /var/cvsroot/gentoo-x86/xfce-extra/xfce4-battery/ChangeLog,v 1.66 2008/09/08 16:20:33 angelos Exp $ + +*xfce4-battery-0.5.1 (08 Sep 2008) + + 08 Sep 2008; Christoph Mende <angelos@gentoo.org> + +files/xfce4-battery-0.5.1-freebsd.patch, +xfce4-battery-0.5.1.ebuild: + Version bump 24 Aug 2008; Markus Rothe <corsair@gentoo.org> xfce4-battery-0.5.0-r2.ebuild, xfce4-battery-0.5.0-r3.ebuild: diff --git a/xfce-extra/xfce4-battery/files/xfce4-battery-0.5.1-freebsd.patch b/xfce-extra/xfce4-battery/files/xfce4-battery-0.5.1-freebsd.patch new file mode 100644 index 000000000000..1d929c9b7f3d --- /dev/null +++ b/xfce-extra/xfce4-battery/files/xfce4-battery-0.5.1-freebsd.patch @@ -0,0 +1,31 @@ +--- panel-plugin/battery.c.orig 2008-09-04 22:53:40.000000000 +0200 ++++ panel-plugin/battery.c 2008-09-08 18:12:12.000000000 +0200 +@@ -382,6 +382,7 @@ + rate = last_rate; + } + ++#ifdef __linux__ + charge = (((float)ccapacity)/((float)lcapacity))*100; + + if ( last_acline ) +@@ -394,6 +395,20 @@ + + last_acline = acline; + ++#elif __FreeBSD__ ++ charge = acpistate->percentage; ++ ++ if ( last_acline ) ++ time_remaining = acpistate->rtime; ++ else ++ time_remaining = acpistate->rtime; ++ ++ if ( time_remaining < 0 ) ++ time_remaining = 0; ++ ++ last_acline = acline; ++#endif ++ + } + #ifdef __linux__ + else { diff --git a/xfce-extra/xfce4-battery/xfce4-battery-0.5.1.ebuild b/xfce-extra/xfce4-battery/xfce4-battery-0.5.1.ebuild new file mode 100644 index 000000000000..1a62a5df1797 --- /dev/null +++ b/xfce-extra/xfce4-battery/xfce4-battery-0.5.1.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/xfce-extra/xfce4-battery/xfce4-battery-0.5.1.ebuild,v 1.1 2008/09/08 16:20:33 angelos Exp $ + +inherit autotools eutils xfce44 + +xfce44 + +DESCRIPTION="Battery status panel plugin" +KEYWORDS="~amd64 ~arm ~ppc ~x86 ~x86-fbsd" +IUSE="debug" + +DEPEND="dev-util/pkgconfig + dev-util/intltool" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-freebsd.patch \ + "${FILESDIR}"/${PN}-0.5.0-libacpi.patch \ + "${FILESDIR}"/${PN}-0.5.0-2.6.24-headers.patch \ + "${FILESDIR}"/${PN}-0.5.0-sysfs.patch +} + +DOCS="AUTHORS ChangeLog NEWS README" + +xfce44_goodies_panel_plugin |