libtermkey: new port, version 0.22 (#8141)

vis: new port, version 0.8
This commit is contained in:
Peter van Dijk
2023-04-29 19:41:08 +02:00
committed by GitHub
parent 981f2b0da2
commit 038316c699
5 changed files with 215 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
vis as a whole is licensed under the following standard ISC license:
Copyright © 2014-2020 Marc André Tanner, et al.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Portions of this software are derived from third-party works licensed
under terms compatible with the above ISC license:
- ./configure is based on the corresponding script from the musl libc
project and is MIT licensed
- map.[ch] originate from the Comprehensive C Archive Network strmap
module and are public domain / CC0 licensed
- libutf.[ch] originate from libutf a port of Plan 9's Unicode library
to Unix and are MIT licensed
- sam.[ch] is heavily inspired (and partially based upon) the X11
version of Rob Pike's sam text editor originally written for Plan 9
and distributed under an ISC-like license
- lua/lexers/* the LPeg based lexers used for syntax highlighting are
imported from the Scintillua project licensed under the MIT license
Check the individual source files for more specific copyright information.
Details on authorship of individual files can be found in the git version
control history of the project. The omission of copyright and license
comments in each file is in the interest of source tree size.

View File

@@ -0,0 +1,22 @@
From 6d4a574ef6bee2fa53aa418794be5f32a6ac8a8f Mon Sep 17 00:00:00 2001
From: Peter van Dijk <peter@7bits.nl>
Date: Mon, 27 Mar 2023 20:16:42 +0000
Subject: highlight .recipe as bash
diff --git a/lua/plugins/filetype.lua b/lua/plugins/filetype.lua
index 3cd234e..c370bad 100644
--- a/lua/plugins/filetype.lua
+++ b/lua/plugins/filetype.lua
@@ -40,7 +40,7 @@ vis.ftdetect.filetypes = {
ext = { "%.awk$" },
},
bash = {
- ext = { "%.bash$", "%.csh$", "%.sh$", "%.zsh$" ,"^APKBUILD$", "%.ebuild$"},
+ ext = { "%.bash$", "%.csh$", "%.sh$", "%.zsh$" ,"^APKBUILD$", "%.ebuild$", "%.recipe$"},
mime = { "text/x-shellscript", "application/x-shellscript" },
},
batch = {
--
2.37.3

View File

@@ -0,0 +1,56 @@
SUMMARY="A vi-like editor based on Plan 9's structural regular expressions"
DESCRIPTION="Vis aims to be a modern, legacy-free, simple yet efficient editor, combining the strengths of both vi(m) and sam."
HOMEPAGE="https://github.com/martanne/vis"
COPYRIGHT="2014-2020 Marc André Tanner, et al."
LICENSE="Vis"
REVISION="1"
SOURCE_URI="https://github.com/martanne/vis/releases/download/v$portVersion/vis-$portVersion.tar.gz"
CHECKSUM_SHA256="61b10d40f15c4db2ce16e9acf291dbb762da4cbccf0cf2a80b28d9ac998a39bd"
PATCHES="vis-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
vis$secondaryArchSuffix = $portVersion
cmd:vis = $portVersion
cmd:vis_clipboard = $portVersion
cmd:vis_complete = $portVersion
cmd:vis_digraph = $portVersion
cmd:vis_menu = $portVersion
cmd:vis_open = $portVersion
"
# could add TRE here (would be dev-libs/tre if we had it)
# as the README (https://github.com/martanne/vis) notes:
# * TRE (optional for more memory efficient regex search)
REQUIRES="
haiku$secondaryArchSuffix
lib:lpeg$secondaryArchSuffix
lib:liblua$secondaryArchSuffix
lib:libncurses$secondaryArchSuffix
lib:libtermkey$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
cmd:pkg_config${secondaryArchSuffix}
devel:liblua$secondaryArchSuffix >= 5.3
devel:libtermkey$secondaryArchSuffix
devel:libncurses$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:make
"
BUILD()
{
runConfigure ./configure --sharedir=$dataDir
make
}
INSTALL()
{
make install
}

View File

@@ -0,0 +1,65 @@
SUMMARY="Library for processing keyboard input"
DESCRIPTION="This library 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."
HOMEPAGE="http://www.leonerd.org.uk/code/libtermkey/"
COPYRIGHT="2007-2011 Paul Evans"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="http://www.leonerd.org.uk/code/libtermkey/libtermkey-$portVersion.tar.gz"
CHECKSUM_SHA256="6945bd3c4aaa83da83d80a045c5563da4edd7d0374c62c0d35aec09eb3014600"
PATCHES="libtermkey-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="1.14.2"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
libtermkey$secondaryArchSuffix = $portVersion
lib:libtermkey$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libncurses$secondaryArchSuffix
"
PROVIDES_devel="
libtermkey${secondaryArchSuffix}_devel = $portVersion
devel:libtermkey$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
libtermkey$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libncurses$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:libtool$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
make $jobArgs
}
INSTALL()
{
make PREFIX="$prefix" \
LIBDIR="$libDir" \
INCDIR="$includeDir" \
MANDIR="$manDir" install
rm -f $libDir/libtermkey.{a,la}
prepareInstalledDevelLib libtermkey
fixPkgconfig
packageEntries devel $developDir $manDir
}

View File

@@ -0,0 +1,32 @@
From 820c11d74b836236b4ed878b76df794c6ce5a1fb Mon Sep 17 00:00:00 2001
From: Peter van Dijk <peter@7bits.nl>
Date: Sat, 29 Apr 2023 16:37:06 +0200
Subject: add prefix to termkey.pc
diff --git a/Makefile b/Makefile
index 199f143..2c55642 100644
--- a/Makefile
+++ b/Makefile
@@ -112,7 +112,7 @@ install-inc: termkey.h
install -d $(DESTDIR)$(INCDIR)
install -m644 termkey.h $(DESTDIR)$(INCDIR)
install -d $(DESTDIR)$(LIBDIR)/pkgconfig
- LIBDIR=$(LIBDIR) INCDIR=$(INCDIR) VERSION=$(VERSION) sh termkey.pc.sh >$(DESTDIR)$(LIBDIR)/pkgconfig/termkey.pc
+ PREFIX=$(PREFIX) LIBDIR=$(LIBDIR) INCDIR=$(INCDIR) VERSION=$(VERSION) sh termkey.pc.sh >$(DESTDIR)$(LIBDIR)/pkgconfig/termkey.pc
install-lib: $(LIBRARY)
install -d $(DESTDIR)$(LIBDIR)
diff --git a/termkey.pc.sh b/termkey.pc.sh
index 5ee3a76..30b9efa 100644
--- a/termkey.pc.sh
+++ b/termkey.pc.sh
@@ -1,4 +1,5 @@
cat <<EOF
+prefix=$PREFIX
libdir=$LIBDIR
includedir=$INCDIR
--
2.37.3