diff options
author | hrs <hrs@FreeBSD.org> | 2017-03-31 17:11:09 +0800 |
---|---|---|
committer | hrs <hrs@FreeBSD.org> | 2017-03-31 17:11:09 +0800 |
commit | cc907a0624cab4e020777955f744ddceeabcbbd8 (patch) | |
tree | 9c1c0785c5c7dc07e169e328a5b38f870392d88c | |
parent | 80fee9c7b72826f863373d1d8cd015897685fd2a (diff) | |
download | freebsd-ports-gnome-cc907a0624cab4e020777955f744ddceeabcbbd8.tar.gz freebsd-ports-gnome-cc907a0624cab4e020777955f744ddceeabcbbd8.tar.zst freebsd-ports-gnome-cc907a0624cab4e020777955f744ddceeabcbbd8.zip |
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.
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/p5-Getopt-EX/Makefile | 25 | ||||
-rw-r--r-- | devel/p5-Getopt-EX/distinfo | 3 | ||||
-rw-r--r-- | devel/p5-Getopt-EX/pkg-descr | 5 | ||||
-rw-r--r-- | devel/p5-Getopt-EX/pkg-plist | 7 | ||||
-rw-r--r-- | textproc/Makefile | 1 | ||||
-rw-r--r-- | textproc/greple/Makefile | 38 | ||||
-rw-r--r-- | textproc/greple/distinfo | 3 | ||||
-rw-r--r-- | textproc/greple/files/patch-bin_greple | 18 | ||||
-rw-r--r-- | textproc/greple/files/patch-lib_App_Greple_daemon3.pm | 11 | ||||
-rw-r--r-- | textproc/greple/pkg-descr | 8 | ||||
-rw-r--r-- | textproc/greple/pkg-plist | 28 |
12 files changed, 148 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index 29ce3f7e3257..e4f9701146f5 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -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 diff --git a/devel/p5-Getopt-EX/Makefile b/devel/p5-Getopt-EX/Makefile new file mode 100644 index 000000000000..68ed628957d8 --- /dev/null +++ b/devel/p5-Getopt-EX/Makefile @@ -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> diff --git a/devel/p5-Getopt-EX/distinfo b/devel/p5-Getopt-EX/distinfo new file mode 100644 index 000000000000..025b8dd3ba1b --- /dev/null +++ b/devel/p5-Getopt-EX/distinfo @@ -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 diff --git a/devel/p5-Getopt-EX/pkg-descr b/devel/p5-Getopt-EX/pkg-descr new file mode 100644 index 000000000000..cd09281483e6 --- /dev/null +++ b/devel/p5-Getopt-EX/pkg-descr @@ -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 diff --git a/devel/p5-Getopt-EX/pkg-plist b/devel/p5-Getopt-EX/pkg-plist new file mode 100644 index 000000000000..5945dd597f9f --- /dev/null +++ b/devel/p5-Getopt-EX/pkg-plist @@ -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 diff --git a/textproc/Makefile b/textproc/Makefile index 6b1d1afb68dd..4178161e195f 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -226,6 +226,7 @@ SUBDIR += google-translate-cli SUBDIR += gpp SUBDIR += grap + SUBDIR += greple SUBDIR += grc-aspell SUBDIR += groff SUBDIR += groonga diff --git a/textproc/greple/Makefile b/textproc/greple/Makefile new file mode 100644 index 000000000000..fcb711401982 --- /dev/null +++ b/textproc/greple/Makefile @@ -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> diff --git a/textproc/greple/distinfo b/textproc/greple/distinfo new file mode 100644 index 000000000000..e829e91d0ce9 --- /dev/null +++ b/textproc/greple/distinfo @@ -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 diff --git a/textproc/greple/files/patch-bin_greple b/textproc/greple/files/patch-bin_greple new file mode 100644 index 000000000000..14860686a9ce --- /dev/null +++ b/textproc/greple/files/patch-bin_greple @@ -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); + diff --git a/textproc/greple/files/patch-lib_App_Greple_daemon3.pm b/textproc/greple/files/patch-lib_App_Greple_daemon3.pm new file mode 100644 index 000000000000..03783c8d2b2f --- /dev/null +++ b/textproc/greple/files/patch-lib_App_Greple_daemon3.pm @@ -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]}; + } + } + diff --git a/textproc/greple/pkg-descr b/textproc/greple/pkg-descr new file mode 100644 index 000000000000..745cf96c62db --- /dev/null +++ b/textproc/greple/pkg-descr @@ -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 diff --git a/textproc/greple/pkg-plist b/textproc/greple/pkg-plist new file mode 100644 index 000000000000..41d1c79cf876 --- /dev/null +++ b/textproc/greple/pkg-plist @@ -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 |