diff options
author | wiz <wiz> | 2012-04-13 11:32:58 +0000 |
---|---|---|
committer | wiz <wiz> | 2012-04-13 11:32:58 +0000 |
commit | c8343208a6352119c85fa0628fa1e92eb897b797 (patch) | |
tree | ced432dd27f64a98e02b8faa616eaef151e9e08a /textproc | |
parent | 1a3eeb9eb8bff41158d5c4c0a7804069e9ca4f8a (diff) | |
download | pkgsrc-c8343208a6352119c85fa0628fa1e92eb897b797.tar.gz |
Initial import of the_silver_searcher-0.5.
Why use ag?
* It searches through code about 3x-5x faster than ack.
* It ignores files matched by patterns in your .gitignore and .hgignore.
* If there are files in your source repo that you don't want to
search, just add their patterns to a .agignore file.
* It's written in C instead of perl, the lesser of two evils :)
* The binary name is 33% shorter than ack!
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/the_silver_searcher/DESCR | 8 | ||||
-rw-r--r-- | textproc/the_silver_searcher/Makefile | 22 | ||||
-rw-r--r-- | textproc/the_silver_searcher/PLIST | 3 | ||||
-rw-r--r-- | textproc/the_silver_searcher/distinfo | 8 | ||||
-rw-r--r-- | textproc/the_silver_searcher/patches/patch-src_options.c | 14 | ||||
-rw-r--r-- | textproc/the_silver_searcher/patches/patch-src_util.c | 14 | ||||
-rw-r--r-- | textproc/the_silver_searcher/patches/patch-src_util.h | 14 |
7 files changed, 83 insertions, 0 deletions
diff --git a/textproc/the_silver_searcher/DESCR b/textproc/the_silver_searcher/DESCR new file mode 100644 index 00000000000..3fab1bbcdd6 --- /dev/null +++ b/textproc/the_silver_searcher/DESCR @@ -0,0 +1,8 @@ +Why use ag? + +* It searches through code about 3x-5x faster than ack. +* It ignores files matched by patterns in your .gitignore and .hgignore. +* If there are files in your source repo that you don't want to + search, just add their patterns to a .agignore file. +* It's written in C instead of perl, the lesser of two evils :) +* The binary name is 33% shorter than ack! diff --git a/textproc/the_silver_searcher/Makefile b/textproc/the_silver_searcher/Makefile new file mode 100644 index 00000000000..c120583cadc --- /dev/null +++ b/textproc/the_silver_searcher/Makefile @@ -0,0 +1,22 @@ +# $NetBSD: Makefile,v 1.1.1.1 2012/04/13 11:32:58 wiz Exp $ +# + +DISTNAME= the_silver_searcher-0.5 +CATEGORIES= textproc +MASTER_SITES= http://cloud.github.com/downloads/ggreer/the_silver_searcher/ + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://github.com/ggreer/the_silver_searcher +COMMENT= Attempt to improve on ack, which itself is better than grep +LICENSE= apache-2.0 + +PKG_DESTDIR_SUPPORT= user-destdir + +GNU_CONFIGURE= yes +USE_TOOLS+= aclocal autoheader autoconf automake pkg-config + +pre-configure: + cd ${WRKSRC} && sh build.sh + +.include "../../devel/pcre/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/textproc/the_silver_searcher/PLIST b/textproc/the_silver_searcher/PLIST new file mode 100644 index 00000000000..76a25c8ac28 --- /dev/null +++ b/textproc/the_silver_searcher/PLIST @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2012/04/13 11:32:58 wiz Exp $ +bin/ag +man/man1/ag.1 diff --git a/textproc/the_silver_searcher/distinfo b/textproc/the_silver_searcher/distinfo new file mode 100644 index 00000000000..c1e677019c2 --- /dev/null +++ b/textproc/the_silver_searcher/distinfo @@ -0,0 +1,8 @@ +$NetBSD: distinfo,v 1.1.1.1 2012/04/13 11:32:58 wiz Exp $ + +SHA1 (the_silver_searcher-0.5.tar.gz) = 99afb1930016377caf7a3bd9ab5dc0fa59352c4d +RMD160 (the_silver_searcher-0.5.tar.gz) = 869622925f9d8e7aff3d0c26db50204703b4300e +Size (the_silver_searcher-0.5.tar.gz) = 20232 bytes +SHA1 (patch-src_options.c) = c1b734ec9e38417e3a90395762aa4ab026205619 +SHA1 (patch-src_util.c) = 0f843fb6885a91a2eb0b9a5cde6b2ae372fcdb49 +SHA1 (patch-src_util.h) = d76314bc134bff918037764c18bf9581311572fd diff --git a/textproc/the_silver_searcher/patches/patch-src_options.c b/textproc/the_silver_searcher/patches/patch-src_options.c new file mode 100644 index 00000000000..b5208afb68f --- /dev/null +++ b/textproc/the_silver_searcher/patches/patch-src_options.c @@ -0,0 +1,14 @@ +$NetBSD: patch-src_options.c,v 1.1.1.1 2012/04/13 11:32:58 wiz Exp $ + +Remove header that doesn't exist on NetBSD (and is not missed). + +--- src/options.c.orig 2012-04-11 04:05:42.000000000 +0000 ++++ src/options.c +@@ -3,7 +3,6 @@ + #include <stdlib.h> + #include <string.h> + #include <unistd.h> +-#include <xlocale.h> + + #include "config.h" + #include "options.h" diff --git a/textproc/the_silver_searcher/patches/patch-src_util.c b/textproc/the_silver_searcher/patches/patch-src_util.c new file mode 100644 index 00000000000..3a0b5cdda72 --- /dev/null +++ b/textproc/the_silver_searcher/patches/patch-src_util.c @@ -0,0 +1,14 @@ +$NetBSD: patch-src_util.c,v 1.1.1.1 2012/04/13 11:32:58 wiz Exp $ + +Remove header that doesn't exist on NetBSD (and is not missed). + +--- src/util.c.orig 2012-04-11 04:05:42.000000000 +0000 ++++ src/util.c +@@ -1,7 +1,6 @@ + #include <ctype.h> + #include <string.h> + #include <stdio.h> +-#include <xlocale.h> + #include <stdarg.h> + #include <strings.h> + #include <stdlib.h> diff --git a/textproc/the_silver_searcher/patches/patch-src_util.h b/textproc/the_silver_searcher/patches/patch-src_util.h new file mode 100644 index 00000000000..5fd0bc74942 --- /dev/null +++ b/textproc/the_silver_searcher/patches/patch-src_util.h @@ -0,0 +1,14 @@ +$NetBSD: patch-src_util.h,v 1.1.1.1 2012/04/13 11:32:58 wiz Exp $ + +Add header for struct timeval. + +--- src/util.h.orig 2012-04-11 04:05:42.000000000 +0000 ++++ src/util.h +@@ -2,6 +2,7 @@ + #define UTIL_H + + #include <string.h> ++#include <sys/time.h> + + #include "config.h" + |