mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Ladislav Michl <ladis@linux-mips.org>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH v2] gawk: version bump 3.1.6 -> 5.0.1
Date: Fri, 7 Feb 2020 22:45:12 +0100	[thread overview]
Message-ID: <20200207214512.GA2408146@lenoch> (raw)

Since pgawk was merged into gawk meanwhile, remove that option.

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
---
 Changes:
 - v2: add also main.c copyright information clarifying GPL version.
       Suggested by Christian Hermann.

 rules/gawk.in   |  6 +++---
 rules/gawk.make | 50 ++++++++++++++++++++++++++++---------------------
 2 files changed, 32 insertions(+), 24 deletions(-)

diff --git a/rules/gawk.in b/rules/gawk.in
index e9efaa10d..bc290b296 100644
--- a/rules/gawk.in
+++ b/rules/gawk.in
@@ -13,12 +13,12 @@ menuconfig GAWK
 
 if GAWK
 
-config GAWK_PGAWK
-	bool "Install pgawk"
-
 config GAWK_AWKLIB
 	bool "Install awklib"
 
+config GAWK_EXTENSIONS
+	bool "Install extensions"
+
 endif
 
 comment "BusyBox' awk is selected!"
diff --git a/rules/gawk.make b/rules/gawk.make
index 7561d86c2..d06b121a0 100644
--- a/rules/gawk.make
+++ b/rules/gawk.make
@@ -14,25 +14,34 @@ PACKAGES-$(PTXCONF_GAWK) += gawk
 #
 # Paths and names
 #
-GAWK_VERSION	:= 3.1.6
-GAWK_MD5	:= b237751aef53c9ead9644e376bc53386
+GAWK_VERSION	:= 5.0.1
+GAWK_MD5	:= f9db3f6715207c6f13719713abc9c707
 GAWK		:= gawk-$(GAWK_VERSION)
-GAWK_SUFFIX	:= tar.gz
+GAWK_SUFFIX	:= tar.xz
 GAWK_URL	:= $(call ptx/mirror, GNU, gawk/$(GAWK).$(GAWK_SUFFIX))
 GAWK_SOURCE	:= $(SRCDIR)/$(GAWK).$(GAWK_SUFFIX)
 GAWK_DIR	:= $(BUILDDIR)/$(GAWK)
+GAWK_LICENSE	:= GPL-3.0-or-later
+GAWK_LICENSE_FILES := \
+	file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \
+	file://main.c;startline=5;endline=24;md5=f471bca08ffe28738729b5bfd1d6ae86
 
 # ----------------------------------------------------------------------------
 # Prepare
 # ----------------------------------------------------------------------------
 
-GAWK_PATH	:= PATH=$(CROSS_PATH)
-GAWK_ENV 	:= $(CROSS_ENV)
-
-#
-# autoconf
-#
-GAWK_AUTOCONF := $(CROSS_AUTOCONF_USR)
+GAWK_CONF_TOOL	:= autoconf
+GAWK_CONF_OPT	:= \
+	$(CROSS_AUTOCONF_USR) \
+	--disable-silent-rules \
+	--enable-lint \
+	--enable-builtin-intdiv0 \
+	--disable-mpfr \
+	--disable-versioned-extension-dir \
+	$(GLOBAL_LARGE_FILE_OPTION) \
+	--disable-nls \
+	--disable-rpath \
+	--$(call ptx/endis, PTXCONF_GAWK_EXTENSIONS)-extensions
 
 # ----------------------------------------------------------------------------
 # Target-Install
@@ -42,22 +51,21 @@ $(STATEDIR)/gawk.targetinstall:
 	@$(call targetinfo)
 
 	@$(call install_init, gawk)
-	@$(call install_fixup, gawk,PRIORITY,optional)
-	@$(call install_fixup, gawk,SECTION,base)
-	@$(call install_fixup, gawk,AUTHOR,"Carsten Schlote <schlote@konzeptpark.de>")
-	@$(call install_fixup, gawk,DESCRIPTION,missing)
+	@$(call install_fixup, gawk, PRIORITY, optional)
+	@$(call install_fixup, gawk, SECTION, base)
+	@$(call install_fixup, gawk, AUTHOR, \
+		"Carsten Schlote <schlote@konzeptpark.de>")
+	@$(call install_fixup, gawk,DESCRIPTION, \
+		"gawk - pattern scanning and processing language")
 
 	@$(call install_copy, gawk, 0, 0, 0755, -, /usr/bin/gawk)
 	@$(call install_link, gawk, gawk, /usr/bin/awk)
 
-ifdef PTXCONF_GAWK_PGAWK
-	@$(call install_copy, gawk, 0, 0, 0755, -, /usr/bin/pgawk)
-endif
-
 ifdef PTXCONF_GAWK_AWKLIB
-	@$(call install_copy, gawk, 0, 0, 0755, -, /usr/bin/igawk)
-	@$(call install_copy, gawk, 0, 0, 0755, -, /usr/libexec/awk/pwcat)
-	@$(call install_copy, gawk, 0, 0, 0755, -, /usr/libexec/awk/grcat)
+	@$(call install_tree, gawk, 0, 0, -, /usr/libexec/awk)
+endif
+ifdef PTXCONF_GAWK_EXTENSIONS
+	@$(call install_tree, gawk, 0, 0, -, /usr/lib/gawk)
 endif
 
 	@$(call install_finish, gawk)
-- 
2.25.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

                 reply	other threads:[~2020-02-07 21:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200207214512.GA2408146@lenoch \
    --to=ladis@linux-mips.org \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox