head	1.68;
access;
symbols
	pkgsrc-2026Q1:1.66.0.4
	pkgsrc-2026Q1-base:1.66
	pkgsrc-2025Q4:1.66.0.2
	pkgsrc-2025Q4-base:1.66
	pkgsrc-2025Q3:1.65.0.12
	pkgsrc-2025Q3-base:1.65
	pkgsrc-2025Q2:1.65.0.10
	pkgsrc-2025Q2-base:1.65
	pkgsrc-2025Q1:1.65.0.8
	pkgsrc-2025Q1-base:1.65
	pkgsrc-2024Q4:1.65.0.6
	pkgsrc-2024Q4-base:1.65
	pkgsrc-2024Q3:1.65.0.4
	pkgsrc-2024Q3-base:1.65
	pkgsrc-2024Q2:1.65.0.2
	pkgsrc-2024Q2-base:1.65
	pkgsrc-2024Q1:1.63.0.8
	pkgsrc-2024Q1-base:1.63
	pkgsrc-2023Q4:1.63.0.6
	pkgsrc-2023Q4-base:1.63
	pkgsrc-2023Q3:1.63.0.4
	pkgsrc-2023Q3-base:1.63
	pkgsrc-2023Q2:1.63.0.2
	pkgsrc-2023Q2-base:1.63
	pkgsrc-2023Q1:1.60.0.4
	pkgsrc-2023Q1-base:1.60
	pkgsrc-2022Q4:1.60.0.2
	pkgsrc-2022Q4-base:1.60
	pkgsrc-2022Q3:1.59.0.2
	pkgsrc-2022Q3-base:1.59
	pkgsrc-2022Q2:1.58.0.10
	pkgsrc-2022Q2-base:1.58
	pkgsrc-2022Q1:1.58.0.8
	pkgsrc-2022Q1-base:1.58
	pkgsrc-2021Q4:1.58.0.6
	pkgsrc-2021Q4-base:1.58
	pkgsrc-2021Q3:1.58.0.4
	pkgsrc-2021Q3-base:1.58
	pkgsrc-2021Q2:1.58.0.2
	pkgsrc-2021Q2-base:1.58
	pkgsrc-2021Q1:1.57.0.10
	pkgsrc-2021Q1-base:1.57
	pkgsrc-2020Q4:1.57.0.8
	pkgsrc-2020Q4-base:1.57
	pkgsrc-2020Q3:1.57.0.6
	pkgsrc-2020Q3-base:1.57
	pkgsrc-2020Q2:1.57.0.4
	pkgsrc-2020Q2-base:1.57
	pkgsrc-2020Q1:1.57.0.2
	pkgsrc-2020Q1-base:1.57
	pkgsrc-2019Q4:1.54.0.10
	pkgsrc-2019Q4-base:1.54
	pkgsrc-2019Q3:1.54.0.6
	pkgsrc-2019Q3-base:1.54
	pkgsrc-2019Q2:1.54.0.4
	pkgsrc-2019Q2-base:1.54
	pkgsrc-2019Q1:1.54.0.2
	pkgsrc-2019Q1-base:1.54
	pkgsrc-2018Q4:1.53.0.2
	pkgsrc-2018Q4-base:1.53
	pkgsrc-2018Q3:1.52.0.2
	pkgsrc-2018Q3-base:1.52
	pkgsrc-2018Q2:1.51.0.2
	pkgsrc-2018Q2-base:1.51
	pkgsrc-2018Q1:1.50.0.12
	pkgsrc-2018Q1-base:1.50
	pkgsrc-2017Q4:1.50.0.10
	pkgsrc-2017Q4-base:1.50
	pkgsrc-2017Q3:1.50.0.8
	pkgsrc-2017Q3-base:1.50
	pkgsrc-2017Q2:1.50.0.4
	pkgsrc-2017Q2-base:1.50
	pkgsrc-2017Q1:1.50.0.2
	pkgsrc-2017Q1-base:1.50
	pkgsrc-2016Q4:1.48.0.18
	pkgsrc-2016Q4-base:1.48
	pkgsrc-2016Q3:1.48.0.16
	pkgsrc-2016Q3-base:1.48
	pkgsrc-2016Q2:1.48.0.14
	pkgsrc-2016Q2-base:1.48
	pkgsrc-2016Q1:1.48.0.12
	pkgsrc-2016Q1-base:1.48
	pkgsrc-2015Q4:1.48.0.10
	pkgsrc-2015Q4-base:1.48
	pkgsrc-2015Q3:1.48.0.8
	pkgsrc-2015Q3-base:1.48
	pkgsrc-2015Q2:1.48.0.6
	pkgsrc-2015Q2-base:1.48
	pkgsrc-2015Q1:1.48.0.4
	pkgsrc-2015Q1-base:1.48
	pkgsrc-2014Q4:1.48.0.2
	pkgsrc-2014Q4-base:1.48
	pkgsrc-2014Q3:1.47.0.4
	pkgsrc-2014Q3-base:1.47
	pkgsrc-2014Q2:1.47.0.2
	pkgsrc-2014Q2-base:1.47
	pkgsrc-2014Q1:1.45.0.10
	pkgsrc-2014Q1-base:1.45
	pkgsrc-2013Q4:1.45.0.8
	pkgsrc-2013Q4-base:1.45
	pkgsrc-2013Q3:1.45.0.6
	pkgsrc-2013Q3-base:1.45
	pkgsrc-2013Q2:1.45.0.4
	pkgsrc-2013Q2-base:1.45
	pkgsrc-2013Q1:1.45.0.2
	pkgsrc-2013Q1-base:1.45
	pkgsrc-2012Q4:1.43.0.2
	pkgsrc-2012Q4-base:1.43
	pkgsrc-2012Q3:1.40.0.4
	pkgsrc-2012Q3-base:1.40
	pkgsrc-2012Q2:1.40.0.2
	pkgsrc-2012Q2-base:1.40
	pkgsrc-2012Q1:1.38.0.4
	pkgsrc-2012Q1-base:1.38
	pkgsrc-2011Q4:1.38.0.2
	pkgsrc-2011Q4-base:1.38
	pkgsrc-2011Q3:1.37.0.4
	pkgsrc-2011Q3-base:1.37
	pkgsrc-2011Q2:1.37.0.2
	pkgsrc-2011Q2-base:1.37
	pkgsrc-2011Q1:1.36.0.8
	pkgsrc-2011Q1-base:1.36
	pkgsrc-2010Q4:1.36.0.6
	pkgsrc-2010Q4-base:1.36
	pkgsrc-2010Q3:1.36.0.4
	pkgsrc-2010Q3-base:1.36
	pkgsrc-2010Q2:1.36.0.2
	pkgsrc-2010Q2-base:1.36
	pkgsrc-2010Q1:1.35.0.6
	pkgsrc-2010Q1-base:1.35
	pkgsrc-2009Q4:1.35.0.4
	pkgsrc-2009Q4-base:1.35
	pkgsrc-2009Q3:1.35.0.2
	pkgsrc-2009Q3-base:1.35
	pkgsrc-2009Q2:1.34.0.14
	pkgsrc-2009Q2-base:1.34
	pkgsrc-2009Q1:1.34.0.12
	pkgsrc-2009Q1-base:1.34
	pkgsrc-2008Q4:1.34.0.10
	pkgsrc-2008Q4-base:1.34
	pkgsrc-2008Q3:1.34.0.8
	pkgsrc-2008Q3-base:1.34
	cube-native-xorg:1.34.0.6
	cube-native-xorg-base:1.34
	pkgsrc-2008Q2:1.34.0.4
	pkgsrc-2008Q2-base:1.34
	cwrapper:1.34.0.2
	pkgsrc-2008Q1:1.33.0.10
	pkgsrc-2008Q1-base:1.33
	pkgsrc-2007Q4:1.33.0.8
	pkgsrc-2007Q4-base:1.33
	pkgsrc-2007Q3:1.33.0.6
	pkgsrc-2007Q3-base:1.33
	pkgsrc-2007Q2:1.33.0.4
	pkgsrc-2007Q2-base:1.33
	pkgsrc-2007Q1:1.33.0.2
	pkgsrc-2007Q1-base:1.33
	pkgsrc-2006Q4:1.31.0.2
	pkgsrc-2006Q4-base:1.31
	pkgsrc-2006Q3:1.30.0.4
	pkgsrc-2006Q3-base:1.30
	pkgsrc-2006Q2:1.30.0.2
	pkgsrc-2006Q2-base:1.30
	pkgsrc-2006Q1:1.29.0.2
	pkgsrc-2006Q1-base:1.29
	pkgsrc-2005Q4:1.26.0.2
	pkgsrc-2005Q4-base:1.26
	pkgsrc-2005Q3:1.24.0.4
	pkgsrc-2005Q3-base:1.24
	pkgsrc-2005Q2:1.24.0.2
	pkgsrc-2005Q2-base:1.24
	pkgsrc-2005Q1:1.22.0.2
	pkgsrc-2005Q1-base:1.22
	pkgsrc-2004Q4:1.21.0.2
	pkgsrc-2004Q4-base:1.21
	pkgsrc-2004Q3:1.20.0.2
	pkgsrc-2004Q3-base:1.20
	pkgsrc-2004Q2:1.18.0.2
	pkgsrc-2004Q2-base:1.18
	pkgsrc-2004Q1:1.16.0.2
	pkgsrc-2004Q1-base:1.16
	pkgsrc-2003Q4:1.14.0.2
	pkgsrc-2003Q4-base:1.14
	netbsd-1-6-1:1.7.0.2
	netbsd-1-6-1-base:1.7
	netbsd-1-6:1.5.0.8
	netbsd-1-6-RELEASE-base:1.5
	pkgviews:1.5.0.4
	pkgviews-base:1.5
	buildlink2:1.5.0.2
	buildlink2-base:1.5
	netbsd-1-5-PATCH003:1.5
	pkgsrc-base:1.1.1.1
	TNF:1.1.1;
