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).
This commit is contained in:
kamil 2016-09-18 16:47:55 +00:00
parent e7c5110268
commit 749e53f147
5 changed files with 60 additions and 0 deletions

9
devel/linenoise/DESCR Normal file
View file

@ -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).

30
devel/linenoise/Makefile Normal file
View file

@ -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"

3
devel/linenoise/PLIST Normal file
View file

@ -0,0 +1,3 @@
@comment $NetBSD: PLIST,v 1.1 2016/09/18 16:47:55 kamil Exp $
include/linenoise.h
lib/liblinenoise.la

View file

@ -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

6
devel/linenoise/distinfo Normal file
View file

@ -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