Date: Fri, 17 Feb 2017 18:54:19 +0000 (UTC) From: David Thiel <lx@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r434310 - in head/devel: . linenoise-ng linenoise-ng/files Message-ID: <201702171854.v1HIsJBx058466@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: lx Date: Fri Feb 17 18:54:19 2017 New Revision: 434310 URL: https://svnweb.freebsd.org/changeset/ports/434310 Log: Add linenoise-ng, a small portable readline replacement. Added: head/devel/linenoise-ng/ head/devel/linenoise-ng/Makefile (contents, props changed) head/devel/linenoise-ng/distinfo (contents, props changed) head/devel/linenoise-ng/files/ head/devel/linenoise-ng/files/patch-linenoise.cpp (contents, props changed) head/devel/linenoise-ng/pkg-descr (contents, props changed) head/devel/linenoise-ng/pkg-plist (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Fri Feb 17 18:42:36 2017 (r434309) +++ head/devel/Makefile Fri Feb 17 18:54:19 2017 (r434310) @@ -1482,6 +1482,7 @@ SUBDIR += libzrtpcpp SUBDIR += libzvbi SUBDIR += lightning + SUBDIR += linenoise-ng SUBDIR += linux-c6-dbus-glib SUBDIR += linux-c6-dbus-libs SUBDIR += linux-c6-devtools Added: head/devel/linenoise-ng/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/linenoise-ng/Makefile Fri Feb 17 18:54:19 2017 (r434310) @@ -0,0 +1,20 @@ +# Created by: David Thiel <lx@freebsd.org> +# $FreeBSD$ + +PORTNAME= linenoise-ng +PORTVERSION= 1.0.0 +DISTVERSIONPREFIX=v +CATEGORIES= devel + +MAINTAINER= lx@FreeBSD.org +COMMENT= Small, portable readline replacement + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= cmake +USE_GITHUB= yes +GH_ACCOUNT= arangodb +GH_PROJECT= linenoise-ng + +.include <bsd.port.mk> Added: head/devel/linenoise-ng/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/linenoise-ng/distinfo Fri Feb 17 18:54:19 2017 (r434310) @@ -0,0 +1,3 @@ +TIMESTAMP = 1487277234 +SHA256 (arangodb-linenoise-ng-v1.0.0_GH0.tar.gz) = ff50a18cf02bbdb13161cf2c445be2d862d4c6663c4291c581130d9fd74ca7cd +SIZE (arangodb-linenoise-ng-v1.0.0_GH0.tar.gz) = 40249 Added: head/devel/linenoise-ng/files/patch-linenoise.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/linenoise-ng/files/patch-linenoise.cpp Fri Feb 17 18:54:19 2017 (r434310) @@ -0,0 +1,28 @@ +--- src/linenoise.cpp 2015-11-25 01:30:22.000000000 -0800 ++++ /tmp/linenoise.cpp 2017-02-17 10:10:37.354285000 -0800 +@@ -105,6 +105,7 @@ + #include <unistd.h> + #include <stdlib.h> + #include <string.h> ++#include <sys/stat.h> + #include <sys/types.h> + #include <sys/ioctl.h> + #include <cctype> +@@ -3093,10 +3094,17 @@ + /* Save the history in the specified file. On success 0 is returned + * otherwise -1 is returned. */ + int linenoiseHistorySave(const char* filename) { ++#ifndef _WIN32 ++ mode_t old_umask = umask(S_IXUSR|S_IRWXG|S_IRWXO); ++#endif + FILE* fp = fopen(filename, "wt"); + if (fp == NULL) { + return -1; + } ++#ifndef _WIN32 ++ umask(old_umask); ++ chmod(filename,S_IRUSR|S_IWUSR); ++#endif + + for (int j = 0; j < historyLen; ++j) { + if (history[j][0] != '\0') { Added: head/devel/linenoise-ng/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/linenoise-ng/pkg-descr Fri Feb 17 18:54:19 2017 (r434310) @@ -0,0 +1,5 @@ +A small, portable GNU readline replacement for FreeBSD, Linux, Windows and +macOS which is capable of handling UTF-8 characters. Unlike GNU readline, which +is GPL, this library uses a BSD license and can be used in any kind of program. + +WWW: https://github.com/arangodb/linenoise-ng Added: head/devel/linenoise-ng/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/linenoise-ng/pkg-plist Fri Feb 17 18:54:19 2017 (r434310) @@ -0,0 +1,3 @@ +@comment $FreeBSD$ +include/linenoise.h +lib/liblinenoise.a
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702171854.v1HIsJBx058466>