mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
x86_64 is used as a baseline: the "x86_64" entry, whatever status it has, is transformed into "all", and then the other entries in ARCHITECTURES either dropped or rearranged appropriately.
58 lines
1.3 KiB
Bash
58 lines
1.3 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.
|
|
|
|
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://invisible-island.net/mawk"
|
|
COPYRIGHT="2009-2017 Thomas E. Dickey"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="ftp://ftp.invisible-island.net/mawk/mawk-1.3.4-20171017.tgz"
|
|
CHECKSUM_SHA256="db17115d1ed18ed1607c8b93291db9ccd4fe5e0f30d2928c3c5d127b23ec9e5b"
|
|
SOURCE_DIR="mawk-1.3.4-20171017"
|
|
|
|
ARCHITECTURES="all"
|
|
|
|
PROVIDES="
|
|
mawk = $portVersion compat >= 1
|
|
cmd:awk = $portVersion compat >= 1
|
|
cmd:mawk = $portVersion compat >= 1
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
haiku_devel
|
|
cmd:gcc
|
|
cmd:ld
|
|
cmd:make
|
|
cmd:makeinfo
|
|
cmd:sed
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
./configure --prefix=$prefix --mandir=$manDir
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
ln -s $binDir/mawk $binDir/awk
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|