diff options
author | madpilot <madpilot@FreeBSD.org> | 2019-01-14 22:12:47 +0800 |
---|---|---|
committer | madpilot <madpilot@FreeBSD.org> | 2019-01-14 22:12:47 +0800 |
commit | 5f2e888e2537d4ba0b61d5eb397a0c25940cab2b (patch) | |
tree | 3e7168f6f436d34b165cf619777fbf0cd0fe47d1 /sysutils | |
parent | 6d2e3e0bae5cac6e38048320c1c5b2665cded09e (diff) | |
download | freebsd-ports-gnome-5f2e888e2537d4ba0b61d5eb397a0c25940cab2b.tar.gz freebsd-ports-gnome-5f2e888e2537d4ba0b61d5eb397a0c25940cab2b.tar.zst freebsd-ports-gnome-5f2e888e2537d4ba0b61d5eb397a0c25940cab2b.zip |
- 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>
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/xfce4-battery-plugin/Makefile | 12 | ||||
-rw-r--r-- | sysutils/xfce4-battery-plugin/distinfo | 6 | ||||
-rw-r--r-- | sysutils/xfce4-battery-plugin/files/patch-panel-plugin_libacpi.c | 38 |
3 files changed, 48 insertions, 8 deletions
diff --git a/sysutils/xfce4-battery-plugin/Makefile b/sysutils/xfce4-battery-plugin/Makefile index 3e976feb414c..3986b17d3c64 100644 --- a/sysutils/xfce4-battery-plugin/Makefile +++ b/sysutils/xfce4-battery-plugin/Makefile @@ -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 diff --git a/sysutils/xfce4-battery-plugin/distinfo b/sysutils/xfce4-battery-plugin/distinfo index bcc5748d087c..c07b2dcacb1a 100644 --- a/sysutils/xfce4-battery-plugin/distinfo +++ b/sysutils/xfce4-battery-plugin/distinfo @@ -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 diff --git a/sysutils/xfce4-battery-plugin/files/patch-panel-plugin_libacpi.c b/sysutils/xfce4-battery-plugin/files/patch-panel-plugin_libacpi.c new file mode 100644 index 000000000000..d14d1feeb565 --- /dev/null +++ b/sysutils/xfce4-battery-plugin/files/patch-panel-plugin_libacpi.c @@ -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) |