From owner-svn-ports-all@freebsd.org Tue Mar 24 16:42:30 2020 Return-Path: Delivered-To: svn-ports-all@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 789B22619CF; Tue, 24 Mar 2020 16:42:30 +0000 (UTC) (envelope-from 0mp@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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48mxqm2j9mz4fLY; Tue, 24 Mar 2020 16:42:28 +0000 (UTC) (envelope-from 0mp@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 6971B28DB; Tue, 24 Mar 2020 16:40:50 +0000 (UTC) (envelope-from 0mp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 02OGeowU043288; Tue, 24 Mar 2020 16:40:50 GMT (envelope-from 0mp@FreeBSD.org) Received: (from 0mp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 02OGenTd043282; Tue, 24 Mar 2020 16:40:49 GMT (envelope-from 0mp@FreeBSD.org) Message-Id: <202003241640.02OGenTd043282@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: 0mp set sender to 0mp@FreeBSD.org using -f From: Mateusz Piotrowski <0mp@FreeBSD.org> Date: Tue, 24 Mar 2020 16:40:49 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r529051 - in head/x11: . showkeys showkeys/files X-SVN-Group: ports-head X-SVN-Commit-Author: 0mp X-SVN-Commit-Paths: in head/x11: . showkeys showkeys/files X-SVN-Commit-Revision: 529051 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Mar 2020 16:42:30 -0000 Author: 0mp Date: Tue Mar 24 16:40:48 2020 New Revision: 529051 URL: https://svnweb.freebsd.org/changeset/ports/529051 Log: New port: x11/showkeys Showkeys is a simple program to display keys being pressed on the screen. WWW: https://github.com/nibrahim/showkeys Added: head/x11/showkeys/ head/x11/showkeys/Makefile (contents, props changed) head/x11/showkeys/distinfo (contents, props changed) head/x11/showkeys/files/ head/x11/showkeys/files/patch-Makefile (contents, props changed) head/x11/showkeys/files/patch-keystack.c (contents, props changed) head/x11/showkeys/pkg-descr (contents, props changed) Modified: head/x11/Makefile Modified: head/x11/Makefile ============================================================================== --- head/x11/Makefile Tue Mar 24 16:36:25 2020 (r529050) +++ head/x11/Makefile Tue Mar 24 16:40:48 2020 (r529051) @@ -292,6 +292,7 @@ SUBDIR += sessreg SUBDIR += setlayout SUBDIR += setxkbmap + SUBDIR += showkeys SUBDIR += simdock SUBDIR += simplestroke SUBDIR += sisctrl Added: head/x11/showkeys/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11/showkeys/Makefile Tue Mar 24 16:40:48 2020 (r529051) @@ -0,0 +1,28 @@ +# $FreeBSD$ + +PORTNAME= showkeys +DISTVERSION= g20191004 +CATEGORIES= x11 + +MAINTAINER= 0mp@FreeBSD.org +COMMENT= Display keystrokes during screencasts or presentations + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libxosd.so:misc/xosd + +USES= localbase xorg +USE_GITHUB= yes +GH_ACCOUNT= nibrahim +GH_TAGNAME= 187d59c +USE_XORG= x11 xext xinerama xtst + +ALL_TARGET= ${PORTNAME} + +PLIST_FILES= bin/${PORTNAME} + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/ + +.include Added: head/x11/showkeys/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11/showkeys/distinfo Tue Mar 24 16:40:48 2020 (r529051) @@ -0,0 +1,3 @@ +TIMESTAMP = 1585063387 +SHA256 (nibrahim-showkeys-g20191004-187d59c_GH0.tar.gz) = ec7859595ee148d29115a90e39ce7a7629b5011ab0368df5782f4ef5a668c617 +SIZE (nibrahim-showkeys-g20191004-187d59c_GH0.tar.gz) = 18033 Added: head/x11/showkeys/files/patch-Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11/showkeys/files/patch-Makefile Tue Mar 24 16:40:48 2020 (r529051) @@ -0,0 +1,28 @@ +--- Makefile.orig 2019-10-04 17:36:38 UTC ++++ Makefile +@@ -1,18 +1,18 @@ + showkeys: showkeys.c showkeys.h keystack.o +- gcc -g -Wall showkeys.c keystack.o -o showkeys -lX11 -lxosd -lpthread -lXext -lX11 -lXinerama -lXtst ++ ${CC} ${CFLAGS} ${LDFLAGS} ${LIBS} -g -Wall showkeys.c keystack.o -o showkeys -lX11 -lxosd -lpthread -lXext -lX11 -lXinerama -lXtst + + + keystack.o: keystack.c keystack.h +- gcc -c -g keystack.c ++ ${CC} ${CFLAGS} ${LDFLAGS} ${LIBS} -c -g keystack.c + + clean: + rm showkeys keystack.o record-attempt record-example + + check-syntax: +- gcc -Wall -o nul -S ${CHK_SOURCES} ++ ${CC} ${CFLAGS} ${LDFLAGS} ${LIBS} -Wall -o nul -S ${CHK_SOURCES} + +-record-attempt: record-attempt.c +- gcc -g -Wall record-attempt.c -L/usr/lib -lXtst -lxosd -lpthread -lXext -lX11 -lXinerama -o record-attempt ++record-attempt: tests/record-attempt.c ++ ${CC} ${CFLAGS} ${LDFLAGS} ${LIBS} -g -Wall tests/record-attempt.c -L/usr/lib -lXtst -lxosd -lpthread -lXext -lX11 -lXinerama -o record-attempt + +-record-example: record-example.c +- gcc -g -Wall record-example.c -L/usr/lib -lXtst -lxosd -lpthread -lXext -lX11 -lXinerama -o record-example ++record-example: tests/record-example.c ++ ${CC} ${CFLAGS} ${LDFLAGS} ${LIBS} -g -Wall tests/record-example.c -L/usr/lib -lXtst -lxosd -lpthread -lXext -lX11 -lXinerama -o record-example Added: head/x11/showkeys/files/patch-keystack.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11/showkeys/files/patch-keystack.c Tue Mar 24 16:40:48 2020 (r529051) @@ -0,0 +1,10 @@ +--- keystack.c.orig 2020-03-24 16:28:07 UTC ++++ keystack.c +@@ -11,6 +11,7 @@ + #include + #include + ++#include "config.h" + #include "keystack.h" + + static void Added: head/x11/showkeys/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11/showkeys/pkg-descr Tue Mar 24 16:40:48 2020 (r529051) @@ -0,0 +1,16 @@ +Showkeys is a simple program to display keys being pressed on the screen. + +It is useful while making presentations and screencasts. The audience will be +able to see the keys being pressed. + +It is similar to key-mon. Key-mon has more features than showkeys. The +advantages of showkeys are + +1. Doesn't use GTK/GNOME. +2. Uses libXosd to display keys directly onto the screen. +3. No floating windows that always need to be on top. This is very useful if + you're using a tiling WM like Xmonad. +4. Keystroke history. key-mon has this but doesn't show modifiers. showkeys + does this using an Emacs style key notation. + +WWW: https://github.com/nibrahim/showkeys