Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Mar 2017 09:11:09 +0000 (UTC)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r437343 - in head: devel devel/p5-Getopt-EX textproc textproc/greple textproc/greple/files
Message-ID:  <201703310911.v2V9B9XO065144@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hrs
Date: Fri Mar 31 09:11:09 2017
New Revision: 437343
URL: https://svnweb.freebsd.org/changeset/ports/437343

Log:
  Add textproc/greple and devel/p5-Getopt-EX, which greple depends on.
  
  Greple is an egrep-like command-line tool which supports keyword search
  in a way similar to popular WWW search engines in addition to regex.

Added:
  head/devel/p5-Getopt-EX/
  head/devel/p5-Getopt-EX/Makefile   (contents, props changed)
  head/devel/p5-Getopt-EX/distinfo   (contents, props changed)
  head/devel/p5-Getopt-EX/pkg-descr   (contents, props changed)
  head/devel/p5-Getopt-EX/pkg-plist   (contents, props changed)
  head/textproc/greple/
  head/textproc/greple/Makefile   (contents, props changed)
  head/textproc/greple/distinfo   (contents, props changed)
  head/textproc/greple/files/
  head/textproc/greple/files/patch-bin_greple   (contents, props changed)
  head/textproc/greple/files/patch-lib_App_Greple_daemon3.pm   (contents, props changed)
  head/textproc/greple/pkg-descr   (contents, props changed)
  head/textproc/greple/pkg-plist   (contents, props changed)
Modified:
  head/devel/Makefile
  head/textproc/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Fri Mar 31 09:02:06 2017	(r437342)
+++ head/devel/Makefile	Fri Mar 31 09:11:09 2017	(r437343)
@@ -2514,6 +2514,7 @@
     SUBDIR += p5-Getopt-Compact-WithCmd
     SUBDIR += p5-Getopt-Declare
     SUBDIR += p5-Getopt-Euclid
+    SUBDIR += p5-Getopt-EX
     SUBDIR += p5-Getopt-GUI-Long
     SUBDIR += p5-Getopt-Long
     SUBDIR += p5-Getopt-Long-Descriptive

Added: head/devel/p5-Getopt-EX/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/p5-Getopt-EX/Makefile	Fri Mar 31 09:11:09 2017	(r437343)
@@ -0,0 +1,25 @@
+# $FreeBSD$
+
+PORTNAME=	Getopt-EX
+PORTVERSION=	7.1.20170330
+DISTVERSIONPREFIX=	v
+CATEGORIES=	devel perl5
+PKGNAMEPREFIX=	p5-
+
+MAINTAINER=	hrs@FreeBSD.org
+COMMENT=	Getopt Extender
+
+LICENSE=	ART10
+
+USES=		perl5
+USE_PERL5=	run
+USE_GITHUB=	yes
+GH_TUPLE=	kaz-utashiro:greple:084c10e
+NO_BUILD=	yes
+NO_ARCH=	yes
+
+do-install:
+	cd ${WRKSRC}/lib && \
+	    ${COPYTREE_SHARE} Getopt ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}
+
+.include <bsd.port.mk>

Added: head/devel/p5-Getopt-EX/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/p5-Getopt-EX/distinfo	Fri Mar 31 09:11:09 2017	(r437343)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1490948040
+SHA256 (kaz-utashiro-greple-v7.1.20170330-084c10e_GH0.tar.gz) = c264281397668b32b71cc9267e93417c2f671108a507210941041f4224781826
+SIZE (kaz-utashiro-greple-v7.1.20170330-084c10e_GH0.tar.gz) = 98548

Added: head/devel/p5-Getopt-EX/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/p5-Getopt-EX/pkg-descr	Fri Mar 31 09:11:09 2017	(r437343)
@@ -0,0 +1,5 @@
+Getopt::EX extends the basic function of Getopt family to
+support user-definable option aliases, and dynamic module which works
+together with the script through option interface.
+
+WWW: https://github.com/kaz-utashiro/greple/tree/master/lib/Getopt

Added: head/devel/p5-Getopt-EX/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/p5-Getopt-EX/pkg-plist	Fri Mar 31 09:11:09 2017	(r437343)
@@ -0,0 +1,7 @@
+%%SITE_PERL%%/Getopt/EX.pm
+%%SITE_PERL%%/Getopt/EX/Colormap.pm
+%%SITE_PERL%%/Getopt/EX/Func.pm
+%%SITE_PERL%%/Getopt/EX/LabeledParam.pm
+%%SITE_PERL%%/Getopt/EX/Loader.pm
+%%SITE_PERL%%/Getopt/EX/Long.pm
+%%SITE_PERL%%/Getopt/EX/Module.pm

Modified: head/textproc/Makefile
==============================================================================
--- head/textproc/Makefile	Fri Mar 31 09:02:06 2017	(r437342)
+++ head/textproc/Makefile	Fri Mar 31 09:11:09 2017	(r437343)
@@ -226,6 +226,7 @@
     SUBDIR += google-translate-cli
     SUBDIR += gpp
     SUBDIR += grap
+    SUBDIR += greple
     SUBDIR += grc-aspell
     SUBDIR += groff
     SUBDIR += groonga

