summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2022-04-20 17:41:08 +0000
committernia <nia@pkgsrc.org>2022-04-20 17:41:08 +0000
commit28202337f104ddb5a399eba2cf0e0aac0aafb72f (patch)
treef237194bdb07f94bd72f283a7e8f3e3f27fbb415 /devel
parent7073ddee40a54f8d4a20fdd9e9542af7ea3f2ae1 (diff)
downloadpkgsrc-28202337f104ddb5a399eba2cf0e0aac0aafb72f.tar.gz
devel: add libtermkey. Needed by neovim.
libtermkey allows easy processing of keyboard entry from terminal-based programs. It handles all the necessary logic to recognise special keys, UTF-8 combining, and so on, with a simple interface. Note: Use of this library for new programs is discouraged. It is being maintained for legacy purposes only.
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile3
-rw-r--r--devel/libtermkey/DESCR6
-rw-r--r--devel/libtermkey/Makefile22
-rw-r--r--devel/libtermkey/PLIST29
-rw-r--r--devel/libtermkey/buildlink3.mk14
-rw-r--r--devel/libtermkey/distinfo5
6 files changed, 78 insertions, 1 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 50a22c22966..68c31e9d066 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3716 2022/04/20 17:33:05 nia Exp $
+# $NetBSD: Makefile,v 1.3717 2022/04/20 17:41:08 nia Exp $
#
COMMENT= Development utilities
@@ -932,6 +932,7 @@ SUBDIR+= libstubborn
SUBDIR+= libtai
SUBDIR+= libtar
SUBDIR+= libtecla
+SUBDIR+= libtermkey
SUBDIR+= libthai
SUBDIR+= libthrift
SUBDIR+= libthrift_c_glib
diff --git a/devel/libtermkey/DESCR b/devel/libtermkey/DESCR
new file mode 100644
index 00000000000..b48824f6f33
--- /dev/null
+++ b/devel/libtermkey/DESCR
@@ -0,0 +1,6 @@
+libtermkey allows easy processing of keyboard entry from terminal-based
+programs. It handles all the necessary logic to recognise special keys,
+UTF-8 combining, and so on, with a simple interface.
+
+Note: Use of this library for new programs is discouraged. It is being
+maintained for legacy purposes only.
diff --git a/devel/libtermkey/Makefile b/devel/libtermkey/Makefile
new file mode 100644
index 00000000000..cfa12f76efe
--- /dev/null
+++ b/devel/libtermkey/Makefile
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile,v 1.1 2022/04/20 17:41:08 nia Exp $
+
+DISTNAME= libtermkey-0.22
+CATEGORIES= devel
+MASTER_SITES= https://www.leonerd.org.uk/code/libtermkey/
+
+HOMEPAGE= https://www.leonerd.org.uk/code/libtermkey/
+COMMENT= Library to process keyboard entry from terminal-based programs
+LICENSE= mit
+
+USE_TOOLS+= pkg-config gmake gzip
+USE_LIBTOOL= yes
+
+MAKE_FLAGS+= PREFIX=${PREFIX}
+MAKE_FLAGS+= MANDIR=${PREFIX}/${PKGMANDIR}
+
+MANCOMPRESSED= yes
+
+PKGCONFIG_OVERRIDE+= termkey.pc.in
+
+.include "../../devel/unibilium/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/libtermkey/PLIST b/devel/libtermkey/PLIST
new file mode 100644
index 00000000000..157b18e665b
--- /dev/null
+++ b/devel/libtermkey/PLIST
@@ -0,0 +1,29 @@
+@comment $NetBSD: PLIST,v 1.1 2022/04/20 17:41:08 nia Exp $
+include/termkey.h
+lib/libtermkey.la
+lib/pkgconfig/termkey.pc
+man/man3/termkey_advisereadable.3
+man/man3/termkey_canonicalise.3
+man/man3/termkey_get_buffer_remaining.3
+man/man3/termkey_get_fd.3
+man/man3/termkey_get_keyname.3
+man/man3/termkey_getkey.3
+man/man3/termkey_interpret_csi.3
+man/man3/termkey_interpret_modereport.3
+man/man3/termkey_interpret_mouse.3
+man/man3/termkey_interpret_position.3
+man/man3/termkey_interpret_string.3
+man/man3/termkey_keycmp.3
+man/man3/termkey_keyname2sym.3
+man/man3/termkey_lookup_keyname.3
+man/man3/termkey_new.3
+man/man3/termkey_push_bytes.3
+man/man3/termkey_set_buffer_size.3
+man/man3/termkey_set_canonflags.3
+man/man3/termkey_set_flags.3
+man/man3/termkey_set_waittime.3
+man/man3/termkey_start.3
+man/man3/termkey_strfkey.3
+man/man3/termkey_strpkey.3
+man/man3/termkey_waitkey.3
+man/man7/termkey.7
diff --git a/devel/libtermkey/buildlink3.mk b/devel/libtermkey/buildlink3.mk
new file mode 100644
index 00000000000..89b8f24744e
--- /dev/null
+++ b/devel/libtermkey/buildlink3.mk
@@ -0,0 +1,14 @@
+# $NetBSD: buildlink3.mk,v 1.1 2022/04/20 17:41:08 nia Exp $
+
+BUILDLINK_TREE+= libtermkey
+
+.if !defined(LIBTERMKEY_BUILDLINK3_MK)
+LIBTERMKEY_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libtermkey+= libtermkey>=0.17
+BUILDLINK_PKGSRCDIR.libtermkey?= ../../devel/libtermkey
+
+.include "../../devel/unibilium/buildlink3.mk"
+.endif # LIBTERMKEY_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -libtermkey
diff --git a/devel/libtermkey/distinfo b/devel/libtermkey/distinfo
new file mode 100644
index 00000000000..927105e7f46
--- /dev/null
+++ b/devel/libtermkey/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2022/04/20 17:41:08 nia Exp $
+
+RMD160 (libtermkey-0.22.tar.gz) = 553e744534a5318e75f5a696481efe941b7f6ead
+SHA512 (libtermkey-0.22.tar.gz) = 2e8242cd1e6acb8900125dcee9fd47f7554c359363f760b88858c82667e1f3871bdd87358b14c8a133ef3cd2699947a5045477e64cdf7f96d4ead1723e73a219
+Size (libtermkey-0.22.tar.gz) = 46147 bytes