SF.net SVN: gar:[25956] csw/mgar/pkg
opk at users.sourceforge.net
opk at users.sourceforge.net
Thu Sep 22 14:58:40 CEST 2016
Revision: 25956
http://sourceforge.net/p/gar/code/25956
Author: opk
Date: 2016-09-22 12:58:40 +0000 (Thu, 22 Sep 2016)
Log Message:
-----------
the_silver_searcher/trunk: new package
Added Paths:
-----------
csw/mgar/pkg/the_silver_searcher/
csw/mgar/pkg/the_silver_searcher/Makefile
csw/mgar/pkg/the_silver_searcher/branches/
csw/mgar/pkg/the_silver_searcher/tags/
csw/mgar/pkg/the_silver_searcher/trunk/
csw/mgar/pkg/the_silver_searcher/trunk/Makefile
csw/mgar/pkg/the_silver_searcher/trunk/checksums
csw/mgar/pkg/the_silver_searcher/trunk/files/
csw/mgar/pkg/the_silver_searcher/trunk/files/_the_silver_searcher
Added: csw/mgar/pkg/the_silver_searcher/Makefile
===================================================================
--- csw/mgar/pkg/the_silver_searcher/Makefile (rev 0)
+++ csw/mgar/pkg/the_silver_searcher/Makefile 2016-09-22 12:58:40 UTC (rev 25956)
@@ -0,0 +1,2 @@
+%:
+ $(MAKE) -C trunk $*
Index: csw/mgar/pkg/the_silver_searcher/trunk
===================================================================
--- csw/mgar/pkg/the_silver_searcher/trunk 2016-09-22 12:06:44 UTC (rev 25955)
+++ csw/mgar/pkg/the_silver_searcher/trunk 2016-09-22 12:58:40 UTC (rev 25956)
Property changes on: csw/mgar/pkg/the_silver_searcher/trunk
___________________________________________________________________
Added: svn:ignore
## -0,0 +1 ##
+work
Added: csw/mgar/pkg/the_silver_searcher/trunk/Makefile
===================================================================
--- csw/mgar/pkg/the_silver_searcher/trunk/Makefile (rev 0)
+++ csw/mgar/pkg/the_silver_searcher/trunk/Makefile 2016-09-22 12:58:40 UTC (rev 25956)
@@ -0,0 +1,36 @@
+# $Id$
+
+NAME = the_silver_searcher
+VERSION = 0.32.0
+GARTYPE = v2
+
+DESCRIPTION = The Silver Searcher is a code searching tool similar to ack
+define BLURB
+ The Silver Searcher is a tool for searching code. It started off as a
+ clone of Ack, but their feature sets have since diverged slightly. In
+ typical usage, Ag is 5-10x faster than Ack.
+endef
+
+MASTER_SITES = http://geoff.greer.fm/ag/releases/
+SPKG_SOURCEURL = http://geoff.greer.fm/ag/
+DISTFILES = $(DISTNAME).tar.gz
+DISTFILES += _the_silver_searcher
+LICENSE = LICENSE
+
+RUNTIME_DEP_PKGS = CSWlibpcre1 CSWliblzma5 CSWlibz1
+BUILD_DEP_PKGS = CSWlibpcre-dev CSWliblzma-dev CSWlibz-dev
+
+CONFIGURE_ARGS = $(DIRPATHS)
+
+include gar/category.mk
+
+post-extract:
+ gsed -i -e 's/ -Wall[^"]*//' $(WORKSRC)/configure
+ @$(MAKECOOKIE)
+
+post-install:
+ rm $(DESTDIR)$(sharedstatedir)/the_silver_searcher/completions/ag.bashcomp.sh
+ mkdir -p $(DESTDIR)$(sharedstatedir)/zsh/functions $(DESTDIR)$(sharedstatedir)/bash-completion/completions
+ cp -p $(WORKDIR)/_the_silver_searcher $(DESTDIR)$(sharedstatedir)/zsh/functions
+ cp -p $(WORKSRC)/ag.bashcomp.sh $(DESTDIR)$(sharedstatedir)/bash-completion/completions/ag
+ @$(MAKECOOKIE)
Property changes on: csw/mgar/pkg/the_silver_searcher/trunk/Makefile
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Added: csw/mgar/pkg/the_silver_searcher/trunk/checksums
===================================================================
--- csw/mgar/pkg/the_silver_searcher/trunk/checksums (rev 0)
+++ csw/mgar/pkg/the_silver_searcher/trunk/checksums 2016-09-22 12:58:40 UTC (rev 25956)
@@ -0,0 +1 @@
+3fdfd5836924246073d5344257a06823 the_silver_searcher-0.32.0.tar.gz
Added: csw/mgar/pkg/the_silver_searcher/trunk/files/_the_silver_searcher
===================================================================
--- csw/mgar/pkg/the_silver_searcher/trunk/files/_the_silver_searcher (rev 0)
+++ csw/mgar/pkg/the_silver_searcher/trunk/files/_the_silver_searcher 2016-09-22 12:58:40 UTC (rev 25956)
@@ -0,0 +1,86 @@
+#compdef ag
+
+# Completion function for zsh
+
+local ret=1
+local -a args expl
+
+# Intentionally avoided many possible mutual exlusions because it is
+# likely that earlier options come from an alias. In line with this
+# the following conditionally adds options that assert defaults.
+[[ -n $words[(r)(-[is]|--ignore-case|--case-sensitive)] ]] && args+=(
+ '(-S --smart-case -s -s --ignore-case --case-sensitive)'{-S,--smart-case}'[insensitive match unless pattern includes uppercase]'
+)
+[[ -n $words[(r)--nobreak] ]] && args+=(
+ "(--nobreak)--break[print newlines between matches in different files]"
+)
+[[ -n $words[(r)--nogroup] ]] && args+=(
+ "(--nogroup)--group[don't repeat filename for each match line]"
+)
+
+_tags normal-options file-types
+while _tags; do
+ _requested normal-options && _arguments -S -s $args \
+ '--ackmate[print results in AckMate-parseable format]' \
+ '(--after -A)'{--after=-,-A+}'[specify lines of trailing context]::lines [2]' \
+ '(--before -B)'{--before=-,-B+}'[specify lines of leading context]::lines [2]' \
+ "--nobreak[don't print newlines between matches in different files]" \
+ '(--count -c)'{--count,-c}'[only print a count of matching lines]' \
+ '--color[enable color highlighting of output]' \
+ '(--color-line-number --color-match --color-path)--nocolor[disable color highlighting of output]' \
+ '--color-line-number=[specify color for line numbers]:color [1;33]' \
+ '--color-match=[specify color for result match numbers]:color [30;43]' \
+ '--color-path=[specify color for path names]:color [1;32]' \
+ '--column[print column numbers in results]' \
+ '(--context -C)'{--context=-,-C+}'[specify lines of context]::lines' \
+ '(--debug -D)'{--debug,-D}'[output debug information]' \
+ '--depth=[specify directory levels to descend when searching]:levels [25]' \
+ '(--noheading)--nofilename[suppress printing of filenames]' \
+ '(-f --follow)'{-f,--follow}'[follow symlinks]' \
+ '(-F --fixed-strings --literal -Q)'{--fixed-strings,-F,--literal,-Q}'[use literal strings]' \
+ '--nogroup[repeat filename for each match line]' \
+ '(1 -G --file-search-regex)-g+[print filenames matching a pattern]:regex' \
+ '(-G --file-search-regex)'{-G+,--file-search-regex=}'[limit search to filenames matching pattern]:regex' \
+ '(-H --heading --noheading)'{-H,--heading}'[print filename with each match]' \
+ '(-H --heading --noheading --nofilename)--noheading[suppress printing of filenames]' \
+ '--hidden[search hidden files (obeying .*ignore files)]' \
+ {--ignore=,--ignore-dir=}'[ignore files/directories matching pattern]:regex' \
+ '(-i --ignore-case)'{-i,--ignore-case}'[match case-insensitively]' \
+ '(-l --files-with-matches)'{-l,--files-with-matches}"[output matching files' names only]" \
+ '(-L --files-without-matches)'{-L,--files-without-matches}"[output non-matching files' names only]" \
+ '(--max-count -m)'{--max-count=,-m+}'[stop after specified no of matches in each file]:max number of matches' \
+ '--numbers[prefix output with line numbers, even for streams]' \
+ '--nonumbers[suppress printing of line numbers]' \
+ '(--only-matching -o)'{--only-matching,-o}'[show only matching part of line]' \
+ '(-p --path-to-agignore)'{-p+,--path-to-agignore=}'[use specified .agignore file]:file:_files' \
+ '--print-long-lines[print matches on very long lines]' \
+ "--passthrough[when searching a stream, print all lines even if they don't match]" \
+ '(-s --case-sensitive)'{-s,--case-sensitive}'[match case]' \
+ '--silent[suppress all log messages, including errors]' \
+ '(--stats-only)--stats[print stats (files scanned, time taken, etc.)]' \
+ '(--stats)--stats-only[print stats and nothing else]' \
+ '(-U --skip-vcs-ignores)'{-U,--skip-vcs-ignores}'[ignore VCS files (stil obey .agignore)]' \
+ '(-v --invert-match)'{-v,--invert-match}'[select non-matching lines]' \
+ '--vimgrep[output results like vim :vimgrep /pattern/g would]' \
+ '(-w --word-regexp)'{-w,--word-regexp}'[force pattern to match only whole words]' \
+ '(-z --search-zip)'{-z,--search-zip}'[search contents of compressed files]' \
+ '(-0 --null)'{-0,--null}'[separate filenames with null]' \
+ ': :_guard "^-*" pattern' \
+ '*:file:_files' \
+ '(- :)--list-file-types[list supported file types]' \
+ '(- :)'{-h,--help}'[display help information]' \
+ '(- :)'{-V,--version}'[display version information]' \
+ - '(ignores)' \
+ '(-a --all-types)'{-a,--all-types}'[search all files]' \
+ '--search-binary[search binary files for matches]' \
+ {-t,--all-text}'[search all text files (not including hidden files)]' \
+ {-u,--unrestricted}'[search all files]' && ret=0
+
+ _requested file-types && { ! zstyle -T ":completion:${curcontext}:options" prefix-needed ||
+ [[ -prefix - ]] } && _all_labels file-types expl 'file type' \
+ compadd - ${(M)$(_call_program file-types $words[1] --list-file-types):#--*} && ret=0
+
+ (( ret )) || break
+done
+
+return ret
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list