aboutsummaryrefslogtreecommitdiff
path: root/sysutils/gnome-power-manager
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2009-11-28 20:06:37 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2009-11-28 20:06:37 +0000
commitf76d32b8e89fed7c0e459c1a7fe7a4b57661b01c (patch)
treead29e6808ff698f84e08dab8e047f0ae72838df9 /sysutils/gnome-power-manager
parent873cae3ab41a109b6f9cf9f4149f101d6d996235 (diff)
downloadports-f76d32b8e89fed7c0e459c1a7fe7a4b57661b01c.tar.gz
ports-f76d32b8e89fed7c0e459c1a7fe7a4b57661b01c.zip
Notes
Diffstat (limited to 'sysutils/gnome-power-manager')
-rw-r--r--sysutils/gnome-power-manager/Makefile4
-rw-r--r--sysutils/gnome-power-manager/files/patch-src_gpm-cell-array.c12
2 files changed, 14 insertions, 2 deletions
diff --git a/sysutils/gnome-power-manager/Makefile b/sysutils/gnome-power-manager/Makefile
index ec4068a88b66..601ea8167393 100644
--- a/sysutils/gnome-power-manager/Makefile
+++ b/sysutils/gnome-power-manager/Makefile
@@ -3,12 +3,12 @@
# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
#
# $FreeBSD$
-# $MCom: ports-stable/sysutils/gnome-power-manager/Makefile,v 1.5 2009/04/19 06:23:37 marcus Exp $
+# $MCom: ports/sysutils/gnome-power-manager/Makefile,v 1.54 2009/10/25 00:02:31 marcus Exp $
#
PORTNAME= gnome-power-manager
PORTVERSION= 2.24.4
-PORTREVISION= 5
+PORTREVISION= 6
CATEGORIES= sysutils gnome
MASTER_SITES= GNOME
DIST_SUBDIR= gnome2
diff --git a/sysutils/gnome-power-manager/files/patch-src_gpm-cell-array.c b/sysutils/gnome-power-manager/files/patch-src_gpm-cell-array.c
new file mode 100644
index 000000000000..ea8e92f03661
--- /dev/null
+++ b/sysutils/gnome-power-manager/files/patch-src_gpm-cell-array.c
@@ -0,0 +1,12 @@
+--- src/gpm-cell-aray.c.orig 2009-10-24 19:59:07.000000000 -0400
++++ src/gpm-cell-array.c 2009-10-24 19:59:50.000000000 -0400
+@@ -355,7 +355,8 @@ gpm_cell_array_update (GpmCellArray *cel
+ * get an with batteries which have a very small charge unit and consequently
+ * a very high charge. Fixes bug #327471 */
+ if (unit->kind == GPM_CELL_UNIT_KIND_PRIMARY &&
+- unit->charge_current > 0 && unit->charge_last_full > 0) {
++ unit->charge_current > 0 && unit->charge_last_full > 0 &&
++ unit->percentage > 1) {
+ gfloat pc = 100.0f * ((gfloat)unit->charge_current /
+ (gfloat)unit->charge_last_full);
+ if (pc < 0.0f) {