pkgsrc-Changes archive

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

CVS commit: pkgsrc/x11/lemonbar-xft



Module Name:    pkgsrc
Committed By:   pin
Date:           Mon Jul  4 19:56:05 UTC 2022

Added Files:
        pkgsrc/x11/lemonbar-xft: DESCR Makefile PLIST distinfo
        pkgsrc/x11/lemonbar-xft/patches: patch-lemonbar.c

Log Message:
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/


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/x11/lemonbar-xft/DESCR \
    pkgsrc/x11/lemonbar-xft/Makefile pkgsrc/x11/lemonbar-xft/PLIST \
    pkgsrc/x11/lemonbar-xft/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/x11/lemonbar-xft/patches/patch-lemonbar.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/x11/lemonbar-xft/DESCR
diff -u /dev/null pkgsrc/x11/lemonbar-xft/DESCR:1.1
--- /dev/null   Mon Jul  4 19:56:05 2022
+++ pkgsrc/x11/lemonbar-xft/DESCR       Mon Jul  4 19:56:05 2022
@@ -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/
Index: pkgsrc/x11/lemonbar-xft/Makefile
diff -u /dev/null pkgsrc/x11/lemonbar-xft/Makefile:1.1
--- /dev/null   Mon Jul  4 19:56:05 2022
+++ pkgsrc/x11/lemonbar-xft/Makefile    Mon Jul  4 19:56:05 2022
@@ -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"
Index: pkgsrc/x11/lemonbar-xft/PLIST
diff -u /dev/null pkgsrc/x11/lemonbar-xft/PLIST:1.1
--- /dev/null   Mon Jul  4 19:56:05 2022
+++ pkgsrc/x11/lemonbar-xft/PLIST       Mon Jul  4 19:56:05 2022
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2022/07/04 19:56:05 pin Exp $
+bin/lemonbar
+man/man1/lemonbar.1
Index: pkgsrc/x11/lemonbar-xft/distinfo
diff -u /dev/null pkgsrc/x11/lemonbar-xft/distinfo:1.1
--- /dev/null   Mon Jul  4 19:56:05 2022
+++ pkgsrc/x11/lemonbar-xft/distinfo    Mon Jul  4 19:56:05 2022
@@ -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

Index: pkgsrc/x11/lemonbar-xft/patches/patch-lemonbar.c
diff -u /dev/null pkgsrc/x11/lemonbar-xft/patches/patch-lemonbar.c:1.1
--- /dev/null   Mon Jul  4 19:56:05 2022
+++ pkgsrc/x11/lemonbar-xft/patches/patch-lemonbar.c    Mon Jul  4 19:56:05 2022
@@ -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