head	1.13;
access;
symbols
	pkgsrc-2026Q1:1.13.0.6
	pkgsrc-2026Q1-base:1.13
	pkgsrc-2025Q4:1.13.0.4
	pkgsrc-2025Q4-base:1.13
	pkgsrc-2025Q3:1.13.0.2
	pkgsrc-2025Q3-base:1.13
	pkgsrc-2025Q2:1.12.0.2
	pkgsrc-2025Q2-base:1.12
	pkgsrc-2025Q1:1.11.0.10
	pkgsrc-2025Q1-base:1.11
	pkgsrc-2024Q4:1.11.0.8
	pkgsrc-2024Q4-base:1.11
	pkgsrc-2024Q3:1.11.0.6
	pkgsrc-2024Q3-base:1.11
	pkgsrc-2024Q2:1.11.0.4
	pkgsrc-2024Q2-base:1.11
	pkgsrc-2024Q1:1.11.0.2
	pkgsrc-2024Q1-base:1.11
	pkgsrc-2023Q4:1.10.0.2
	pkgsrc-2023Q4-base:1.10
	pkgsrc-2023Q3:1.9.0.6
	pkgsrc-2023Q3-base:1.9
	pkgsrc-2023Q2:1.9.0.4
	pkgsrc-2023Q2-base:1.9
	pkgsrc-2023Q1:1.9.0.2
	pkgsrc-2023Q1-base:1.9
	pkgsrc-2022Q4:1.6.0.6
	pkgsrc-2022Q4-base:1.6
	pkgsrc-2022Q3:1.6.0.4
	pkgsrc-2022Q3-base:1.6
	pkgsrc-2022Q2:1.6.0.2
	pkgsrc-2022Q2-base:1.6;
locks; strict;
comment	@# @;


1.13
date	2025.09.19.13.54.03;	author pin;	state Exp;
branches;
next	1.12;
commitid	8vNERGZiiCPAukbG;

1.12
date	2025.04.04.20.23.37;	author pin;	state Exp;
branches;
next	1.11;
commitid	XfFvGaDPLfKZ2MPF;

1.11
date	2024.01.02.16.02.44;	author pin;	state Exp;
branches;
next	1.10;
commitid	fCAS8grCekNikTSE;

1.10
date	2023.12.02.22.12.46;	author pin;	state Exp;
branches;
next	1.9;
commitid	euHzVm719X31nWOE;

1.9
date	2023.02.28.22.38.42;	author pin;	state Exp;
branches;
next	1.8;
commitid	Dy1n3hTobrNWplfE;

1.8
date	2023.01.05.14.13.13;	author wiz;	state Exp;
branches;
next	1.7;
commitid	qgjXqUnjo5W8mm8E;

1.7
date	2023.01.02.12.54.00;	author pin;	state Exp;
branches;
next	1.6;
commitid	r4UNPEmbQsOX0Y7E;

1.6
date	2022.06.09.07.58.58;	author pin;	state Exp;
branches;
next	1.5;
commitid	Tw3nblDPoG9a2lHD;

1.5
date	2022.06.07.10.13.04;	author pin;	state Exp;
branches;
next	1.4;
commitid	NpxxkAFCB7agQ5HD;

1.4
date	2022.05.24.08.55.39;	author pin;	state Exp;
branches;
next	1.3;
commitid	DuqHVHw293SBRhFD;

1.3
date	2022.05.21.21.09.44;	author pin;	state Exp;
branches;
next	1.2;
commitid	adMe1XGmysPp1YED;

1.2
date	2022.05.15.06.45.09;	author pin;	state Exp;
branches;
next	1.1;
commitid	bkulZSPjhWZLq7ED;

1.1
date	2022.05.03.13.01.05;	author pin;	state Exp;
branches;
next	;
commitid	YbaHhWiB1COzTBCD;


desc
@@


1.13
log
@textproc/tuc: update to 1.3.0

[1.3.0] - 2025-09-10

