- Add port: textproc/ugrep

NEW ultra fast grep with interactive query UI: search file systems,
source code, text, binary files, archives (cpio/tar/pax/zip),
compressed files (gz/Z/bz2/lzma/xz/lz4), documents, fuzzy search,
and more. A faster, user-friendly replacement for GNU/BSD grep.

WWW: https://github.com/Genivia/ugrep
This commit is contained in:
Ashish SHUKLA 2020-08-10 14:36:48 +00:00
parent 5d6a821fc9
commit 2a05d276df
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=544621
6 changed files with 277 additions and 0 deletions

View File

@ -1784,6 +1784,7 @@
SUBDIR += uchardet
SUBDIR += ucto
SUBDIR += uctodata
SUBDIR += ugrep
SUBDIR += uim
SUBDIR += uim-el
SUBDIR += uim-gtk

51
textproc/ugrep/Makefile Normal file
View File

@ -0,0 +1,51 @@
# $FreeBSD$
PORTNAME= ugrep
DISTVERSIONPREFIX= v
DISTVERSION= 2.5.0
CATEGORIES= textproc
MAINTAINER= ashish@FreeBSD.org
COMMENT= NEW ultra fast grep with interactive query UI
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
USES= gmake
USE_GITHUB= yes
GH_ACCOUNT= Genivia
OPTIONS_DEFINE= COLOR HIDDEN LZ4 MMAP PAGER PCRE2 PRETTY
OPTIONS_DEFINE_aarch64= NEON
OPTIONS_DEFINE_amd64= AVX SSE2
OPTIONS_DEFAULT= COLOR HIDDEN LZ4 MMAP PAGER PCRE2 PRETTY
OPTIONS_DEFAULT_aarch64= NEON
OPTIONS_DEFAULT_amd64= AVX SSE2
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-boost-regex
PCRE2_DESC= Use Perl Compatible Regular Expressions v2
PCRE2_CONFIGURE_WITH= pcre2=${LOCALBASE}
PCRE2_LIB_DEPENDS= libboost_regex.so:devel/boost-libs \
libpcre2-8.so:devel/pcre2
LZ4_CONFIGURE_WITH= lz4=${LOCALBASE}
LZ4_LIB_DEPENDS= liblz4.so:archivers/liblz4
NEON_DESC= ARM NEON/AArch64 optimizations
NEON_CONFIGURE_ENABLE= neon
AVX_CONFIGURE_ENABLE= avx
AVX_DESC= AVX optimizations
SSE2_CONFIGURE_ENABLE= sse2
SSE2_DESC= SSE2 optimizations
COLOR_DESC= Colorized output by default
COLOR_CONFIGURE_ENABLE= color
PRETTY_DESC= Pretty output by default
PRETTY_CONFIGURE_ENABLE= pretty
PAGER_DESC= Pager enabled by default
PAGER_CONFIGURE_ENABLE= pager
HIDDEN_DESC= Search hidden files by default
HIDDEN_CONFIGURE_ENABLE= hidden
MMAP_DESC= Enable memory mapped files by default
MMAP_CONFIGURE_ENABLE= mmap
.include <bsd.port.mk>

3
textproc/ugrep/distinfo Normal file
View File

@ -0,0 +1,3 @@
TIMESTAMP = 1597041027
SHA256 (Genivia-ugrep-v2.5.0_GH0.tar.gz) = 98cc23f27ec4ebba14d36f21b5625e0def4aab3e65afecc609e676938002b110
SIZE (Genivia-ugrep-v2.5.0_GH0.tar.gz) = 4090150

6
textproc/ugrep/pkg-descr Normal file
View File

@ -0,0 +1,6 @@
NEW ultra fast grep with interactive query UI: search file systems,
source code, text, binary files, archives (cpio/tar/pax/zip),
compressed files (gz/Z/bz2/lzma/xz/lz4), documents, fuzzy search,
and more. A faster, user-friendly replacement for GNU/BSD grep.
WWW: https://github.com/Genivia/ugrep

View File

@ -0,0 +1,25 @@
You have successfully built and installed ugrep.
You can use the ugrep & ug commands to search files.
The ugrep command is for batch use, whereas the ug
command is intended for interactive searches using
a .ugrep configuration file with your preferences,
located in the working directory or home directory.
Run 'ug --save-config' to create a .ugrep file.
Aliases to consider:
alias uq = 'ug -Q'
alias ux = 'ug -UX'
alias uz = 'ug -z'
alias grep = 'ugrep -G'
alias egrep = 'ugrep -E'
alias fgrep = 'ugrep -F'
alias pgrep = 'ugrep -P'
alias xgrep = 'ugrep -UX'
alias zgrep = 'ugrep -zG'
alias zegrep = 'ugrep -zE'
alias zfgrep = 'ugrep -zF'
alias zpgrep = 'ugrep -zP'
alias zxgrep = 'ugrep -zUX'
alias xdump = 'ugrep -X ""'