locks; strict;
comment	@# @;


1.68
date	2026.05.13.06.02.26;	author wiz;	state Exp;
branches;
next	1.67;
commitid	0kdrbB3WpVFQhCFG;

1.67
date	2026.03.25.22.48.38;	author wiz;	state Exp;
branches;
next	1.66;
commitid	0HvpNvh2nfwirpzG;

1.66
date	2025.10.05.11.59.43;	author js;	state Exp;
branches;
next	1.65;
commitid	mOfATZ0vyK2rlndG;

1.65
date	2024.05.01.22.44.09;	author cheusov;	state Exp;
branches;
next	1.64;
commitid	feVG6EClctKSGl8F;

1.64
date	2024.05.01.22.36.29;	author cheusov;	state Exp;
branches;
next	1.63;
commitid	eN4BOQO1b8TfEl8F;

1.63
date	2023.05.10.20.40.47;	author schmonz;	state Exp;
branches;
next	1.62;
commitid	IT6djXhK027XtsoE;

1.62
date	2023.04.12.20.31.36;	author wiz;	state Exp;
branches;
next	1.61;
commitid	DYpFwBjSTcYEkRkE;

1.61
date	2023.04.12.11.20.40;	author wiz;	state Exp;
branches;
next	1.60;
commitid	bcaB5oQFjslhhOkE;

1.60
date	2022.11.16.10.41.36;	author wiz;	state Exp;
branches;
next	1.59;
commitid	kFdl4NbMyJEbNU1E;

1.59
date	2022.06.28.11.36.10;	author wiz;	state Exp;
branches;
next	1.58;
commitid	D2UoJrTHpoHEANJD;

1.58
date	2021.05.24.19.54.24;	author wiz;	state Exp;
branches;
next	1.57;
commitid	qokaiStTApGMcrUC;

1.57
date	2020.03.17.22.24.20;	author rillig;	state Exp;
branches;
next	1.56;
commitid	VGdHVmgCcCdkZN0C;

1.56
date	2020.01.27.10.37.33;	author wiz;	state Exp;
branches;
next	1.55;
commitid	ritnIHA1yXMxGjUB;

1.55
date	2020.01.18.23.35.26;	author rillig;	state Exp;
branches;
next	1.54;
commitid	shGUwZfkr7sleeTB;

1.54
date	2019.02.13.19.53.52;	author wiz;	state Exp;
branches;
next	1.53;
commitid	BVmgVnfTKgJVWDbB;

1.53
date	2018.12.21.16.33.37;	author ryoon;	state Exp;
branches;
next	1.52;
commitid	fJ0HQwVDVUDQzG4B;

1.52
date	2018.07.17.10.56.24;	author jperkin;	state Exp;
branches;
next	1.51;
commitid	O51mOHjmREbTKtKA;

1.51
date	2018.04.27.14.16.23;	author wiz;	state Exp;
branches;
next	1.50;
commitid	qNAloB3WSWV4t5AA;

1.50
date	2017.02.05.19.01.42;	author wiz;	state Exp;
branches;
next	1.49;
commitid	lcY96i81xU0NnNEz;

1.49
date	2017.01.16.11.45.14;	author wiz;	state Exp;
branches;
next	1.48;
commitid	HcM1yaA5bleTBbCz;

1.48
date	2014.10.09.14.07.01;	author wiz;	state Exp;
branches;
next	1.47;
commitid	fBDATFVmQ3454xTx;

1.47
date	2014.06.08.00.59.09;	author spz;	state Exp;
branches;
next	1.46;
commitid	t6EiVVuMMOpkFEDx;

1.46
date	2014.06.08.00.20.30;	author spz;	state Exp;
branches;
next	1.45;
commitid	8xBFpvsMCSuasEDx;

1.45
date	2013.01.23.14.31.30;	author adam;	state Exp;
branches;
next	1.44;

1.44
date	2013.01.06.00.35.40;	author wiz;	state Exp;
branches;
next	1.43;

1.43
date	2012.12.31.00.27.37;	author sbd;	state Exp;
branches;
next	1.42;

1.42
date	2012.12.06.11.43.24;	author jperkin;	state Exp;
branches;
next	1.41;

1.41
date	2012.10.25.06.55.52;	author asau;	state Exp;
branches;
next	1.40;

1.40
date	2012.06.01.19.29.38;	author cheusov;	state Exp;
branches;
next	1.39;

1.39
date	2012.05.29.22.22.00;	author cheusov;	state Exp;
branches;
next	1.38;

1.38
date	2011.12.29.22.30.47;	author sbd;	state Exp;
branches;
next	1.37;

1.37
date	2011.04.22.13.44.50;	author obache;	state Exp;
branches;
next	1.36;

1.36
date	2010.05.02.11.09.41;	author wiz;	state Exp;
branches;
next	1.35;

1.35
date	2009.08.08.21.26.49;	author wiz;	state Exp;
branches;
next	1.34;

1.34
date	2008.04.04.15.27.03;	author joerg;	state Exp;
branches;
next	1.33;

1.33
date	2007.03.08.18.53.56;	author wiz;	state Exp;
branches;
next	1.32;

1.32
date	2007.02.22.19.27.13;	author wiz;	state Exp;
branches;
next	1.31;

1.31
date	2006.11.05.01.42.03;	author dsainty;	state Exp;
branches;
next	1.30;

