summaryrefslogtreecommitdiff
path: root/Ports/gawk
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2021-06-02 21:19:41 +0200
committerAndreas Kling <kling@serenityos.org>2021-09-16 16:42:40 +0200
commitdda216c3340ece9f01606c20c92e9aa454f387d0 (patch)
tree2d6bba28e13cf6134ebe05c156031306d753738c /Ports/gawk
parenta1617faf44b97141c93626eddae8c690bcb7dca9 (diff)
downloadserenity-dda216c3340ece9f01606c20c92e9aa454f387d0.zip
Ports: Add a gawk port
Diffstat (limited to 'Ports/gawk')
-rwxr-xr-xPorts/gawk/package.sh9
-rw-r--r--Ports/gawk/patches/configure.patch24
2 files changed, 33 insertions, 0 deletions
diff --git a/Ports/gawk/package.sh b/Ports/gawk/package.sh
new file mode 100755
index 0000000000..0f69de02de
--- /dev/null
+++ b/Ports/gawk/package.sh
@@ -0,0 +1,9 @@
+#!/usr/bin/env -S bash ../.port_include.sh
+port=gawk
+version=5.1.0
+useconfigure="true"
+files="https://ftpmirror.gnu.org/gnu/gawk/gawk-${version}.tar.gz gawk-${version}.tar.gz
+https://ftpmirror.gnu.org/gnu/gawk/gawk-${version}.tar.gz.sig gawk-${version}.tar.gz.sig
+https://ftpmirror.gnu.org/gnu/gnu-keyring.gpg gnu-keyring.gpg"
+auth_type="sig"
+auth_opts="--keyring ./gnu-keyring.gpg gawk-${version}.tar.gz.sig"
diff --git a/Ports/gawk/patches/configure.patch b/Ports/gawk/patches/configure.patch
new file mode 100644
index 0000000000..63d0612b17
--- /dev/null
+++ b/Ports/gawk/patches/configure.patch
@@ -0,0 +1,24 @@
+diff -ur a/config.sub b/config.sub
+--- a/config.sub 2020-04-13 08:44:50.000000000 +0200
++++ b/config.sub 2021-06-02 14:46:39.331046420 +0200
+@@ -1338,7 +1338,7 @@
+ # The portable systems comes first.
+ # Each alternative MUST end in a * to match a version number.
+ # sysv* is not here because it comes later, after sysvr4.
+- gnu* | bsd* | mach* | minix* | genix* | ultrix* | irix* \
++ gnu* | bsd* | mach* | minix* | genix* | ultrix* | serenity* | irix* \
+ | *vms* | esix* | aix* | cnk* | sunos | sunos[34]*\
+ | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \
+ | sym* | kopensolaris* | plan9* \
+diff -ur a/extension/build-aux/config.sub b/extension/build-aux/config.sub
+--- a/extension/build-aux/config.sub 2020-04-13 08:44:50.000000000 +0200
++++ b/extension/build-aux/config.sub 2021-06-02 14:46:39.331046420 +0200
+@@ -1338,7 +1338,7 @@
+ # The portable systems comes first.
+ # Each alternative MUST end in a * to match a version number.
+ # sysv* is not here because it comes later, after sysvr4.
+- gnu* | bsd* | mach* | minix* | genix* | ultrix* | irix* \
++ gnu* | bsd* | mach* | minix* | genix* | ultrix* | serenity* | irix* \
+ | *vms* | esix* | aix* | cnk* | sunos | sunos[34]*\
+ | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \
+ | sym* | kopensolaris* | plan9* \