Import x11/screenkey, a utility to display keypresses on screen.

Original submission from Laurence Tratt, who takes MAINTAINER -- thanks!
Additional testing from Stefan Hagan and Florian Viehweger.
tweaks and ok sthen@
This commit is contained in:
bcallah 2020-08-11 21:33:22 +00:00
parent a5f46e55f0
commit d2e44fddf4
6 changed files with 99 additions and 0 deletions

34
x11/screenkey/Makefile Normal file
View File

@ -0,0 +1,34 @@
# $OpenBSD: Makefile,v 1.1.1.1 2020/08/11 21:33:22 bcallah Exp $
COMMENT = display keypresses on screen
DISTNAME = screenkey-1.2
CATEGORIES = x11
HOMEPAGE = https://www.thregr.org/~wavexx/software/screenkey/
MAINTAINER = Laurence Tratt <laurie@tratt.net>
# GPLv3+
PERMIT_PACKAGE = Yes
# dlopen()'d
WANTLIB = X11 Xtst
MASTER_SITES = https://www.thregr.org/~wavexx/software/screenkey/releases/
MODULES = lang/python \
textproc/intltool
MODPY_SETUPTOOLS = Yes
MODPY_VERSION = ${MODPY_DEFAULT_VERSION_3}
BUILD_DEPENDS += devel/py-distutils-extra${MODPY_FLAVOR}
RUN_DEPENDS += devel/desktop-file-utils \
devel/py-gobject3${MODPY_FLAVOR} \
graphics/py-cairo${MODPY_FLAVOR} \
x11/py-xlib${MODPY_FLAVOR}
NO_TEST = Yes
.include <bsd.port.mk>

2
x11/screenkey/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (screenkey-1.2.tar.gz) = bvTddZckvUmMmxkwmeVlA3WBDiCWOOXw13jft0asW3M=
SIZE (screenkey-1.2.tar.gz) = 65396

View File

@ -0,0 +1,23 @@
$OpenBSD: patch-Screenkey_xlib_py,v 1.1.1.1 2020/08/11 21:33:22 bcallah Exp $
Index: Screenkey/xlib.py
--- Screenkey/xlib.py.orig
+++ Screenkey/xlib.py
@@ -6,7 +6,7 @@ from __future__ import unicode_literals
from ctypes import *
## base X11
-libX11 = CDLL('libX11.so.6')
+libX11 = CDLL('libX11.so')
# types
Atom = c_ulong
@@ -278,7 +278,7 @@ XkbKeycodeToKeysym.restype = KeySym
## record extensions
-libXtst = CDLL('libXtst.so.6')
+libXtst = CDLL('libXtst.so')
# types
XPointer = String

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-setup_cfg,v 1.1.1.1 2020/08/11 21:33:22 bcallah Exp $
Index: setup.cfg
--- setup.cfg.orig
+++ setup.cfg
@@ -1,5 +1,5 @@
[build]
-i18n = True
+i18n = False
[egg_info]
tag_build =

1
x11/screenkey/pkg/DESCR Normal file
View File

@ -0,0 +1 @@
screenkey displays keypresses on-screen.

27
x11/screenkey/pkg/PLIST Normal file
View File

@ -0,0 +1,27 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2020/08/11 21:33:22 bcallah Exp $
bin/screenkey
lib/python${MODPY_VERSION}/site-packages/Screenkey/
lib/python${MODPY_VERSION}/site-packages/Screenkey/__init__.py
${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/Screenkey/${MODPY_PYCACHE}/
lib/python${MODPY_VERSION}/site-packages/Screenkey/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/Screenkey/${MODPY_PYCACHE}inputlistener.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/Screenkey/${MODPY_PYCACHE}keysyms.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/Screenkey/${MODPY_PYCACHE}labelmanager.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/Screenkey/${MODPY_PYCACHE}screenkey.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/Screenkey/${MODPY_PYCACHE}xlib.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/Screenkey/inputlistener.py
lib/python${MODPY_VERSION}/site-packages/Screenkey/keysyms.py
lib/python${MODPY_VERSION}/site-packages/Screenkey/labelmanager.py
lib/python${MODPY_VERSION}/site-packages/Screenkey/screenkey.py
lib/python${MODPY_VERSION}/site-packages/Screenkey/xlib.py
lib/python${MODPY_VERSION}/site-packages/screenkey-1.2-py${MODPY_VERSION}.egg-info/
lib/python${MODPY_VERSION}/site-packages/screenkey-1.2-py${MODPY_VERSION}.egg-info/PKG-INFO
lib/python${MODPY_VERSION}/site-packages/screenkey-1.2-py${MODPY_VERSION}.egg-info/SOURCES.txt
lib/python${MODPY_VERSION}/site-packages/screenkey-1.2-py${MODPY_VERSION}.egg-info/dependency_links.txt
lib/python${MODPY_VERSION}/site-packages/screenkey-1.2-py${MODPY_VERSION}.egg-info/requires.txt
lib/python${MODPY_VERSION}/site-packages/screenkey-1.2-py${MODPY_VERSION}.egg-info/top_level.txt
share/applications/screenkey.desktop
share/doc/screenkey/
share/doc/screenkey/NEWS.rst
share/doc/screenkey/README.rst
@tag update-desktop-database