- perf: much faster (2x to 5x depending on the workload)
  - detect and apply better algorithms before starting
  - mmap support
- feat: you can now pass a file path as argument to tuc
- feat: add the ability to display fallback output when a field is out of bound
  (you can set it per-field using `-f <range>=somefallback` or by providing
  a default fallback with `--fallback-oob somefallback`)
  (it will be opened with mmap if available and as long as --no-mmap is not set)
- feat: it is now possible to type \t while formatting fields and
  output a TAB (as we already do for \n) e.g. `-f '{1}\t{2}'`
- feat: new argument --fixed-memory (-M) to cut lines in chunks of
  a fixed size (in kilobytes), to allow cutting arbitrary long lines
- feat: --characters now depends on the (default) regex feature
- feat: ignore broken pipe when feeding output to tools such as `head`
- feat: display short help when run without arguments
- feat: help and short help are colored, as long as output is a tty and
  unless env var TERM=dumb or NO_COLOR (any value) is set
- chore: --json internally uses serde_json, faster and more precise
- chore: improved test coverage
@
text
@# $NetBSD: Makefile,v 1.12 2025/04/04 20:23:37 pin Exp $

DISTNAME=	tuc-1.3.0
CATEGORIES=	textproc
MASTER_SITES=	${MASTER_SITE_GITHUB:=riquito/}
GITHUB_TAG=	v${PKGVERSION_NOREV}

MAINTAINER=	pkgsrc-users@@NetBSD.org
HOMEPAGE=	https://github.com/riquito/tuc/
COMMENT=	When cut doesn't cut it
LICENSE=	gnu-gpl-v3

.include "cargo-depends.mk"

INSTALLATION_DIRS=	${PKGMANDIR}/man1

