pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/linenoise Import linenoise-1.0 as devel/linenoise



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1e3e2641702f
branches:  trunk
changeset: 352716:1e3e2641702f
user:      kamil <kamil%pkgsrc.org@localhost>
date:      Sun Sep 18 16:47:55 2016 +0000

description:
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).

diffstat:

 devel/linenoise/DESCR         |   9 +++++++++
 devel/linenoise/Makefile      |  30 ++++++++++++++++++++++++++++++
 devel/linenoise/PLIST         |   3 +++
 devel/linenoise/buildlink3.mk |  12 ++++++++++++
 devel/linenoise/distinfo      |   6 ++++++
 5 files changed, 60 insertions(+), 0 deletions(-)

diffs (80 lines):

diff -r ab4eefb60a27 -r 1e3e2641702f devel/linenoise/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/linenoise/DESCR     Sun Sep 18 16:47:55 2016 +0000
@@ -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 -r ab4eefb60a27 -r 1e3e2641702f devel/linenoise/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/linenoise/Makefile  Sun Sep 18 16:47:55 2016 +0000
@@ -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@localhost
+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 -r ab4eefb60a27 -r 1e3e2641702f devel/linenoise/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/linenoise/PLIST     Sun Sep 18 16:47:55 2016 +0000
@@ -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 -r ab4eefb60a27 -r 1e3e2641702f devel/linenoise/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/linenoise/buildlink3.mk     Sun Sep 18 16:47:55 2016 +0000
@@ -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 -r ab4eefb60a27 -r 1e3e2641702f devel/linenoise/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/linenoise/distinfo  Sun Sep 18 16:47:55 2016 +0000
@@ -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



Home | Main Index | Thread Index | Old Index