diff options
author | pin <pin@pkgsrc.org> | 2022-07-04 19:56:05 +0000 |
---|---|---|
committer | pin <pin@pkgsrc.org> | 2022-07-04 19:56:05 +0000 |
commit | 8fd2d86a44e55c9470d440c041eb5c67bb4d2d4b (patch) | |
tree | d589d29c55fabe9c5995888775fc9214c4b59dc9 /x11 | |
parent | fa9debb9be69cf168784d268acc710302418ea7a (diff) | |
download | pkgsrc-8fd2d86a44e55c9470d440c041eb5c67bb4d2d4b.tar.gz |
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 (limited to 'x11')
-rw-r--r-- | x11/lemonbar-xft/DESCR | 2 | ||||
-rw-r--r-- | x11/lemonbar-xft/Makefile | 31 | ||||
-rw-r--r-- | x11/lemonbar-xft/PLIST | 3 | ||||
-rw-r--r-- | x11/lemonbar-xft/distinfo | 6 | ||||
-rw-r--r-- | x11/lemonbar-xft/patches/patch-lemonbar.c | 51 |
5 files changed, 93 insertions, 0 deletions
diff --git a/x11/lemonbar-xft/DESCR b/x11/lemonbar-xft/DESCR new file mode 100644 index 00000000000..5f8a6cf936c --- /dev/null +++ b/x11/lemonbar-xft/DESCR @@ -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 --git a/x11/lemonbar-xft/Makefile b/x11/lemonbar-xft/Makefile new file mode 100644 index 00000000000..7e17eed21c8 --- /dev/null +++ b/x11/lemonbar-xft/Makefile @@ -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 +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 --git a/x11/lemonbar-xft/PLIST b/x11/lemonbar-xft/PLIST new file mode 100644 index 00000000000..38ccf34e814 --- /dev/null +++ b/x11/lemonbar-xft/PLIST @@ -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 --git a/x11/lemonbar-xft/distinfo b/x11/lemonbar-xft/distinfo new file mode 100644 index 00000000000..58bccbcad93 --- /dev/null +++ b/x11/lemonbar-xft/distinfo @@ -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 --git a/x11/lemonbar-xft/patches/patch-lemonbar.c b/x11/lemonbar-xft/patches/patch-lemonbar.c new file mode 100644 index 00000000000..e63a7825709 --- /dev/null +++ b/x11/lemonbar-xft/patches/patch-lemonbar.c @@ -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; + } |