Import twmn 1.2

Twmn is a dmenu style desktop notification system.

Notifications are shown in a one-line bar called the notification slide.
They can be navigated through and activated with shortcuts.

* twmnc: is a command line tool to send notifications to twmnd.
* twmnd: is a daemon listening to notification requests and showing them
one after another. It is also compatible with "notify-send".

Tested on amd64. An example config can be found in the README.md in the
examples dir.

With help from op@ bcallah@

OK op@ bcallah@
This commit is contained in:
sdk 2022-03-13 18:49:52 +00:00
parent 27e12b44bc
commit d280f74abd
5 changed files with 66 additions and 0 deletions

35
x11/twmn/Makefile Normal file
View File

@ -0,0 +1,35 @@
COMMENT = dmenu style notification bar
V = 1.2pl20220125
GH_ACCOUNT = sboli
GH_PROJECT = twmn
GH_COMMIT = 58ca77dde5a007ef0edb7c6e2312310adaf68c7d
DISTNAME = ${GH_PROJECT}-${V}
CATEGORIES = x11
MAINTAINER = Stefan Hagen <sh+ports@codevoid.de>
# LGPLv3
PERMIT_PACKAGE = Yes
MODULES = devel/qmake x11/qt5
WANTLIB += ${COMPILER_LIBCXX} GL c m GL Qt5DBus Qt5Core Qt5Gui
WANTLIB += Qt5Network Qt5Widgets boost_program_options boost_system
LIB_DEPENDS = devel/boost
# qmake generated test target, but twmn doesn't have tests
TEST_TARGET = check
NO_TEST = Yes
EXAMPLEDIR = ${PREFIX}/share/examples/twmn
post-install:
${INSTALL_DATA_DIR} ${EXAMPLEDIR}
${INSTALL_DATA} ${WRKSRC}/README.md ${EXAMPLEDIR}
${INSTALL_DATA} ${WRKSRC}/examples/*.{sh,py} ${EXAMPLEDIR}
.include <bsd.port.mk>

2
x11/twmn/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (twmn-1.2pl20220125-58ca77dd.tar.gz) = WNLEjHKQVRgjINQeG889W0T9NayCyVgh0Mj8tjZvthc=
SIZE (twmn-1.2pl20220125-58ca77dd.tar.gz) = 75171

View File

@ -0,0 +1,12 @@
Index: twmnd/twmnd.pro
--- twmnd/twmnd.pro.orig
+++ twmnd/twmnd.pro
@@ -10,7 +10,7 @@ TARGET = twmnd
TEMPLATE = app
CONFIG += debug
DESTDIR = ../bin/
-QMAKE_CXXFLAGS += -Wall -Werror -pedantic -Wno-long-long
+QMAKE_CXXFLAGS += -Wall -pedantic -Wno-long-long
target.path+=/usr/local/bin
INSTALLS += target

8
x11/twmn/pkg/DESCR Normal file
View File

@ -0,0 +1,8 @@
Twmn is a dmenu style desktop notification system.
Notifications are shown in a one-line bar called the notification slide.
They can be navigated through and activated with shortcuts.
* twmnc: is a command line tool to send notifications to twmnd.
* twmnd: is a daemon listening to notification requests and showing them
one after another. It is also compatible with "notify-send".

9
x11/twmn/pkg/PLIST Normal file
View File

@ -0,0 +1,9 @@
@bin bin/twmnc
@bin bin/twmnd
share/examples/twmn/
share/examples/twmn/README.md
share/examples/twmn/disk_notifier.sh
share/examples/twmn/gmail_notifier.py
share/examples/twmn/mbox_notifier.sh
share/examples/twmn/mpd_notifier.py
share/examples/twmn/storage_notifier.py