Files
haikuports/sys-apps/gawk/gawk-4.2.1.recipe
Jérôme Duval e726611710 gawk: bump version. (#3161)
* don't run autoreconf anymore.
* depends on mpfr.
2018-09-29 13:15:03 -04:00

77 lines
1.6 KiB
Bash

SUMMARY="A pattern scanning and processing language"
DESCRIPTION="
If you are like many computer users, you would frequently like to make \
changes in various text files wherever certain patterns appear, or \
extract data from parts of certain lines while discarding the rest. To \
write a program to do this in a language such as C or Pascal is a \
time-consuming inconvenience that may take many lines of code. The job \
is easy with awk, especially the GNU implementation: gawk.
The awk utility interprets a special-purpose programming language that \
makes it possible to handle simple data-reformatting jobs with just a \
few lines of code.
"
HOMEPAGE="http://www.gnu.org/s/gawk"
COPYRIGHT="1983-2017 Free Software Foundation, Inc."
LICENSE="GNU GPL v3"
REVISION="1"
SOURCE_URI="http://ftp.gnu.org/gnu/gawk/gawk-$portVersion.tar.gz"
CHECKSUM_SHA256="2b23d51503b2df9a41aa6fddc6002ad7ebf2a386ac19dc1b6be0dd48b0acf6db"
PATCHES="gawk-$portVersion.patchset"
ARCHITECTURES="?x86_gcc2 ?x86 x86_64 ?arm"
GLOBAL_WRITABLE_FILES="
settings/profile.d/gawk.csh keep-old
settings/profile.d/gawk.sh keep-old
"
PROVIDES="
gawk = $portVersion compat >= 4
cmd:awk = $portVersion compat >= 3
cmd:gawk = $portVersion compat >= 3
cmd:igawk = $portVersion compat >= 3
"
REQUIRES="
haiku
lib:libgmp
lib:libmpfr
"
BUILD_REQUIRES="
haiku_devel
devel:libmpfr
"
BUILD_PREREQUIRES="
cmd:awk
cmd:gcc
cmd:ld
cmd:make
cmd:sed
"
TEST_REQUIRES="
cmd:cmp
"
defineDebugInfoPackage gawk \
$binDir/gawk
BUILD()
{
AUTOCONF=: AUTOMAKE=: \
runConfigure ./configure \
--disable-rpath --with-gnu-ld
make $jobArgs
}
INSTALL()
{
make install
}
TEST()
{
make check
}