diff options
author | kamil <kamil@pkgsrc.org> | 2016-09-18 16:47:55 +0000 |
---|---|---|
committer | kamil <kamil@pkgsrc.org> | 2016-09-18 16:47:55 +0000 |
commit | 7566da12507cf78b802e9c351c0c3cc5f7d01282 (patch) | |
tree | 1444e85c20eb18cc96e9739dc7dc7afa02b18d13 /devel | |
parent | e896fa2f7aebbeaebc4dab1087d795a376a1ce14 (diff) | |
download | pkgsrc-7566da12507cf78b802e9c351c0c3cc5f7d01282.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).
Diffstat (limited to 'devel')
-rw-r--r-- | devel/linenoise/DESCR | 9 | ||||
-rw-r--r-- | devel/linenoise/Makefile | 30 | ||||
-rw-r--r-- | devel/linenoise/PLIST | 3 | ||||
-rw-r--r-- | devel/linenoise/buildlink3.mk | 12 | ||||
-rw-r--r-- | devel/linenoise/distinfo | 6 |
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 |