pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/lemonbar-xft x11/lemonbar-xft: import package



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8ce222cbffe4
branches:  trunk
changeset: 381328:8ce222cbffe4
user:      pin <pin%pkgsrc.org@localhost>
date:      Mon Jul 04 19:56:05 2022 +0000

description:
x11/lemonbar-xft: import package

Lemonbar fork with Xft support. This fork is a continuation of the archived
fork by https://github.com/krypt-n/bar/

diffstat:

 x11/lemonbar-xft/DESCR                    |   2 +
 x11/lemonbar-xft/Makefile                 |  31 ++++++++++++++++++
 x11/lemonbar-xft/PLIST                    |   3 +
 x11/lemonbar-xft/distinfo                 |   6 +++
 x11/lemonbar-xft/patches/patch-lemonbar.c |  51 +++++++++++++++++++++++++++++++
 5 files changed, 93 insertions(+), 0 deletions(-)

diffs (113 lines):

diff -r 66029e1e4cc0 -r 8ce222cbffe4 x11/lemonbar-xft/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/lemonbar-xft/DESCR    Mon Jul 04 19:56:05 2022 +0000
@@ -0,0 +1,2 @@
+Lemonbar fork with Xft support. This fork is a continuation of the archived
+fork by https://github.com/krypt-n/bar/
diff -r 66029e1e4cc0 -r 8ce222cbffe4 x11/lemonbar-xft/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/lemonbar-xft/Makefile Mon Jul 04 19:56:05 2022 +0000
@@ -0,0 +1,31 @@
+# $NetBSD: Makefile,v 1.1 2022/07/04 19:56:05 pin Exp $
+
+DISTNAME=      lemonbar-xft-1.3
+CATEGORIES=    x11
+MASTER_SITES=  ${MASTER_SITE_GITLAB:=protesilaos/lemonbar-xft/-/archive/0042efd2ec1477ab96eb044ebba72a10aefff21f/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://gitlab.com/protesilaos/lemonbar-xft/
+COMMENT=       Featherweight lemon-scented bar
+LICENSE=       mit
+
+WRKSRC=        ${WRKDIR}/lemonbar-xft-0042efd2ec1477ab96eb044ebba72a10aefff21f
+
+CONFLICTS=     lemonbar-[0-9]*
+
+USE_TOOLS+=    gmake pod2man
+
+BUILD_TARGET=  all doc
+
+CFLAGS.NetBSD+=        -D_NETBSD_SOURCE # memrchr
+
+INSTALLATION_DIRS+=    bin
+INSTALLATION_DIRS+=    ${PKGMANDIR}/man1
+
+do-install:
+       ${INSTALL_PROGRAM} ${WRKSRC}/lemonbar ${DESTDIR}${PREFIX}/bin/
+       ${INSTALL_MAN} ${WRKSRC}/lemonbar.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/
+
+.include "../../x11/libxcb/buildlink3.mk"
+.include "../../x11/libXft/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 66029e1e4cc0 -r 8ce222cbffe4 x11/lemonbar-xft/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/lemonbar-xft/PLIST    Mon Jul 04 19:56:05 2022 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2022/07/04 19:56:05 pin Exp $
+bin/lemonbar
+man/man1/lemonbar.1
diff -r 66029e1e4cc0 -r 8ce222cbffe4 x11/lemonbar-xft/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/lemonbar-xft/distinfo Mon Jul 04 19:56:05 2022 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2022/07/04 19:56:05 pin Exp $
+
+BLAKE2s (lemonbar-xft-1.3.tar.gz) = 709001c325c7873bb22ef05103ff564c8c1cf592c6689bb5a8f5358f85cb7d36
+SHA512 (lemonbar-xft-1.3.tar.gz) = b106a18e1628f29be8bff3964599a52c852dfce4eec4dafde10e25c84580ba533bec20ef0b5151521f33fe26b1c2803f8491a3d315640d9642d9c196a0de1402
+Size (lemonbar-xft-1.3.tar.gz) = 17111 bytes
+SHA1 (patch-lemonbar.c) = 578b2fdd58af3d173b7a7844ee59c15f30a9df80
diff -r 66029e1e4cc0 -r 8ce222cbffe4 x11/lemonbar-xft/patches/patch-lemonbar.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/lemonbar-xft/patches/patch-lemonbar.c Mon Jul 04 19:56:05 2022 +0000
@@ -0,0 +1,51 @@
+$NetBSD: patch-lemonbar.c,v 1.1 2022/07/04 19:56:05 pin Exp $
+
+Adapt pkgsrc lemonbar patch
+
+--- lemonbar.c.orig    2020-12-13 07:41:32.000000000 +0000
++++ lemonbar.c
+@@ -616,7 +616,7 @@ parse (char *text)
+             p++;
+             while (p < block_end) {
+                 int w;
+-                while (isspace(*p))
++                while (isspace((unsigned char)*p))
+                     p++;
+ 
+                 switch (*p++) {
+@@ -638,7 +638,7 @@ parse (char *text)
+                     case 'A':
+                               button = XCB_BUTTON_INDEX_1;
+                               // The range is 1-5
+-                              if (isdigit(*p) && (*p > '0' && *p < '6'))
++                              if (isdigit((unsigned char)*p) && (*p > '0' && *p < '6'))
+                                   button = *p++ - '0';
+                               if (!area_add(p, block_end, &p, cur_mon, pos_x, align, button))
+                                   return;
+@@ -657,7 +657,7 @@ parse (char *text)
+                               { cur_mon = monhead; }
+                               else if (*p == 'l')
+                               { cur_mon = montail ? montail : monhead; }
+-                              else if (isdigit(*p))
++                              else if (isdigit((unsigned char)*p))
+                               { cur_mon = monhead;
+                                 for (int i = 0; i != *p-'0' && cur_mon->next; i++)
+                                     cur_mon = cur_mon->next;
+@@ -689,7 +689,7 @@ parse (char *text)
+                                   font_index = -1;
+                                   p++;
+                                   break;
+-                              } else if (isdigit(*p)) {
++                              } else if (isdigit((unsigned char)*p)) {
+                                   font_index = (int)strtoul(p, &ep, 10);
+                                   // User-specified 'font_index' ∊ (0,font_count]
+                                   // Otherwise just fallback to the automatic font selection
+@@ -1214,7 +1214,7 @@ parse_geometry_string (char *str, int *t
+             p++; continue;
+         }
+         // A digit must follow
+-        if (!isdigit(*p)) {
++        if (!isdigit((unsigned char)*p)) {
+             fprintf(stderr, "Invalid geometry specified\n");
+             return false;
+         }


Home | Main Index | Thread Index | Old Index