191
textproc/ugrep/pkg-plist Normal file
View File

@ -0,0 +1,191 @@
bin/ug
bin/ugrep
man/man1/ug.1.gz
man/man1/ugrep.1.gz
%%DATADIR%%/patterns/README.md
%%DATADIR%%/patterns/c++/README.md
%%DATADIR%%/patterns/c++/classes
%%DATADIR%%/patterns/c++/comments
%%DATADIR%%/patterns/c++/defines
%%DATADIR%%/patterns/c++/directives
%%DATADIR%%/patterns/c++/doc_comments
%%DATADIR%%/patterns/c++/enums
%%DATADIR%%/patterns/c++/functions
%%DATADIR%%/patterns/c++/includes
%%DATADIR%%/patterns/c++/names
%%DATADIR%%/patterns/c++/namespaces
%%DATADIR%%/patterns/c++/strings
%%DATADIR%%/patterns/c++/structs
%%DATADIR%%/patterns/c++/typedefs
%%DATADIR%%/patterns/c++/zap_commands
%%DATADIR%%/patterns/c++/zap_comments
%%DATADIR%%/patterns/c++/zap_directives
%%DATADIR%%/patterns/c++/zap_strings
%%DATADIR%%/patterns/c/README.md
%%DATADIR%%/patterns/c/comments
%%DATADIR%%/patterns/c/defines
%%DATADIR%%/patterns/c/directives
%%DATADIR%%/patterns/c/doc_comments
%%DATADIR%%/patterns/c/enums
%%DATADIR%%/patterns/c/functions
%%DATADIR%%/patterns/c/includes
%%DATADIR%%/patterns/c/names
%%DATADIR%%/patterns/c/strings
%%DATADIR%%/patterns/c/structs
%%DATADIR%%/patterns/c/typedefs
%%DATADIR%%/patterns/c/zap_commands
%%DATADIR%%/patterns/c/zap_comments
%%DATADIR%%/patterns/c/zap_directives
%%DATADIR%%/patterns/c/zap_strings
%%DATADIR%%/patterns/cpp/README.md
%%DATADIR%%/patterns/cpp/classes
%%DATADIR%%/patterns/cpp/comments
%%DATADIR%%/patterns/cpp/defines
%%DATADIR%%/patterns/cpp/directives
%%DATADIR%%/patterns/cpp/doc_comments
%%DATADIR%%/patterns/cpp/enums
%%DATADIR%%/patterns/cpp/functions
%%DATADIR%%/patterns/cpp/includes
%%DATADIR%%/patterns/cpp/names
%%DATADIR%%/patterns/cpp/namespaces
%%DATADIR%%/patterns/cpp/strings
%%DATADIR%%/patterns/cpp/structs
%%DATADIR%%/patterns/cpp/typedefs
%%DATADIR%%/patterns/cpp/zap_commands
%%DATADIR%%/patterns/cpp/zap_comments
%%DATADIR%%/patterns/cpp/zap_directives
%%DATADIR%%/patterns/cpp/zap_strings
%%DATADIR%%/patterns/cs/README.md
%%DATADIR%%/patterns/cs/classes
%%DATADIR%%/patterns/cs/comments
%%DATADIR%%/patterns/cs/doc_comments
%%DATADIR%%/patterns/cs/enums
%%DATADIR%%/patterns/cs/functions
%%DATADIR%%/patterns/cs/names
%%DATADIR%%/patterns/cs/strings
%%DATADIR%%/patterns/cs/zap_comments
%%DATADIR%%/patterns/cs/zap_strings
%%DATADIR%%/patterns/html/README.md
%%DATADIR%%/patterns/html/comments
%%DATADIR%%/patterns/html/href
%%DATADIR%%/patterns/html/img
%%DATADIR%%/patterns/html/link
%%DATADIR%%/patterns/html/meta
%%DATADIR%%/patterns/html/pre
%%DATADIR%%/patterns/html/script
%%DATADIR%%/patterns/html/src
%%DATADIR%%/patterns/html/style
%%DATADIR%%/patterns/html/zap_comments
%%DATADIR%%/patterns/java/README.md
%%DATADIR%%/patterns/java/classes
%%DATADIR%%/patterns/java/comments
%%DATADIR%%/patterns/java/doc_comments
%%DATADIR%%/patterns/java/enums
%%DATADIR%%/patterns/java/imports
%%DATADIR%%/patterns/java/methods
%%DATADIR%%/patterns/java/names
%%DATADIR%%/patterns/java/strings
%%DATADIR%%/patterns/java/zap_comments
%%DATADIR%%/patterns/java/zap_strings
%%DATADIR%%/patterns/js/README.md
%%DATADIR%%/patterns/js/classes
%%DATADIR%%/patterns/js/comments
%%DATADIR%%/patterns/js/dom
%%DATADIR%%/patterns/js/functions
%%DATADIR%%/patterns/js/names
%%DATADIR%%/patterns/js/strings
%%DATADIR%%/patterns/js/zap_comments
%%DATADIR%%/patterns/js/zap_strings
%%DATADIR%%/patterns/json/README.md
%%DATADIR%%/patterns/json/keys
%%DATADIR%%/patterns/json/keys_and_values
%%DATADIR%%/patterns/json/values
%%DATADIR%%/patterns/markdown/README.md
%%DATADIR%%/patterns/markdown/code
%%DATADIR%%/patterns/markdown/codeblocks
%%DATADIR%%/patterns/markdown/images
%%DATADIR%%/patterns/markdown/links
%%DATADIR%%/patterns/markdown/sections
%%DATADIR%%/patterns/perl/README.md
%%DATADIR%%/patterns/perl/comments
%%DATADIR%%/patterns/perl/formats
%%DATADIR%%/patterns/perl/names
%%DATADIR%%/patterns/perl/strings
%%DATADIR%%/patterns/perl/subs
%%DATADIR%%/patterns/perl/zap_comments
%%DATADIR%%/patterns/perl/zap_formats
%%DATADIR%%/patterns/perl/zap_strings
%%DATADIR%%/patterns/php/README.md
%%DATADIR%%/patterns/php/comments
%%DATADIR%%/patterns/php/functions
%%DATADIR%%/patterns/php/names
%%DATADIR%%/patterns/php/strings
%%DATADIR%%/patterns/php/zap_comments
%%DATADIR%%/patterns/php/zap_html
%%DATADIR%%/patterns/php/zap_strings
%%DATADIR%%/patterns/python/README.md
%%DATADIR%%/patterns/python/comments
%%DATADIR%%/patterns/python/defs
%%DATADIR%%/patterns/python/doc_strings
%%DATADIR%%/patterns/python/imports
%%DATADIR%%/patterns/python/names
%%DATADIR%%/patterns/python/strings
%%DATADIR%%/patterns/python/zap_comments
%%DATADIR%%/patterns/python/zap_strings
%%DATADIR%%/patterns/ruby/README.md
%%DATADIR%%/patterns/ruby/classes
%%DATADIR%%/patterns/ruby/comments
%%DATADIR%%/patterns/ruby/defs
%%DATADIR%%/patterns/ruby/modules
%%DATADIR%%/patterns/ruby/names
%%DATADIR%%/patterns/ruby/strings
%%DATADIR%%/patterns/ruby/zap_comments
%%DATADIR%%/patterns/ruby/zap_strings
%%DATADIR%%/patterns/rust/README.md
%%DATADIR%%/patterns/rust/comments
%%DATADIR%%/patterns/rust/crates
%%DATADIR%%/patterns/rust/enums
%%DATADIR%%/patterns/rust/fns
%%DATADIR%%/patterns/rust/impls
%%DATADIR%%/patterns/rust/macros
%%DATADIR%%/patterns/rust/mods
%%DATADIR%%/patterns/rust/names
%%DATADIR%%/patterns/rust/strings
%%DATADIR%%/patterns/rust/structs
%%DATADIR%%/patterns/rust/traits
%%DATADIR%%/patterns/rust/unions
%%DATADIR%%/patterns/rust/uses
%%DATADIR%%/patterns/rust/zap_comments
%%DATADIR%%/patterns/rust/zap_strings
%%DATADIR%%/patterns/scala/README.md
%%DATADIR%%/patterns/scala/classes
%%DATADIR%%/patterns/scala/comments
%%DATADIR%%/patterns/scala/defs
%%DATADIR%%/patterns/scala/imports
%%DATADIR%%/patterns/scala/names
%%DATADIR%%/patterns/scala/objects
%%DATADIR%%/patterns/scala/packages
%%DATADIR%%/patterns/scala/strings
%%DATADIR%%/patterns/scala/zap_comments
%%DATADIR%%/patterns/scala/zap_strings
%%DATADIR%%/patterns/swift/README.md
%%DATADIR%%/patterns/swift/classes
%%DATADIR%%/patterns/swift/comments
%%DATADIR%%/patterns/swift/enums
%%DATADIR%%/patterns/swift/funcs
%%DATADIR%%/patterns/swift/imports
%%DATADIR%%/patterns/swift/names
%%DATADIR%%/patterns/swift/strings
%%DATADIR%%/patterns/swift/structs
%%DATADIR%%/patterns/swift/zap_comments
%%DATADIR%%/patterns/swift/zap_strings
%%DATADIR%%/patterns/xml/README.md
%%DATADIR%%/patterns/xml/attributes
%%DATADIR%%/patterns/xml/attributes_and_values
%%DATADIR%%/patterns/xml/comments
%%DATADIR%%/patterns/xml/elements
%%DATADIR%%/patterns/xml/pis
%%DATADIR%%/patterns/xml/tags
%%DATADIR%%/patterns/xml/zap_comments
%%DATADIR%%/patterns/xml/zap_pis
%%DATADIR%%/patterns/xml/zap_strings