summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2013-05-15 11:55:20 +0000
committeradam <adam@pkgsrc.org>2013-05-15 11:55:20 +0000
commit1de8b21fcd185f273c6edf21ce92cf58973edea0 (patch)
tree961a399e98451dbba3149a1742595ee121f5e16c
parentfc1c34b71d294156b8a3ba4ce2d2a5fef84b5b9f (diff)
downloadpkgsrc-1de8b21fcd185f273c6edf21ce92cf58973edea0.tar.gz
Changes from 4.0.2 to 4.1.0
--------------------------- 1. The three executables gawk, pgawk, and dgawk, have been merged into one, named just gawk. As a result: * The -R option is gone * Use -D to run the debugger. An optional file argument is a list of commands to run first. * Use -o to do pretty-printing only. * Use -p to do profiling. This considerably reduces gawk's "footprint" and eases the documentation burden as well. 2. Gawk now supports high precision arithmetic with MPFR. The default is still double precision, but setting PREC changes things, or using the -M / --bignum options. This support is not compiled in if the MPFR library is not available. 3. The new -i option (from xgawk) is used for loading awk library files. This differs from -f in that the first non-option argument is treated as a script. 4. The new -l option (from xgawk) is used for loading dynamic extensions. 5. The dynamic extension interface has been completely redone! There is now a defined API for C extensions to use. A C extension acts like a function written in awk, except that it cannot do everything that awk code can. However, this allows interfacing to any facility that is available from C. This is a major development, see the doc, which has a nice shiny new chapter describing everything. This support is not compiled in if dynamic loading of shared libraries is not supported. The old extension mechanism is still supported for compatiblity, but it will most definitely be removed at the next major release. 6. The "inplace" extension, built using the new facility, can be used to simulate the GNU "sed -i" feature. 7. The and(), or() and xor() functions now take any number of arguments, with a minimum of two. 8. New arrays: SYMTAB, FUNCTAB, and PROCINFO["identifiers"]. SYMTAB allows indirect access to any defined variable or array; it is possible to "walk" the symbol table, if that should be necessary. 9. Support for building gawk with a cross compiler has been improved. 10. Infrastructure upgrades: bison 2.7.1, gettext 0.18.2.1, automake 1.13.1, libtool 2.4.2 for the extensions.
-rw-r--r--lang/gawk/Makefile9
-rw-r--r--lang/gawk/PLIST32
-rw-r--r--lang/gawk/distinfo10
-rw-r--r--lang/gawk/patches/patch-Makefile.in15
4 files changed, 44 insertions, 22 deletions
diff --git a/lang/gawk/Makefile b/lang/gawk/Makefile
index c207e76556e..3f0446fc8ad 100644
--- a/lang/gawk/Makefile
+++ b/lang/gawk/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.54 2013/01/31 22:01:43 adam Exp $
+# $NetBSD: Makefile,v 1.55 2013/05/15 11:55:20 adam Exp $
-DISTNAME= gawk-4.0.2
+DISTNAME= gawk-4.1.0
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_GNU:=gawk/}
EXTRACT_SUFX= .tar.xz
@@ -16,6 +16,7 @@ PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_LIBTOOL= yes
USE_PKGLOCALEDIR= yes
+USE_GNU_READLINE= yes
USE_TOOLS+= msgfmt
GNU_CONFIGURE= yes
TEST_TARGET= check
@@ -37,8 +38,8 @@ CFLAGS+= -Dvm_region=vm_region_64
INSTALLATION_DIRS+= ${PKGGNUDIR}bin ${PKGGNUDIR}${PKGMANDIR}/man1
post-install:
- ${LN} -s ${PREFIX}/bin/gawk ${DESTDIR}${PREFIX}/${PKGGNUDIR}bin/awk
- ${LN} -s ${PREFIX}/${PKGMANDIR}/man1/gawk.1 ${DESTDIR}${PREFIX}/${PKGGNUDIR}${PKGMANDIR}/man1/awk.1
+ ${LN} -fs ${PREFIX}/bin/gawk ${DESTDIR}${PREFIX}/${PKGGNUDIR}bin/awk
+ ${LN} -fs ${PREFIX}/${PKGMANDIR}/man1/gawk.1 ${DESTDIR}${PREFIX}/${PKGGNUDIR}${PKGMANDIR}/man1/awk.1
BUILDLINK_API_DEPENDS.gettext+= gettext-lib>=0.10.36
diff --git a/lang/gawk/PLIST b/lang/gawk/PLIST
index 5e70b47bcc1..0f393782ffe 100644
--- a/lang/gawk/PLIST
+++ b/lang/gawk/PLIST
@@ -1,20 +1,38 @@
-@comment $NetBSD: PLIST,v 1.18 2013/01/31 22:01:43 adam Exp $
-bin/dgawk
+@comment $NetBSD: PLIST,v 1.19 2013/05/15 11:55:20 adam Exp $
bin/gawk
bin/${PKGNAME}
bin/igawk
-bin/pgawk
-bin/p${PKGNAME}
gnu/bin/awk
gnu/man/man1/awk.1
+include/gawkapi.h
info/gawk.info
info/gawkinet.info
+lib/gawk/filefuncs.la
+lib/gawk/fnmatch.la
+lib/gawk/fork.la
+lib/gawk/inplace.la
+lib/gawk/ordchr.la
+lib/gawk/readdir.la
+lib/gawk/readfile.la
+lib/gawk/revoutput.la
+lib/gawk/revtwoway.la
+lib/gawk/rwarray.la
+lib/gawk/testext.la
+lib/gawk/time.la
libexec/awk/grcat
libexec/awk/pwcat
-man/man1/dgawk.1
man/man1/gawk.1
man/man1/igawk.1
-man/man1/pgawk.1
+man/man3/filefuncs.3am
+man/man3/fnmatch.3am
+man/man3/fork.3am
+man/man3/ordchr.3am
+man/man3/readdir.3am
+man/man3/readfile.3am
+man/man3/revoutput.3am
+man/man3/revtwoway.3am
+man/man3/rwarray.3am
+man/man3/time.3am
share/awk/assert.awk
share/awk/bits2str.awk
share/awk/cliff_rand.awk
@@ -23,6 +41,7 @@ share/awk/ftrans.awk
share/awk/getopt.awk
share/awk/gettime.awk
share/awk/group.awk
+share/awk/inplace.awk
share/awk/join.awk
share/awk/libintl.awk
share/awk/noassign.awk
@@ -42,6 +61,7 @@ share/locale/fi/LC_MESSAGES/gawk.mo
share/locale/fr/LC_MESSAGES/gawk.mo
share/locale/it/LC_MESSAGES/gawk.mo
share/locale/ja/LC_MESSAGES/gawk.mo
+share/locale/ms/LC_MESSAGES/gawk.mo
share/locale/nl/LC_MESSAGES/gawk.mo
share/locale/pl/LC_MESSAGES/gawk.mo
share/locale/sv/LC_MESSAGES/gawk.mo
diff --git a/lang/gawk/distinfo b/lang/gawk/distinfo
index a0a8a1e3c01..5aaddbeed9f 100644
--- a/lang/gawk/distinfo
+++ b/lang/gawk/distinfo
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.23 2013/01/31 22:01:43 adam Exp $
+$NetBSD: distinfo,v 1.24 2013/05/15 11:55:20 adam Exp $
-SHA1 (gawk-4.0.2.tar.xz) = 816277597445c4b52ab2c2084ec940e13422fb3c
-RMD160 (gawk-4.0.2.tar.xz) = 076f5f8ebcf51279923bc41839b0257d4e488615
-Size (gawk-4.0.2.tar.xz) = 1626808 bytes
-SHA1 (patch-Makefile.in) = 385439fbf84b253bd9edd9a940673c11a26d5ecc
+SHA1 (gawk-4.1.0.tar.xz) = caabca3c1a59d05807c826c45a4639b82cad612a
+RMD160 (gawk-4.1.0.tar.xz) = 71267e56aabed02ecc77f26661171a7b626dc71d
+Size (gawk-4.1.0.tar.xz) = 2049080 bytes
+SHA1 (patch-Makefile.in) = 12eb8f205fa224634b9f5122cfca55803382516f
diff --git a/lang/gawk/patches/patch-Makefile.in b/lang/gawk/patches/patch-Makefile.in
index d7aef62d835..e44b0d9f55f 100644
--- a/lang/gawk/patches/patch-Makefile.in
+++ b/lang/gawk/patches/patch-Makefile.in
@@ -1,21 +1,22 @@
-$NetBSD: patch-Makefile.in,v 1.1 2012/03/17 03:16:20 wiz Exp $
+$NetBSD: patch-Makefile.in,v 1.2 2013/05/15 11:55:20 adam Exp $
Correct locale location, use names gawk and pgawk unconditionally
---- Makefile.in.orig 2011-06-24 08:16:13.000000000 +0000
+
+--- Makefile.in.orig 2013-05-09 12:59:40.000000000 +0000
+++ Makefile.in
-@@ -189,7 +189,7 @@ CFLAGS = @CFLAGS@
+@@ -285,7 +285,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"'
+-DEFS = -DDEFPATH=$(DEFPATH) -DDEFLIBPATH=$(DEFLIBPATH) -DSHLIBEXT=$(SHLIBEXT) -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"$(datadir)/locale"'
++DEFS = -DDEFPATH=$(DEFPATH) -DDEFLIBPATH=$(DEFLIBPATH) -DSHLIBEXT=$(SHLIBEXT) -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:
+@@ -1131,9 +1131,7 @@ uninstall-am: uninstall-binPROGRAMS unin
+ 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)