diff options
author | Alexey Dokuchaev <danfe@FreeBSD.org> | 2015-04-10 15:10:04 +0000 |
---|---|---|
committer | Alexey Dokuchaev <danfe@FreeBSD.org> | 2015-04-10 15:10:04 +0000 |
commit | 94846b36bf1f1e08dee354aed35451bc9ae5c7d3 (patch) | |
tree | 87d49a155401218fd50f67d286fd3f85987ed23c /converters | |
parent | b566843e397684d6e727674e9a729251eedcdb7f (diff) | |
download | ports-94846b36bf1f1e08dee354aed35451bc9ae5c7d3.tar.gz ports-94846b36bf1f1e08dee354aed35451bc9ae5c7d3.zip |
Notes
Diffstat (limited to 'converters')
-rw-r--r-- | converters/showkey/Makefile | 15 | ||||
-rw-r--r-- | converters/showkey/distinfo | 4 | ||||
-rw-r--r-- | converters/showkey/files/patch-showkey.c | 19 |
3 files changed, 30 insertions, 8 deletions
diff --git a/converters/showkey/Makefile b/converters/showkey/Makefile index 57e64f7f6fa6..9b0ab2a71008 100644 --- a/converters/showkey/Makefile +++ b/converters/showkey/Makefile @@ -2,24 +2,27 @@ # $FreeBSD$ PORTNAME= showkey -PORTVERSION= 1.5 +PORTVERSION= 1.7 CATEGORIES= converters -MASTER_SITES= http://catb.org/~esr/showkey/ \ - http://www.c-s.li/ports/ +MASTER_SITES= http://catb.org/~esr/showkey/ -MAINTAINER= ports@FreeBSD.org -COMMENT= Prints its input, with escapes such as "<NUL>" +MAINTAINER= snkoppenaal@gmail.com +COMMENT= Display cooked key sequences (keycap-to-keystrokes mappings) LICENSE= MIT -USES= gmake MAKE_ARGS= CC="${CC} ${CFLAGS}" ALL_TARGET= showkey PLIST_FILES= bin/showkey man/man1/showkey.1.gz +PORTDOCS= NEWS README + +OPTIONS_DEFINE= DOCS do-install: ${INSTALL_PROGRAM} ${WRKSRC}/showkey ${STAGEDIR}${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/showkey.1 ${STAGEDIR}${MANPREFIX}/man/man1 + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk> diff --git a/converters/showkey/distinfo b/converters/showkey/distinfo index 6c2b06d2c61d..4592e14b6537 100644 --- a/converters/showkey/distinfo +++ b/converters/showkey/distinfo @@ -1,2 +1,2 @@ -SHA256 (showkey-1.5.tar.gz) = 5f11cfafb218aa6f2c17b34f3808881d4f8c852b5aad90c1b187765a514eb471 -SIZE (showkey-1.5.tar.gz) = 4795 +SHA256 (showkey-1.7.tar.gz) = 0383a508c29df9a80b294a805a38f38d2dee6d2687e43c5ece3c5901220fb44d +SIZE (showkey-1.7.tar.gz) = 4811 diff --git a/converters/showkey/files/patch-showkey.c b/converters/showkey/files/patch-showkey.c new file mode 100644 index 000000000000..4487c0fcb865 --- /dev/null +++ b/converters/showkey/files/patch-showkey.c @@ -0,0 +1,19 @@ +--- 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; |