summaryrefslogtreecommitdiff
path: root/textproc/sift
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2015-12-27 20:50:40 +0000
committerwiz <wiz@pkgsrc.org>2015-12-27 20:50:40 +0000
commitd5ac6225706d772c39b00f1f1b124d55173e9d90 (patch)
tree1695829147344ebbda6037aeab27df465239f8a5 /textproc/sift
parent89c60f1220f1b9c979b1849cb717670f12a899a7 (diff)
downloadpkgsrc-d5ac6225706d772c39b00f1f1b124d55173e9d90.tar.gz
Import sift-0.6.0 as textproc/sift.
All the features you expect from a modern grep alternative. RegEx - perl compatible regular expression syntax (no more escape hell) usable defaults - basic options known from grep but with usable defaults multiline support - find matches spanning over multiple lines replace - replace output to reformat it to your needs without relying on awk/sed gzip files - search through normal and gzip'ed files in one program call multiple patterns - search for multiple patterns in one run target selection - select or exclude search targets based on file name, directory name, path and type handling big data - sift handles big files without problems: files >50GB, >5,000,000,000 lines and >5,000,000,000 matches successfully tested
Diffstat (limited to 'textproc/sift')
-rw-r--r--textproc/sift/DESCR22
-rw-r--r--textproc/sift/Makefile21
-rw-r--r--textproc/sift/PLIST13
-rw-r--r--textproc/sift/distinfo6
4 files changed, 62 insertions, 0 deletions
diff --git a/textproc/sift/DESCR b/textproc/sift/DESCR
new file mode 100644
index 00000000000..61354a3b815
--- /dev/null
+++ b/textproc/sift/DESCR
@@ -0,0 +1,22 @@
+All the features you expect from a modern grep alternative.
+
+RegEx - perl compatible regular expression syntax (no more escape
+hell)
+
+usable defaults - basic options known from grep but with usable
+defaults
+
+multiline support - find matches spanning over multiple lines
+replace - replace output to reformat it to your needs without
+relying on awk/sed
+
+gzip files - search through normal and gzip'ed files in one program
+call
+
+multiple patterns - search for multiple patterns in one run
+target selection - select or exclude search targets based on file
+name, directory name, path and type
+
+handling big data - sift handles big files without problems: files
+>50GB, >5,000,000,000 lines and >5,000,000,000 matches successfully
+tested
diff --git a/textproc/sift/Makefile b/textproc/sift/Makefile
new file mode 100644
index 00000000000..ae58da2698d
--- /dev/null
+++ b/textproc/sift/Makefile
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1 2015/12/27 20:50:40 wiz Exp $
+
+DISTNAME= sift-0.6.0
+CATEGORIES= textproc
+MASTER_SITES= ${MASTER_SITE_GITHUB:=svent/}
+GITHUB_TAG= v${PKGVERSION_NOREV}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://sift-tool.org/
+COMMENT= Fast and powerful open source alternative to grep
+LICENSE= gnu-gpl-v3
+
+BUILD_DEPENDS+= go-crypto-[0-9]*:../../security/go-crypto
+BUILD_DEPENDS+= go-nbreader-[0-9]*:../../devel/go-nbreader
+BUILD_DEPENDS+= go-flags-svent-[0-9]*:../../devel/go-flags-svent
+
+GO_DIST_BASE= ${DISTNAME}
+GO_SRCPATH= github.com/svent/sift
+
+.include "../../lang/go/go-package.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/sift/PLIST b/textproc/sift/PLIST
new file mode 100644
index 00000000000..3dbb416dbda
--- /dev/null
+++ b/textproc/sift/PLIST
@@ -0,0 +1,13 @@
+@comment $NetBSD: PLIST,v 1.1 2015/12/27 20:50:40 wiz Exp $
+bin/sift
+gopkg/pkg/${GO_PLATFORM}/github.com/svent/sift/gitignore.a
+gopkg/src/github.com/svent/sift/LICENSE
+gopkg/src/github.com/svent/sift/README.md
+gopkg/src/github.com/svent/sift/filetypes.go
+gopkg/src/github.com/svent/sift/gitignore/gitignore.go
+gopkg/src/github.com/svent/sift/matching.go
+gopkg/src/github.com/svent/sift/matching_cgo.go
+gopkg/src/github.com/svent/sift/matching_other.go
+gopkg/src/github.com/svent/sift/options.go
+gopkg/src/github.com/svent/sift/output.go
+gopkg/src/github.com/svent/sift/sift.go
diff --git a/textproc/sift/distinfo b/textproc/sift/distinfo
new file mode 100644
index 00000000000..6d431c76302
--- /dev/null
+++ b/textproc/sift/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2015/12/27 20:50:40 wiz Exp $
+
+SHA1 (sift-0.6.0.tar.gz) = eae22261ed09cff6bb1b21bb2fcb0d0c28f6ab81
+RMD160 (sift-0.6.0.tar.gz) = ee9c6119e53503496b3c748fec292130e015cda5
+SHA512 (sift-0.6.0.tar.gz) = 7a42a793cde876834468ef800e109dfb18dde28451cb05e3e3e9ac3cbe07d4f1c9bdc007c7e2ef84ebd3162753c698c177017e19cefa0a6d2cc2822d308204c9
+Size (sift-0.6.0.tar.gz) = 34032 bytes