converters/showkey: Update to 1.9

Changelog: http://www.catb.org/~esr/showkey/NEWS

PR:	278323
Reported by:	mew14930xvi <mew14930xvi _AT_ inbox.lv>
Approved by:	maintainer
This commit is contained in:
Philippe Audeoud 2024-04-15 14:00:08 +02:00
parent 1dbc59609b
commit 35fb0b0ea2
3 changed files with 7 additions and 23 deletions

View file

@ -1,6 +1,5 @@
PORTNAME= showkey
PORTVERSION= 1.7
PORTREVISION= 1
DISTVERSION= 1.9
CATEGORIES= converters
MASTER_SITES= http://catb.org/~esr/showkey/
@ -9,6 +8,9 @@ COMMENT= Display cooked key sequences (keycap-to-keystrokes mappings)
WWW= http://catb.org/~esr/showkey/
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/COPYING
USES= gmake
MAKE_ARGS= CC="${CC} ${CFLAGS}"
ALL_TARGET= showkey

View file

@ -1,2 +1,3 @@
SHA256 (showkey-1.7.tar.gz) = 0383a508c29df9a80b294a805a38f38d2dee6d2687e43c5ece3c5901220fb44d
SIZE (showkey-1.7.tar.gz) = 4811
TIMESTAMP = 1712906828
SHA256 (showkey-1.9.tar.gz) = 7230aed91f9a510ae5d234a32ba88402eb6c39431ad8175e78035f9d9b6a8f6e
SIZE (showkey-1.9.tar.gz) = 4752

View file

@ -1,19 +0,0 @@
--- showkey.c.orig 2012-03-03 16:44:46 UTC
+++ showkey.c
@@ -11,6 +11,7 @@
#include <string.h>
#include <stdbool.h>
#include <stdlib.h>
+#include <unistd.h>
#define ALT 0x80
#define ESC 0x1b
@@ -80,7 +81,7 @@ static void visualize(int c, /*@out@*/ch
}
-main()
+int main()
{
struct termios cooked, raw;
unsigned char c;