Commit graph

29 commits

Author SHA1 Message Date
wiz
1d3abe955e p5-ack: update to 2.24.
2.24    Thu Jun 21 22:41:49 CDT 2018
====================================
No changes since 2.23_03.


2.23_03 Fri Jun 15 23:18:42 CDT 2018
====================================
[ENHANCEMENTS]
Added --ts for Typescript.

[FIXES]
ack would stop searching if there was a file called "0" in the current
directory where ack was invoked. (GH #667)


2.23_02 Sat Jan  6 23:53:03 CST 2018
====================================
[FIXES]
t/ack-n.t was not calling lists_match() correctly.

[ENHANCEMENTS]
Added an optimization to make ack only do a line-by-line search of a
file if there's a match somewhere in the file.  This gives ack a 20-30%
in timings of common cases.


2.23_01
====================================
Broken. Deleted.
2018-06-24 09:17:27 +00:00
wiz
aca37edd38 p5-ack: update to 2.22.
2.22    Fri Dec 22 16:42:43 CST 2017
====================================
No changes since 2.21_01.


2.21_01 Mon Dec 18 23:40:45 CST 2017
====================================
[FIXES]
Avoid a fatal error that sometimes happened if a file was unreadable.
(GH#520)

[ENHANCEMENTS]
Added support for the Kotlin language.

Sped up file type detection for certain files.


2.20    Sun Dec 10 21:54:55 CST 2017
====================================
No changes since 2.19_01.


2.19_01 Thu Dec  7 23:35:53 CST 2017
====================================
[FIXES]
Changed a construction in the docs that Ubuntu flagged as a misspelling.

[ENHANCEMENTS]
When using submodules, the .git directory will be a file.  Make ack
ignore this by default.  Thanks, Michele Campeotto. (GH#653)

[INTERNALS]
Replaced all the test data for the test suite with public domain documents.
2017-12-30 15:02:43 +00:00
wiz
9efa4ddf59 p5-ack: update to 2.18.
2.18    Fri Mar 24 14:53:19 CDT 2017
====================================
ack 2.18 will probably be the final release in the ack 2.x series.
I'm going to be starting work on ack 3.000 in earnest.  Still,
if you discover problems with ack 2, please report them to
https://github.com/petdance/ack2/issues

If you're interested in ack 3 development, please sign up
for the ack-dev mailing list and/or join the ack Slack.  See
https://beyondgrep.com/community/ for details.

[INTERNALS]
Removed the abstraction of App::Ack::Resource and its subclass
App::Ack::Resource::Basic.  We are abandoning the idea that we'll have
plugins.


2.17_02 Thu Mar 23 22:25:13 CDT 2017
====================================
[FIXES]
ack no longer throws an undefined variable warning if it's called
from a directory that doesn't exist. (GH #634)

[DOCUMENTATION]
Explain that filetypes must be two characters or longer. (GH #389)

[INTERNALS]
Removed dependency on File::Glob which isn't used.
2017-09-18 12:47:02 +00:00
ryoon
b9d9d2fc30 Recursive revbump from lang/perl5 5.26.0 2017-06-05 14:24:48 +00:00
schmonz
9c85c87b8d Update to 2.16. From the changelog:
[CONFUSING BEHAVIOR & UPCOMING CHANGES]
The -w has a confusing behavior that it's had since back to ack 1.x
that will be changing in the future.  It's not changing in this
version, but this is a heads-up that it's coming.

ack -w is "match a whole word", and ack does this by putting turning
your PATTERN into \bPATTERN\b.  So "ack -w foo" effectively becomes
"ack \bfoo\b".  Handy.

The problem is that ack doesn't put a \b before PATTERN if it begins
with a non-word character, and won't put a \b after PATTERN if it
ends with a non-word character.

The problem is that if you're searching for "fool" or "foot", but
only as a word, and you do "ack -w foo[lt]" or "ack -w (fool|foot)",
you'll get matches for "football and foolish" which certainly should
not match if you're using -w.

[ENHANCEMENTS]
Include .cljs, .cljc and .edn files with the --clojure filetype.  Thanks,
Austin Chamberlin.

Added .xsd to the --xml filetype.  Thanks, Nick Morrott.

Added support for Swift language.  Thanks, Nikolaj Schumacher. (GH #512)

The MSYS2 project is now seen as Windows.  Thanks, Ray Donnelly. (GH #450)

Expand the definition of OCaml files.  Thanks, Marek Kubica. (GH #511)

Add support for Groovy Server Pages.  Thanks, Ethan Mallove. (GH #469)

The JSP filetype (--jsp) now recognizes .jspf files.  Thanks, Sebastien
Feugere.  (GH #586)

Many optimizations and code cleanups.  Thanks, Stephan Hohe.

Added --hpp option for C++ header files.  Thankis, Steffen Jaeckel.

ack now supports --ignore-dir=match:....  Thanks, Ailin Nemui! (GitHub ticket #42)

ack also supports --ignore-dir=ext:..., and --noignore-dir supports match/ext as well

[INTERNALS]
Added test to test --output. Thanks, Varadinsky! (GH #587, GH #590)

Added test to make sure subdirs of target subdirs are ignored if
--ignore-dir applies to them.  Thanks, Pete Houston. (GH #570)

[DOCUMENTATION]
Expanded the explanation of how the -w flag works.  Thanks, Ed Avis.
(GH #585)

[FIXES]
Reverted an optimization to make \s work properly again. (GH #572,
GH #571, GH #562, GH #491, GH #498)

Fixed an out-of-date FAQ entry.  Thanks, Jakub Wilk.  (GH #580)

The -l and -c flags would sometimes return inaccurate results due to
a bug introduced in 2.14.  Thanks to Elliot Shank for the report! (GH #491)

Behavior when using newlines in a search was inconsistent.  Thanks to
Yves Chevallier for the report! (GH #522)

Add minimal requirement of Getopt::Long 2.38, not 2.35, for GetOptionsFromString.

Don't ignore directories that are specified as command line targets (GH #524)

Fix a bug where a regular expression that matches the empty string could cause ack
to go into an infinite loop (GH #542)
2017-03-14 14:41:27 +00:00
wiz
86a78fce2e Bump PKGREVISION for perl-5.24. 2016-06-08 19:22:13 +00:00
wiz
40bbad7ac6 Comment out dependencies of the style
{perl>=5.16.6,p5-ExtUtils-ParseXS>=3.15}:../../devel/p5-ExtUtils-ParseXS
since pkgsrc enforces the newest perl version anyway, so they
should always pick perl, but sometimes (pkg_add) don't due to the
design of the {,} syntax.

No effective change for the above reason.

Ok joerg
2015-07-12 18:56:06 +00:00
wiz
2e65d464e8 Recursive PKGREVISION bump for all packages mentioning 'perl',
having a PKGNAME of p5-*, or depending such a package,
for perl-5.22.0.
2015-06-12 10:50:58 +00:00
schmonz
101f374ca9 Update to 2.14. From the changelog:
[FIXES]
The -s flag would fail to suppress certain warnings.  Thanks, Kassio
Borges. (GitHub ticket #439)

The -w flag would fail to work properly with regex features such as
alternation.  Thanks to Ed Avis for the report (GitHub ticket #443)

The -g flag should now work faster on larger codebases.  Thanks to
Manuel Meurer for the report (GitHub ticket #458)

More fixes for Windows tests.  Thanks to GitHub user @ispedals.

More whack-a-mole with Windows failures.  This time, it's POSIX::mkfifo
dying on Windows instead of returning undef like the docs implied,
or at least that I inferred.

Fixed incorrect deduping of config files under Windows.  Thanks,
Denis Howe.

More build fixes for Windows.  Windows config finder fixes from
James McCoy.

t/ack-named-pipes.t uses POSIX::mkfifo instead of the external
command, which should be more portable.  Thanks, Pete Krawczyk.

The building of ack-standalone relied on the output of `perldoc
-l`, which I apparently can't rely on having been installed.  I've
changed the way that the squash program finds File::Next.

Issue #313: ack would fail when trying to check files for readability
on some networked filesystems, or on Mac OS X with ACLs.  Now it
uses the filetest pragma.  Thanks, Jonathan Perret.

[ENHANCEMENTS]
ack now ignores JavaScript and CSS source maps.  Thanks, Chris
Rebert.

ack now ships with customized shell completion scripts for bash and zsh.

Add docs for available colors in ack.

--create-ackrc keeps the comments that describe each of the options,
and it shows the ack version number.

Now ignores Cabal (Haskell) sandboxes.  Thanks, Fraser Tweedale.

Added filetypes for Jade, Smarty and Stylus.  Thanks, Raúl Gundín.

[INTERNALS]
ack's entire test suite now runs under Perl's -T taint flag.  We'll
build more security tests on top of this.

Added some checks to the squash program that I hope will turn up
errors in the Windows builds.
2014-09-04 22:01:32 +00:00
wiz
7eeb51b534 Bump for perl-5.20.0.
Do it for all packages that
* mention perl, or
* have a directory name starting with p5-*, or
* depend on a package starting with p5-
like last time, for 5.18, where this didn't lead to complaints.
Let me know if you have any this time.
2014-05-29 23:35:13 +00:00
schmonz
050bfff89e Update to 2.12. From the changelog:
[SECURITY FIXES]
This version of ack prevents the --pager, --regex and --output
options from being used from project-level ackrc files. It is
possible to execute malicious code with these options, and we want
to prevent the security risk of acking through a potentially malicious
codebase, such as one downloaded from an Internet site or checked
out from a code repository.

The --pager, --regex and --output options may still be used from
the global /etc/ackrc, your own private ~/.ackrc, the ACK_OPTIONS
environment variable, and of course from the command line.

[ENHANCEMENTS]
Now ignores Eclipse .metadata directory. Thanks, Steffen Jaeckel.

Add --perltest for *.t files.

Added Matlab support. Thanks, Zertrin.

[FIXES]
Fixed a race condition in t/file-permission.t that was causing
failures if tests were run in parallel.

Fix the test suite for Win32. Many thanks to Christian Walde for
bringing the severity of this issue to our attention, as well as
providing a Win32 development environment for us to work with.

Fixed Win32-detection in the Makefile.PL. Thanks, Michael Beijen
and Alexandr Ciornii.

More compatibility fixes for Perl 5.8.8.

[INTERNALS]
Removed the Git revision tracking in the --version.
2014-04-07 19:32:56 +00:00
wiz
d5f23bac60 Comment out p5-Term-ANSIColor dependency, in perl since 5.6.0.
Bump PKGREVISION.
2013-11-24 10:02:40 +00:00
wiz
2982ac231a Update to 2.08:
2.08    Thu Aug 22 23:11:45 CDT 2013
====================================
[ENHANCEMENTS]
ack now ignores CMake's build/cache directories by default.  Thanks,
Volodymyr Medvid.

Add shebang matching for --lua files.

Add documentation for --ackrc.

Add Elixir filetype.

Add --cathy option.  Thanks to Joe McMahon.

Add some helpful debugging tips when an invalid option is found.
Thanks to Charles Lee.

Ignore PDF files by default, because Perl will detect them as text.

Ignore .gif, .jpg, .jpeg and .png files.  They won't normally be
selected, but this is an optimization so that ack doesn't have to
open them to know.

[FIXES]
Ack's colorizing of output would get confused with multiple sets
of parentheses.  This has been fixed.  (Issue #276)

Ack would get confused when trying to colorize the output in
DOS-format files.  This has been fixed.  (Issue #145)


2.05_01 Tue May 28 10:12:04 CDT 2013
====================================
[ENHANCEMENTS]
We now ignore the node_modules directories created by npm.  Thanks,
Konrad Borowski.

--pager without an argument implies --pager=$PAGER.

--perl now recognizes Plack-style .psgi files.  Thanks, Ron Savage.

Added filetypes for Coffescript, JSON, LESS, and Sass.

[FIXES]
Command-line options now override options set in ackrc files.

ACK_PAGER and ACK_PAGER_COLOR now work as advertised.

Fix a bug resulting in uninitialized variable warnings when more
than one capture group was specified in the search pattern.

Make sure ack is happy to build and test under cron and other
console-less environments.

Colored output is now supported and on by default on Windows.
2013-09-05 19:48:07 +00:00
schmonz
f6c195156b Update to 2.04. From the changelog:
ack now runs on a standard Perl 5.8.8 install with no module updates.
The minimum Perl requirement for ack is now explicitly 5.8.8. Anything
before 5.8.8 will not work, and we've added checks. Thanks, Michael
McClimon.

[FIXES]
ack was colorizing captured groups even if --nocolor was given.
Thanks, Dale Sedivic.

[ENHANCEMENTS]
The --shell file type now recognizes the fish shell.

We now ignore minified CSS or Javascript, in the form of either *.css.min
or *.min.css, or *.js.min or *.min.js.

Added support for the Dart language.

ack 2.02 was much slower than ack 1.96, up to 8x slower in some cases.
These slowdowns have been mostly eliminated, and in some cases ack 2.04
is now faster than 1.96.

The firstlinematch file type detection option now only searches the
first 250 characters of the first line of the file. Otherwise, ack
would read entire text files that were only one line long, such as
minified JavaScript, and that would be slow. Thanks, Michael
McClimon.

[DOCUMENTATION]
Many clarifications and cleanups. Thanks, Michael McClimon.
2013-07-10 01:44:55 +00:00
wiz
d2ca14a3f1 Bump all packages for perl-5.18, that
a) refer 'perl' in their Makefile, or
b) have a directory name of p5-*, or
c) have any dependency on any p5-* package

Like last time, where this caused no complaints.
2013-05-31 12:39:57 +00:00
wiz
af13c55896 Update to 2.00:
2.00    Wed Apr 17 22:49:41 CDT 2013
====================================

The first version of ack 2.0.


# Incompatibilities with ack 1.x

ack 2 makes some big changes in its behaviors that could trip up
users who are used to the idiosyncracies of ack 1.x.  These changes
could affect your searching happiness, so please read them.

* ack's default behavior is now to search all files that it identifies
as being text.  ack 1.x would only search files that were of a file
type that it recognized.

* Removed the `-a` and `-u` options since the default is to search
all text files.

* Removed the `--binary` option.  ack 2.0 will not find and search
through binary files.

* Removed the `--skipped` option.

* Removed the `--invert-file-match` option.  `-v` now works with
`-g`.  To list files that do not match `/foo/`

    ack -g foo -v

* `-g` now obeys all regex options: `-i`, `-w`, `-Q`, `-v`

* Removed the `-G` switch, because it was too confusing to have two
regexes specified on the command line.  Now you use the `-x` switch
to pipe filenames from one `ack` invocation into another.

To search files with filename matching "sales" for the string "foo":

    ack -g sales | ack -x foo

# New features in ack 2.0

ack 2.0 will:

* By default searches all text files, as identified by Perl's `-T` operator
    * We will no longer have a `-a` switch.

* improved flexibility in defining filetype selectors
    * name equality ($filename eq 'Makefile')
    * glob-style matching (`*.pl` identifies a Perl file)
    * regex-style matching (`/\.pl$/i` identifies a Perl file)
    * shebang-line matching (shebang line matching `/usr/bin/perl/`
    identifies a Perl file)

* support for multiple ackrc files
    * global ackrc (/etc/ackrc)
        * https://github.com/petdance/ack/issues/#issue/79
    * user-specific ackrc (~/.ackrc)
    * per-project ackrc files (~/myproject/.ackrc)

* you can use --dump to figure which options are set where

* all inclusion/exclusion rules will be in the ackrc files
    * ack 2.0 has a set of definitions for filetypes, directories to
      include or exclude, etc, *but* these are only included so you don't
      need to ship an ackrc file to a new machine.  You may tell ack to
      disregard these defaults if you like.

* In addition to the classic `--thpppt` option to draw Bill the
Cat, `ack --bar` will draw (of course) Admiral Ackbar.
2013-04-20 14:38:50 +00:00
asau
1f96787c11 Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days. 2012-10-25 06:55:37 +00:00
wiz
8b5d49eb78 Bump all packages that use perl, or depend on a p5-* package, or
are called p5-*.

I hope that's all of them.
2012-10-03 21:53:53 +00:00
schmonz
79f72b5624 Update to 1.96. From the changelog:
[ENHANCEMENTS]
* Now ignores minified Javascript files.  Anything matching -min.js
  or .min.js is ignored.
* Added Groovy support (--groovy).
* Added .pm6 as a --perl extension.
* Lua can now get detected from the shebang line.  Thanks, Matthew Wild.
* Added support for version numbers in executables in shebang
  detection.  Now if your Perl program's shebang refers to
  /usr/local/bin/perl-5.14.1, ack will find it.
2011-10-09 12:52:23 +00:00
obache
a7a8ace5fe Revision bump after updating perl5 to 5.14.1. 2011-08-14 14:52:49 +00:00
abs
0d1830ca11 Avoid ack regenerating itself and frustrating REPLACE_PERL setting: bump pkgrevision 2011-05-16 10:03:24 +00:00
abs
22ae4eae7a Replace SUBST foo with just REPLACE_PERL+=ack 2011-04-26 14:43:27 +00:00
abs
89592fcac5 Actually make SUBST stage run - bump PKGREVISION 2011-04-20 15:12:02 +00:00
abs
17758a206c switch from /usr/bin/env perl to ${PERL5} via SUBST. Bump PKGREVISION 2011-04-20 12:36:56 +00:00
abs
d98a09d1d1 Updated textproc/p5-ack to 1.94
1.94        Mon Nov 15 22:38:48 CST 2010

    [ENHANCEMENTS]
    Added support for Go and Delphi.

    Ignores Monotone's _MTN directories.

    Added .xsl to the list of --xml files.


1.93_02     Wed Oct  6 21:39:58 CDT 2010
    [FIXES]
    --man and --version now return with an exit code of 0.  They
    used to exit with a 1. Thanks to Bo Borgerson.

    [ENHANCEMENTS]
    The --ignore-dir option now can ignore entire paths relative
    to your current directory.  Thanks to Nick Hooey.  For example:

        ack --ignore-dir=t/subsystem/test-data

    Added --invert-file-match switch to negate the sense of the
    -g/-G switches.  Thanks, Lars Dieckow.


1.93_01     Sun Sep  5 16:00:29 CDT 2010
    [FILE TYPE UPDATES]

    Added --verilog, --vhdl and --clojure.

    Files that match *.mk and *.mak as well as GNUmakefile are now included in
    the ack filetype 'make' (issue 88).

    Added RSpec's .spec type to the --ruby list.


    [ENHANCEMENTS]
    Updated the README to Markdown format.  Thanks to Mark Szymanski
    for the idea.

    Added docs for -r, -R, --recurse options.

    Added new switch --color-lineno and environment variable ACK_COLOR_LINENO,
    which allow setting the line number color.  (Marq Schneider)

    Added option --show-types to output the types that ack considers
    a file to have. (Torsten Blix)

    'ack --count --no-filename regex' doesn't output a list of numbers but a
    sum of all occurences. This is NOT what grep does but is the more sensible
    behavior.


    [FIXES]
    Fixed ack misbehavior when using --match or not specifying a regex:

        ack --match Sue
        cat foo | ack --perl

    Fixed issue 74: analog to grep, 'ack --count regex file' now
    only outputs the number of found matches, if only one file is
    given.

    Fixed issue 76: Giving both --line and a regex (with --match)
    now leads to an error. The same is true for -f or -g in conjunction
    with --match. (Torsten Blix)

    Fixed issue 80: Piping into ack --count now works as expected.
    ack always returned 0 when piped into, no matter how many matches
    where found. (Torsten Blix)

    Fixed issue 81: .ackrc now ignores leading/trailing whitespace.
    (Torsten Blix)
2010-11-30 00:48:07 +00:00
seb
c3f1e700ad Bump the PKGREVISION for all packages which depend directly on perl,
to trigger/signal a rebuild for the transition 5.10.1 -> 5.12.1.

The list of packages is computed by finding all packages which end
up having either of PERL5_USE_PACKLIST, BUILDLINK_API_DEPENDS.perl,
or PERL5_PACKLIST defined in their make setup (tested via
"make show-vars VARNAMES=..."), minus the packages updated after
the perl package update.

sno@ was right after all, obache@ kindly asked and he@ led the
way. Thanks!
2010-08-21 16:32:42 +00:00
sno
df8ab88ace Adjusting dependencies 2010-01-16 16:41:50 +00:00
wiz
3014572604 Update to 1.92:
1.92        Fri Dec 11 11:47:56 CST 2009

    ack is now hosted at github: http://github.com/petdance/ack

    [FIXES]
    The --pager flag would not work.  Now it does.  Thanks Packy
    Anderson.

    File matching for Emacs work files that match #*# was wrong.
    It was checking the entire path, not just the basename.  This
    is fixed.  (http://github.com/petdance/ack/issues/closed/#issue/101)

    Fixed URLs that pointed to old Google Code.


    [ENHANCEMENTS]
    Added Scala support.  Thanks to Dan Sully.

    Added .phtml as an extension for PHP.

    Using -f or -g now return a proper error code.  If files are
    found, ack returns 0.  If none are found, ack returns 1.  This
    is a change in the specification, but the code didn't match the
    specfication anyway.

    No man pages are created for any of the .pm files any more.
2009-12-15 13:40:22 +00:00
seb
3e43304128 Initial import of p5-ack version 1.90 in the NetBSD Packages
Collection.

Ack is designed as a replacement for 99% of the uses of grep.  Ack
is intelligent about the files it searches and the directories trees
it should not descend into.
2009-12-04 22:35:00 +00:00