Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Nov 2017 20:07:45 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r454846 - in head/sysutils: . hstr hstr/files
Message-ID:  <201711242007.vAOK7jS8093530@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Fri Nov 24 20:07:45 2017
New Revision: 454846
URL: https://svnweb.freebsd.org/changeset/ports/454846

Log:
  New port: sysutils/hstr: Bash and Zsh shell history suggest box
  
  PR:		223775
  Submitted by:	Patrice Clement <monsieurp@gentoo.org>
  Approved by:	tcberner (mentor)
  Differential Revision:	https://reviews.freebsd.org/D13208

Added:
  head/sysutils/hstr/
  head/sysutils/hstr/Makefile   (contents, props changed)
  head/sysutils/hstr/distinfo   (contents, props changed)
  head/sysutils/hstr/files/
  head/sysutils/hstr/files/patch-src-hstr.c   (contents, props changed)
  head/sysutils/hstr/files/patch-src_Makefile.am   (contents, props changed)
  head/sysutils/hstr/files/patch-src_include_hstr__curses.h   (contents, props changed)
  head/sysutils/hstr/pkg-descr   (contents, props changed)
Modified:
  head/sysutils/Makefile

Modified: head/sysutils/Makefile
==============================================================================
--- head/sysutils/Makefile	Fri Nov 24 20:04:06 2017	(r454845)
+++ head/sysutils/Makefile	Fri Nov 24 20:07:45 2017	(r454846)
@@ -466,6 +466,7 @@
     SUBDIR += hs-ekg-core
     SUBDIR += hs-ekg-json
     SUBDIR += hs-mountpoints
+    SUBDIR += hstr
     SUBDIR += htop
     SUBDIR += httplog
     SUBDIR += hwstat

Added: head/sysutils/hstr/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/hstr/Makefile	Fri Nov 24 20:07:45 2017	(r454846)
@@ -0,0 +1,20 @@
+# $FreeBSD$
+
+PORTNAME=	hstr
+DISTVERSION=	1.23
+CATEGORIES=	sysutils
+
+MAINTAINER=	monsieurp@gentoo.org
+COMMENT=	Bash and Zsh shell history suggest box
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		autoreconf ncurses readline
+USE_GITHUB=	yes
+GH_ACCOUNT=	dvorka
+GNU_CONFIGURE=	yes
+
+PLIST_FILES=	bin/hh bin/hstr man/man1/hh.1.gz man/man1/hstr.1.gz
+
+.include <bsd.port.mk>

Added: head/sysutils/hstr/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/hstr/distinfo	Fri Nov 24 20:07:45 2017	(r454846)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1511211427
+SHA256 (dvorka-hstr-1.23_GH0.tar.gz) = f435b4fce473e966fe52d3c27ca9074df0925a236b01517ece022607b889af33
+SIZE (dvorka-hstr-1.23_GH0.tar.gz) = 47239

Added: head/sysutils/hstr/files/patch-src-hstr.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/hstr/files/patch-src-hstr.c	Fri Nov 24 20:07:45 2017	(r454846)
@@ -0,0 +1,11 @@
+--- src/hstr.c.orig	2017-09-30 10:01:44 UTC
++++ src/hstr.c
+@@ -22,6 +22,8 @@
+ #include <locale.h>
+ #ifdef __APPLE__
+ #include <curses.h>
++#elif defined(__FreeBSD__)
++#include <ncurses.h>
+ #else
+ #include <ncursesw/curses.h>
+ #endif

Added: head/sysutils/hstr/files/patch-src_Makefile.am
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/hstr/files/patch-src_Makefile.am	Fri Nov 24 20:07:45 2017	(r454846)
@@ -0,0 +1,11 @@
+--- src/Makefile.am.orig	2017-11-23 08:02:07 UTC
++++ src/Makefile.am
+@@ -15,7 +15,7 @@
+ # limitations under the License.
+ 
+ # http://mij.oltrelinux.com/devel/autoconf-automake/
+-AM_CFLAGS = --pedantic -Wall -std=c99 -O2
++AM_CFLAGS = --pedantic -Wall -std=c99
+ AM_LDFLAGS =
+ 
+ # bin_ installs to bin; hh_ is the binary name

Added: head/sysutils/hstr/files/patch-src_include_hstr__curses.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/hstr/files/patch-src_include_hstr__curses.h	Fri Nov 24 20:07:45 2017	(r454846)
@@ -0,0 +1,11 @@
+--- src/include/hstr_curses.h.orig	2017-09-30 10:01:44 UTC
++++ src/include/hstr_curses.h
+@@ -21,6 +21,8 @@
+ 
+ #ifdef __APPLE__
+ #include <curses.h>
++#elif defined(__FreeBSD__)
++#include <ncurses.h>
+ #else
+ #include <ncursesw/curses.h>
+ #endif

Added: head/sysutils/hstr/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/hstr/pkg-descr	Fri Nov 24 20:07:45 2017	(r454846)
@@ -0,0 +1,5 @@
+HSTR is a command line utility that brings improved shell command completion
+based on command history. It aims to make completion easier and more efficient
+than Ctrl+R.
+
+WWW: https://github.com/dvorka/hstr



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711242007.vAOK7jS8093530>