aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
Diffstat (limited to 'editors')
-rwxr-xr-xeditors/vis/build38
-rw-r--r--editors/vis/checksums3
-rw-r--r--editors/vis/depends2
-rw-r--r--editors/vis/sources3
-rw-r--r--editors/vis/version1
5 files changed, 47 insertions, 0 deletions
diff --git a/editors/vis/build b/editors/vis/build
new file mode 100755
index 0000000..571b43f
--- /dev/null
+++ b/editors/vis/build
@@ -0,0 +1,38 @@
+#!/bin/sh -e
+
+(
+ cd termkey
+
+ make termkey.h libtermkey.la
+
+ mkdir -p "../usr/lib" \
+ "../usr/include"
+
+ mv termkey.h "../usr/include"
+ mv .libs/*.a "../usr/lib"
+
+)
+
+(
+ # Lpeg doesn't have an option to create static libraries.
+ cd lpeg
+ for obj in lpcap lpcode lpprint lptree lpvm; do
+ "${CC:-cc}" $CFLAGS -c -o $obj.o $obj.c
+ done
+ ar rcs ../usr/lib/liblpeg.a ./*.o
+)
+
+(
+ cd vis
+
+ export CFLAGS="$CFLAGS -static -I../usr/include"
+ export LDFLAGS="$LDFLAGS -L../usr/lib"
+
+ ./configure \
+ --prefix=/usr \
+ --enable-lua \
+ --enable-liblpeg-static
+
+ make
+ make DESTDIR="$1" install
+)
diff --git a/editors/vis/checksums b/editors/vis/checksums
new file mode 100644
index 0000000..0390e60
--- /dev/null
+++ b/editors/vis/checksums
@@ -0,0 +1,3 @@
+6945bd3c4aaa83da83d80a045c5563da4edd7d0374c62c0d35aec09eb3014600 libtermkey-0.22.tar.gz
+48d66576051b6c78388faad09b70493093264588fcd0f258ddaab1cdd4a15ffe lpeg-1.0.2.tar.gz
+git git+https://github.com/martanne/vis
diff --git a/editors/vis/depends b/editors/vis/depends
new file mode 100644
index 0000000..2166a61
--- /dev/null
+++ b/editors/vis/depends
@@ -0,0 +1,2 @@
+lua make
+ncurses make
diff --git a/editors/vis/sources b/editors/vis/sources
new file mode 100644
index 0000000..6b04ee2
--- /dev/null
+++ b/editors/vis/sources
@@ -0,0 +1,3 @@
+http://www.leonerd.org.uk/code/libtermkey/libtermkey-0.22.tar.gz termkey
+http://www.inf.puc-rio.br/~roberto/lpeg/lpeg-1.0.2.tar.gz lpeg
+git+https://github.com/martanne/vis vis
diff --git a/editors/vis/version b/editors/vis/version
new file mode 100644
index 0000000..4a159ec
--- /dev/null
+++ b/editors/vis/version
@@ -0,0 +1 @@
+0.22 2