1.30
date	2006.04.07.19.54.17;	author jlam;	state Exp;
branches;
next	1.29;

1.29
date	2006.03.04.21.30.46;	author jlam;	state Exp;
branches;
next	1.28;

1.28
date	2006.02.05.23.11.02;	author joerg;	state Exp;
branches;
next	1.27;

1.27
date	2005.12.27.13.54.59;	author seb;	state Exp;
branches;
next	1.26;

1.26
date	2005.12.05.23.55.20;	author rillig;	state Exp;
branches;
next	1.25;

1.25
date	2005.12.05.20.51.03;	author rillig;	state Exp;
branches;
next	1.24;

1.24
date	2005.05.22.20.08.34;	author jlam;	state Exp;
branches;
next	1.23;

1.23
date	2005.04.11.21.47.34;	author tv;	state Exp;
branches;
next	1.22;

1.22
date	2005.03.01.23.10.47;	author dmcmahill;	state Exp;
branches;
next	1.21;

1.21
date	2004.10.03.00.18.19;	author tv;	state Exp;
branches;
next	1.20;

1.20
date	2004.07.07.11.33.10;	author seb;	state Exp;
branches;
next	1.19;

1.19
date	2004.06.25.15.17.55;	author seb;	state Exp;
branches;
next	1.18;

1.18
date	2004.05.08.15.09.14;	author uebayasi;	state Exp;
branches;
next	1.17;

1.17
date	2004.04.25.05.01.46;	author snj;	state Exp;
branches;
next	1.16;

1.16
date	2004.01.21.22.53.22;	author wiz;	state Exp;
branches;
next	1.15;

1.15
date	2003.12.13.16.36.21;	author seb;	state Exp;
branches;
next	1.14;

1.14
date	2003.10.07.23.27.06;	author heinz;	state Exp;
branches;
next	1.13;

1.13
date	2003.08.09.11.27.47;	author seb;	state Exp;
branches;
next	1.12;

1.12
date	2003.07.17.22.54.17;	author grant;	state Exp;
branches;
next	1.11;

1.11
date	2003.07.03.20.09.13;	author seb;	state Exp;
branches;
next	1.10;

1.10
date	2003.06.14.01.32.48;	author grant;	state Exp;
branches;
next	1.9;

1.9
date	2003.06.14.00.04.55;	author grant;	state Exp;
branches;
next	1.8;

1.8
date	2003.02.18.17.43.07;	author jlam;	state Exp;
branches;
next	1.7;

1.7
date	2002.12.25.18.10.59;	author wiz;	state Exp;
branches;
next	1.6;

1.6
date	2002.08.25.21.51.15;	author jlam;	state Exp;
branches;
next	1.5;

1.5
date	2002.02.18.15.14.43;	author seb;	state Exp;
branches
	1.5.2.1;
next	1.4;

1.4
date	2001.12.04.06.15.01;	author jlam;	state Exp;
branches;
next	1.3;

1.3
date	2001.10.29.12.30.06;	author seb;	state Exp;
branches;
next	1.2;

1.2
date	2001.09.28.02.15.02;	author wiz;	state Exp;
branches;
next	1.1;

1.1
date	2001.06.26.12.45.38;	author wiz;	state Exp;
branches
	1.1.1.1;
next	;

1.5.2.1
date	2002.06.30.06.24.17;	author jlam;	state Exp;
branches;
next	;

1.1.1.1
date	2001.06.26.12.45.38;	author wiz;	state Exp;
branches;
next	;


desc
@@


1.68
log
@gsed: update to 4.10.

* Noteworthy changes in release 4.10 (2026-04-21) [stable]

** Bug fixes

  sed 's/a/b/g' (and other global substitutions) now works on input
  lines longer than 2GB. Previously, matches beyond the 2^31 byte offset
  would evoke a "panic" (exit 4).
  [bug present since the beginning]

  'sed --follow-symlinks -i' no longer has a TOCTOU race that could let
  an attacker swap a symlink between resolution and open, causing sed to
  read attacker-chosen content and write it to the original target.
  [bug introduced in sed 4.1e]

  sed no longer falsely matches when back-references are combined with
  optional groups (.?) and the $ anchor.  For example, this no longer
  falsely matches the empty string at beginning of line:
    $ echo ab | sed -E 's/^(.?)(.?).?\2\1$/X/'
    Xab
  [bug present since "the beginning"]

  In --posix mode, sed no longer mishandles backslash escapes (\n,
  \t, \a, etc.) after a named character class like [[:alpha:]].
  For example, 's/^A\n[[:alpha:]]\n*/XXX/' would fail to match the
  trailing newline, treating \n as a literal backslash and an 'n'
  rather than a newline.  This happened when an earlier backslash
  escape in the same regex had already been converted, shifting the
  in-place normalization buffer.
  [bug introduced in sed 4.9]

  sed --debug no longer crashes when a label (":") command is compiled
  before the --debug option is processed, e.g., sed -f<(...) --debug.
  [bug introduced in sed 4.7 with --debug]

  sed no longer rejects the documented GNU extension 'a**' (equivalent
  to 'a*') in Basic Regular Expression (BRE) mode.  Previously, this
  worked only with -E (ERE mode), even though grep has always accepted
  it in BRE mode.
  [bug present since "the beginning"]

  sed no longer rejects "\c[" in regular expressions
  [bug present since the beginning]

  'sed --follow-symlinks -i' no longer mishandles an operand that is a
  short symbolic link to a long symbolic link to a file.
  [bug introduced in sed 4.9]

  Fix some some longstanding but unlikely integer overflows.
  Internally, 'sed' now more often prefers signed integer arithmetic,
  which can be checked automatically via 'gcc -fsanitize=undefined'.

