head	1.28;
access;
symbols
	pkgsrc-2026Q1:1.28.0.4
	pkgsrc-2026Q1-base:1.28
	pkgsrc-2025Q4:1.28.0.2
	pkgsrc-2025Q4-base:1.28
	pkgsrc-2025Q3:1.25.0.4
	pkgsrc-2025Q3-base:1.25
	pkgsrc-2025Q2:1.25.0.2
	pkgsrc-2025Q2-base:1.25
	pkgsrc-2025Q1:1.24.0.2
	pkgsrc-2025Q1-base:1.24
	pkgsrc-2024Q4:1.23.0.4
	pkgsrc-2024Q4-base:1.23
	pkgsrc-2024Q3:1.23.0.2
	pkgsrc-2024Q3-base:1.23
	pkgsrc-2024Q2:1.22.0.4
	pkgsrc-2024Q2-base:1.22
	pkgsrc-2024Q1:1.22.0.2
	pkgsrc-2024Q1-base:1.22
	pkgsrc-2023Q4:1.21.0.2
	pkgsrc-2023Q4-base:1.21
	pkgsrc-2023Q3:1.19.0.4
	pkgsrc-2023Q3-base:1.19
	pkgsrc-2023Q2:1.19.0.2
	pkgsrc-2023Q2-base:1.19
	pkgsrc-2023Q1:1.18.0.14
	pkgsrc-2023Q1-base:1.18
	pkgsrc-2022Q4:1.18.0.12
	pkgsrc-2022Q4-base:1.18
	pkgsrc-2022Q3:1.18.0.10
	pkgsrc-2022Q3-base:1.18
	pkgsrc-2022Q2:1.18.0.8
	pkgsrc-2022Q2-base:1.18
	pkgsrc-2022Q1:1.18.0.6
	pkgsrc-2022Q1-base:1.18
	pkgsrc-2021Q4:1.18.0.4
	pkgsrc-2021Q4-base:1.18
	pkgsrc-2021Q3:1.18.0.2
	pkgsrc-2021Q3-base:1.18
	pkgsrc-2021Q2:1.16.0.2
	pkgsrc-2021Q2-base:1.16
	pkgsrc-2021Q1:1.15.0.2
	pkgsrc-2021Q1-base:1.15
	pkgsrc-2020Q4:1.12.0.2
	pkgsrc-2020Q4-base:1.12
	pkgsrc-2020Q3:1.10.0.2
	pkgsrc-2020Q3-base:1.10
	pkgsrc-2020Q2:1.8.0.4
	pkgsrc-2020Q2-base:1.8
	pkgsrc-2020Q1:1.8.0.2
	pkgsrc-2020Q1-base:1.8
	pkgsrc-2019Q4:1.6.0.4
	pkgsrc-2019Q4-base:1.6
	pkgsrc-2019Q3:1.5.0.4
	pkgsrc-2019Q3-base:1.5
	pkgsrc-2019Q2:1.5.0.2
	pkgsrc-2019Q2-base:1.5
	pkgsrc-2019Q1:1.4.0.2
	pkgsrc-2019Q1-base:1.4
	pkgsrc-2018Q4:1.3.0.2
	pkgsrc-2018Q4-base:1.3
	pkgsrc-2018Q3:1.2.0.2
	pkgsrc-2018Q3-base:1.2
	pkgsrc-2018Q2:1.1.0.2
	pkgsrc-2018Q2-base:1.1;
locks; strict;
comment	@# @;


1.28
date	2025.10.26.23.05.53;	author wiz;	state Exp;
branches;
next	1.27;
commitid	tXG4BTzzJolbm8gG;

1.27
date	2025.10.23.20.39.36;	author wiz;	state Exp;
branches;
next	1.26;
commitid	1V2hBZn9ypXaCJfG;

1.26
date	2025.10.16.10.49.03;	author pin;	state Exp;
branches;
next	1.25;
commitid	uvmi3aXLkl7kBMeG;

1.25
date	2025.04.04.20.06.25;	author pin;	state Exp;
branches;
next	1.24;
commitid	Aqby7qHvdse5XLPF;

1.24
date	2025.02.24.21.52.08;	author kim;	state Exp;
branches;
next	1.23;
commitid	NoQJiyJKs1q5NLKF;

1.23
date	2024.09.11.07.00.54;	author pin;	state Exp;
branches;
next	1.22;
commitid	HFiQUjaH33PccmpF;

1.22
date	2024.01.07.16.11.36;	author wiz;	state Exp;
branches;
next	1.21;
commitid	8EKitdBI3yqldxTE;

1.21
date	2023.11.29.13.43.22;	author pin;	state Exp;
branches;
next	1.20;
commitid	uBkAvhpXW2kfEvOE;

1.20
date	2023.11.28.10.12.28;	author pin;	state Exp;
branches;
next	1.19;
commitid	JSN91OEyFiISvmOE;

1.19
date	2023.05.17.21.46.46;	author wiz;	state Exp;
branches;
next	1.18;
commitid	uf7bHPWZ8YIHCmpE;

1.18
date	2021.08.05.08.44.56;	author pin;	state Exp;
branches;
next	1.17;
commitid	uDCZAYbXQFNObL3D;

1.17
date	2021.07.22.16.16.37;	author tnn;	state Exp;
branches;
next	1.16;
commitid	SHeXfIfDOhmC802D;

1.16
date	2021.06.12.17.15.29;	author pin;	state Exp;
branches;
next	1.15;
commitid	Vt9TDxfiyKuCKRWC;

1.15
date	2021.03.08.10.26.17;	author pin;	state Exp;
branches;
next	1.14;
commitid	obmQkV85xLuuzuKC;

1.14
date	2021.03.05.22.05.56;	author pin;	state Exp;
branches;
next	1.13;
commitid	KrjNgHu8IHfqxaKC;

1.13
date	2021.03.05.21.49.56;	author pin;	state Exp;
branches;
next	1.12;
commitid	2rjBAwEmqcpOraKC;

1.12
date	2020.11.05.08.31.29;	author maya;	state Exp;
branches;
next	1.11;
commitid	PMnj5JXhKH7iTFuC;

1.11
date	2020.10.17.13.48.54;	author maya;	state Exp;
branches;
next	1.10;
commitid	8rZrjnyhOVH7fgsC;

1.10
date	2020.08.14.20.50.21;	author tnn;	state Exp;
branches;
next	1.9;
commitid	cAqbHQ8yPEl9E4kC;

1.9
date	2020.08.14.11.05.00;	author tnn;	state Exp;
branches;
next	1.8;
commitid	WeF4n1oSHoflp1kC;

1.8
date	2020.01.19.18.20.46;	author maya;	state Exp;
branches;
next	1.7;
commitid	dugOecxIlgjOukTB;

1.7
date	2020.01.19.16.52.47;	author maya;	state Exp;
branches;
next	1.6;
commitid	V0t2htr8eef91kTB;

1.6
date	2019.12.03.16.34.29;	author minskim;	state Exp;
branches;
next	1.5;
commitid	MySuFvmiIi6OphNB;

1.5
date	2019.04.12.08.08.48;	author maya;	state Exp;
branches;
next	1.4;
commitid	JcnY0QtH9Hw4b2jB;

1.4
date	2019.01.05.02.58.54;	author tnn;	state Exp;
branches;
next	1.3;
commitid	YM5dkg0HiXtsAx6B;

1.3
date	2018.10.25.00.35.22;	author minskim;	state Exp;
branches;
next	1.2;
commitid	dlQQADzoUS2s6hXA;

1.2
date	2018.09.21.21.26.33;	author minskim;	state Exp;
branches;
next	1.1;
commitid	v4tkvFBWQ8Lq71TA;

1.1
date	2018.05.08.07.48.39;	author maya;	state Exp;
branches;
next	;
commitid	wZWozN6uqEQ4YsBA;


desc
@@


1.28
log
@ripgrep: update to 15.1.0.

15.1.0
======
This is a small release that fixes a bug with how ripgrep handles line
buffering. This might manifest as ripgrep printing output later than you
expect or not working correctly with `tail -f` (even if you're using the
`--line-buffered` flag).

Bug fixes:

