diff options
author | Tim Schumacher <timschumi@gmx.de> | 2021-06-02 21:19:41 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-16 16:42:40 +0200 |
commit | dda216c3340ece9f01606c20c92e9aa454f387d0 (patch) | |
tree | 2d6bba28e13cf6134ebe05c156031306d753738c | |
parent | a1617faf44b97141c93626eddae8c690bcb7dca9 (diff) | |
download | serenity-dda216c3340ece9f01606c20c92e9aa454f387d0.zip |
Ports: Add a gawk port
-rw-r--r-- | Ports/AvailablePorts.md | 1 | ||||
-rwxr-xr-x | Ports/gawk/package.sh | 9 | ||||
-rw-r--r-- | Ports/gawk/patches/configure.patch | 24 |
3 files changed, 34 insertions, 0 deletions
diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index 44352c3d9a..059b83e0d6 100644 --- a/Ports/AvailablePorts.md +++ b/Ports/AvailablePorts.md @@ -41,6 +41,7 @@ Please make sure to keep this list up to date when adding and updating ports. :^ | [`freeciv`](freeciv/) | Freeciv | 3.0.0-beta2 | http://freeciv.org/ | | [`freetype`](freetype/) | FreeType | 2.10.4 | https://www.freetype.org/ | | [`frotz`](frotz/) | Frotz | 2.53 | https://gitlab.com/DavidGriffith/frotz | +| [`gawk`](gawk/) | GNU awk | 5.1.0 | https://www.gnu.org/software/gawk/ | | [`gcc`](gcc/) | GNU Compiler Collection | 11.2.0 | https://gcc.gnu.org/ | | [`genemu`](genemu/) | Genesis / MegaDrive Emulator | 3bf6f7c | https://github.com/rasky/genemu | | [`gettext`](gettext/) | GNU gettext | 0.21 | https://www.gnu.org/software/gettext/ | 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* \ |