** Changes in behavior

  In the default C locale, diagnostics now quote 'like this' (with
  apostrophes) instead of `like this' (with a grave accent and an
  apostrophe).  This tracks the GNU coding standards.

  'sed --posix' now warns about uses of backslashes in the 's' command
  that are handled by GNU sed but are not portable to other
  implementations.

** Build-related

  builds no longer fail on platforms without the <getopt.h> header or
  getopt_long function.
  [bug introduced in sed 4.9]
@
text
@# $NetBSD: Makefile,v 1.67 2026/03/25 22:48:38 wiz Exp $

DISTNAME=	sed-4.10
PKGNAME=	g${DISTNAME}
CATEGORIES=	textproc editors
MASTER_SITES=	${MASTER_SITE_GNU:=sed/}
EXTRACT_SUFX=	.tar.xz

MAINTAINER=	pkgsrc-users@@NetBSD.org
HOMEPAGE=	https://www.gnu.org/software/sed/sed.html
COMMENT=	GNU implementation of sed, the POSIX stream editor
LICENSE=	gnu-gpl-v3 AND gnu-fdl-v1.3

USE_GCC_RUNTIME=	yes
USE_PKGLOCALEDIR=	YES
GNU_CONFIGURE=		YES
INFO_FILES=		YES
TEST_TARGET=		check

INSTALLATION_DIRS=	${PKGGNUDIR}bin ${PKGGNUDIR}${PKGMANDIR}/man1

# at least Solaris-2.9 has issues with grep/egrep
USE_TOOLS+=		grep makeinfo

CONFIGURE_ARGS+=	--program-prefix=g

.include "options.mk"

post-install:
.for g n in bin/gsed ${PKGGNUDIR}bin/sed ${PKGMANDIR}/man1/gsed.1 ${PKGGNUDIR}${PKGMANDIR}/man1/sed.1
	${LN} -sf ${PREFIX}/${g} ${DESTDIR}${PREFIX}/${n}
.endfor

.include "../../mk/bsd.pkg.mk"
@


1.67
log
@gsed: remove separate man page download

tarball includes a copy
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.66 2025/10/05 11:59:43 js Exp $
d3 1
a3 1
DISTNAME=	sed-4.9
a4 1
PKGREVISION=	1
a26 1
.include "../../mk/bsd.prefs.mk"
a28 4
.if ${OPSYS} == "QNX"
LIBS+=			-lgetopt
.endif

a33 3
.if ${OPSYS} == "QNX"
.include "../../devel/libgetopt/buildlink3.mk"
.endif
@


1.66
log
@textproc/gsed: Fix building on QNX
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.65 2024/05/01 22:44:09 cheusov Exp $
a9 5
# Building the proper man page needs perl, but perl needs sed to build
# When updating, please build with _MAINTAINER_MANPAGE=yes
# and upload the new man page (doc/sed.1).
DISTFILES+=	${DEFAULT_DISTFILES} g${DISTNAME}.1

a34 13
_MAINTAINER_MANPAGE?=	no
.if !empty(_MAINTAINER_MANPAGE:M[Yy][Ee][Ss])
MAKE_ENV+=		PKGSRC_MAINTAINER_MANPAGE=yes
USE_TOOLS+=		perl
.else
post-configure: non-maintainer-manpage
.PHONY: non-maintainer-manpage
non-maintainer-manpage:
	${RM} -f ${WRKSRC}/doc/sed.1
	${MV} ${WRKDIR}/g${DISTNAME}.1 ${WRKSRC}/doc/sed.1
	${TOUCH} ${WRKSRC}/doc/sed.1
.endif

a35 1
	${INSTALL_MAN} ${WRKSRC}/doc/sed.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/gsed.1
@


1.65
log
@Remove ../../devel/gettext-lib from Makefile, it is a part of options.mk
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.64 2024/05/01 22:36:29 cheusov Exp $
d36 4
d45 1
a45 1
pre-build: non-maintainer-manpage
d59 3
@


1.64
log
@Add option "nls" enabled by default
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.63 2023/05/10 20:40:47 schmonz Exp $
a54 1
.include "../../devel/gettext-lib/buildlink3.mk"
@


1.63
log
@Conditionalize more fully whether sed.1 is generated. Fixes regular
build on at least FreeBSD 13.x, and confirmed to build (both forks
of the conditional) on NetBSD and macOS.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.62 2023/04/12 20:31:36 wiz Exp $
d34 1
@


1.62
log
@gsed: fix previous
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.61 2023/04/12 11:20:40 wiz Exp $
d11 1
a11 1
# When updating, please build with the following line commented in
a12 1
#USE_TOOLS+=	perl
d35 13
d49 1
a49 1
	${INSTALL_DATA} ${DISTDIR}/g${DISTNAME}.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/gsed.1
@


1.61
log
@gsed: install proper man page

The package installed a stub man page because it needs perl to generate
the proper one and perl needs sed to build, so we can't depend on it.

Copy out a version generated by a build with perl and use that.

Bump PKGREVISION.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.60 2022/11/16 10:41:36 wiz Exp $
a36 1
	${INSTALL_DATA} ${DISTDIR}/g${DISTNAME}.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/sed.1
@


1.60
log
@gsed: update to 4.9.

* Noteworthy changes in release 4.9 (2022-11-06) [stable]

** Bug fixes

  'sed --follow-symlinks -i' no longer loops forever when its operand
  is a symbolic link cycle.
  [bug introduced in sed 4.2]

  a program with an execution line longer than 2GB can no longer trigger
  an out-of-bounds memory write.

  using the R command to read an input line of length longer than 2GB
  can no longer trigger an out-of-bounds memory read.

  In locales using UTF-8 encoding, the regular expression '.' no
  longer sometimes fails to match Unicode characters U+D400 through
  U+D7FF (some Hangul Syllables, and Hangul Jamo Extended-B) and
  Unicode characters U+108000 through U+10FFFF (half of Supplemental
  Private Use Area plane B).
  [bug introduced in sed 4.8]

  I/O errors involving temp files no longer confuse sed into using a
  FILE * pointer after fclosing it, which has undefined behavior in C.

** New Features

  The 'r' command now accepts address 0, allowing inserting a file before
  the first line.

** Changes in behavior

   Sed now prints the less-surprising variant in a corner case of
   POSIX-unspecified behavior.  Before, this would print "n".
   Now, it prints "X":

    printf n | sed 'sn\nnXn'; echo
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.59 2022/06/28 11:36:10 wiz Exp $
d5 1
d10 6
a31 3
# Prevent "Please add USE_TOOLS+=perl" warning at the end of configure phase.
CONFIGURE_ENV+=		PERL=

d37 2
@


1.59
log
@*: recursive bump for perl 5.36
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.58 2021/05/24 19:54:24 wiz Exp $
d3 1
a3 1
DISTNAME=	sed-4.8
a4 1
PKGREVISION=	2
@


1.58
log
@*: recursive bump for perl 5.34
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.57 2020/03/17 22:24:20 rillig Exp $
d5 1
a5 1
PKGREVISION=	1
@


1.57
log
@textproc/gsed: don't use Perl during the build
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.56 2020/01/27 10:37:33 wiz Exp $
d5 1
@


1.56
log
@gsed: update to 4.8.

* Noteworthy changes in release 4.8 (2020-01-14) [stable]

** Bug fixes

  "sed -i" now creates temporary files with correct umask (limited to u=rwx).
  Previously sed would incorrectly set umask on temporary files, resulting
  in problems under certain fuse-like file systems.
  [bug introduced in sed 4.2.1]

** Release

  distribute gzip-compressed tarballs once again

** Improvements

  a year's worth of gnulib development, including improved DFA performance
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.55 2020/01/18 23:35:26 rillig Exp $
d25 3
@


1.55
log
@all: migrate several HOMEPAGEs to https

pkglint --only "https instead of http" -r -F

With manual adjustments afterwards since pkglint 19.4.4 fixed a few
indentations in unrelated lines.

This mainly affects projects hosted at SourceForce, as well as
freedesktop.org, CTAN and GNU.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.54 2019/02/13 19:53:52 wiz Exp $
d3 1
a3 1
DISTNAME=	sed-4.7
@


1.54
log
@gsed: update to 4.7.

* Noteworthy changes in release 4.7 (2018-12-20) [stable]

** Bug fixes

  Some uses of \b in the C locale and with the DFA matcher would fail, e.g.,
  the following would mistakenly print "123-x" instead of "123":
    echo 123-x|LC_ALL=C sed 's/.\bx//'
  Using a multibyte locale or certain regexp constructs (some ranges,
  backreferences) would avoid the bug.  [bug introduced in sed 4.6]
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.53 2018/12/21 16:33:37 ryoon Exp $
d10 1
a10 1
HOMEPAGE=	http://www.gnu.org/software/sed/sed.html
@


1.53
log
@Update to 4.6

Changelog:
* Noteworthy changes in release 4.6 (2018-12-19) [stable]

** Improvements

  sed now prints a clear error message when r/R/w/W (and s///w) commands
  are missing a filename. Previously, w/W commands would fail with confusing
  error message, while r/R would be a silent no-op.

  sed now uses fully-buffered output (instead of line-buffered) when
  writing to files. This should noticeably improve performance of "sed -i"
  and other write commands.
  Buffering can be disabled (as before) with "sed -u".

  sed in non-cygwin windows environments (e.g. mingw) now properly handles
  '\n' newlines in -b/--binary mode.

** Bug fixes

  sed no longer accesses invalid memory (heap overflow) when given invalid
  backreferences in 's' command [bug#32082, present at least since sed-4.0.6].

  sed no longer adds extraneous NUL when given s/$//n command.
  [related to bug#32271, present since sed-4.0.7]

  sed no longer accesses invalid memory (heap overflow) with s/$//n regexes.
  [bug#32271, present since sed-4.3].

** New Features

  New option, --debug: print the input sed script in canonical form
  and annotate program execution.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.52 2018/07/17 10:56:24 jperkin Exp $
d3 1
a3 1
DISTNAME=	sed-4.6
@


1.52
log
@*: Add some required USE_GCC_RUNTIME.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.51 2018/04/27 14:16:23 wiz Exp $
d3 1
a3 1
DISTNAME=	sed-4.5
@


1.51
log
@gsed: update to 4.5.

* Noteworthy changes in release 4.5 (2018-03-31) [stable]

** Bug fixes

  sed now fails when matching very long input lines (>2GB).
  Before, sed would silently ignore the regex without indicating an
  error. [Bug present at least since sed-3.02]

  sed no longer rejects comments and closing braces after y/// commands.
  [Bug existed at least since sed-3.02]

  sed -E --posix no longer ignores special meaning of '+','?','|' .
  [Bug introduced in the original implementation of --posix option in
  v4.1a-5-gba68fb4]

  sed -i now creates selinux context based on the context of the symlink
  instead of the symlink target. [Bug present since at least sed-4.2]
  sed -i --follow-symlinks remains unchanged.

  sed now treats the sequence '\x5c' (ASCII 92, backslash) as literal
  backslash character, not as an escape prefix character.
  [Bug present since sed-3.02.80]
  Old behavior:
     $ echo z | sed -E 's/(z)/\x5c1/' # identical to 's/(z)/\1/'
     z
  New behavior:
     $ echo z | sed -E 's/(z)/\x5c1/'
     \1
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.50 2017/02/05 19:01:42 wiz Exp $
d14 1
@


1.50
log
@Updated gsed to 4.4.

* Noteworthy changes in release 4.4 (2017-02-03) [stable]

** Bug fixes

  sed could segfault when invoked with specific combination of newlines
  in the input and regex pattern. [Bug introduced in sed-4.3]
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.49 2017/01/16 11:45:14 wiz Exp $
d3 1
a3 1
DISTNAME=	sed-4.4
@


1.49
log
@Updated gsed to 4.3.

* Noteworthy changes in release 4.3 (2016-12-30) [stable]

** Improvements

  sed's regular expression matching is now typically 10x faster

  sed now uses unlocked-io where available, resulting in faster I/O
  operations.

** Bug fixes

  sed no longer mishandles anchors ^/$ in multiline regex (s///mg)
  with -z option (NUL terminated lines). [Bug introducted in sed-4.2.2
  with the initial implementation of -z]

  sed no longer accepts a ":" command without a label; before, it would
  treat that as defining a label whose name is empty, and subsequent
  label-free "t" and "b" commands would use that label. Now, sed emits
  a diagnostic and fails for that invalid construct.

  sed no longer accesses uninitialized memory when processing certain
  invalid multibyte sequences. Demonstrate with this:
    echo a | LC_ALL=ja_JP.eucJP valgrind sed/sed 's/a/b\U\xb2c/'
  The error appears to have been introduced with the sed-4.0a release.

  The 'y' (transliterate) operator once again works with a NUL byte
  on the RHS.  E.g., sed 'y/b/\x00/' now works like tr b '\0'.  GNU sed
  has never before recognized \x00 in this context.  However, sed-3.02
  and prior did accept a literal NUL byte in the RHS, which was possible
  only when reading a script from a file.  For example, this:
    echo abc|sed -f <(printf 'y/b/\x00/\n')|cat -A
  is what stopped working. [bug introduced some time after sed-3.02 and
  prior to the first sed-4* test release]

  When the closed-above line number ranges of N editing commands
  overlap (N>1), sed would apply commands 2..N to the line just
  beyond the largest range endpoint.
  [bug introduced some time after sed-4.09 and prior to release in sed-4.1]
  Before, this command would mistakenly modify line 5:
    $ seq 6|sed '2,4d;2,3s/^/x/;3,4s/^/y/'
    1
    yx5
    6
  Now, it does not:
    $ seq 6|sed '2,4d;2,3s/^/x/;3,4s/^/y/'
    1
    5
    6

  An erroneous sed invocation like "echo > F; sed -i s//b/ F" no longer
  leaves behind a temporary file.  Before, that command would create a file
  alongside F with a name matching /^sed......$/ and fail to remove it.

  sed --follow-symlinks now works again for stdin.
  [bug introduced in sed-4.2.2]

  sed no longer elides invalid bytes in a substitution RHS.
  Now, sed copies such bytes into the output, just as Perl does.
  [bug introduced in sed-4.1 -- it was also present prior to 4.0.6]

  sed no longer prints extraneous character when a backslash follows \c.
  '\c\\'  generates control character ^\ (ASCII 0x1C).
  Other characters after the second backslash are rejected (e.g. '\c\d').
  [bug introduced in the sed-4.0.* releases]

  sed no longer mishandles incomplete multibyte sequences in s,y commands
  and valid multibyte SHIFT-JIS characters in character classes.
  Previously, the following commands would fail:
    LC_ALL=en_US.UTF-8 sed $'s/\316/X/'
    LC_ALL=ja_JP.shiftjis sed $'/[\203]/]/p'
  [bug introduced some time after sed-4.1.5 and before sed-4.2.1]

** Feature removal

  The "L" command (format a paragraph like the fmt(1) command would)
  has been listed in the documentation as a failed experiment for at
  least 10 years.  That command is now removed.

** Build-related

  "make dist" now builds .tar.xz files, rather than .tar.gz ones.
  xz is portable enough and in wide-enough use that distributing
  only .tar.xz files is enough.  It has been fine for coreutils, grep,
  diffutils and parted for a few years.


** New Features

  new --sandbox option rejects programs with r/w/e commands.


* Noteworthy changes in release 4.2.2 (2012-12-22) [stable]

* don't misbehave (truncate input) for lines of length 2^31 and longer

* fix endless loop on incomplete multibyte sequences

* -u also does unbuffered input, rather than unbuffered output only

* New command `F' to print current input file name

