Mail archive
alpine-aports

[alpine-aports] [PATCH 4/4] testing/neatvi: new aport

From: Alex Raschi <raschi.alex_at_gmail.com>
Date: Tue, 20 Nov 2018 21:25:59 +0100

https://github.com/aligrudi/neatvi
vi/ex editor with support for bidirectional UTF-8 text, syntax highlight
and infinite undo/redo
---
 testing/neatvi/APKBUILD   | 37 +++++++++++++++++++++++++++++++++++++
 testing/neatvi/conf.patch | 10 ++++++++++
 2 files changed, 47 insertions(+)
 create mode 100644 testing/neatvi/APKBUILD
 create mode 100644 testing/neatvi/conf.patch
diff --git a/testing/neatvi/APKBUILD b/testing/neatvi/APKBUILD
new file mode 100644
index 0000000000..acb1624224
--- /dev/null
+++ b/testing/neatvi/APKBUILD
_at_@ -0,0 +1,37 @@
+# Maintainer: Alex Raschi <raschi.alex_at_gmail.com>
+pkgname=neatvi
+pkgver=06
+pkgrel=0
+pkgdesc="vi/ex editor with support for bidirectional UTF-8 text, syntax highlight and infinite undo/redo"
+url="https://github.com/aligrudi/neatvi"
+arch="all"
+license="ISC" # vi.c
+subpackages="$pkgname-doc"
+options="!check" # no test suite
+source="$pkgname-$pkgver.tar.gz::https://github.com/aligrudi/$pkgname/archive/$pkgver.tar.gz
+	conf.patch"
+builddir="$srcdir/$pkgname-$pkgver"
+
+build() {
+	cd "$builddir"
+	make CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"
+}
+
+package() {
+	local pkgbin="$pkgdir"/usr/bin
+	cd "$builddir"
+	mkdir -p "$pkgbin"
+	mv vi "$pkgbin"/neatvi
+}
+
+doc() {
+	local pkgdoc="$subpkgdir"/usr/share/doc/"$pkgname"
+	cd "$builddir"
+	mkdir -p "$pkgdoc"
+	mv README "$pkgdoc"
+
+	default_doc
+}
+
+sha512sums="ff5850fc736afb33f57bcf738fc6eab346785caa5eff81fac567248eb0bede973731ca1791651d73d0157df170b6f07df3cd05ee4d8a6eb2090d51f92460d2b9  neatvi-06.tar.gz
+d5538cf2bfb98b93d3661f686540580f754cd5fca641893b58cf80312ec703aa332601f68258335a71bdeb72356148a75db22ae139e05c04c060cfcb31f2fafd  conf.patch"
diff --git a/testing/neatvi/conf.patch b/testing/neatvi/conf.patch
new file mode 100644
index 0000000000..1fdc92ddee
--- /dev/null
+++ b/testing/neatvi/conf.patch
_at_@ -0,0 +1,10 @@
+--- a/conf.h.orig	2017-10-01 09:07:44.000000000 +0200
++++ b/conf.h		2018-11-20 18:54:51.484850964 +0100
+_at_@ -12,6 +12,7 @@ static struct filetype {
+ 	{"mk", "Makefile$|makefile$|\\.mk$"},		/* makefile */
+ 	{"sh", "\\.sh$"},				/* shell script */
+ 	{"nm", "\\.nm$"},				/* neatmail */
++	{"sh", ".$"},					/* everything else */
+ };
+ 
+ /* syntax highlighting patterns */
-- 
2.19.1
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Tue Nov 20 2018 - 21:25:59 UTC