From owner-dev-commits-ports-main@freebsd.org Sun Aug 8 12:18:12 2021 Return-Path: Delivered-To: dev-commits-ports-main@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A1A13655B2B; Sun, 8 Aug 2021 12:18:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GjJC842pFz4X4f; Sun, 8 Aug 2021 12:18:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 6EB33146B2; Sun, 8 Aug 2021 12:18:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 178CIC90007174; Sun, 8 Aug 2021 12:18:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 178CICiZ007173; Sun, 8 Aug 2021 12:18:12 GMT (envelope-from git) Date: Sun, 8 Aug 2021 12:18:12 GMT Message-Id: <202108081218.178CICiZ007173@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Neel Chauhan Subject: git: 273084ac8bef - main - x11/dwmblocks: Modular status bar for dwm MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: nc X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 273084ac8bef3aa7b9e6f57a3ed473b17b3a1acf Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-main@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commits to the main branch of the FreeBSD ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Aug 2021 12:18:12 -0000 The branch main has been updated by nc: URL: https://cgit.FreeBSD.org/ports/commit/?id=273084ac8bef3aa7b9e6f57a3ed473b17b3a1acf commit 273084ac8bef3aa7b9e6f57a3ed473b17b3a1acf Author: Neel Chauhan AuthorDate: 2021-08-08 12:17:06 +0000 Commit: Neel Chauhan CommitDate: 2021-08-08 12:18:02 +0000 x11/dwmblocks: Modular status bar for dwm PR: 257680 Submitted by: echo@lethedata.com --- x11/Makefile | 1 + x11/dwmblocks/Makefile | 45 ++++++++++++++++++++++++++++++++++ x11/dwmblocks/distinfo | 3 +++ x11/dwmblocks/files/patch-blocks.def.h | 15 ++++++++++++ x11/dwmblocks/pkg-descr | 6 +++++ 5 files changed, 70 insertions(+) diff --git a/x11/Makefile b/x11/Makefile index 880559ceb7c6..4f247e0f23a8 100644 --- a/x11/Makefile +++ b/x11/Makefile @@ -52,6 +52,7 @@ SUBDIR += docker-tray SUBDIR += dsbautostart SUBDIR += dsbxinput + SUBDIR += dwmblocks SUBDIR += dxpc SUBDIR += dzen2 SUBDIR += eaglemode diff --git a/x11/dwmblocks/Makefile b/x11/dwmblocks/Makefile new file mode 100644 index 000000000000..2612011839da --- /dev/null +++ b/x11/dwmblocks/Makefile @@ -0,0 +1,45 @@ +# x11/dwmblocks + +PORTNAME= dwmblocks +DISTVERSION= g20201227 +CATEGORIES= x11 + +MAINTAINER= echo@lethedata.com +COMMENT= Modular status bar for dwm + +LICENSE= ISCL +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libX11.so:x11/libX11 + +USES= xorg + +USE_GITHUB= yes +GH_ACCOUNT= torrinfail +GH_TAGNAME= 96cbb45 + +USE_XORG= x11 + +PLIST_FILES= bin/dwmblocks + +pre-everything:: + @${ECHO_MSG} "You can build st with your own blocks.h using the BLK_CONF knob:" + @${ECHO_MSG} "make BLK_CONF=/path/to/st/blocks.h install clean" + @${ECHO_MSG} "Signal = 65 + Update Signal number" + +.if defined(BLK_CONF) +post-extract: + @${ECHO_MSG} "creating symlink blocks.h from ${BLK_CONF}" + @${LN} -sf ${BLK_CONF} ${WRKSRC}/blocks.h +.endif + +post-patch: + @${REINPLACE_CMD} -E \ + -e "s|(LDFLAGS[[:space:]]*)= |\1= -L/usr/local/lib -I/usr/local/include |" \ + -e "s|output|all|" \ + ${WRKSRC}/Makefile + +post-install: + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/dwmblocks + +.include diff --git a/x11/dwmblocks/distinfo b/x11/dwmblocks/distinfo new file mode 100644 index 000000000000..e8e47ffa9aad --- /dev/null +++ b/x11/dwmblocks/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1626356949 +SHA256 (torrinfail-dwmblocks-g20201227-96cbb45_GH0.tar.gz) = 48271ddb6a4fb0e40cb2f855923c3138e56179b4eec13c5181dfad884681137b +SIZE (torrinfail-dwmblocks-g20201227-96cbb45_GH0.tar.gz) = 3626 diff --git a/x11/dwmblocks/files/patch-blocks.def.h b/x11/dwmblocks/files/patch-blocks.def.h new file mode 100644 index 000000000000..9dfc15e5ecdd --- /dev/null +++ b/x11/dwmblocks/files/patch-blocks.def.h @@ -0,0 +1,15 @@ +--- blocks.def.h.orig 2020-12-27 20:43:03 UTC ++++ blocks.def.h +@@ -1,9 +1,8 @@ + //Modify this file to change what commands output to your statusbar, and recompile using the make command. + static const Block blocks[] = { +- /*Icon*/ /*Command*/ /*Update Interval*/ /*Update Signal*/ +- {"Mem:", "free -h | awk '/^Mem/ { print $3\"/\"$2 }' | sed s/i//g", 30, 0}, +- +- {"", "date '+%b %d (%a) %I:%M%p'", 5, 0}, ++ /*Icon*/ /*Command*/ /*Update Interval*/ /*Update Signal*/ ++ {"", "uname -n | sed 's/^/ /'", 0, 0}, ++ {"", "date '+%F %R'", 60, 0}, + }; + + //sets delimeter between status commands. NULL character ('\0') means no delimeter. diff --git a/x11/dwmblocks/pkg-descr b/x11/dwmblocks/pkg-descr new file mode 100644 index 000000000000..6da2d7660601 --- /dev/null +++ b/x11/dwmblocks/pkg-descr @@ -0,0 +1,6 @@ +Modular status bar for dwm written in c. + +The statusbar is made from text output from commandline programs. +Blocks are added and removed by editing the blocks.h header file. + +WWW: https://github.com/torrinfail/dwmblocks/