Ver código fonte

Ports: Add a gawk port

Tim Schumacher 4 anos atrás
pai
commit
dda216c334

+ 1 - 0
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/                                          |

+ 9 - 0
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"

+ 24 - 0
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* \