* sed -i, s///w, and the `w' and `W' commands also obey the --binary option
  (and create CR/LF-terminated files if the option is absent)

* --posix fails for scripts (or fragments as passed to the -e option) that
  end in a backslash, as they are not portable.

* New option -z (--null-data) to separate lines by ASCII NUL characters.

* \x26 (and similar escaped sequences) produces a literal & in the
  replacement argument of the s/// command, rather than including the
  matched text.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.48 2014/10/09 14:07:01 wiz Exp $
d3 1
a3 1
DISTNAME=	sed-4.3
@


1.48
log
@Remove pkgviews: don't set PKG_INSTALLATION_TYPES in Makefiles.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.47 2014/06/08 00:59:09 spz Exp $
d3 1
a3 1
DISTNAME=	sed-4.2.2
a4 1
PKGREVISION=	4
d7 1
a7 1
EXTRACT_SUFX=	.tar.bz2
@


1.47
log
@revert previous: it's a different sed's bug
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.46 2014/06/08 00:20:30 spz Exp $
a14 2
PKG_INSTALLATION_TYPES=	overwrite pkgviews

@


1.46
log
@fix a missing . for the man page name
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.45 2013/01/23 14:31:30 adam Exp $
a31 1
	${MV}  ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/gsed1  ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/gsed.1
@


1.45
log
@Switch EXTRACT_SUFX to .tar.bz2 to conserve bits!
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.44 2013/01/06 00:35:40 wiz Exp $
d32 1
@


