From dcf3d1ad60920b21b0a8c14c6c1e00829ff8156e Mon Sep 17 00:00:00 2001 From: wiz Date: Sat, 17 Mar 2012 03:16:20 +0000 Subject: Update to 4.0. Provided by Sergey Litvinov on pkgsrc-users. Changes: Changes from 3.1.8 to 4.0.0 --------------------------- 1. The special files /dev/pid, /dev/ppid, /dev/pgrpid and /dev/user are now completely gone. Use PROCINFO instead. 2. The POSIX 2008 behavior for `sub' and `gsub' are now the default. THIS CHANGES BEHAVIOR!!!! 3. The \s and \S escape sequences are now recognized in regular expressions. 4. The split() function accepts an optional fourth argument which is an array to hold the values of the separators. 5. The new -b / --characters-as-bytes option means "hands off my data"; gawk won't try to treat input as a multibyte string. 6. There is a new --sandbox option; see the doc. 7. Indirect function calls are now available. 8. Interval expressions are now part of default regular expressions for GNU Awk syntax. 9. --gen-po is now correctly named --gen-pot. 10. switch / case is now enabled by default. There's no longer a need for a configure-time option. 11. Gawk now supports BEGINFILE and ENDFILE. See the doc for details. 12. Directories named on the command line now produce a warning, not a fatal error, unless --posix or --traditional. 13. The new FPAT variable allows you to specify a regexp that matches the fields, instead of matching the field separator. The new patsplit() function gives the same capability for splitting. 14. All long options now have short options, for use in `#!' scripts. 15. Support for IPv6 is added via the /inet6/... special file. /inet4/... forces IPv4 and /inet chooses the system default (probably IPv4). 16. Added a warning for /[:space:]/ that should be /[[:space:]]/. 17. Merged with John Haque's byte code internals. Adds dgawk debugger and possibly improved performance. 18. `break' and `continue' are no longer valid outside a loop, even with --traditional. 19. POSIX character classes work with --traditional (BWK awk supports them). 20. Nuked redundant --compat, --copyleft, and --usage long options. 21. Arrays of arrays added. See the doc. 22. Per the GNU Coding Standards, dynamic extensions must now define a global symbol indicating that they are GPL-compatible. See the documentation and example extensions. THIS CHANGES BEHAVIOR!!!! 23. In POSIX mode, string comparisons use strcoll/wcscoll. THIS CHANGES BEHAVIOR!!!! 24. The option for raw sockets was removed, since it was never implemented. 25. Gawk now treats ranges of the form [d-h] as if they were in the C locale, no matter what kind of regexp is being used, and even if --posix. The latest POSIX standard allows this, and the documentation has been updated. Maybe this will stop all the questions about [a-z] matching uppercase letters. THIS CHANGES BEHAVIOR!!!! 26. PROCINFO["strftime"] now holds the default format for strftime(). 27. Updated to latest infrastructure: Autoconf 2.68, Automake 1.11.1, Gettext 0.18.1, Bison 2.5. 28. Many code cleanups. Removed code for many old, unsupported systems: - Atari - Amiga - BeOS - Cray - MIPS RiscOS - MS-DOS with Microsoft Compiler - MS-Windows with Microsoft Compiler - NeXT - SunOS 3.x, Sun 386 (Road Runner) - Tandem (non-POSIX) - Prestandard VAX C compiler for VAX/VMS - Probably others that I've forgotten 29. If PROCINFO["sorted_in"] exists, for(iggy in foo) loops sort the indices before looping over them. The value of this element provides control over how the indices are sorted before the loop traversal starts. See the manual. 30. A new isarray() function exists to distinguish if an item is an array or not, to make it possible to traverse multidimensional arrays. 31. asort() and asorti() take a third argument specifying how to sort. See the doc. --- lang/gawk/Makefile | 7 +++---- lang/gawk/PLIST | 18 +++++------------- lang/gawk/distinfo | 10 +++++----- lang/gawk/patches/patch-Makefile.in | 25 +++++++++++++++++++++++++ lang/gawk/patches/patch-ab | 24 ------------------------ 5 files changed, 38 insertions(+), 46 deletions(-) create mode 100644 lang/gawk/patches/patch-Makefile.in delete mode 100644 lang/gawk/patches/patch-ab (limited to 'lang/gawk') diff --git a/lang/gawk/Makefile b/lang/gawk/Makefile index 8419cb5b702..ecae8a9d275 100644 --- a/lang/gawk/Makefile +++ b/lang/gawk/Makefile @@ -1,7 +1,6 @@ -# $NetBSD: Makefile,v 1.45 2011/04/22 13:43:59 obache Exp $ +# $NetBSD: Makefile,v 1.46 2012/03/17 03:16:20 wiz Exp $ -DISTNAME= gawk-3.1.8 -PKGREVISION= 1 +DISTNAME= gawk-4.0.0 CATEGORIES= lang MASTER_SITES= ${MASTER_SITE_GNU:=gawk/} EXTRACT_SUFX= .tar.bz2 @@ -23,7 +22,7 @@ USE_TOOLS+= msgfmt TEST_TARGET= check INFO_FILES= yes -MAKE_ENV+= PKGLOCALEDIR=${PKGLOCALEDIR:Q} +MAKE_ENV+= PKGLOCALEDIR=${PKGLOCALEDIR} LDFLAGS.IRIX+= -lgen CPPFLAGS.OSF1+= -D_OSF_SOURCE diff --git a/lang/gawk/PLIST b/lang/gawk/PLIST index 5c967a66a96..c41f6aab9fb 100644 --- a/lang/gawk/PLIST +++ b/lang/gawk/PLIST @@ -1,4 +1,5 @@ -@comment $NetBSD: PLIST,v 1.15 2010/12/02 14:44:04 wiz Exp $ +@comment $NetBSD: PLIST,v 1.16 2012/03/17 03:16:20 wiz Exp $ +bin/dgawk bin/gawk bin/${PKGNAME} bin/igawk @@ -21,32 +22,23 @@ share/awk/gettime.awk share/awk/group.awk share/awk/join.awk share/awk/libintl.awk -share/awk/nextfile.awk share/awk/noassign.awk share/awk/ord.awk share/awk/passwd.awk +share/awk/quicksort.awk share/awk/readable.awk share/awk/rewind.awk share/awk/round.awk share/awk/strtonum.awk +share/awk/walkarray.awk share/awk/zerofile.awk -share/locale/ast/LC_MESSAGES/gawk.mo -share/locale/ca/LC_MESSAGES/gawk.mo share/locale/da/LC_MESSAGES/gawk.mo share/locale/de/LC_MESSAGES/gawk.mo share/locale/es/LC_MESSAGES/gawk.mo +share/locale/fi/LC_MESSAGES/gawk.mo share/locale/fr/LC_MESSAGES/gawk.mo -share/locale/ga/LC_MESSAGES/gawk.mo -share/locale/he/LC_MESSAGES/gawk.mo -share/locale/id/LC_MESSAGES/gawk.mo share/locale/it/LC_MESSAGES/gawk.mo share/locale/ja/LC_MESSAGES/gawk.mo share/locale/nl/LC_MESSAGES/gawk.mo share/locale/pl/LC_MESSAGES/gawk.mo -share/locale/pt_BR/LC_MESSAGES/gawk.mo -share/locale/ro/LC_MESSAGES/gawk.mo -share/locale/rw/LC_MESSAGES/gawk.mo share/locale/sv/LC_MESSAGES/gawk.mo -share/locale/tr/LC_MESSAGES/gawk.mo -share/locale/vi/LC_MESSAGES/gawk.mo -share/locale/zh_CN/LC_MESSAGES/gawk.mo diff --git a/lang/gawk/distinfo b/lang/gawk/distinfo index 26a75a8a3b5..90b67570b00 100644 --- a/lang/gawk/distinfo +++ b/lang/gawk/distinfo @@ -1,6 +1,6 @@ -$NetBSD: distinfo,v 1.20 2010/12/02 14:44:04 wiz Exp $ +$NetBSD: distinfo,v 1.21 2012/03/17 03:16:20 wiz Exp $ -SHA1 (gawk-3.1.8.tar.bz2) = da1091cc39089c320f53d21fd2112bd7ce407de5 -RMD160 (gawk-3.1.8.tar.bz2) = bd753345fec4773fe2faa45239b4f1cba4efcf82 -Size (gawk-3.1.8.tar.bz2) = 1984129 bytes -SHA1 (patch-ab) = 4df1997be8720dfc8302cce5b6bd344ec1544a7e +SHA1 (gawk-4.0.0.tar.bz2) = 9e1b7d86b5e80c85e699c269d59d6711753c51d1 +RMD160 (gawk-4.0.0.tar.bz2) = 4e2f91f4dd80c03311fd249422c29b503b907bb4 +Size (gawk-4.0.0.tar.bz2) = 2063647 bytes +SHA1 (patch-Makefile.in) = 385439fbf84b253bd9edd9a940673c11a26d5ecc diff --git a/lang/gawk/patches/patch-Makefile.in b/lang/gawk/patches/patch-Makefile.in new file mode 100644 index 00000000000..d7aef62d835 --- /dev/null +++ b/lang/gawk/patches/patch-Makefile.in @@ -0,0 +1,25 @@ +$NetBSD: patch-Makefile.in,v 1.1 2012/03/17 03:16:20 wiz Exp $ + +Correct locale location, use names gawk and pgawk unconditionally +--- Makefile.in.orig 2011-06-24 08:16:13.000000000 +0000 ++++ Makefile.in +@@ -189,7 +189,7 @@ CFLAGS = @CFLAGS@ + CPP = @CPP@ + CPPFLAGS = @CPPFLAGS@ + CYGPATH_W = @CYGPATH_W@ +-DEFS = -DDEFPATH=$(DEFPATH) -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"$(datadir)/locale"' ++DEFS = -DDEFPATH=$(DEFPATH) -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"$(prefix)/$(PKGLOCALEDIR)/locale"' + DEPDIR = @DEPDIR@ + ECHO_C = @ECHO_C@ + ECHO_N = @ECHO_N@ +@@ -1014,9 +1014,7 @@ install-exec-hook: + (cd $(DESTDIR)$(bindir); \ + $(LN) gawk$(EXEEXT) gawk-$(VERSION)$(EXEEXT) 2>/dev/null ; \ + $(LN) pgawk$(EXEEXT) pgawk-$(VERSION)$(EXEEXT) 2>/dev/null ; \ +- if [ ! -f awk ]; \ +- then $(LN_S) gawk$(EXEEXT) awk; \ +- fi; exit 0) ++ exit 0) + + # Undo the above when uninstalling + uninstall-links: diff --git a/lang/gawk/patches/patch-ab b/lang/gawk/patches/patch-ab deleted file mode 100644 index 1a9a46c30e4..00000000000 --- a/lang/gawk/patches/patch-ab +++ /dev/null @@ -1,24 +0,0 @@ -$NetBSD: patch-ab,v 1.13 2010/12/02 14:44:04 wiz Exp $ - ---- Makefile.in.orig 2010-05-06 17:55:45.000000000 +0000 -+++ Makefile.in -@@ -181,7 +181,7 @@ CFLAGS = @CFLAGS@ - CPP = @CPP@ - CPPFLAGS = @CPPFLAGS@ - CYGPATH_W = @CYGPATH_W@ --DEFS = -DDEFPATH=$(DEFPATH) -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"$(datadir)/locale"' -+DEFS = -DDEFPATH=$(DEFPATH) -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"$(prefix)/$(PKGLOCALEDIR)/locale"' - DEPDIR = @DEPDIR@ - ECHO_C = @ECHO_C@ - ECHO_N = @ECHO_N@ -@@ -996,9 +996,7 @@ install-exec-hook: - (cd $(DESTDIR)$(bindir); \ - $(LN) gawk$(EXEEXT) gawk-$(VERSION)$(EXEEXT) 2>/dev/null ; \ - $(LN) pgawk$(EXEEXT) pgawk-$(VERSION)$(EXEEXT) 2>/dev/null ; \ -- if [ ! -f awk$(EXEEXT) ]; \ -- then $(LN_S) gawk$(EXEEXT) awk$(EXEEXT); \ -- fi; exit 0) -+ exit 0) - - # Undo the above when uninstalling - uninstall-links: -- cgit v1.2.3