summaryrefslogtreecommitdiff
path: root/sysutils/xfce4-battery-plugin
diff options
context:
space:
mode:
authorhira <hira@pkgsrc.org>2007-05-04 10:13:12 +0000
committerhira <hira@pkgsrc.org>2007-05-04 10:13:12 +0000
commitc03b1e7d29f1817141e483be77ae0f9913f33bb0 (patch)
treeeb5b91936dc3b94f2b6d0ec262935927f91cc09d /sysutils/xfce4-battery-plugin
parent760547d4f03048620ec76603bfc53d5dc491cef3 (diff)
downloadpkgsrc-c03b1e7d29f1817141e483be77ae0f9913f33bb0.tar.gz
Fix previous with apm(4). Check battery_state instead of nbattery.
Bump PKGREVISION.
Diffstat (limited to 'sysutils/xfce4-battery-plugin')
-rw-r--r--sysutils/xfce4-battery-plugin/Makefile4
-rw-r--r--sysutils/xfce4-battery-plugin/distinfo4
-rw-r--r--sysutils/xfce4-battery-plugin/patches/patch-aa4
3 files changed, 6 insertions, 6 deletions
diff --git a/sysutils/xfce4-battery-plugin/Makefile b/sysutils/xfce4-battery-plugin/Makefile
index fe63409fa29..3905adc20b9 100644
--- a/sysutils/xfce4-battery-plugin/Makefile
+++ b/sysutils/xfce4-battery-plugin/Makefile
@@ -1,11 +1,11 @@
-# $NetBSD: Makefile,v 1.2 2007/05/01 17:41:59 martti Exp $
+# $NetBSD: Makefile,v 1.3 2007/05/04 10:13:12 hira Exp $
.include "../../meta-pkgs/xfce4/Makefile.common"
XFCE4_VERSION= 0.5.0
DISTNAME= xfce4-battery-plugin-${XFCE4_VERSION}
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= sysutils
MASTER_SITES= http://goodies.xfce.org/releases/xfce4-battery-plugin/
COMMENT= Xfce battey monitor plugin
diff --git a/sysutils/xfce4-battery-plugin/distinfo b/sysutils/xfce4-battery-plugin/distinfo
index 7614b4a1fd0..ef55688f9db 100644
--- a/sysutils/xfce4-battery-plugin/distinfo
+++ b/sysutils/xfce4-battery-plugin/distinfo
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.2 2007/05/01 17:42:00 martti Exp $
+$NetBSD: distinfo,v 1.3 2007/05/04 10:13:12 hira Exp $
SHA1 (xfce4-battery-plugin-0.5.0.tar.bz2) = 63439d32bfe8411458d41c38824cb393bc31d6e0
RMD160 (xfce4-battery-plugin-0.5.0.tar.bz2) = bbf64994c7686b11b6a51bd7728569cd2a5d9777
Size (xfce4-battery-plugin-0.5.0.tar.bz2) = 222269 bytes
-SHA1 (patch-aa) = 59c9bda919abd16c25da75ea4d9946fd7bb18514
+SHA1 (patch-aa) = 0b65b74f40079416167b6d85abc76006f2f2eced
diff --git a/sysutils/xfce4-battery-plugin/patches/patch-aa b/sysutils/xfce4-battery-plugin/patches/patch-aa
index 8d66f1b2b74..a1a671c42df 100644
--- a/sysutils/xfce4-battery-plugin/patches/patch-aa
+++ b/sysutils/xfce4-battery-plugin/patches/patch-aa
@@ -1,4 +1,4 @@
-$NetBSD: patch-aa,v 1.2 2007/05/01 17:42:00 martti Exp $
+$NetBSD: patch-aa,v 1.3 2007/05/04 10:13:12 hira Exp $
--- panel-plugin/battery.c.orig 2007-01-18 02:56:51.000000000 +0900
+++ panel-plugin/battery.c 2007-05-01 01:32:49.000000000 +0900
@@ -42,7 +42,7 @@ $NetBSD: patch-aa,v 1.2 2007/05/01 17:42:00 martti Exp $
if(battmon->options.display_percentage && !(battmon->options.hide_when_full && acline && charge >= 99)){
gtk_widget_show((GtkWidget *)battmon->charge);
+#if defined(__NetBSD__) || defined(__OpenBSD__)
-+ if (apm.nbattery == 0)
++ if (apm.battery_state == APM_BATT_ABSENT)
+ g_snprintf(buffer, sizeof(buffer),"--%% ");
+ else
+#endif