1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

- Update xfce4-battery-plugin to 1.1.2

- Add USES=gnome
- Reorder lines to silence portlint warning

PR:		234923
Submitted by:	Olivier Duchateau <duchateau.olivier@gmail.com>
This commit is contained in:
Guido Falsi 2019-01-14 14:12:47 +00:00
parent 2e3378cde0
commit 59d02da154
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=490257
3 changed files with 48 additions and 8 deletions

View File

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= xfce4-battery-plugin
PORTVERSION= 1.1.1
PORTVERSION= 1.1.2
CATEGORIES= sysutils xfce
MASTER_SITES= XFCE/src/panel-plugins/${PORTNAME}/${PORTVERSION:R}
DIST_SUBDIR= xfce4
@ -14,13 +14,15 @@ LICENSE= GPLv2
ONLY_FOR_ARCHS= amd64 i386
SSP_UNSAFE= yes
USES= alias gettext-tools gmake libtool pkgconfig tar:bzip2 xfce:gtk3
GNU_CONFIGURE= yes
USES= alias gettext-tools gmake gnome libtool pkgconfig \
tar:bzip2 xfce:gtk3
USE_GNOME= gtk30 glib20 intltool cairo
USE_XFCE= panel
INSTALLS_ICONS= yes
USE_LDCONFIG= yes
SSP_UNSAFE= yes
GNU_CONFIGURE= yes
INSTALLS_ICONS= yes
INSTALL_TARGET= install-strip
OPTIONS_DEFINE= NLS

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1537694606
SHA256 (xfce4/xfce4-battery-plugin-1.1.1.tar.bz2) = 1e94969b93e0c1d6da87364b64c0cdfb40bae5e4a055039be8b67b9e5b3dd44b
SIZE (xfce4/xfce4-battery-plugin-1.1.1.tar.bz2) = 465880
TIMESTAMP = 1547414549
SHA256 (xfce4/xfce4-battery-plugin-1.1.2.tar.bz2) = d601349fa9a979dae99ace39b24d99b97f62b80f42ac5dea5a99e5af3e88d7db
SIZE (xfce4/xfce4-battery-plugin-1.1.2.tar.bz2) = 464077

View File

@ -0,0 +1,38 @@
--- panel-plugin/libacpi.c.orig 2018-12-31 22:14:28 UTC
+++ panel-plugin/libacpi.c
@@ -100,7 +100,7 @@ oidfmt(int *oid, int len, char *fmt, u_int *kind)
j = sizeof(buf);
i = sysctl(qoid, len + 2, buf, &j, 0, 0);
if (i)
- err(1, "sysctl fmt %d %d %d", i, j, errno);
+ err(1, "sysctl fmt %d %zu %d", i, j, errno);
if (kind)
*kind = *(u_int *)buf;
@@ -129,7 +129,7 @@ get_var(int *oid, int nlen)
j = sizeof(name);
i = sysctl(qoid, nlen + 2, name, &j, 0, 0);
if (i || !j)
- err(1, "sysctl name %d %d %d", i, j, errno);
+ err(1, "sysctl name %d %zu %d", i, j, errno);
sep = "=";
@@ -145,7 +145,7 @@ get_var(int *oid, int nlen)
return (1);
val[len] = '\0';
- fmt = buf;
+ fmt = (char *)buf;
oidfmt(oid, nlen, fmt, &kind);
p = val;
switch (*fmt) {
@@ -170,7 +170,7 @@ get_var(int *oid, int nlen)
return (retval);
default:
printf("%s%s", name, sep);
- printf("Format:%s Length:%d Dump:0x", fmt, len);
+ printf("Format:%s Length:%zu Dump:0x", fmt, len);
while (len-- && (p < val + 16))
printf("%02x", *p++);
if (len > 16)