From 0132817bee9f93dca9d0a271711b7d0c632e8a43 Mon Sep 17 00:00:00 2001 From: Matheus Date: Sat, 9 Sep 2023 15:32:19 -0300 Subject: [PATCH] ports: gawk --- patches/gawk/jinx-working-patch.patch | 26 ++++++++++++++++++++++++++ recipes/gawk | 19 +++++++++++++++++++ source-recipes/gawk | 9 +++++++++ 3 files changed, 54 insertions(+) create mode 100644 patches/gawk/jinx-working-patch.patch create mode 100644 recipes/gawk create mode 100644 source-recipes/gawk diff --git a/patches/gawk/jinx-working-patch.patch b/patches/gawk/jinx-working-patch.patch new file mode 100644 index 00000000..c7abc753 --- /dev/null +++ b/patches/gawk/jinx-working-patch.patch @@ -0,0 +1,26 @@ +diff --git gawk-clean/build-aux/config.sub gawk-workdir/build-aux/config.sub +index de4259e..e9e2707 100755 +--- gawk-clean/build-aux/config.sub ++++ gawk-workdir/build-aux/config.sub +@@ -1727,7 +1727,7 @@ case $os in + # Now accept the basic system types. + # The portable systems comes first. + # Each alternative MUST end in a * to match a version number. +- gnu* | android* | bsd* | mach* | minix* | genix* | ultrix* | irix* \ ++ gnu* | android* | astral* | bsd* | mach* | minix* | genix* | ultrix* | irix* \ + | *vms* | esix* | aix* | cnk* | sunos | sunos[34]* \ + | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \ + | sym* | plan9* | psp* | sim* | xray* | os68k* | v88r* \ +diff --git gawk-clean/test/Makefile.am gawk-workdir/test/Makefile.am +index cc99dfa..155153c 100644 +--- gawk-clean/test/Makefile.am ++++ gawk-workdir/test/Makefile.am +@@ -1670,7 +1670,7 @@ NEED_TESTOUTCMP = \ + beginfile2 double2 exit fmttest hsprint posix profile5 space + + CMP = cmp +-AWKPROG = ../gawk$(EXEEXT) ++AWKPROG = test + SORT = sort + SORT2 = LC_ALL=C sort + diff --git a/recipes/gawk b/recipes/gawk new file mode 100644 index 00000000..64c76062 --- /dev/null +++ b/recipes/gawk @@ -0,0 +1,19 @@ +name=gawk +revision=1 +from_source=gawk +imagedeps="base-devel" +hostdeps="xgcc xbinutils" +deps="mlibc" + +configure() { + cp -rp ${source_dir}/* . + ./configure --host=x86_64-astral --prefix=${prefix} --disable-nls --disable-extensions +} + +build() { + make -j ${parallelism} +} + +install() { + make install DESTDIR=${dest_dir} +} diff --git a/source-recipes/gawk b/source-recipes/gawk new file mode 100644 index 00000000..941724c8 --- /dev/null +++ b/source-recipes/gawk @@ -0,0 +1,9 @@ +name=gawk +version=5.2.2 +source_method=tarball +tarball_url="https://ftp.gnu.org/gnu/gawk/gawk-${version}.tar.xz" +tarball_sha512="90611e4daba7226d5ce8230843bf479dc71c0101740c005d851ef7c5b935b6cd4c42089b858abc1619adc05ed25fc7234f993690a76d2ea0b8e61bcbb7dc5a58" +hostdeps="autoconf automake pkgconfig libtool" +regenerate() { + sed -i 's/extras//' Makefile.in +}