From nobody Wed Dec 22 22:12:26 2021 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4B5521900A31; Wed, 22 Dec 2021 22:12:27 +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 4JK6y2730nz4s6t; Wed, 22 Dec 2021 22:12:26 +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 D2D1024F82; Wed, 22 Dec 2021 22:12:26 +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 1BMMCQRa070163; Wed, 22 Dec 2021 22:12:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BMMCQH7070162; Wed, 22 Dec 2021 22:12:26 GMT (envelope-from git) Date: Wed, 22 Dec 2021 22:12:26 GMT Message-Id: <202112222212.1BMMCQH7070162@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Jan Beich Subject: git: 60237d1b38ce - main - x11/wvkbd: add new port List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jbeich X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 60237d1b38ce3d99fa374058993ed3c99b7f36dc Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640211147; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Vz5juBaq1u+kcxY4H4izNk5DGl0fvVMWU6jm4LzqJrA=; b=PA7HZ1YtsBXDFHfl2psCLkPFocL9uyu1G0QZgC5hNI7czL4U38tvS+62YxFrSdXYWkJKWG vQCaHECznRmz8T73H44jJ3w/prwqQFYdG8hDNPEstIITVZzhnhrhQ4ey6sZ/APu95m0Oj8 magTYTaG0a42Anwa2YsAGWaa/025mWEykidDrX28A7XmweUgsvHn7/cbNqph9X08m/bdqi rM3R6y4MnvwcYwVNpceqXtCI3gnxbRNT4bFD1YUEcdhK9hKInVvWXFEizl2jYxC2bxhYb4 jL9eJVttUQApROQgIjGDDF6XatW4uUnt3iv1YzW/Z/K5fvYqZBBoZxlGz/zQ+g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640211147; a=rsa-sha256; cv=none; b=TsCqb1ihVupwo/q/5FWOZjI451I+/EP5az96SRieqMf14JVAFDVg9qPX8n7yR3J4Y8+szV esmX9nouBtJ/LhYiW1FlueyZRWyHl2I+/deim+NFmCcPx1n/uatqDL8QQ0vdmu9Ocy4yRa 1ItSScbro1iemVfXZkGIshfEaz2Bd3BfhELF4amEwxp1WMMNNxsmGRBX/FuReOBmLb4LDy lR8XJ1ZdCVyHnfpiFjSBeoBBxpbAMeE1DLDmU9eTH0Mm7u3Bbs5JOCvBxgH7BKFvtop8aG ZgaVav+3w2biDO7dbHuVtvSdcSs+UGoVW3PeTdjVi2yMBTRrOOd2VOyIeajBcw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jbeich: URL: https://cgit.FreeBSD.org/ports/commit/?id=60237d1b38ce3d99fa374058993ed3c99b7f36dc commit 60237d1b38ce3d99fa374058993ed3c99b7f36dc Author: Jan Beich AuthorDate: 2021-12-01 18:01:43 +0000 Commit: Jan Beich CommitDate: 2021-12-22 22:12:01 +0000 x11/wvkbd: add new port wvkbd project aims to deliver a minimal but practically usable implementation of a wlroots on-screen keyboard in legible C. This will only be a keyboard, not a feedback buzzer, led blinker, or anything that requires more than what's needed to input text quickly. The end product should be a static codebase that can be patched to add new features. Features: - Typing, modifier locking, layout switching - Positive visual feedback on key presses - Custom layouts and underlying keymaps - On-the-fly layout and keymap switching - Custom color schemes - Proper font drawing - Intuitive layouts - International layouts (cyrillic, arabic) - Support for 'Copy' keys which are not on the keymap - Emoji support - Compose key for character variants (e.g. diacritics) - Show/hide keyboard on signals (SIGUSR1 = hide, SIGUSR2 = show) - Automatic portrait/landscape detection and subsequent layout switching https://github.com/jjsullivan5196/wvkbd --- x11/Makefile | 1 + x11/wvkbd/Makefile | 46 ++++++++++++++++++++++++++++++++++++++++++++++ x11/wvkbd/distinfo | 3 +++ x11/wvkbd/pkg-descr | 23 +++++++++++++++++++++++ 4 files changed, 73 insertions(+) diff --git a/x11/Makefile b/x11/Makefile index 6f29ee6c6d58..c9657664076f 100644 --- a/x11/Makefile +++ b/x11/Makefile @@ -404,6 +404,7 @@ SUBDIR += workrave SUBDIR += wshowkeys SUBDIR += wtype + SUBDIR += wvkbd SUBDIR += x-on-resize SUBDIR += x11perf SUBDIR += x3270 diff --git a/x11/wvkbd/Makefile b/x11/wvkbd/Makefile new file mode 100644 index 000000000000..ba431c3751e2 --- /dev/null +++ b/x11/wvkbd/Makefile @@ -0,0 +1,46 @@ +PORTNAME= wvkbd +DISTVERSIONPREFIX= v +DISTVERSION= 0.5 +CATEGORIES= x11 + +MAINTAINER= jbeich@FreeBSD.org +COMMENT= On-screen keyboard for wlroots + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= evdev-proto>0:devel/evdev-proto +LIB_DEPENDS= libepoll-shim.so:devel/libepoll-shim \ + libwayland-client.so:graphics/wayland + +USES= gmake gnome pkgconfig +USE_GITHUB= yes +USE_GNOME= cairo pango +GH_ACCOUNT= jjsullivan5196 +MAKE_ARGS= VERSION="${DISTVERSIONFULL}" +PLIST_FILES= bin/${PORTNAME}-mobintl +LDFLAGS+= -Wl,--as-needed # pango deps + +pre-everything:: + @${ECHO_MSG} "To build ${PORTNAME} with your own config.h set ${PORTNAME:tu}_CONF variable" + @${ECHO_MSG} "either in ${.CURDIR:T}/Makefile.local, make.conf(5), environ(7) or command line e.g.," + @${ECHO_MSG} "\$$ make install clean ${PORTNAME:tu}_CONF=/path/to/${PORTNAME}/config.h" + +post-extract: +# .if exists(...) before bsd.port.mk ignores *_CONF in make.conf(5) and Makefile.local + @if [ -e "${${PORTNAME:tu}_CONF}" ]; then \ + ${ECHO_MSG} "Creating symlink: config.h -> ${${PORTNAME:tu}_CONF}"; \ + ${LN} -fs "${${PORTNAME:tu}_CONF}" ${WRKSRC}/config.h; \ + fi + +post-patch: + @${REINPLACE_CMD} -e '/^PKGS/s/$$/ epoll-shim/' \ + -e 's/ xkbcommon//' \ + -e '/^LDFLAGS/s/=/+=/' \ + ${WRKSRC}/Makefile + @${REINPLACE_CMD} '/^CFLAGS/s/=/+=/' ${WRKSRC}/config.mk + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}* + +.include diff --git a/x11/wvkbd/distinfo b/x11/wvkbd/distinfo new file mode 100644 index 000000000000..e6e492955026 --- /dev/null +++ b/x11/wvkbd/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1638381703 +SHA256 (jjsullivan5196-wvkbd-v0.5_GH0.tar.gz) = b83e2bd3df2ef44f192be4c9cdd53e4053130f661ba070f0761dcce96a4b603e +SIZE (jjsullivan5196-wvkbd-v0.5_GH0.tar.gz) = 1047350 diff --git a/x11/wvkbd/pkg-descr b/x11/wvkbd/pkg-descr new file mode 100644 index 000000000000..98934bf4723a --- /dev/null +++ b/x11/wvkbd/pkg-descr @@ -0,0 +1,23 @@ +wvkbd project aims to deliver a minimal but practically usable +implementation of a wlroots on-screen keyboard in legible C. This will +only be a keyboard, not a feedback buzzer, led blinker, or anything +that requires more than what's needed to input text quickly. The end +product should be a static codebase that can be patched to add new +features. + +Features: +- Typing, modifier locking, layout switching +- Positive visual feedback on key presses +- Custom layouts and underlying keymaps +- On-the-fly layout and keymap switching +- Custom color schemes +- Proper font drawing +- Intuitive layouts +- International layouts (cyrillic, arabic) +- Support for 'Copy' keys which are not on the keymap +- Emoji support +- Compose key for character variants (e.g. diacritics) +- Show/hide keyboard on signals (SIGUSR1 = hide, SIGUSR2 = show) +- Automatic portrait/landscape detection and subsequent layout switching + +WWW: https://github.com/jjsullivan5196/wvkbd