* [BUG #3194](https://github.com/BurntSushi/ripgrep/issues/3194):
  Fix a regression with `--line-buffered` introduced in ripgrep 15.0.0.

Feature enhancements:

* [FEATURE #3192](https://github.com/BurntSushi/ripgrep/pull/3192):
  Add hyperlink alias for Cursor.
@
text
@# $NetBSD: Makefile,v 1.27 2025/10/23 20:39:36 wiz Exp $

DISTNAME=	ripgrep-15.1.0
CATEGORIES=	textproc
MASTER_SITES=	${MASTER_SITE_GITHUB:=BurntSushi/}

MAINTAINER=	pkgsrc-users@@NetBSD.org
HOMEPAGE=	https://github.com/BurntSushi/ripgrep/
COMMENT=	Line-oriented search tool
LICENSE=	unlicense

.include "cargo-depends.mk"

RUST_REQ=	1.85.0
USE_TOOLS+=	pkg-config

RUSTFLAGS+=	-C link-arg=${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.pcre2}/lib
RUSTFLAGS+=	-C link-arg=-L${BUILDLINK_PREFIX.pcre2}/lib

CARGO_NO_DEFAULT_FEATURES=	YES
CARGO_FEATURES+=		pcre2

.include "../../mk/bsd.prefs.mk"

.if ${USE_CROSS_COMPILE:tl} != "yes"
RIPGREP=	${WRKSRC}/target/release/rg
.else
TOOL_DEPENDS+=	${PKGNAME}:../../${PKGPATH}
RIPGREP=	${TOOLBASE}/bin/rg
.endif

post-build:
	@@${STEP_MSG} "Creating manual page..."
	${RUN}${RIPGREP} --generate man > ${WRKDIR}/rg.1
	@@${STEP_MSG} "Creating completion rules..."
	${RUN}${RIPGREP} --generate complete-bash \
	  > ${WRKDIR}/rg-completion.bash
	${RUN}${RIPGREP} --generate complete-fish \
	  > ${WRKDIR}/rg-completion.fish
	${RUN}${RIPGREP} --generate complete-zsh \
	  > ${WRKDIR}/rg-completion.zsh

INSTALLATION_DIRS+=	${PKGMANDIR}/man1
INSTALLATION_DIRS+=	share/bash-completion/completions
INSTALLATION_DIRS+=	share/fish/vendor_completions.d
INSTALLATION_DIRS+=	share/zsh/site-functions

post-install:
	${INSTALL_MAN} ${WRKDIR}/rg.1 \
	  ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/rg.1
	${INSTALL_DATA} ${WRKDIR}/rg-completion.bash \
	  ${DESTDIR}${PREFIX}/share/bash-completion/completions/rg
	${INSTALL_DATA} ${WRKDIR}/rg-completion.fish \
	  ${DESTDIR}${PREFIX}/share/fish/vendor_completions.d/rg.fish
	${INSTALL_DATA} ${WRKDIR}/rg-completion.zsh \
	  ${DESTDIR}${PREFIX}/share/zsh/site-functions/_rg

.include "../../lang/rust/cargo.mk"
.include "../../devel/pcre2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
@


1.27
log
@*: recursive bump for pcre2

Running an old binary against the new pcre doesn't work:
/usr/pkg/lib/libpcre2-8.so.0: version PCRE2_10.47 required by /usr/pkg/lib/libglib-2.0.so.0 not defined
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.26 2025/10/16 10:49:03 pin Exp $
d3 1
a3 2
DISTNAME=	ripgrep-15.0.0
PKGREVISION=	1
@


1.26
log
@textproc/ripgrep: update to 15.0.0

15.0.0 (2025-10-15)
===================
ripgrep 15 is a new major version release of ripgrep that mostly has bug fixes,
some minor performance improvements and minor new features. Here are some
highlights:

* Several bugs around gitignore matching have been fixed. This includes
  a commonly reported bug related to applying gitignore rules from parent
  directories.
* A memory usage regression when handling very large gitignore files has been
  fixed.
* `rg -vf file`, where `file` is empty, now matches everything.
* The `-r/--replace` flag now works with `--json`.
* A subset of Jujutsu (`jj`) repositories are now treated as if they were git
  repositories. That is, ripgrep will respect `jj`'s gitignores.
* Globs can now use nested curly braces.

Platform support:

* `aarch64` for Windows now has release artifacts.
* `powerpc64` no longer has release artifacts generated for it. The CI
  release workflow stopped working, and I didn't deem it worth my time to
  debug it. If someone wants this and can test it, I'd be happy to add it
  back.
* ripgrep binaries are now compiled with full LTO enabled. You may notice
  small performance improvements from this and a modest decrease in binary
  size.

Performance improvements:

* [PERF #2111](https://github.com/BurntSushi/ripgrep/issues/2111):
  Don't resolve helper binaries on Windows when `-z/--search-zip` isn't used.
* [PERF #2865](https://github.com/BurntSushi/ripgrep/pull/2865):
  Avoid using path canonicalization on Windows when emitting hyperlinks.
* [PERF #3184](https://github.com/BurntSushi/ripgrep/pull/3184):
  Improve performance of large values with `-A/--after-context`.

Bug fixes:

* [BUG #829](https://github.com/BurntSushi/ripgrep/issues/829),
  [BUG #2731](https://github.com/BurntSushi/ripgrep/issues/2731),
  [BUG #2747](https://github.com/BurntSushi/ripgrep/issues/2747),
  [BUG #2770](https://github.com/BurntSushi/ripgrep/issues/2770),
  [BUG #2778](https://github.com/BurntSushi/ripgrep/issues/2778),
  [BUG #2836](https://github.com/BurntSushi/ripgrep/issues/2836),
  [BUG #2933](https://github.com/BurntSushi/ripgrep/pull/2933),
  [BUG #3067](https://github.com/BurntSushi/ripgrep/pull/3067):
  Fix bug related to gitignores from parent directories.
* [BUG #1332](https://github.com/BurntSushi/ripgrep/issues/1332),
  [BUG #3001](https://github.com/BurntSushi/ripgrep/issues/3001):
  Make `rg -vf file` where `file` is empty match everything.
* [BUG #2177](https://github.com/BurntSushi/ripgrep/issues/2177):
  Ignore a UTF-8 BOM marker at the start of `.gitignore` (and similar files).
* [BUG #2750](https://github.com/BurntSushi/ripgrep/issues/2750):
  Fix memory usage regression for some truly large gitignore files.
* [BUG #2944](https://github.com/BurntSushi/ripgrep/pull/2944):
  Fix a bug where the "bytes searched" in `--stats` output could be incorrect.
* [BUG #2990](https://github.com/BurntSushi/ripgrep/issues/2990):
  Fix a bug where ripgrep would mishandle globs that ended with a `.`.
* [BUG #2094](https://github.com/BurntSushi/ripgrep/issues/2094),
  [BUG #3076](https://github.com/BurntSushi/ripgrep/issues/3076):
  Fix bug with `-m/--max-count` and `-U/--multiline` showing too many matches.
* [BUG #3100](https://github.com/BurntSushi/ripgrep/pull/3100):
  Preserve line terminators when using `-r/--replace` flag.
* [BUG #3108](https://github.com/BurntSushi/ripgrep/issues/3108):
  Fix a bug where `-q --files-without-match` inverted the exit code.
* [BUG #3131](https://github.com/BurntSushi/ripgrep/issues/3131):
  Document inconsistency between `-c/--count` and `--files-with-matches`.
* [BUG #3135](https://github.com/BurntSushi/ripgrep/issues/3135):
  Fix rare panic for some classes of large regexes on large haystacks.
* [BUG #3140](https://github.com/BurntSushi/ripgrep/issues/3140):
  Ensure hyphens in flag names are escaped in the roff text for the man page.
* [BUG #3155](https://github.com/BurntSushi/ripgrep/issues/3155):
  Statically compile PCRE2 into macOS release artifacts on `aarch64`.
* [BUG #3173](https://github.com/BurntSushi/ripgrep/issues/3173):
  Fix ancestor ignore filter bug when searching whitelisted hidden files.
* [BUG #3178](https://github.com/BurntSushi/ripgrep/discussions/3178):
  Fix bug causing incorrect summary statistics with `--json` flag.
* [BUG #3179](https://github.com/BurntSushi/ripgrep/issues/3179):
  Fix gitignore bug when searching absolute paths with global gitignores.
* [BUG #3180](https://github.com/BurntSushi/ripgrep/issues/3180):
  Fix a panicking bug when using `-U/--multiline` and `-r/--replace`.

Feature enhancements:

* Many enhancements to the default set of file types available for filtering.
* [FEATURE #1872](https://github.com/BurntSushi/ripgrep/issues/1872):
  Make `-r/--replace` work with `--json`.
* [FEATURE #2708](https://github.com/BurntSushi/ripgrep/pull/2708):
  Completions for the fish shell take ripgrep's config file into account.
* [FEATURE #2841](https://github.com/BurntSushi/ripgrep/pull/2841):
  Add `italic` to the list of available style attributes in `--color`.
* [FEATURE #2842](https://github.com/BurntSushi/ripgrep/pull/2842):
  Directories containing `.jj` are now treated as git repositories.
* [FEATURE #2849](https://github.com/BurntSushi/ripgrep/pull/2849):
  When using multithreading, schedule files to search in order given on CLI.
* [FEATURE #2943](https://github.com/BurntSushi/ripgrep/issues/2943):
  Add `aarch64` release artifacts for Windows.
* [FEATURE #3024](https://github.com/BurntSushi/ripgrep/issues/3024):
  Add `highlight` color type, for styling non-matching text in a matching line.
* [FEATURE #3048](https://github.com/BurntSushi/ripgrep/pull/3048):
  Globs in ripgrep (and the `globset` crate) now support nested alternates.
* [FEATURE #3096](https://github.com/BurntSushi/ripgrep/pull/3096):
  Improve completions for `--hyperlink-format` in bash and fish.
* [FEATURE #3102](https://github.com/BurntSushi/ripgrep/pull/3102):
  Improve completions for `--hyperlink-format` in zsh.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.25 2025/04/04 20:06:25 pin Exp $
d4 1
@


1.25
log
@textproc/ripgrep: reset maintainer
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.24 2025/02/24 21:52:08 kim Exp $
d3 1
a3 2
DISTNAME=	ripgrep-14.1.1
PKGREVISION=	1
d14 1
@


1.24
log
@ripgrep: Install manual page and completion rules
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.23 2024/09/11 07:00:54 pin Exp $
d8 1
a8 1
MAINTAINER=	pin@@NetBSD.org
@


1.23
log
@textproc/ripgrep: update to 14.1.1

This is a minor release with a bug fix for a matching bug. In particular, a bug
was found that could cause ripgrep to ignore lines that should match. That is,
false negatives. It is difficult to characterize the specific set of regexes
in which this occurs as it requires multiple different optimization strategies
to collide and produce an incorrect result. But as one reported example, in
ripgrep, the regex (?i:e.x|ex) does not match e-x when it should. (This
bug is a result of an inner literal optimization performed in the grep-regex
crate and not in the regex crate.)

Bug fixes:
    BUG #2884:
    Fix bug where ripgrep could miss some matches that it should report.

Miscellaneous:
    MISC #2748:
    Remove ripgrep's simd-accel feature because it was frequently broken.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.22 2024/01/07 16:11:36 wiz Exp $
d4 1
d23 35
@


1.22
log
@ripgrep: update to 14.1.0.

14.1.0
======
This is a minor release with a few small new features and bug fixes. This
release contains a bug fix for unbounded memory growth while walking a
directory tree. This release also includes improvements to the completions for
the `fish` shell, and release binaries for several additional ARM targets.

Bug fixes:

* [BUG #2664](https://github.com/BurntSushi/ripgrep/issues/2690):
  Fix unbounded memory growth in the `ignore` crate.

Feature enhancements:

* Added or improved file type filtering for Lean and Meson.
* [FEATURE #2684](https://github.com/BurntSushi/ripgrep/issues/2684):
  Improve completions for the `fish` shell.
* [FEATURE #2702](https://github.com/BurntSushi/ripgrep/pull/2702):
  Add release binaries for `armv7-unknown-linux-gnueabihf`,
  `armv7-unknown-linux-musleabihf` and `armv7-unknown-linux-musleabi`.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.21 2023/11/29 13:43:22 pin Exp $
d3 1
a3 1
DISTNAME=	ripgrep-14.1.0
@


1.21
log
@textproc/ripgrep: update to 14.0.3

14.0.3 (2023-11-28)
===================
This is a patch release with a bug fix for the `--sortr` flag.

Bug fixes:

* [BUG #2664](https://github.com/BurntSushi/ripgrep/issues/2664):
  Fix `--sortr=path`. I left a `todo!()` in the source. Oof.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.20 2023/11/28 10:12:28 pin Exp $
d3 1
a3 1
DISTNAME=	ripgrep-14.0.3
@


1.20
log
@textproc/ripgrep: update to 14.0.2

14.0.2 (2023-11-27)
===================
This is a patch release with a few small bug fixes.

Bug fixes:

* [BUG #2654](https://github.com/BurntSushi/ripgrep/issues/2654):
  Fix `deb` release sha256 sum file.
* [BUG #2658](https://github.com/BurntSushi/ripgrep/issues/2658):
  Fix partial regression in the behavior of `--null-data --line-regexp`.
* [BUG #2659](https://github.com/BurntSushi/ripgrep/issues/2659):
  Fix Fish shell completions.
* [BUG #2662](https://github.com/BurntSushi/ripgrep/issues/2662):
  Fix typo in documentation for `-i/--ignore-case`.


14.0.1 (2023-11-26)
===================
This a patch release meant to fix `cargo install ripgrep` on Windows.

Bug fixes:

* [BUG #2653](https://github.com/BurntSushi/ripgrep/issues/2653):
  Include `pkg/windows/Manifest.xml` in crate package.


14.0.0 (2023-11-26)
===================
ripgrep 14 is a new major version release of ripgrep that has some new
features, performance improvements and a lot of bug fixes.

The headlining feature in this release is hyperlink support. In this release,
they are an opt-in feature but may change to an opt-out feature in the future.
To enable them, try passing `--hyperlink-format default`. If you use [VS Code],
then try passing `--hyperlink-format vscode`. Please [report your experience
with hyperlinks][report-hyperlinks], positive or negative.

[VS Code]: https://code.visualstudio.com/
[report-hyperlinks]: https://github.com/BurntSushi/ripgrep/discussions/2611

Another headlining development in this release is that it contains a rewrite
of its regex engine. You generally shouldn't notice any changes, except for
some searches may get faster. You can read more about the [regex engine rewrite
on my blog][regex-internals]. Please [report your performance improvements or
regressions that you notice][report-perf].

[report-perf]: https://github.com/BurntSushi/ripgrep/discussions/2652

Finally, ripgrep switched the library it uses for argument parsing. Users
should not notice a difference in most cases (error messages have changed
somewhat), but flag overrides should generally be more consistent. For example,
things like `--no-ignore --ignore-vcs` work as one would expect (disables all
filtering related to ignore rules except for rules found in version control
systems such as `git`).

[regex-internals]: https://blog.burntsushi.net/regex-internals/

**BREAKING CHANGES**:

* `rg -C1 -A2` used to be equivalent to `rg -A2`, but now it is equivalent to
  `rg -B1 -A2`. That is, `-A` and `-B` no longer completely override `-C`.
  Instead, they only partially override `-C`.

Build process changes:

* ripgrep's shell completions and man page are now created by running ripgrep
with a new `--generate` flag. For example, `rg --generate man` will write a
man page in `roff` format on stdout. The release archives have not changed.
* The optional build dependency on `asciidoc` or `asciidoctor` has been
dropped. Previously, it was used to produce ripgrep's man page. ripgrep now
owns this process itself by writing `roff` directly.

Performance improvements:

* [PERF #1746](https://github.com/BurntSushi/ripgrep/issues/1746):
  Make some cases with inner literals faster.
* [PERF #1760](https://github.com/BurntSushi/ripgrep/issues/1760):
  Make most searches with `\b` look-arounds (among others) much faster.
* [PERF #2591](https://github.com/BurntSushi/ripgrep/pull/2591):
  Parallel directory traversal now uses work stealing for faster searches.
* [PERF #2642](https://github.com/BurntSushi/ripgrep/pull/2642):
  Parallel directory traversal has some contention reduced.

Feature enhancements:

* Added or improved file type filtering for Ada, DITA, Elixir, Fuchsia, Gentoo,
  Gradle, GraphQL, Markdown, Prolog, Raku, TypeScript, USD, V
* [FEATURE #665](https://github.com/BurntSushi/ripgrep/issues/665):
  Add a new `--hyperlink-format` flag that turns file paths into hyperlinks.
* [FEATURE #1709](https://github.com/BurntSushi/ripgrep/issues/1709):
  Improve documentation of ripgrep's behavior when stdout is a tty.
* [FEATURE #1737](https://github.com/BurntSushi/ripgrep/issues/1737):
  Provide binaries for Apple silicon.
* [FEATURE #1790](https://github.com/BurntSushi/ripgrep/issues/1790):
  Add new `--stop-on-nonmatch` flag.
* [FEATURE #1814](https://github.com/BurntSushi/ripgrep/issues/1814):
  Flags are now categorized in `-h/--help` output and ripgrep's man page.
* [FEATURE #1838](https://github.com/BurntSushi/ripgrep/issues/1838):
  An error is shown when searching for NUL bytes with binary detection enabled.
* [FEATURE #2195](https://github.com/BurntSushi/ripgrep/issues/2195):
  When `extra-verbose` mode is enabled in zsh, show extra file type info.
* [FEATURE #2298](https://github.com/BurntSushi/ripgrep/issues/2298):
  Add instructions for installing ripgrep using `cargo binstall`.
* [FEATURE #2409](https://github.com/BurntSushi/ripgrep/pull/2409):
  Added installation instructions for `winget`.
* [FEATURE #2425](https://github.com/BurntSushi/ripgrep/pull/2425):
  Shell completions (and man page) can be created via `rg --generate`.
* [FEATURE #2524](https://github.com/BurntSushi/ripgrep/issues/2524):
  The `--debug` flag now indicates whether stdin or `./` is being searched.
* [FEATURE #2643](https://github.com/BurntSushi/ripgrep/issues/2643):
  Make `-d` a short flag for `--max-depth`.
* [FEATURE #2645](https://github.com/BurntSushi/ripgrep/issues/2645):
  The `--version` output will now also contain PCRE2 availability information.

Bug fixes:

* [BUG #884](https://github.com/BurntSushi/ripgrep/issues/884):
  Don't error when `-v/--invert-match` is used multiple times.
* [BUG #1275](https://github.com/BurntSushi/ripgrep/issues/1275):
  Fix bug with `\b` assertion in the regex engine.
* [BUG #1376](https://github.com/BurntSushi/ripgrep/issues/1376):
  Using `--no-ignore --ignore-vcs` now works as one would expect.
* [BUG #1622](https://github.com/BurntSushi/ripgrep/issues/1622):
  Add note about error messages to `-z/--search-zip` documentation.
* [BUG #1648](https://github.com/BurntSushi/ripgrep/issues/1648):
  Fix bug where sometimes short flags with values, e.g., `-M 900`, would fail.
* [BUG #1701](https://github.com/BurntSushi/ripgrep/issues/1701):
  Fix bug where some flags could not be repeated.
* [BUG #1757](https://github.com/BurntSushi/ripgrep/issues/1757):
  Fix bug when searching a sub-directory didn't have ignores applied correctly.
* [BUG #1891](https://github.com/BurntSushi/ripgrep/issues/1891):
  Fix bug when using `-w` with a regex that can match the empty string.
* [BUG #1911](https://github.com/BurntSushi/ripgrep/issues/1911):
  Disable mmap searching in all non-64-bit environments.
* [BUG #1966](https://github.com/BurntSushi/ripgrep/issues/1966):
  Fix bug where ripgrep can panic when printing to stderr.
* [BUG #2046](https://github.com/BurntSushi/ripgrep/issues/2046):
  Clarify that `--pre` can accept any kind of path in the documentation.
* [BUG #2108](https://github.com/BurntSushi/ripgrep/issues/2108):
  Improve docs for `-r/--replace` syntax.
* [BUG #2198](https://github.com/BurntSushi/ripgrep/issues/2198):
  Fix bug where `--no-ignore-dot` would not ignore `.rgignore`.
* [BUG #2201](https://github.com/BurntSushi/ripgrep/issues/2201):
  Improve docs for `-r/--replace` flag.
* [BUG #2288](https://github.com/BurntSushi/ripgrep/issues/2288):
  `-A` and `-B` now only each partially override `-C`.
* [BUG #2236](https://github.com/BurntSushi/ripgrep/issues/2236):
  Fix gitignore parsing bug where a trailing `\/` resulted in an error.
* [BUG #2243](https://github.com/BurntSushi/ripgrep/issues/2243):
  Fix `--sort` flag for values other than `path`.
* [BUG #2246](https://github.com/BurntSushi/ripgrep/issues/2246):
  Add note in `--debug` logs when binary files are ignored.
* [BUG #2337](https://github.com/BurntSushi/ripgrep/issues/2337):
  Improve docs to mention that `--stats` is always implied by `--json`.
* [BUG #2381](https://github.com/BurntSushi/ripgrep/issues/2381):
  Make `-p/--pretty` override flags like `--no-line-number`.
* [BUG #2392](https://github.com/BurntSushi/ripgrep/issues/2392):
  Improve global git config parsing of the `excludesFile` field.
* [BUG #2418](https://github.com/BurntSushi/ripgrep/pull/2418):
  Clarify sorting semantics of `--sort=path`.
* [BUG #2458](https://github.com/BurntSushi/ripgrep/pull/2458):
  Make `--trim` run before `-M/--max-columns` takes effect.
* [BUG #2479](https://github.com/BurntSushi/ripgrep/issues/2479):
  Add documentation about `.ignore`/`.rgignore` files in parent directories.
* [BUG #2480](https://github.com/BurntSushi/ripgrep/issues/2480):
  Fix bug when using inline regex flags with `-e/--regexp`.
* [BUG #2505](https://github.com/BurntSushi/ripgrep/issues/2505):
  Improve docs for `--vimgrep` by mentioning footguns and some work-arounds.
* [BUG #2519](https://github.com/BurntSushi/ripgrep/issues/2519):
  Fix incorrect default value in documentation for `--field-match-separator`.
* [BUG #2523](https://github.com/BurntSushi/ripgrep/issues/2523):
  Make executable searching take `.com` into account on Windows.
* [BUG #2574](https://github.com/BurntSushi/ripgrep/issues/2574):
  Fix bug in `-w/--word-regexp` that would result in incorrect match offsets.
* [BUG #2623](https://github.com/BurntSushi/ripgrep/issues/2623):
  Fix a number of bugs with the `-w/--word-regexp` flag.
* [BUG #2636](https://github.com/BurntSushi/ripgrep/pull/2636):
  Strip release binaries for macOS.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.19 2023/05/17 21:46:46 wiz Exp $
d3 1
a3 1
DISTNAME=	ripgrep-14.0.2
@


1.19
log
@ripgrep: use cargo.mk's install
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18 2021/08/05 08:44:56 pin Exp $
d3 1
a3 1
DISTNAME=	ripgrep-13.0.0
@


1.18
log
@textproc/ripgrep: simplify Makefile
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 2021/07/22 16:16:37 tnn Exp $
a15 2
INSTALLATION_DIRS=	bin

a21 3
do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/target/release/rg ${DESTDIR}${PREFIX}/bin

@


1.17
log
@g/c RUSTFLAGS from individual package Makefiles. Handled by cargo.mk.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 2021/06/12 17:15:29 pin Exp $
a13 1
USE_LANGUAGES=	c
@


1.16
log
@textproc/ripgrep: update to 13.0.0

-Adopt maintainership

-ripgrep 13 is a new major version release of ripgrep that primarily contains
bug fixes, some performance improvements and a few minor breaking changes.
There is also a fix for a security vulnerability on Windows
(CVE-2021-3013).

Some highlights:
A new short flag, -., has been added. It is an alias for the --hidden flag,
which instructs ripgrep to search hidden files and directories.

ripgrep is now using a new
vectorized implementation of memmem,
which accelerates many common searches. If you notice any performance
regressions (or major improvements), I'd love to hear about them through an
issue report!

Also, for Windows users targeting MSVC, Cargo will now build fully static
executables of ripgrep. The release binaries for ripgrep 13 have been compiled
using this configuration.

BREAKING CHANGES:
Binary detection output has changed slightly.

In this release, a small tweak has been made to the output format when a binary
file is detected. Previously, it looked like this:

Binary file FOO matches (found "\0" byte around offset XXX)
Now it looks like this:

FOO: binary file matches (found "\0" byte around offset XXX)
vimgrep output in multi-line now only prints the first line for each match.

See issue 1866 for more
discussion on this. Previously, every line in a match was duplicated, even
when it spanned multiple lines. There are no changes to vimgrep output when
multi-line mode is disabled.

In multi-line mode, --count is now equivalent to --count-matches.

This appears to match how pcre2grep implements --count. Previously, ripgrep
would produce outright incorrect counts. Another alternative would be to simply
count the number of lines---even if it's more than the number of matches---but
that seems highly unintuitive.

FULL LIST OF FIXES AND IMPROVEMENTS:

Security fixes:
CVE-2021-3013:
Fixes a security hole on Windows where running ripgrep with either the
-z/--search-zip or --pre flags can result in running arbitrary
executables from the current directory.
VULN #1773:
This is the public facing issue tracking CVE-2021-3013. ripgrep's README
now contains a section describing how to report a vulnerability.
Performance improvements:

PERF #1657:
Check if a file should be ignored first before issuing stat calls.
PERF memchr#82:
ripgrep now uses a new vectorized implementation of memmem.
Feature enhancements:
Added or improved file type filtering for ASP, Bazel, dvc, FlatBuffers,
Futhark, minified files, Mint, pofiles (from GNU gettext) Racket, Red, Ruby,
VCL, Yang.
FEATURE #1404:
ripgrep now prints a warning if nothing is searched.
FEATURE #1613:
Cargo will now produce static executables on Windows when using MSVC.
FEATURE #1680:
Add -. as a short flag alias for --hidden.
FEATURE #1842:
Add --field-{context,match}-separator for customizing field delimiters.
FEATURE #1856:
The README now links to a
Spanish translation.
Bug fixes:

BUG #1277:
Document cygwin path translation behavior in the FAQ.
BUG #1739:
Fix bug where replacements were buggy if the regex matched a line terminator.
BUG #1311:
Fix multi-line bug where a search & replace for \n didn't work as expected.
BUG #1401:
Fix buggy interaction between PCRE2 look-around and -o/--only-matching.
BUG #1412:
Fix multi-line bug with searches using look-around past matching lines.
BUG #1577:
Fish shell completions will continue to be auto-generated.
BUG #1642:
Fixes a bug where using -m and -A printed more matches than the limit.
BUG #1703:
Clarify the function of -u/--unrestricted.
BUG #1708:
Clarify how -S/--smart-case works.
BUG #1730:
Clarify that CLI invocation must always be valid, regardless of config file.
BUG #1741:
Fix stdin detection when using PowerShell in UNIX environments.
BUG #1756:
Fix bug where foo/** would match foo, but it shouldn't.
BUG #1765:
Fix panic when --crlf is used in some cases.
BUG #1638:
Correctly sniff UTF-8 and do transcoding, like we do for UTF-16.
BUG #1816:
Add documentation for glob alternate syntax, e.g., {a,b,..}.
BUG #1847:
Clarify how the --hidden flag works.
BUG #1866:
Fix bug when computing column numbers in --vimgrep mode.
BUG #1868:
Fix bug where --passthru and -A/-B/-C did not override each other.
BUG #1869:
Clarify docs for --files-with-matches and --files-without-match.
BUG #1878:
Fix bug where \A could produce unanchored matches in multiline search.
BUG 94e4b8e3:
Fix column numbers with --vimgrep is used with -U/--multiline.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.15 2021/03/08 10:26:17 pin Exp $
a20 1
MAKE_ENV+=	RUSTFLAGS=${RUSTFLAGS:Q}
@


1.15
log
@textproc/ripgrep: fix build fail
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2021/03/05 22:05:56 pin Exp $
d3 1
a3 2
DISTNAME=	ripgrep-12.1.1
PKGREVISION=	1
d7 1
a7 1
MAINTAINER=	pkgsrc-users@@NetBSD.org
@


1.14
log
@textproc/ripgrep: use buildlink instead of DEPENDS
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2021/03/05 21:49:56 pin Exp $
d20 4
@


1.13
log
@textproc/ripgrep: enable pcre2 support
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2020/11/05 08:31:29 maya Exp $
a25 2
DEPENDS+=	pcre2-[0-9]*:../../devel/pcre2

d27 1
@


1.12
log
@reset maintainer
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2020/10/17 13:48:54 maya Exp $
d4 1
d6 1
a6 1
EXTRACT_SUFX=	.crate
d13 2
a14 1
WRKSRC=		${WRKDIR}/${PKGNAME_NOREV}
d16 1
d18 1
a18 61
CARGO_CRATE_DEPENDS+=	aho-corasick-0.7.10
CARGO_CRATE_DEPENDS+=	atty-0.2.14
CARGO_CRATE_DEPENDS+=	autocfg-1.0.0
CARGO_CRATE_DEPENDS+=	base64-0.12.1
CARGO_CRATE_DEPENDS+=	bitflags-1.2.1
CARGO_CRATE_DEPENDS+=	bstr-0.2.13
CARGO_CRATE_DEPENDS+=	bytecount-0.6.0
CARGO_CRATE_DEPENDS+=	byteorder-1.3.4
CARGO_CRATE_DEPENDS+=	cc-1.0.54
CARGO_CRATE_DEPENDS+=	cfg-if-0.1.10
CARGO_CRATE_DEPENDS+=	clap-2.33.1
CARGO_CRATE_DEPENDS+=	crossbeam-utils-0.7.2
CARGO_CRATE_DEPENDS+=	encoding_rs-0.8.23
CARGO_CRATE_DEPENDS+=	encoding_rs_io-0.1.7
CARGO_CRATE_DEPENDS+=	fnv-1.0.7
CARGO_CRATE_DEPENDS+=	fs_extra-1.1.0
CARGO_CRATE_DEPENDS+=	globset-0.4.5
CARGO_CRATE_DEPENDS+=	grep-0.2.7
CARGO_CRATE_DEPENDS+=	grep-cli-0.1.5
CARGO_CRATE_DEPENDS+=	grep-matcher-0.1.4
CARGO_CRATE_DEPENDS+=	grep-pcre2-0.1.4
CARGO_CRATE_DEPENDS+=	grep-printer-0.1.5
CARGO_CRATE_DEPENDS+=	grep-regex-0.1.8
CARGO_CRATE_DEPENDS+=	grep-searcher-0.1.7
CARGO_CRATE_DEPENDS+=	hermit-abi-0.1.13
CARGO_CRATE_DEPENDS+=	ignore-0.4.16
CARGO_CRATE_DEPENDS+=	itoa-0.4.5
CARGO_CRATE_DEPENDS+=	jemalloc-sys-0.3.2
CARGO_CRATE_DEPENDS+=	jemallocator-0.3.2
CARGO_CRATE_DEPENDS+=	lazy_static-1.4.0
CARGO_CRATE_DEPENDS+=	libc-0.2.71
CARGO_CRATE_DEPENDS+=	log-0.4.8
CARGO_CRATE_DEPENDS+=	memchr-2.3.3
CARGO_CRATE_DEPENDS+=	memmap-0.7.0
CARGO_CRATE_DEPENDS+=	num_cpus-1.13.0
CARGO_CRATE_DEPENDS+=	packed_simd-0.3.3
CARGO_CRATE_DEPENDS+=	pcre2-0.2.3
CARGO_CRATE_DEPENDS+=	pcre2-sys-0.2.2
CARGO_CRATE_DEPENDS+=	pkg-config-0.3.17
CARGO_CRATE_DEPENDS+=	proc-macro2-1.0.17
CARGO_CRATE_DEPENDS+=	quote-1.0.6
CARGO_CRATE_DEPENDS+=	regex-1.3.9
CARGO_CRATE_DEPENDS+=	regex-automata-0.1.9
CARGO_CRATE_DEPENDS+=	regex-syntax-0.6.18
CARGO_CRATE_DEPENDS+=	ryu-1.0.4
CARGO_CRATE_DEPENDS+=	same-file-1.0.6
CARGO_CRATE_DEPENDS+=	serde-1.0.110
CARGO_CRATE_DEPENDS+=	serde_derive-1.0.110
CARGO_CRATE_DEPENDS+=	serde_json-1.0.53
CARGO_CRATE_DEPENDS+=	strsim-0.8.0
CARGO_CRATE_DEPENDS+=	syn-1.0.27
CARGO_CRATE_DEPENDS+=	termcolor-1.1.0
CARGO_CRATE_DEPENDS+=	textwrap-0.11.0
CARGO_CRATE_DEPENDS+=	thread_local-1.0.1
CARGO_CRATE_DEPENDS+=	unicode-width-0.1.7
CARGO_CRATE_DEPENDS+=	unicode-xid-0.2.0
CARGO_CRATE_DEPENDS+=	walkdir-2.3.1
CARGO_CRATE_DEPENDS+=	winapi-0.3.8
CARGO_CRATE_DEPENDS+=	winapi-i686-pc-windows-gnu-0.4.0
CARGO_CRATE_DEPENDS+=	winapi-util-0.1.5
CARGO_CRATE_DEPENDS+=	winapi-x86_64-pc-windows-gnu-0.4.0
d20 2
a21 1
INSTALLATION_DIRS=	bin
d26 2
@


1.11
log
@ripgrep: update to 12.1.1, fix pkglint warning.

(Note: we are not including the docs. Maybe we should...)

ripgrep 12.1.1 is a patch release that fixes a couple small bugs. In
particular, the ripgrep 12.1.0 release did not tag new releases for all of its
in-tree dependencies. As a result, ripgrep built dependencies from crates.io
would produce a different build than compiling ripgrep from source on the
12.1.0 tag. Namely, some crates like grep-cli had unreleased changes.

    BUG #1581:
    Corrects some egregious markup output in --help.
    BUG #1591:
    Mention the special $0 capture group in docs for the -r/--replace flag.
    BUG #1602:
    Fix failing test resulting from out-of-sync dependencies.



ripgrep 12.1.0 is a small minor version release that mostly includes bug fixes
and documentation improvements. This release also contains some important
notices for downstream packagers.


Notices for downstream ripgrep package maintainers:

    Fish shell completions will be removed in the ripgrep 13 release.
    See #1577
    for more details.
    ripgrep has switched from a2x to asciidoctor to generate the man page.
    If asciidoctor is not present, then ripgrep will currently fall back to
    a2x. Support for a2x will be dropped in the ripgrep 13 release.
    See #1544
    for more details.

Feature enhancements:

    FEATURE #1547:
    Support decompressing .Z files via uncompress.

Bug fixes:

    BUG #1252:
    Add a section on the --pre flag to the GUIDE.
    BUG #1339:
    Improve error message when a pattern with invalid UTF-8 is provided.
    BUG #1524:
    Note how to escape a $ when using --replace.
    BUG #1537:
    Fix match bug caused by inner literal optimization.
    BUG #1544:
    ripgrep now uses asciidoctor instead of a2x to generate its man page.
    BUG #1550:
    Substantially reduce peak memory usage when searching wide directories.
    BUG #1571:
    Add note about configuration files in --type-{add,clear} docs.
    BUG #1573:
    Fix incorrect --count-matches output when using look-around.


ripgrep 12.0.1 is a small patch release that includes a minor bug fix relating
to superfluous error messages when searching git repositories with sub-modules.
This was a regression introduced in the 12.0.0 release.

Bug fixes:

    BUG #1520:
    Don't emit spurious error messages in git repositories with submodules.



ripgrep 12 is a new major version release of ripgrep that contains many bug
fixes, several important performance improvements and a few minor new features.

In a near future release, I am hoping to add an
indexing feature
to ripgrep, which will dramatically speed up searching by building an index.
Feedback would very much be appreciated, especially on the user experience
which will be difficult to get right.

This release has no known breaking changes.

Deprecations:

    The --no-pcre2-unicode flag is deprecated. Instead, use the --no-unicode
    flag, which applies to both the default regex engine and PCRE2. For now,
    --no-pcre2-unicode and --pcre2-unicode are aliases to --no-unicode
    and --unicode, respectively. The --[no-]pcre2-unicode flags may be
    removed in a future release.
    The --auto-hybrid-regex flag is deprecated. Instead, use the new --engine
    flag with the auto value.

Performance improvements:

    PERF #1087:
    ripgrep is smarter when detected literals are whitespace.
    PERF #1381:
    Directory traversal is sped up with speculative ignore-file existence checks.
    PERF cd8ec38a:
    Improve inner literal detection to cover more cases more effectively.
    e.g., +Sherlock Holmes + now has Sherlock Holmes extracted instead
    of .
    PERF 6a0e0147:
    Improve literal detection when the -w/--word-regexp flag is used.
    PERF ad97e9c9:
    Improve overall performance of the -w/--word-regexp flag.

Feature enhancements:

    Added or improved file type filtering for erb, diff, Gradle, HAML, Org,
    Postscript, Skim, Slim, Slime, RPM Spec files, Typoscript, xml.
    FEATURE #1370:
    Add --include-zero flag that shows files searched without matches.
    FEATURE #1390:
    Add --no-context-separator flag that always hides context separators.
    FEATURE #1414:
    Add --no-require-git flag to allow ripgrep to respect gitignores anywhere.
    FEATURE #1420:
    Add --no-ignore-exclude to disregard rules in .git/info/exclude files.
    FEATURE #1466:
    Add --no-ignore-files flag to disable all --ignore-file flags.
    FEATURE #1488:
    Add '--engine' flag for easier switching between regex engines.
    FEATURE 75cbe88f:
    Add --no-unicode flag. This works on all supported regex engines.

Bug fixes:

    BUG #1291:
    ripgrep now works in non-existent directories.
    BUG #1319:
    Fix match bug due to errant literal detection.
    BUG #1335:
    Fixes a performance bug when searching plain text files with very long lines.
    This was a serious performance regression in some cases.
    BUG #1344:
    Document usage of --type all.
    BUG #1389:
    Fixes a bug where ripgrep would panic when searching a symlinked directory.
    BUG #1439:
    Improve documentation for ripgrep's automatic stdin detection.
    BUG #1441:
    Remove CPU features from man page.
    BUG #1442,
    BUG #1478:
    Improve documentation of the -g/--glob flag.
    BUG #1445:
    ripgrep now respects ignore rules from .git/info/exclude in worktrees.
    BUG #1485:
    Fish shell completions from the release Debian package are now installed to
    /usr/share/fish/vendor_completions.d/rg.fish.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2020/08/14 20:50:21 tnn Exp $
d7 1
a7 1
MAINTAINER=	maya@@NetBSD.org
@


1.10
log
@cargo users: drop do-build target where redundant
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2020/08/14 11:05:00 tnn Exp $
d3 1
a3 1
DISTNAME=	ripgrep-11.0.2
d12 1
a12 1
WRKSRC=		${WRKDIR}/${PKGNAME}
d15 15
a29 15
CARGO_CRATE_DEPENDS+=	aho-corasick-0.7.4
CARGO_CRATE_DEPENDS+=	atty-0.2.13
CARGO_CRATE_DEPENDS+=	base64-0.10.1
CARGO_CRATE_DEPENDS+=	bitflags-1.1.0
CARGO_CRATE_DEPENDS+=	bstr-0.2.6
CARGO_CRATE_DEPENDS+=	bytecount-0.5.1
CARGO_CRATE_DEPENDS+=	byteorder-1.3.2
CARGO_CRATE_DEPENDS+=	cc-1.0.38
CARGO_CRATE_DEPENDS+=	cfg-if-0.1.9
CARGO_CRATE_DEPENDS+=	clap-2.33.0
CARGO_CRATE_DEPENDS+=	crossbeam-channel-0.3.9
CARGO_CRATE_DEPENDS+=	crossbeam-utils-0.6.6
CARGO_CRATE_DEPENDS+=	encoding_rs-0.8.17
CARGO_CRATE_DEPENDS+=	encoding_rs_io-0.1.6
CARGO_CRATE_DEPENDS+=	fnv-1.0.6
d31 11
a41 10
CARGO_CRATE_DEPENDS+=	globset-0.4.4
CARGO_CRATE_DEPENDS+=	grep-0.2.4
CARGO_CRATE_DEPENDS+=	grep-cli-0.1.3
CARGO_CRATE_DEPENDS+=	grep-matcher-0.1.3
CARGO_CRATE_DEPENDS+=	grep-pcre2-0.1.3
CARGO_CRATE_DEPENDS+=	grep-printer-0.1.3
CARGO_CRATE_DEPENDS+=	grep-regex-0.1.4
CARGO_CRATE_DEPENDS+=	grep-searcher-0.1.5
CARGO_CRATE_DEPENDS+=	ignore-0.4.9
CARGO_CRATE_DEPENDS+=	itoa-0.4.4
d44 2
a45 2
CARGO_CRATE_DEPENDS+=	lazy_static-1.3.0
CARGO_CRATE_DEPENDS+=	libc-0.2.60
d47 1
a47 1
CARGO_CRATE_DEPENDS+=	memchr-2.2.1
d49 1
a49 1
CARGO_CRATE_DEPENDS+=	num_cpus-1.10.1
d51 1
a51 1
CARGO_CRATE_DEPENDS+=	pcre2-0.2.1
d53 11
a63 11
CARGO_CRATE_DEPENDS+=	pkg-config-0.3.15
CARGO_CRATE_DEPENDS+=	proc-macro2-0.4.30
CARGO_CRATE_DEPENDS+=	quote-0.6.13
CARGO_CRATE_DEPENDS+=	regex-1.2.0
CARGO_CRATE_DEPENDS+=	regex-automata-0.1.8
CARGO_CRATE_DEPENDS+=	regex-syntax-0.6.10
CARGO_CRATE_DEPENDS+=	ryu-1.0.0
CARGO_CRATE_DEPENDS+=	same-file-1.0.5
CARGO_CRATE_DEPENDS+=	serde-1.0.98
CARGO_CRATE_DEPENDS+=	serde_derive-1.0.98
CARGO_CRATE_DEPENDS+=	serde_json-1.0.40
d65 2
a66 2
CARGO_CRATE_DEPENDS+=	syn-0.15.42
CARGO_CRATE_DEPENDS+=	termcolor-1.0.5
d68 5
a72 7
CARGO_CRATE_DEPENDS+=	thread_local-0.3.6
CARGO_CRATE_DEPENDS+=	ucd-util-0.1.5
CARGO_CRATE_DEPENDS+=	unicode-width-0.1.5
CARGO_CRATE_DEPENDS+=	unicode-xid-0.1.0
CARGO_CRATE_DEPENDS+=	utf8-ranges-1.0.3
CARGO_CRATE_DEPENDS+=	walkdir-2.2.9
CARGO_CRATE_DEPENDS+=	winapi-0.3.7
d74 1
a74 1
CARGO_CRATE_DEPENDS+=	winapi-util-0.1.2
a75 1
CARGO_CRATE_DEPENDS+=	wincolor-1.0.1
@


1.9
log
@rust/cargo: replace "--frozen --locked" with "--offline" in various places

The intent of "--frozen --locked" was to not use the network, but the new
"--offline" option is better suited for this purpose.
It for example allows us to patch Cargo.toml if necessary without having
to regen checksums.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2020/01/19 18:20:46 maya Exp $
a80 3
do-build:
	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/cargo build --offline --release -j${_MAKE_JOBS_N}

@


1.8
log
@Rename EFFECTIVE_MAKE_JOBS -> _MAKE_JOBS_N, suggested by gdt.

I am under the impression we use _THING to mean "defined by the
implementation", which would be similar to the C meaning of __ prefix,
rather than "private to this file".
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2020/01/19 16:52:47 maya Exp $
d82 1
a82 1
	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/cargo build --locked --frozen --release -j${_MAKE_JOBS_N}
@


1.7
log
@Make cargo packages respect MAKE_JOBS
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2019/12/03 16:34:29 minskim Exp $
d82 1
a82 1
	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/cargo build --locked --frozen --release -j${EFFECTIVE_MAKE_JOBS}
@


1.6
log
@textproc/ripgrep: Update to 11.0.2

Breaking changes since 0.10.0:

- ripgrep has tweaked its exit status codes to be more like GNU
  grep's. Namely, if a non-fatal error occurs during a search, then
  ripgrep will now always emit a 2 exit status code, regardless of
  whether a match is found or not.  Previously, ripgrep would only
  emit a 2 exit status code for a catastrophic error (e.g., regex
  syntax error). One exception to this is if ripgrep is run with
  -q/--quiet. In that case, if an error occurs and a match is found,
  then ripgrep will exit with a 0 exit status code.

- Supplying the -u/--unrestricted flag three times is now equivalent
  to supplying --no-ignore --hidden --binary. Previously, -uuu was
  equivalent to --no-ignore --hidden --text. The difference is that
  --binary disables binary file filtering without potentially dumping
  binary data into your terminal. That is, rg -uuu foo should now be
  equivalent to grep -r foo.

- The avx-accel feature of ripgrep has been removed since it is no
  longer necessary. All uses of AVX in ripgrep are now enabled
  automatically via runtime CPU feature detection. The simd-accel
  feature does remain available (only for enabling SIMD for
  transcoding), however, it does increase compilation times
  substantially at the moment.

See the release announcement for the complete list.

  https://github.com/BurntSushi/ripgrep/releases
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2019/04/12 08:08:48 maya Exp $
d82 1
a82 1
	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/cargo build --locked --frozen --release
@


1.5
log
@ripgrep: update to 0.10.0

ripgrep 0.10.0:

This is a new minor version release of ripgrep that contains some major new
features, a huge number of bug fixes, and is the first release based on
libripgrep. The entirety of ripgrep's core search and printing code has been
rewritten and generalized so that anyone can make use of it.

Major new features include PCRE2 support, multi-line search and a JSON output
format.

BREAKING CHANGES:

    The minimum version required to compile Rust has now changed to track the
    latest stable version of Rust. Patch releases will continue to compile with
    the same version of Rust as the previous patch release, but new minor
    versions will use the current stable version of the Rust compile as its
    minimum supported version.
    The match semantics of -w/--word-regexp have changed slightly. They used
    to be \b(?:<your pattern>)\b, but now it's
    (?:^|\W)(?:<your pattern>)(?:$|\W). This matches the behavior of GNU grep
    and is believed to be closer to the intended semantics of the flag. See
    #389 for more details.

Feature enhancements:

    FEATURE #162:
    libripgrep is now a thing. The primary crate is
    grep.
    FEATURE #176:
    Add -U/--multiline flag that permits matching over multiple lines.
    FEATURE #188:
    Add -P/--pcre2 flag that gives support for look-around and backreferences.
    FEATURE #244:
    Add --json flag that prints results in a JSON Lines format.
    FEATURE #321:
    Add --one-file-system flag to skip directories on different file systems.
    FEATURE #404:
    Add --sort and --sortr flag for more sorting. Deprecate --sort-files.
    FEATURE #416:
    Add --crlf flag to permit $ to work with carriage returns on Windows.
    FEATURE #917:
    The --trim flag strips prefix whitespace from all lines printed.
    FEATURE #993:
    Add --null-data flag, which makes ripgrep use NUL as a line terminator.
    FEATURE #997:
    The --passthru flag now works with the --replace flag.
    FEATURE #1038-1:
    Add --line-buffered and --block-buffered for forcing a buffer strategy.
    FEATURE #1038-2:
    Add --pre-glob for filtering files through the --pre flag.

Bug fixes:

    BUG #2:
    Searching with non-zero context can now use memory maps if appropriate.
    BUG #200:
    ripgrep will now stop correctly when its output pipe is closed.
    BUG #389:
    The -w/--word-regexp flag now works more intuitively.
    BUG #643:
    Detection of readable stdin has improved on Windows.
    BUG #441,
    BUG #690,
    BUG #980:
    Matching empty lines now works correctly in several corner cases.
    BUG #764:
    Color escape sequences now coalesce, which reduces output size.
    BUG #842:
    Add man page to binary Debian package.
    BUG #922:
    ripgrep is now more robust with respect to memory maps failing.
    BUG #937:
    Color escape sequences are no longer emitted for empty matches.
    BUG #940:
    Context from the --passthru flag should not impact process exit status.
    BUG #984:
    Fixes bug in ignore crate where first path was always treated as a symlink.
    BUG #990:
    Read stderr asynchronously when running a process.
    BUG #1013:
    Add compile time and runtime CPU features to --version output.
    BUG #1028:
    Don't complete bare pattern after -f in zsh.


ripgrep 0.9.0:

BREAKING CHANGES:

    When --count and --only-matching are provided simultaneously, the
    behavior of ripgrep is as if the --count-matches flag was given. That is,
    the total number of matches is reported, where there may be multiple matches
    per line. Previously, the behavior of ripgrep was to report the total number
    of matching lines. (Note that this behavior diverges from the behavior of
    GNU grep.)
    Octal syntax is no longer supported. ripgrep previously accepted expressions
    like \1 as syntax for matching U+0001, but ripgrep will now report an
    error instead.
    The --line-number-width flag has been removed. Its functionality was not
    carefully considered with all ripgrep output formats.
    See #795 for more
    details.

Feature enhancements:

    Added or improved file type filtering for Android, Bazel, Fuschia, Haskell,
    Java and Puppet.
    FEATURE #411:
    Add a --stats flag, which emits aggregate statistics after search results.
    FEATURE #646:
    Add a --no-ignore-messages flag, which suppresses parse errors from reading
    .ignore and .gitignore files.
    FEATURE #702:
    Support \u{..} Unicode escape sequences.
    FEATURE #812:
    Add -b/--byte-offset flag that shows the byte offset of each matching line.
    FEATURE #814:
    Add --count-matches flag, which is like --count, but for each match.
    FEATURE #880:
    Add a --no-column flag, which disables column numbers in the output.
    FEATURE #898:
    Add support for lz4 when using the -z/--search-zip flag.
    FEATURE #924:
    termcolor has moved to its own repository:
    https://github.com/BurntSushi/termcolor
    FEATURE #934:
    Add a new flag, --no-ignore-global, that permits disabling global
    gitignores.
    FEATURE #967:
    Rename --maxdepth to --max-depth for consistency. Keep --maxdepth for
    backwards compatibility.
    FEATURE #978:
    Add a --pre option to filter inputs with an arbitrary program.
    FEATURE fca9709d:
    Improve zsh completion.

Bug fixes:

    BUG #135:
    Release portable binaries that conditionally use SSSE3, AVX2, etc., at
    runtime.
    BUG #268:
    Print descriptive error message when trying to use look-around or
    backreferences.
    BUG #395:
    Show comprehensible error messages for regexes like \s*{.
    BUG #526:
    Support backslash escapes in globs.
    BUG #795:
    Fix problems with --line-number-width by removing it.
    BUG #832:
    Clarify usage instructions for -f/--file flag.
    BUG #835:
    Fix small performance regression while crawling very large directory trees.
    BUG #851:
    Fix -S/--smart-case detection once and for all.
    BUG #852:
    Be robust with respect to ENOMEM errors returned by mmap.
    BUG #853:
    Upgrade grep crate to regex-syntax 0.6.0.
    BUG #893:
    Improve support for git submodules.
    BUG #900:
    When no patterns are given, ripgrep should never match anything.
    BUG #907:
    ripgrep will now stop traversing after the first file when --quiet --files
    is used.
    BUG #918:
    Don't skip tar archives when -z/--search-zip is used.
    BUG #934:
    Don't respect gitignore files when searching outside git repositories.
    BUG #948:
    Use exit code 2 to indicate error, and use exit code 1 to indicate no
    matches.
    BUG #951:
    Add stdin example to ripgrep usage documentation.
    BUG #955:
    Use buffered writing when not printing to a tty, which fixes a performance
    regression.
    BUG #957:
    Improve the error message shown for --path separator / in some Windows
    shells.
    BUG #964:
    Add a --no-fixed-strings flag to disable -F/--fixed-strings.
    BUG #988:
    Fix a bug in the ignore crate that prevented the use of explicit ignore
    files after disabling all other ignore rules.
    BUG #995:
    Respect $XDG_CONFIG_DIR/git/config for detecting core.excludesFile.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2019/01/05 02:58:54 tnn Exp $
d3 1
a3 3
GITHUB_PROJECT=	ripgrep
DISTNAME=	0.10.0
PKGNAME=	${GITHUB_PROJECT}-${DISTNAME}
d5 1
a5 2
MASTER_SITES=	${MASTER_SITE_GITHUB:=BurntSushi/}
DIST_SUBDIR=	${GITHUB_PROJECT}
d15 14
a28 16
CARGO_CRATE_DEPENDS+=	aho-corasick-0.6.8
CARGO_CRATE_DEPENDS+=	arrayvec-0.4.7
CARGO_CRATE_DEPENDS+=	atty-0.2.11
CARGO_CRATE_DEPENDS+=	base64-0.9.2
CARGO_CRATE_DEPENDS+=	bitflags-1.0.4
CARGO_CRATE_DEPENDS+=	bytecount-0.3.2
CARGO_CRATE_DEPENDS+=	byteorder-1.2.6
CARGO_CRATE_DEPENDS+=	cc-1.0.24
CARGO_CRATE_DEPENDS+=	cfg-if-0.1.5
CARGO_CRATE_DEPENDS+=	clap-2.32.0
CARGO_CRATE_DEPENDS+=	cloudabi-0.0.3
CARGO_CRATE_DEPENDS+=	crossbeam-channel-0.2.4
CARGO_CRATE_DEPENDS+=	crossbeam-epoch-0.5.2
CARGO_CRATE_DEPENDS+=	crossbeam-utils-0.5.0
CARGO_CRATE_DEPENDS+=	encoding_rs-0.8.6
CARGO_CRATE_DEPENDS+=	encoding_rs_io-0.1.2
d30 37
a66 45
CARGO_CRATE_DEPENDS+=	fuchsia-zircon-0.3.3
CARGO_CRATE_DEPENDS+=	fuchsia-zircon-sys-0.3.3
CARGO_CRATE_DEPENDS+=	glob-0.2.11
CARGO_CRATE_DEPENDS+=	itoa-0.4.2
CARGO_CRATE_DEPENDS+=	lazy_static-1.1.0
CARGO_CRATE_DEPENDS+=	libc-0.2.43
CARGO_CRATE_DEPENDS+=	lock_api-0.1.3
CARGO_CRATE_DEPENDS+=	log-0.4.5
CARGO_CRATE_DEPENDS+=	memchr-2.0.2
CARGO_CRATE_DEPENDS+=	memmap-0.6.2
CARGO_CRATE_DEPENDS+=	memoffset-0.2.1
CARGO_CRATE_DEPENDS+=	nodrop-0.1.12
CARGO_CRATE_DEPENDS+=	num_cpus-1.8.0
CARGO_CRATE_DEPENDS+=	owning_ref-0.3.3
CARGO_CRATE_DEPENDS+=	parking_lot-0.6.4
CARGO_CRATE_DEPENDS+=	parking_lot_core-0.3.0
CARGO_CRATE_DEPENDS+=	pcre2-0.1.0
CARGO_CRATE_DEPENDS+=	pcre2-sys-0.1.1
CARGO_CRATE_DEPENDS+=	pkg-config-0.3.14
CARGO_CRATE_DEPENDS+=	proc-macro2-0.4.18
CARGO_CRATE_DEPENDS+=	quote-0.6.8
CARGO_CRATE_DEPENDS+=	rand-0.4.3
CARGO_CRATE_DEPENDS+=	rand-0.5.5
CARGO_CRATE_DEPENDS+=	rand_core-0.2.1
CARGO_CRATE_DEPENDS+=	redox_syscall-0.1.40
CARGO_CRATE_DEPENDS+=	redox_termios-0.1.1
CARGO_CRATE_DEPENDS+=	regex-1.0.5
CARGO_CRATE_DEPENDS+=	regex-syntax-0.6.2
CARGO_CRATE_DEPENDS+=	remove_dir_all-0.5.1
CARGO_CRATE_DEPENDS+=	ryu-0.2.6
CARGO_CRATE_DEPENDS+=	safemem-0.2.0
CARGO_CRATE_DEPENDS+=	same-file-1.0.3
CARGO_CRATE_DEPENDS+=	scopeguard-0.3.3
CARGO_CRATE_DEPENDS+=	serde-1.0.77
CARGO_CRATE_DEPENDS+=	serde_derive-1.0.77
CARGO_CRATE_DEPENDS+=	serde_json-1.0.27
CARGO_CRATE_DEPENDS+=	simd-0.2.2
CARGO_CRATE_DEPENDS+=	smallvec-0.6.5
CARGO_CRATE_DEPENDS+=	stable_deref_trait-1.1.1
CARGO_CRATE_DEPENDS+=	strsim-0.7.0
CARGO_CRATE_DEPENDS+=	syn-0.15.1
CARGO_CRATE_DEPENDS+=	tempdir-0.3.7
CARGO_CRATE_DEPENDS+=	termcolor-1.0.3
CARGO_CRATE_DEPENDS+=	termion-1.5.1
CARGO_CRATE_DEPENDS+=	textwrap-0.10.0
d68 1
a68 1
CARGO_CRATE_DEPENDS+=	ucd-util-0.1.1
d71 3
a73 6
CARGO_CRATE_DEPENDS+=	unreachable-1.0.0
CARGO_CRATE_DEPENDS+=	utf8-ranges-1.0.1
CARGO_CRATE_DEPENDS+=	version_check-0.1.4
CARGO_CRATE_DEPENDS+=	void-1.0.2
CARGO_CRATE_DEPENDS+=	walkdir-2.2.5
CARGO_CRATE_DEPENDS+=	winapi-0.3.5
d75 1
a75 1
CARGO_CRATE_DEPENDS+=	winapi-util-0.1.1
@


1.4
log
@ripgrep: use ${INSTALL_PROGRAM} instead of "cargo install"

This will make it respect pkgsrc strip(1) settings and also avoids
"cargo install" which can query the creates.io repo and break offline builds.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2018/10/25 00:35:22 minskim Exp $
d4 1
a4 1
DISTNAME=	0.8.1
d15 1
a15 1
WRKSRC=		${WRKDIR}/ripgrep-0.8.1
d18 76
a93 45
CARGO_CRATE_DEPENDS+=		\
	atty-0.2.6		\
	bytecount-0.3.1		\
	cfg-if-0.1.2		\
	clap-2.30.0		\
	crossbeam-0.3.2		\
	encoding_rs-0.7.2	\
	glob-0.2.11		\
	globset-0.3.0		\
	grep-0.1.8		\
	ignore-0.4.0		\
	lazy_static-1.0.0	\
	libc-0.2.36		\
	log-0.4.1		\
	memchr-2.0.1		\
	memmap-0.6.2		\
	num_cpus-1.8.0		\
	regex-0.2.6		\
	regex-syntax-0.4.2	\
	same-file-1.0.2		\
	simd-0.2.1		\
	aho-corasick-0.6.4	\
	fnv-1.0.6		\
	termcolor-0.3.4		\
	termion-1.5.1		\
	redox_syscall-0.1.37	\
	redox_termios-0.1.1	\
	strsim-0.7.0		\
	textwrap-0.9.0		\
	unicode-width-0.1.4	\
	ansi_term-0.10.2	\
	thread_local-0.3.5	\
	walkdir-2.1.4		\
	winapi-0.3.4		\
	winapi-i686-pc-windows-gnu-0.4.0	\
	winapi-x86_64-pc-windows-gnu-0.4.0	\
	utf8-ranges-1.0.0	\
	unreachable-1.0.0	\
	tempdir-0.3.5		\
	void-1.0.2		\
	rand-0.4.2		\
	rand-0.3.22		\
	fuchsia-zircon-0.3.3	\
	fuchsia-zircon-sys-0.3.3	\
	bitflags-1.0.1
@


1.3
log
@textproc/ripgrep: Install with cargo, rather than manually
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2018/09/21 21:26:33 minskim Exp $
d64 2
d70 1
a70 2
	cd ${WRKSRC} && ${PREFIX}/bin/cargo install --root ${DESTDIR}${PREFIX}
	rm ${DESTDIR}${PREFIX}/.crates.toml
@


1.2
log
@lang/rust: Move common BUILD_DEPENDS in rust packages to cargo.mk
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2018/05/08 07:48:39 maya Exp $
a63 2
CARGO_INSTALL_FILES=	rg

a66 3

INSTALLATION_DIRS+=	bin

d68 2
a69 3
.for file in ${CARGO_INSTALL_FILES}
	${INSTALL_PROGRAM} ${WRKSRC}/target/release/${file} ${DESTDIR}${PREFIX}/bin
.endfor
@


1.1
log
@Add ripgrep in textproc directory.

suggested by alnsn. thanks.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2018/05/05 23:58:26 maya Exp $
a17 2
BUILD_DEPENDS+=	rust-[0-9]*:../../lang/rust

@