1.44
log
@Update to 4.2.2:

Sed 4.2.2

* don't misbehave (truncate input) for lines of length 2^31 and longer

* fix endless loop on incomplete multibyte sequences

* -u also does unbuffered input, rather than unbuffered output only

* New command `F' to print current input file name

* sed -i, s///w, and the `w' and `W' commands also obey the --binary option
  (and create CR/LF-terminated files if the option is absent)

* --posix fails for scripts (or fragments as passed to the -e option) that
  end in a backslash, as they are not portable.

* New option -z (--null-data) to separate lines by ASCII NUL characters.

* \x26 (and similar escaped sequences) produces a literal & in the
  replacement argument of the s/// command, rather than including the
  matched text.
@
text
@d1 1
a1 2
# $NetBSD: Makefile,v 1.43 2012/12/31 00:27:37 sbd Exp $
#
d8 1
@


1.43
log
@Use ${PKGGNUDIR} and ${PKGMANDIR} in INSTALLATION_DIRS.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.42 2012/12/06 11:43:24 jperkin Exp $
d4 1
a4 1
DISTNAME=	sed-4.2.1
@


1.42
log
@Add PKGGNUDIR support.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.41 2012/10/25 06:55:52 asau Exp $
d22 1
a22 1
INSTALLATION_DIRS=	gnu/bin gnu/man/man1
@


1.41
log
@Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.40 2012/06/01 19:29:38 cheusov Exp $
d29 2
d32 1
a32 1
.for g n in bin/gsed gnu/bin/sed man/man1/gsed.1 gnu/man/man1/sed.1
@


1.40
log
@
Add symlink gnu/man/man1/sed
++pkgrevision
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.39 2012/05/29 22:22:00 cheusov Exp $
a15 1
PKG_DESTDIR_SUPPORT=	user-destdir
@


1.39
log
@
Remove GNU_PROGRAM_PREFIX variable (discussed in pkgsrc-users@@).
All utilities are installed with a prefix 'g'. Symlinks with original
names are created in ${PREFIX}/gnu/bin.

++pkgrevision
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.38 2011/12/29 22:30:47 sbd Exp $
d6 1
a6 1
PKGREVISION=	3
d23 1
a23 1
INSTALLATION_DIRS=	gnu/bin
d31 3
a33 1
	ln -f -s ../../bin/gsed ${DESTDIR}${PREFIX}/gnu/bin/sed
@


1.38
log
@Make sure that the gsed package always has a 'gsed' executable.

Bump PKGREVISION
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.37 2011/04/22 13:44:50 obache Exp $
d6 1
a6 1
PKGREVISION=	2
d23 2
d28 1
a28 11
.include "../../mk/bsd.prefs.mk"

.if defined(GNU_PROGRAM_PREFIX)
CONFIGURE_ARGS+=	--program-prefix=${GNU_PROGRAM_PREFIX:Q}
.endif
PLIST_SUBST+=		GNU_PROGRAM_PREFIX=${GNU_PROGRAM_PREFIX:Q}
BUILD_DEFS+=		GNU_PROGRAM_PREFIX

PLIST_VARS=		gsed
.if !defined(GNU_PROGRAM_PREFIX) || ${GNU_PROGRAM_PREFIX} != "g"
PLIST.gsed=		yes
d31 1
a31 3
	${LN} -f ${DESTDIR}${PREFIX}/bin/${GNU_PROGRAM_PREFIX}sed ${DESTDIR}${PREFIX}/bin/gsed
	${LN} -f ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/${GNU_PROGRAM_PREFIX}sed.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/gsed.1
.endif
@


1.37
log
@recursive bump from gettext-lib shlib bump.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.36 2010/05/02 11:09:41 wiz Exp $
d6 1
a6 1
PKGREVISION=	1
d34 9
@


1.36
log
@Update to 4.2.1:

Sed 4.2.1

