From nobody Sun Jul 16 01:15:22 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4R3S225V89z4nWZv; Sun, 16 Jul 2023 01:15:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4R3S225471z3Qr9; Sun, 16 Jul 2023 01:15:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689470122; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=tSQR7+p8WzTJr6/coXfqtYRibKcnGA/o+BIxuWJhxhA=; b=ntJ7CUs0yehuYiXU/BWRAZMoiL9lTGvZSobmFhxZvg2191FF521nb/bIdwbZ2OXApVbLgQ rQWVqj9Ujvcv8mLDs3lMxnvclBZaor/hdNif44T8bMujePsZM1+rC9isgOll4hDhATVSjv Yjeen5UqQzb22cCYY+XnPo6HqPlndq0ufBjTYyej2hH6fJCCI/HNfqj6C4hpt9I0OyI7US 982nnIlYHlgIbk+vhZpZdxEl6eheFP7rcbZAUxwlEimEmRwNscIjGra8BrBVpUA16mBAYn ZWS6oPVibp3Ill8gBQPRZLGPB4ziGqALmzEjzKj+Ldf0i8d64NLcUf9DvJM7SQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689470122; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=tSQR7+p8WzTJr6/coXfqtYRibKcnGA/o+BIxuWJhxhA=; b=NGRaXcisQV6YR+0OagmB7kciyHt2OoRTt656wQkMAXcTgKPVlwmgiabYV6ZyfKoUlMhFXR TodGvoBFpI/wAuI4TipivfpHfLPRPrnj5P7PLNsFC9vCnoZe96FhSQn4jZZJqFnnJ6T4wl YI5hYqJZWvtOSlUXuEBevK1nwtehU+AqE/rZ9gpkmCUHLAyreEHdVlPJu/+Go5grwyY6IZ 7jNrmO3r9oiR0fpp2rVj4SXEM9b2NFobtIoMRoJ9wKDEa//5+F88BtHrxDfCG8t+Uw+Mvr OkPK40qPZqR0N6AsNPkbtI8FQ6OaKO8jUVAzI04+4GiSSH9ZjoqgWYPmGf3nAw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1689470122; a=rsa-sha256; cv=none; b=W3pe6XEO0vX7lFDS1eNRFMG2kTQBvAXztiGEC5pPYCk/xVTw6tIsNdSzImUmSTjbP0p2S2 lW5+0IHn829VulFGjRf452kZynWt1J2dfV48DfTnflypBEXXGjYvCf7ZI5rRT/mEnqobcm p2Q5iWus1+aw5gq6jQb4Pp84tymcahiEZ4rnn7JM3eoi/jyea79O/+JNDAE447/1MPvpuA rX4xytEwVIhG1pCl2Xq9g2y8Y6cJTNNZFdvPv9KaeiZ443c5z124pXTmJlRF31dJv5MD2n TFCs+DjQd16OyaKohFMMOSEIx9d1KMu8bT5ztz8wCwhP5Kyc/EiN75qFaDEuUQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4R3S2248CTzMvn; Sun, 16 Jul 2023 01:15:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 36G1FM9D055295; Sun, 16 Jul 2023 01:15:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 36G1FMoD055294; Sun, 16 Jul 2023 01:15:22 GMT (envelope-from git) Date: Sun, 16 Jul 2023 01:15:22 GMT Message-Id: <202307160115.36G1FMoD055294@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 54df5f83c498 - main - devel/linenoise: New port: Small self-contained alternative to readline and libedit List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 54df5f83c498810f0ee0db26645304efc9c41fcb Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=54df5f83c498810f0ee0db26645304efc9c41fcb commit 54df5f83c498810f0ee0db26645304efc9c41fcb Author: Yuri Victorovich AuthorDate: 2023-07-16 01:13:44 +0000 Commit: Yuri Victorovich CommitDate: 2023-07-16 01:15:20 +0000 devel/linenoise: New port: Small self-contained alternative to readline and libedit devel/linenoise-ng exists, but its repository was last updated in 2017 and is archived now. devel/linenoise was last updated in 2023 and it looks like it is actively maintained. --- devel/Makefile | 1 + devel/linenoise/Makefile | 34 ++++++++++++++++++++++++++++++++++ devel/linenoise/distinfo | 3 +++ devel/linenoise/pkg-descr | 11 +++++++++++ 4 files changed, 49 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 6c0843c1c908..b8d370300ce5 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -1451,6 +1451,7 @@ SUBDIR += libzookeeper SUBDIR += libzvbi SUBDIR += lightning + SUBDIR += linenoise SUBDIR += linenoise-ng SUBDIR += linux-c7-dbus-libs SUBDIR += linux-c7-devtools diff --git a/devel/linenoise/Makefile b/devel/linenoise/Makefile new file mode 100644 index 000000000000..4d6670848bfe --- /dev/null +++ b/devel/linenoise/Makefile @@ -0,0 +1,34 @@ +PORTNAME= linenoise +DISTVERSION= 1.0-34 +DISTVERSIONSUFFIX= -g93b2db9 +CATEGORIES= devel + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Small self-contained alternative to readline and libedit +WWW= https://github.com/antirez/linenoise + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +USE_LDCONFIG= yes + +USE_GITHUB= yes +GH_ACCOUNT= antirez + +PLIST_FILES= include/linenoise.h \ + lib/liblinenoise.so + +do-build: + @cd ${WRKSRC} && \ + ${SETENV} ${MAKE_ENV} ${CC} ${CFLAGS} -shared -fPIC linenoise.c -o liblinenoise.so + +do-install: + ${INSTALL_DATA} ${WRKSRC}/linenoise.h ${STAGEDIR}${PREFIX}/include + ${INSTALL_LIB} ${WRKSRC}/liblinenoise.so ${STAGEDIR}${PREFIX}/lib + +do-test: + @cd ${WRKSRC} && \ + ${SETENV} ${MAKE_ENV} ${MAKE} && \ + ./linenoise_example + +.include diff --git a/devel/linenoise/distinfo b/devel/linenoise/distinfo new file mode 100644 index 000000000000..3fda74772567 --- /dev/null +++ b/devel/linenoise/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1689442008 +SHA256 (antirez-linenoise-1.0-34-g93b2db9_GH0.tar.gz) = cf2c6ed16585313530798294086260e3b8fe67097eb66ca39c4b8e740d128b69 +SIZE (antirez-linenoise-1.0-34-g93b2db9_GH0.tar.gz) = 21446 diff --git a/devel/linenoise/pkg-descr b/devel/linenoise/pkg-descr new file mode 100644 index 000000000000..74d9aa59cdbe --- /dev/null +++ b/devel/linenoise/pkg-descr @@ -0,0 +1,11 @@ +linenoise is a minimal, zero-config, BSD licensed, readline replacement used +in Redis, MongoDB, Android and many other projects. + +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). +* Multiplexing mode, with prompt hiding/restoring for asynchronous output. +* About ~850 lines (comments and spaces excluded) of BSD license source code. +* Only uses a subset of VT100 escapes (ANSI.SYS compatible).