summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkamil <kamil>2016-09-18 16:47:55 +0000
committerkamil <kamil>2016-09-18 16:47:55 +0000
commit0fddbc59f1e305bba808982e82d18aa2783dc1f6 (patch)
tree643a7ab486cb09e4994c02406032dc8e558c0bc8
parent177676942856fa0a7cc368a2967d3b9670cb0b66 (diff)
downloadpkgsrc-0fddbc59f1e305bba808982e82d18aa2783dc1f6.tar.gz
Import linenoise-1.0 as devel/linenoise
A minimal, zero-config, BSD licensed, readline replacement. Noteworthy features: - Single and multi line editing mode with the usual key bindings implemented. - History handling. - Completion. - Hints (suggestions at the right of the prompt as you type). - About 1,100 lines of BSD license source code. - Only uses a subset of VT100 escapes (ANSI.SYS compatible).
-rw-r--r--devel/linenoise/DESCR9
-rw-r--r--devel/linenoise/Makefile30
-rw-r--r--devel/linenoise/PLIST3
-rw-r--r--devel/linenoise/buildlink3.mk12
-rw-r--r--devel/linenoise/distinfo6
5 files changed, 60 insertions, 0 deletions
diff --git a/devel/linenoise/DESCR b/devel/linenoise/DESCR
new file mode 100644
index 00000000000..911d979b3cb
--- /dev/null
+++ b/devel/linenoise/DESCR
@@ -0,0 +1,9 @@
+A minimal, zero-config, BSD licensed, readline replacement.
+
+Noteworthy features:
+ - Single and multi line editing mode with the usual key bindings implemented.
+ - History handling.
+ - Completion.
+ - Hints (suggestions at the right of the prompt as you type).
+ - About 1,100 lines of BSD license source code.
+ - Only uses a subset of VT100 escapes (ANSI.SYS compatible).
diff --git a/devel/linenoise/Makefile b/devel/linenoise/Makefile
new file mode 100644
index 00000000000..4b836f77fc6
--- /dev/null
+++ b/devel/linenoise/Makefile
@@ -0,0 +1,30 @@
+# $NetBSD: Makefile,v 1.1 2016/09/18 16:47:55 kamil Exp $
+
+DISTNAME= linenoise-1.0
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_GITHUB:=antirez/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://github.com/antirez/linenoise/
+COMMENT= Small self-contained alternative to readline and libedit
+LICENSE= 2-clause-bsd
+
+USE_LIBTOOL= yes
+
+INSTALLATION_DIRS= include lib
+
+do-build:
+ ${RUN} cd ${WRKSRC} && \
+ ${LIBTOOL} --mode=compile --tag=CC ${CC} ${CFLAGS} \
+ -c linenoise.c
+ ${RUN} cd ${WRKSRC} && \
+ ${LIBTOOL} --mode=link --tag=CC ${CC} -avoid-version ${LDFLAGS} \
+ -o liblinenoise.la linenoise.lo -rpath ${PREFIX}/lib
+
+do-install:
+ ${RUN} cd ${WRKSRC} && \
+ ${LIBTOOL} --mode=install ${INSTALL_LIB} \
+ -c liblinenoise.la ${DESTDIR}${PREFIX}/lib/liblinenoise.la
+ ${INSTALL_DATA} ${WRKSRC}/linenoise.h ${DESTDIR}${PREFIX}/include
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/linenoise/PLIST b/devel/linenoise/PLIST
new file mode 100644
index 00000000000..d951c28803d
--- /dev/null
+++ b/devel/linenoise/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2016/09/18 16:47:55 kamil Exp $
+include/linenoise.h
+lib/liblinenoise.la
diff --git a/devel/linenoise/buildlink3.mk b/devel/linenoise/buildlink3.mk
new file mode 100644
index 00000000000..c81a76c4587
--- /dev/null
+++ b/devel/linenoise/buildlink3.mk
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.1 2016/09/18 16:47:55 kamil Exp $
+
+BUILDLINK_TREE+= linenoise
+
+.if !defined(LINENOISE_BUILDLINK3_MK)
+LINENOISE_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.linenoise+= linenoise>=1.0
+BUILDLINK_PKGSRCDIR.linenoise?= ../../devel/linenoise
+.endif # LINENOISE_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -linenoise
diff --git a/devel/linenoise/distinfo b/devel/linenoise/distinfo
new file mode 100644
index 00000000000..6cdba1be8bc
--- /dev/null
+++ b/devel/linenoise/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2016/09/18 16:47:55 kamil Exp $
+
+SHA1 (linenoise-1.0.tar.gz) = 850cf34d1f7f1b14ae696dd4e9bd968e736e2759
+RMD160 (linenoise-1.0.tar.gz) = 6178d0eda2e803300a4e538b47635abe3bf8f2dc
+SHA512 (linenoise-1.0.tar.gz) = 9e68fade8d64d7ba8d5d681e74d0ca6c4ebd9576249bb0e885b1aa708a9af77a43ea6264307ae46fb74e52219387a2c831b570f9601e331837f35294af9883e3
+Size (linenoise-1.0.tar.gz) = 14222 bytes