post-install:
	${INSTALL_MAN} ${WRKSRC}/doc/tuc.1 \
		${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/tuc.1

.include "../../lang/rust/cargo.mk"
.include "../../mk/bsd.pkg.mk"
@


1.12
log
@textproc/tuc: reset maintainer
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2024/01/02 16:02:44 pin Exp $
d3 1
a3 1
DISTNAME=	tuc-1.2.0
@


1.11
log
@textproc/tuc: update to 1.2.0

[1.2.0] - 2024-01-01
 - feat: new option --json to format output as JSON array
 - feat: -r can be used when cutting --characters. It replaces the (empty)
   delimiter between characters with whatever you provided
 - feat: exit early when some combinations of fields cannot be used together
 - feat: updated dependencies. In particular the regex crate which offers new
   functionalities (word boundary assertions)
 - fix: field formatting is now applied to field 1 even if no delimiters are
   found (similar to how we print the unformatted field 1)
 - doc: many error messages have been rewritten for better clarity
 - doc: new svg demo in the README
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2023/12/02 22:12:46 pin Exp $
d8 1
a8 1
MAINTAINER=	pin@@NetBSD.org
@


1.10
log
@textproc/tuc: update to 1.1.0

[1.1.0] - 2023-12-02
    feat: no more need to pass --join when using --replace, it's implied
    feat: new error messages when applying some incompatible options
    doc: improved documentation, help, man page
    doc: mention that --regex requires an argument
    test: improved test coverage
    fix: better error message when --regex argument is missing
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2023/02/28 22:38:42 pin Exp $
d3 1
a3 1
DISTNAME=	tuc-1.1.0
@


1.9
log
@textproc/tuc: update to 1.0.0

[0.11.0] - 2022-06-20

- fix: --lines could throw out of bounds with -f 1: in some situations
- chore: dependency updates
- doc: fixed typos
- doc: new section about community-managed install methods (macports)
- doc: man page generated using the mode modern pandoc 2.5
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2023/01/05 14:13:13 wiz Exp $
d3 1
a3 1
DISTNAME=	tuc-1.0.0
d8 1
a8 1
MAINTAINER=	pkgsrc-users@@NetBSD.org
d15 1
a15 1
INSTALLATION_DIRS=	bin ${PKGMANDIR}/man1
d17 1
a17 3
do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/target/release/tuc \
		${DESTDIR}${PREFIX}/bin
@


1.8
log
@tuc: add man page to PLIST

Bump PKGREVISION.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2023/01/02 12:54:00 pin Exp $
d3 1
a3 2
DISTNAME=	tuc-0.11.0
PKGREVISION=	1
@


1.7
log
@textproc/tuc: update to 0.11.0

[0.11.0] - 2022-06-20
    fix: --lines could throw out of bounds with -f 1: in some situations
    chore: dependency updates
    doc: fixed typos
    doc: new section about community-managed install methods (macports)
    doc: man page generated using the mode modern pandoc 2.5

[0.10.0] - 2022-06-13
    breaking: -E is now an option (-e), and accept the regex as value
    doc: added man page
    doc: improved documentation
    chore: updated pico-args

[0.9.0] - 2022-06-05
    breaking: --lines output each bound on their own line
    feat: --regex support
    feat: minor tuning of buffers
    feat: internal improvements for --lines
    fix: right side of a range can be negative
    fix: emit proper error if right side of a range is behind left side
    fix: --lines with negative indexes were broken
    fix: --greedy-delimiter was cutting wrongly lines starting with delimiter
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2022/06/09 07:58:58 pin Exp $
d4 1
@


1.6
log
@textproc/tuc: downgrade to 0.8.0

0.9.0 requires rust-1.61
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2022/06/07 10:13:04 pin Exp $
d3 1
a3 2
# tuc-0.9.0 requires rust-1.61
DISTNAME=	tuc-0.8.0
d15 1
a15 1
INSTALLATION_DIRS=	bin
d20 2
@


1.5
log
@textproc/tuc: update to 0.9.0

[0.9.0] - 2022-06-05
   -breaking: --lines output each bound on their own line
   -feat: --regex support
   -feat: minor tuning of buffers
   -feat: internal improvements for --lines
   -fix: right side of a range can be negative
   -fix: emit proper error if right side of a range is behind left side
   -fix: --lines with negative indexes were broken
   -fix: --greedy-delimiter was cutting wrongly lines starting with delimiter
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2022/05/24 08:55:39 pin Exp $
d3 2
a4 1
DISTNAME=	tuc-0.9.0
@


1.4
log
@textproc/tuc: update to 0.8.0

[0.8.0] - 2022-05-23
    Add support for --greedy-delimiter
    Bounds can be formatted
    Major refactoring for better code maintainability
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2022/05/21 21:09:44 pin Exp $
d3 1
a3 1
DISTNAME=	tuc-0.8.0
@


1.3
log
@textproc/tuc: update to 0.7.0

[0.7.0] - 2022-05-21
    Add support for --join
    Add support for --lines
    Add support for --complement
    Add support for --zero-terminated
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2022/05/15 06:45:09 pin Exp $
d3 1
a3 1
DISTNAME=	tuc-0.7.0
@


1.2
log
@textproc/tuc: update to 0.6.0

[0.6.0] - 2022-05-13
    Add split-by-byte using --bytes
    Add split-by-character using --characters
    Faster performance when -p (compress delimiters) is on
    Faster performance when reading the input
    CI now fails if the linter is not satisfied
    Reviewd CI/release actions, simpler, faster
    Release binaries for ARM too
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2022/05/03 13:01:05 pin Exp $
d3 1
a3 1
DISTNAME=	tuc-0.6.0
@


1.1
log
@textproc/tuc: import package

tuc (when cut doesn't cut it)

We've all been there. You want to cut some string on a delimiter repeated in
a non-deterministic way. Maybe you even want to use negative indexes or replace
the delimiters in the cut part with something else... That's where tuc can help.
@
text
@d1 1
a1 1
# $NetBSD$
d3 1
a3 1
DISTNAME=	tuc-0.5.0
@

