Hi Stephen --
On 5/5/19 8:47 AM, Stephen Gregoratto wrote:
Gawk 5 released on April 12[1] with some cool new features. I couldn't
find updates for it on ports@, so here it is. The release notes
recommend using GNU Bison 3.3, but it compiles fine and passes all tests
on 6.5 and -current.
Thanks for the diff. The comment from upstream about bison is regarding
their infrastructure to generate needed files for their releases; since
we're using release tarballs, these files are pre-generated (and thus we
don't need to worry about bison).
There needs to be a little more for this to be ok. First, REVISION is
always removed when updating version. Second, there are some files
installed to ${WRKINST}/etc/profile.d that should go. Third, if you run
`make update-plist' then the PLIST changes.
The attached diff takes care of these issues. All tests pass on amd64,
hppa, and mips64el.
~Brian
[1] https://lists.gnu.org/archive/html/info-gnu/2019-04/msg00002.html
Index: Makefile
===================================================================
RCS file: /cvs/ports/lang/gawk/Makefile,v
retrieving revision 1.35
diff -u -p -r1.35 Makefile
--- Makefile 2 Nov 2018 18:48:39 -0000 1.35
+++ Makefile 5 May 2019 04:49:13 -0000
@@ -2,7 +2,7 @@
COMMENT= GNU awk
-V= 4.2.1
+V= 5.0.0
DISTNAME= gawk-$V
REVISION= 0
CATEGORIES= lang
Index: distinfo
===================================================================
RCS file: /cvs/ports/lang/gawk/distinfo,v
retrieving revision 1.17
diff -u -p -r1.17 distinfo
--- distinfo 2 Apr 2018 17:04:44 -0000 1.17
+++ distinfo 5 May 2019 04:49:13 -0000
@@ -1,2 +1,2 @@
-SHA256 (gawk-4.2.1.tar.gz) = KyPVFQOy35pBqm/dxgAq1+vyo4asGdwba+DdSLCs9ts=
-SIZE (gawk-4.2.1.tar.gz) = 5666610
+SHA256 (gawk-5.0.0.tar.gz) = LWhsmlt7opK8P6VryEoZWdchqdV5cKdkExVtS48fxn0=
+SIZE (gawk-5.0.0.tar.gz) = 5763496
Index: Makefile
===================================================================
RCS file: /cvs/ports/lang/gawk/Makefile,v
retrieving revision 1.35
diff -u -p -r1.35 Makefile
--- Makefile 2 Nov 2018 18:48:39 -0000 1.35
+++ Makefile 5 May 2019 13:52:15 -0000
@@ -2,9 +2,8 @@
COMMENT= GNU awk
-V= 4.2.1
+V= 5.0.0
DISTNAME= gawk-$V
-REVISION= 0
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_GNU:=gawk/}
@@ -32,5 +31,6 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/
post-install:
${INSTALL_MAN_DIR} ${PREFIX}/man/man3am
mv ${PREFIX}/man/man3/*.3am ${PREFIX}/man/man3am
+ @rm -rf ${WRKINST}/etc/profile.d
.include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/lang/gawk/distinfo,v
retrieving revision 1.17
diff -u -p -r1.17 distinfo
--- distinfo 2 Apr 2018 17:04:44 -0000 1.17
+++ distinfo 5 May 2019 13:52:15 -0000
@@ -1,2 +1,2 @@
-SHA256 (gawk-4.2.1.tar.gz) = KyPVFQOy35pBqm/dxgAq1+vyo4asGdwba+DdSLCs9ts=
-SIZE (gawk-4.2.1.tar.gz) = 5666610
+SHA256 (gawk-5.0.0.tar.gz) = LWhsmlt7opK8P6VryEoZWdchqdV5cKdkExVtS48fxn0=
+SIZE (gawk-5.0.0.tar.gz) = 5763496
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/lang/gawk/pkg/PLIST,v
retrieving revision 1.16
diff -u -p -r1.16 PLIST
--- pkg/PLIST 14 Jan 2018 10:03:54 -0000 1.16
+++ pkg/PLIST 5 May 2019 13:52:15 -0000
@@ -50,6 +50,7 @@ share/awk/intdiv0.awk
share/awk/join.awk
share/awk/libintl.awk
share/awk/noassign.awk
+share/awk/ns_passwd.awk
share/awk/ord.awk
share/awk/passwd.awk
share/awk/processarray.awk
@@ -71,6 +72,7 @@ share/locale/fr/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/ko/LC_MESSAGES/gawk.mo
share/locale/ms/
share/locale/ms/LC_MESSAGES/
share/locale/ms/LC_MESSAGES/gawk.mo