ports: gawk

This commit is contained in:
Matheus
2023-09-09 15:32:19 -03:00
parent 4e6bd88bde
commit 0132817bee
3 changed files with 54 additions and 0 deletions
+26
View File
@@ -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
+19
View File
@@ -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}
}
+9
View File
@@ -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
}