* fix parsing of s/[[[[[[[[[]//

* security contexts are preserved by -i too under SELinux

* temporary files for sed -i are not made group/world-readable until
  they are complete
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.35 2009/08/08 21:26:49 wiz Exp $
d6 1
@


1.35
log
@Update to 4.2:

* now released under GPLv3

* added a new extension `z` to clear pattern space even in the presence
of invalid multibyte sequences

* a preexisting GNU gettext installation is needed in order to compile
GNU sed with NLS support

* new option --follow-symlinks, available when editing a file in-place.
This option may not be available on some systems (in this case, the
option will *not* be a no-op; it will be completely unavailable).
In the future, the option may be added as a no-op on systems without
symbolic links at all, since in this case a no-op is effectively
indistinguishable from a correct implementation.

* hold-space is reset between different files in -i and -s modes.

* multibyte processing fixed

* the following GNU extensions are turned off by --posix: options [iImMsSxX]
in the `s' command, address kinds `FIRST~STEP' and `ADDR1,+N' and `ADDR1,~N',
line address 0, `e' or `z' commands, text between an `a' or `c' or `i'
command and the following backslash, arguments to the `l' command.
--posix disables all extensions to regular expressions.

* fixed bug in 'i\' giving a segmentation violation if given alone.

* much improved portability

* much faster in UTF-8 locales

* will correctly replace ACLs when using -i

* will now accept NUL bytes for `.'
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.34 2008/04/04 15:27:03 joerg Exp $
d4 1
a4 1
DISTNAME=	sed-4.2
@


1.34
log
@DESTDIR supported.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.33 2007/03/08 18:53:56 wiz Exp $
d4 1
a4 1
DISTNAME=	sed-4.1.5
d12 1
@


1.33
log
@Update to 4.1.5:

Sed 4.1.5

* fix parsing of a negative character class not including a closed bracket,
  like [^]] or [^]a-z].

* fix parsing of [ inside an y command, like y/[/A/.

* output the result of commands a, r, R when a q command is found.

----------------------------------------------------------------------------
Sed 4.1.4

* \B correctly means "not on a word boundary" rather than "inside a word"

* bugfixes for platform without internationalization

* more thorough testing framework for tarballs (`make full-distcheck')

----------------------------------------------------------------------------
Sed 4.1.3

* regex addresses do not use leftmost-longest matching.  In other words,
  /.\+/ only looks for a single character, and does not try to find as
  many of them as possible like it used to do.

* added a note to BUGS and the manual about changed interpretation
  of `s|abc\|def||', and about localization issues.

* fixed --disable-nls build problems on Solaris.

* fixed `make check' in non-English locales.

* `make check' tests the regex library by default if the included regex
  is used (regex tests had to be enabled separately up to now).

----------------------------------------------------------------------------
Sed 4.1.2

* fix bug in 'y' command in multi-byte character sets

* fix severe bug in parsing of ranges with an embedded open bracket

* fix off-by-one error when printing a "bad command" error
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.32 2007/02/22 19:27:13 wiz Exp $
d14 1
@


1.32
log
@Whitespace cleanup, courtesy of pkglint.
Patch provided by Sergey Svishchev in private mail.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.31 2006/11/05 01:42:03 dsainty Exp $
d4 1
a4 1
DISTNAME=	sed-4.1.1
a5 1
PKGREVISION=	2
d17 2
a18 1
CONFIG_STATUS_OVERRIDE=	# empty
a22 3
INFO_FILES=		# PLIST

TEST_TARGET=		check
@


1.31
log
@This package wants USE_TOOLS+=makeinfo, at least under my environment.
It's not exactly clear why, since the error states:

"You should only need it [makeinfo] if you modified a `.texi' or
`.texinfo' file, or any other file indirectly affecting the aspect of
the manual."

... but it's possibly a side effect of GNU_PROGRAM_PREFIX=g.  At any
rate, "makeinfo" seems a harmless request.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.30 2006/04/07 19:54:17 jlam Exp $
d29 1
a29 1
CONFIGURE_ARGS+=        --program-prefix=${GNU_PROGRAM_PREFIX:Q}
d31 2
a32 2
PLIST_SUBST+=           GNU_PROGRAM_PREFIX=${GNU_PROGRAM_PREFIX:Q}
BUILD_DEFS+=            GNU_PROGRAM_PREFIX
@


1.30
log
@List info files directly in the PLIST and honor PKG{INFO,MAN}DIR.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.29 2006/03/04 21:30:46 jlam Exp $
d21 1
a21 1
USE_TOOLS+=		grep
@


1.29
log
@Point MAINTAINER to pkgsrc-users@@NetBSD.org in the case where no
developer is officially maintaining the package.

The rationale for changing this from "tech-pkg" to "pkgsrc-users" is
that it implies that any user can try to maintain the package (by
submitting patches to the mailing list).  Since the folks most likely
to care about the package are the folks that want to use it or are
already using it, this would leverage the energy of users who aren't
developers.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.28 2006/02/05 23:11:02 joerg Exp $
d23 1
a23 1
INFO_FILES=		sed.info
@


1.28
log
@Recursive revision bump / recommended bump for gettext ABI change.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.27 2005/12/27 13:54:59 seb Exp $
d10 1
a10 1
MAINTAINER=	tech-pkg@@NetBSD.org
@


1.27
log
@Lower expectations, both others' and mine: relinquish stewardship
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.26 2005/12/05 23:55:20 rillig Exp $
d6 1
a6 1
PKGREVISION=	1
@


1.26
log
@Ran "pkglint --autofix", which corrected some of the quoting issues in
CONFIGURE_ARGS.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.25 2005/12/05 20:51:03 rillig Exp $
d10 1
a10 1
MAINTAINER=	seb@@NetBSD.org
@


1.25
log
@Fixed pkglint warnings. The warnings are mostly quoting issues, for
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some
other changes are outlined in

    http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.24 2005/05/22 20:08:34 jlam Exp $
d29 1
a29 1
CONFIGURE_ARGS+=        --program-prefix=${GNU_PROGRAM_PREFIX}
@


1.24
log
@Remove USE_GNU_TOOLS and replace with the correct USE_TOOLS definitions:

	USE_GNU_TOOLS	-> USE_TOOLS
	awk		-> gawk
	m4		-> gm4
	make		-> gmake
	sed		-> gsed
	yacc		-> bison
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.23 2005/04/11 21:47:34 tv Exp $
d31 1
a31 1
PLIST_SUBST+=           GNU_PROGRAM_PREFIX=${GNU_PROGRAM_PREFIX}
@


1.23
log
@Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.22 2005/03/01 23:10:47 dmcmahill Exp $
d21 1
a21 1
USE_GNU_TOOLS+=		grep
@


1.22
log
@add grep to GNU_TOOLS.  Needed on solaris.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.21 2004/10/03 00:18:19 tv Exp $
a15 1
USE_BUILDLINK3=		YES
@


1.21
log
@Libtool fix for PR pkg/26633, and other issues.  Update libtool to 1.5.10
in the process.  (More information on tech-pkg.)

Bump PKGREVISION and BUILDLINK_DEPENDS of all packages using libtool and
installing .la files.

Bump PKGREVISION (only) of all packages depending directly on the above
via a buildlink3 include.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.20 2004/07/07 11:33:10 seb Exp $
d21 3
@


1.20
log
@Update to version 4.1.1.

Disable the config.status overriding, it causes config.status to be rerun...
FYI an alternative would be to use  GNU make!

Changes since last packaged version:

Sed 4.1.1
* preserve permissions of in-place edited files
* yield an error when running -i on terminals or other non regular files
* do not interpret - as stdin when running in in-place editing mode
* fix bug that prevented 's' command modifiers from working
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.19 2004/06/25 15:17:55 seb Exp $
d6 1
@


1.19
log
@Update to version 4.1.

Package changes:

* remove inclusion of converters/libiconv/buildlink3.mk,
devel/gettext-lib/builtin.mk will take care of that if needed.

Changes since last packaged version (4.0.9):

* // matches the last regular expression even in POSIXLY_CORRECT mode.

* change the way we treat lines which are not terminated by a newline.
Such lines are printed without the terminating newline (as before)
but as soon as more text is sent to the same output stream, the
missing newline is printed, so that the two lines don't concatenate.
The behavior is now independent from POSIXLY_CORRECT because POSIX
actually has undefined behavior in this case, and the new implementation
arguably gives the ``least expected surprise''.  Thanks to Stepan
Kasal for the implementation.

* documentation improvements, with updated references to the POSIX.2
specification

* error messages on I/O errors are better, and -i does not leave temporary
files around (e.g. when running ``sed -i'' on a directory).

* escapes are accepted in the y command (for example: y/o/\n/ transforms
o's into newlines)

* -i option tries to set the owner and group to the same as the input file

* `L' command is deprecated and will be removed in sed 4.2.

* line number addresses are processed differently -- this is supposedly
conformant to POSIX and surely more idiot-proof.  Line number addresses
are not affected by jumping around them: they are activated and
deactivated exactly where the script says, while previously
    5,8b
    1,5d
would actually delete lines 1,2,3,4 and 9 (!).

* multibyte characters are taken in consideration to compute the
operands of s and y, provided you set LC_CTYPE correctly.  They are
also considered by \l, \L, \u, \U, \E.

* [\n] matches either backslash or 'n' when POSIXLY_CORRECT.

* new option --posix, disables all GNU extensions.  POSIXLY_CORRECT only
disables GNU extensions that violate the POSIX standard.

* options -h and -V are not supported anymore, use --help and --version.

* removed documentation for \s and \S which worked incorrectly

* restored correct behavior for \w and \W: match [[:alnum:]_] and
[^[:alnum:]_] (they used to match [[:alpha:]_] and [^[:alpha:]_]

* the special address 0 can only be used in 0,/RE/ or 0~STEP addresses;
other cases give an error (you are hindering portability for no reason
if specifying 0,N and you are giving a dead command if specifying 0
alone).

* when a \ is used to escape the character that would terminate an operand
of the s or y commands, the backslash is removed before the regex is
compiled.  This is left undefined by POSIX; this behavior makes `s+x\+++g'
remove occurrences of `x+', consistently with `s/x\///g'.  (However, if
you enjoy yourself trying `s*x\***g', sed will use the `x*' regex, and you
won't be able to pass down `x\*' while using * as the delimiter; ideas on
how to simplify the parser in this respect, and/or gain more coherent
semantics, are welcome).
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18 2004/05/08 15:09:14 uebayasi Exp $
d4 1
a4 1
DISTNAME=	sed-4.1
d18 1
@


1.18
log
@Enable pkgviews installation.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 2004/04/25 05:01:46 snj Exp $
d4 1
a4 1
DISTNAME=	sed-4.0.9
a29 3
CONFIGURE_ARGS+=	--with-libiconv=${BUILDLINK_PREFIX.iconv}

.include "../../converters/libiconv/buildlink3.mk"
@


1.17
log
@Convert to buildlink3 and fix a spelling error in DESCR.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 2004/01/21 22:53:22 wiz Exp $
d13 2
@


1.16
log
@Update to 4.09:
* 0 address behaves correctly in single-file (-i and -s) mode.
* documentation improvements.
* tested with many hosts and compilers.
* updated regex matcher from upstream, with many bugfixes and speedups.
* the `N' command's feature that is detailed in the BUGS file was disabled
  by the first change below in sed 4.0.8.  The behavior has now been
  restored, and is only enabled if POSIXLY_CORRECT behavior is not
  requested.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.15 2003/12/13 16:36:21 seb Exp $
d13 1
a13 1
USE_BUILDLINK2=		YES
d30 2
a31 2
.include "../../converters/libiconv/buildlink2.mk"
.include "../../devel/gettext-lib/buildlink2.mk"
@


1.15
log
@Update to version 4.08.

Changes since 4.07:
* fix `sed n' printing the last line twice.
* fix incorrect error message for invalid character classes.
* fix segmentation violation with repeated empty subexpressions.
* fix incorrect parsing of ^ after escaped (.
* more comprehensive test suite (and with many expected failures...)

Please note that since NetBSD's sed is available in a portable
version in pkgsrc as textproc/nbsed, and in bootstrap-pkgsrc I do
not consider this package as being low in the dependencies food-chain
anymore. This is especially true for platforms other than NetBSD.

So let me explicitly add dependencies on libiconv and gettext-lib packages
(if needed of course).
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2003/10/07 23:27:06 heinz Exp $
d4 1
a4 1
DISTNAME=	sed-4.0.8
@


1.14
log
@Add TEST_TARGET and fix tests on Solaris
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2003/08/09 11:27:47 seb Exp $
d4 1
a4 1
DISTNAME=	sed-4.0.7
d28 4
@


1.13
log
@USE_NEW_TEXINFO is unnecessary now.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2003/07/17 22:54:17 grant Exp $
d17 1
a17 1
INFO_FILES=	sed.info
d19 1
@


1.12
log
@s/netbsd.org/NetBSD.org/
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2003/07/03 20:09:13 seb Exp $
a16 1
USE_NEW_TEXINFO=	yes
@


1.11
log
@Convert to USE_NEW_TEXINFO.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2003/06/14 01:32:48 grant Exp $
d9 1
a9 1
MAINTAINER=	seb@@netbsd.org
@


1.10
log
@improve COMMENT
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2003/06/14 00:04:55 grant Exp $
d17 1
a27 1
.include "../../mk/texinfo.mk"
@


1.9
log
@Update gsed to 4.0.7.

changes since 3.02:

4.0.7
   Changes: This version fixes some rare infinite loops and wrong results
   that occurred when the s command had a numeric option and the regular
   expression could match the empty string.

4.0.6
   Changes: This release improves portability a lot, and adds a
   configure-time switch to choose between the included regex matcher and
   the system matcher (on glibc systems only).

4.0.5
   Changes: This release fixes a few portability bugs and improves the
   quality of the documentation. "a", "i", "l", "L", and "=" now accept
   address ranges.

4.0.3
   Changes: A packaging problem with two missing translation catalogs was
   fixed.

4.0.2
   Changes: This release makes sed able to bootstrap itself on operating
   systems that cannot run the configure script.

4.0.1
   Changes: This release includes translations for over 20 languages, and
   cleans up the binary and documentation files from references to
   super-sed.

4.0
   Changes: This release has been merged with super-sed and supports all
   of its features, except for Perl regular expressions. This includes
   in-place editing, new sed commands, better documentation, and support
   for changing the case of the characters with the `s' command. The
   performance and correctness of the regular expression matcher have
   also been improved.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2003/02/18 17:43:07 jlam Exp $
d11 1
a11 1
COMMENT=	GNU version of sed
@


1.8
log
@These packages have been converted to use buildlink2, so they no longer
need to use the automake-override target in bsd.pkg.mk; the hide-autotools
target in bsd.buildlink2.mk accomplishes the same thing.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2002/12/25 18:10:59 wiz Exp $
d4 1
a4 1
DISTNAME=	sed-3.02
d13 3
a15 2
USE_BUILDLINK2=	YES
GNU_CONFIGURE=	YES
@


1.7
log
@Honor GNU_PROGRAM_PREFIX. Patch by Jeremy C. Reed.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2002/08/25 21:51:15 jlam Exp $
a16 1
AUTOMAKE_PATTERNS+=	sed.info version.texi stamp-vti
@


1.6
log
@Merge packages from the buildlink2 branch back into the main trunk that
have been converted to USE_BUILDLINK2.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5.2.1 2002/06/30 06:24:17 jlam Exp $
d15 1
a15 1
CONFIGURE_ARGS= --program-prefix=g
d18 8
@


1.5
log
@Introduce new framework for handling info files generation and installation.

Summary of changes:
- removal of USE_GTEXINFO
- addition of mk/texinfo.mk
- inclusion of this file in package Makefiles requiring it
- `install-info' substituted by `${INSTALL_INFO}' in PLISTs
- tuning of mk/bsd.pkg.mk:
    removal of USE_GTEXINFO
    INSTALL_INFO added to PLIST_SUBST
    `${INSTALL_INFO}' replace `install-info' in target rules
    print-PLIST target now generate `${INSTALL_INFO}' instead of `install-info'
- a couple of new patch files added for a handful of packages
- setting of the TEXINFO_OVERRIDE "switch" in packages Makefiles requiring it
- devel/cssc marked requiring texinfo 4.0
- a couple of packages Makefiles were tuned with respect of INFO_FILES and
  makeinfo command usage

See -newly added by this commit- section 10.24 of Packages.txt for
further information.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2001/12/04 06:15:01 jlam Exp $
d13 1
@


1.5.2.1
log
@Convert to use the buildlink2 framework.  Trim any unnecessary changes in
the patches or remove them entirely.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2002/02/18 15:14:43 seb Exp $
a12 1
USE_BUILDLINK2=	YES
@


1.4
log
@By default, prevent invocation of GNU "auto*" driven by the generated
Makefiles during the build process by touching various auto{conf,make}
source files to make them up-to-date.  Packages that require regenerating
the configure script and Makefile.in files should make the appropriate
calls to auto{conf,make} in a pre-configure target.  This allows the
various targets listed in ${_CONFIG_PREREQ} to modify the generated files
without triggering the GNU auto* tools and having the modifications be
overwritten.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2001/10/29 12:30:06 seb Exp $
d18 1
@


1.3
log
@To avoid build dependencies on auto* tools a patch on configure script
(manually regenerated from patched configure.in) is added, AUTOMAKE_OVERRIDE
is also defined hence custom pre-configure target is removed.

To avoid useless makeinfo run sed.info, version.texi and stamp-vti are added
to AUTOMAKE_PATTERNS (this also fix a hidden and forgotten build dependency on
../../devel/gtexinfo).

While here my email address as maintainer is updated.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2001/09/28 02:15:02 wiz Exp $
a13 1
AUTOMAKE_OVERRIDE=	YES
@


1.2
log
@If automake is called with -i, we don't need gmake.
Patch from Stoned Elipot in pkg/14082.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1.1.1 2001/06/26 12:45:38 wiz Exp $
d9 1
a9 1
MAINTAINER=	seb@@pbox.org
a12 3
BUILD_DEPENDS+=	autoconf>=2.13:../../devel/autoconf
BUILD_DEPENDS+=	automake>=1.4:../../devel/automake

d14 1
d17 1
a17 6

pre-configure:
	cd ${WRKSRC} && \
	${LOCALBASE}/bin/aclocal && \
	${LOCALBASE}/bin/autoreconf && \
	${LOCALBASE}/bin/automake -i
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
# $NetBSD$
a15 1
USE_GMAKE=	YES
d24 1
a24 1
	${LOCALBASE}/bin/automake
@


1.1.1.1
log
@Initial import of gsed-3.02, GNU sed.
Packaged by Stoned Elipot, and sent via pkg/13238; for use with Zoularis.
@
text
@@
