From d86a6d2e8ce864631d03010992e491cbd074af42 Mon Sep 17 00:00:00 2001 From: EWouters <6179932+EWouters@users.noreply.github.com> Date: Fri, 1 Sep 2023 19:24:52 +0200 Subject: [PATCH] Ports/gawk: Update gawk to version 5.2.2 This also adds gmp and mpfr as optional dependencies, and sets the sysroot to to allow gawk to find libgmp when building with Clang, and to make the results predictable regardless of the order the ports are installed in. --- Ports/AvailablePorts.md | 2 +- Ports/gawk/package.sh | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index 3987a71d86..847261ab82 100644 --- a/Ports/AvailablePorts.md +++ b/Ports/AvailablePorts.md @@ -88,7 +88,7 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n | [`freedink`](freedink/) | FreeDink | 109.6 | https://www.gnu.org/software/freedink/ | | [`freetype`](freetype/) | FreeType | 2.13.2 | https://www.freetype.org/ | | [`frotz`](frotz/) | Frotz | 2.54 | https://gitlab.com/DavidGriffith/frotz | -| [`gawk`](gawk/) | GNU awk | 5.2.1 | https://www.gnu.org/software/gawk/ | +| [`gawk`](gawk/) | GNU awk | 5.2.2 | https://www.gnu.org/software/gawk/ | | [`gcc`](gcc/) | GNU Compiler Collection | 13.2.0 | https://gcc.gnu.org/ | | [`gdb`](gdb/) | GNU Project Debugger | 11.2 | https://sourceware.org/gdb | | [`gemrb`](gemrb/) | GemRB | 0.9.1 | https://gemrb.org/ | diff --git a/Ports/gawk/package.sh b/Ports/gawk/package.sh index 1d7b596c34..7a7c8bb984 100755 --- a/Ports/gawk/package.sh +++ b/Ports/gawk/package.sh @@ -1,7 +1,14 @@ #!/usr/bin/env -S bash ../.port_include.sh port='gawk' -version='5.2.1' +version='5.2.2' useconfigure='true' files=( - "https://ftpmirror.gnu.org/gnu/gawk/gawk-${version}.tar.gz#529e7c8c6acf21ff3a6183f4d763c632810908989c24675c77995d51ac37b79c" + "https://ftpmirror.gnu.org/gnu/gawk/gawk-${version}.tar.gz#945aef7ccff101f20b22a10802bc005e994ab2b8ea3e724cc1a197c62f41f650" +) +depends=( + 'gmp' + 'mpfr' +) +configopts=( + "--with-sysroot=${SERENITY_INSTALL_ROOT}" )