summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorwiz <wiz>2012-03-17 03:16:20 +0000
committerwiz <wiz>2012-03-17 03:16:20 +0000
commitce9b8408b9de9498a44df84926ebd3ff950582d0 (patch)
tree21593457239edcfb9cc6ee4b69675cee6d1e0e62 /lang
parent056bbb7b88bcac04587348afc99ba08f869181bc (diff)
downloadpkgsrc-ce9b8408b9de9498a44df84926ebd3ff950582d0.tar.gz
Update to 4.0. Provided by Sergey Litvinov <slitvinov@gmail.com>
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.
Diffstat (limited to 'lang')
-rw-r--r--lang/gawk/Makefile7
-rw-r--r--lang/gawk/PLIST18
-rw-r--r--lang/gawk/distinfo10
-rw-r--r--lang/gawk/patches/patch-Makefile.in (renamed from lang/gawk/patches/patch-ab)13
4 files changed, 20 insertions, 28 deletions
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-ab b/lang/gawk/patches/patch-Makefile.in
index 1a9a46c30e4..d7aef62d835 100644
--- a/lang/gawk/patches/patch-ab
+++ b/lang/gawk/patches/patch-Makefile.in
@@ -1,8 +1,9 @@
-$NetBSD: patch-ab,v 1.13 2010/12/02 14:44:04 wiz Exp $
+$NetBSD: patch-Makefile.in,v 1.1 2012/03/17 03:16:20 wiz Exp $
---- Makefile.in.orig 2010-05-06 17:55:45.000000000 +0000
+Correct locale location, use names gawk and pgawk unconditionally
+--- Makefile.in.orig 2011-06-24 08:16:13.000000000 +0000
+++ Makefile.in
-@@ -181,7 +181,7 @@ CFLAGS = @CFLAGS@
+@@ -189,7 +189,7 @@ CFLAGS = @CFLAGS@
CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
CYGPATH_W = @CYGPATH_W@
@@ -11,12 +12,12 @@ $NetBSD: patch-ab,v 1.13 2010/12/02 14:44:04 wiz Exp $
DEPDIR = @DEPDIR@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
-@@ -996,9 +996,7 @@ install-exec-hook:
+@@ -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$(EXEEXT) ]; \
-- then $(LN_S) gawk$(EXEEXT) awk$(EXEEXT); \
+- if [ ! -f awk ]; \
+- then $(LN_S) gawk$(EXEEXT) awk; \
- fi; exit 0)
+ exit 0)