Added: head/textproc/greple/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/greple/Makefile	Fri Mar 31 09:11:09 2017	(r437343)
@@ -0,0 +1,38 @@
+# $FreeBSD$
+
+PORTNAME=	greple
+PORTVERSION=	7.1.20170330
+DISTVERSIONPREFIX=	v
+CATEGORIES=	textproc
+
+MAINTAINER=	hrs@FreeBSD.org
+COMMENT=	Grep with multiple keywords
+
+LICENSE=	GREPLE
+LICENSE_NAME=	GREPLE License
+LICENSE_FILE=	${WRKSRC}/LICENSE
+LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
+
+RUN_DEPENDS=	${SITE_PERL}/Getopt/EX.pm:devel/p5-Getopt-EX
+
+USES=		perl5 shebangfix
+USE_PERL5=	run
+SHEBANG_FILES=	bin/${PORTNAME}
+USE_GITHUB=	yes
+GH_ACCOUNT=	kaz-utashiro
+GH_TAGNAME=	084c10e
+NO_BUILD=	yes
+NO_ARCH=	yes
+
+post-extract:
+	cd ${WRKSRC} && \
+	    ${SED} -n "/^# LICENSE/,//p" README.md > LICENSE
+
+do-install:
+	cd ${WRKSRC} && \
+	    ${INSTALL_SCRIPT} bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+	${RM} -f ${WRKSRC}/lib/App/Greple/*.orig
+	cd ${WRKSRC}/lib && \
+	    ${COPYTREE_SHARE} App ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}
+
+.include <bsd.port.mk>

Added: head/textproc/greple/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/greple/distinfo	Fri Mar 31 09:11:09 2017	(r437343)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1490948099
+SHA256 (kaz-utashiro-greple-v7.1.20170330-084c10e_GH0.tar.gz) = c264281397668b32b71cc9267e93417c2f671108a507210941041f4224781826
+SIZE (kaz-utashiro-greple-v7.1.20170330-084c10e_GH0.tar.gz) = 98548

Added: head/textproc/greple/files/patch-bin_greple
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/greple/files/patch-bin_greple	Fri Mar 31 09:11:09 2017	(r437343)
@@ -0,0 +1,18 @@
+--- bin/greple.orig	2017-03-31 08:39:29 UTC
++++ bin/greple
+@@ -43,15 +43,6 @@ use Encode::Guess;
+ ##
+ use warnings FATAL => 'utf8';
+ 
+-##
+-## Setup greple/lib to be a module directory if exists.
+-##
+-BEGIN {
+-    if ((my $lib = abs_path($0)) =~ s{/ \K (?:bin/)? \w+ $}{lib}x) {
+-	push @INC, $lib if -d "$lib/App/Greple";
+-    }
+-}
+-
+ use Getopt::EX::Loader;
+ use Getopt::EX::Func qw(parse_func);
+ 

Added: head/textproc/greple/files/patch-lib_App_Greple_daemon3.pm
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/greple/files/patch-lib_App_Greple_daemon3.pm	Fri Mar 31 09:11:09 2017	(r437343)
@@ -0,0 +1,11 @@
+--- lib/App/Greple/daemon3.pm.orig	2017-03-30 09:05:08 UTC
++++ lib/App/Greple/daemon3.pm
+@@ -241,7 +241,7 @@ END { }
+ 	}
+     }
+     sub tags {
+-	keys shift;
++	keys %{$_[0]};
+     }
+ }
+ 

Added: head/textproc/greple/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/greple/pkg-descr	Fri Mar 31 09:11:09 2017	(r437343)
@@ -0,0 +1,8 @@
+greple has almost the same function as Unix command egrep(1) but the
+search is done in the manner similar to search engine.  greple also
+search the pattern across the line boundaries. This is especially
+useful to handle Asian multi-byte text. Japanese text can be separated
+by newline almost any place of the text. So the search pattern may
+spread out on multiple lines.
+
+WWW: https://github.com/kaz-utashiro/greple

Added: head/textproc/greple/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/greple/pkg-plist	Fri Mar 31 09:11:09 2017	(r437343)
@@ -0,0 +1,28 @@
+bin/greple
+%%SITE_PERL%%/App/Greple.pm
+%%SITE_PERL%%/App/Greple/Common.pm
+%%SITE_PERL%%/App/Greple/Filter.pm
+%%SITE_PERL%%/App/Greple/Grep.pm
+%%SITE_PERL%%/App/Greple/Pattern.pm
+%%SITE_PERL%%/App/Greple/Pattern/Holder.pm
+%%SITE_PERL%%/App/Greple/PgpDecryptor.pm
+%%SITE_PERL%%/App/Greple/PwBlock.pm
+%%SITE_PERL%%/App/Greple/Regions.pm
+%%SITE_PERL%%/App/Greple/Util.pm
+%%SITE_PERL%%/App/Greple/aozora.pm
+%%SITE_PERL%%/App/Greple/bm.pm
+%%SITE_PERL%%/App/Greple/colors.pm
+%%SITE_PERL%%/App/Greple/daemon3.pm
+%%SITE_PERL%%/App/Greple/debug.pm
+%%SITE_PERL%%/App/Greple/diff.pm
+%%SITE_PERL%%/App/Greple/dig.pm
+%%SITE_PERL%%/App/Greple/docx.pm
+%%SITE_PERL%%/App/Greple/find.pm
+%%SITE_PERL%%/App/Greple/ical.pm
+%%SITE_PERL%%/App/Greple/line.pm
+%%SITE_PERL%%/App/Greple/perl.pm
+%%SITE_PERL%%/App/Greple/pgp.pm
+%%SITE_PERL%%/App/Greple/pw.pm
+%%SITE_PERL%%/App/Greple/subst.pm
+%%SITE_PERL%%/App/Greple/subst.sample
+%%SITE_PERL%%/App/Greple/tel.pm



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