2015-01-15 17:37:15 +00:00
|
|
|
|
SUMMARY="A lightweight and flexible command-line JSON processor"
|
|
|
|
|
DESCRIPTION="jq is like sed for JSON data – you can use it to slice \
|
|
|
|
|
and filter and map and transform structured data with the same ease \
|
|
|
|
|
that sed, awk, grep and friends let you play with text. \
|
|
|
|
|
It is written in portable C, and it has zero runtime dependencies. \
|
|
|
|
|
You can download a single binary, scp it to a far away machine, \
|
|
|
|
|
and expect it to work. It can mangle the data format that you have into \
|
|
|
|
|
the one that you want with very little effort, and the program to do so \
|
2015-08-08 17:08:27 +00:00
|
|
|
|
is often shorter and simpler than you’d expect."
|
2015-01-15 17:37:15 +00:00
|
|
|
|
HOMEPAGE="http://stedolan.github.io/jq/"
|
2016-11-10 19:41:01 +00:00
|
|
|
|
COPYRIGHT="2012,2015 Stephen Dolan"
|
2015-08-08 17:08:27 +00:00
|
|
|
|
LICENSE="MIT"
|
2020-05-09 20:22:27 +00:00
|
|
|
|
REVISION="2"
|
2016-11-10 19:41:01 +00:00
|
|
|
|
SOURCE_URI="http://github.com/stedolan/jq/archive/jq-$portVersion.tar.gz"
|
2019-11-24 17:39:47 +00:00
|
|
|
|
CHECKSUM_SHA256="158182b85f3be9e23ab1dc50cfcc24e415aade2a0b8a5d9f709e0b587666d61b"
|
2016-11-10 19:41:01 +00:00
|
|
|
|
SOURCE_DIR="jq-jq-$portVersion"
|
2015-01-15 17:37:15 +00:00
|
|
|
|
|
2021-09-15 19:40:18 +00:00
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
2015-01-15 17:37:15 +00:00
|
|
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
|
|
2016-11-10 19:41:01 +00:00
|
|
|
|
commandBinDir=$binDir
|
|
|
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
|
|
|
commandBinDir=$prefix/bin
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
2015-01-15 17:37:15 +00:00
|
|
|
|
PROVIDES="
|
|
|
|
|
jq = $portVersion
|
2016-11-10 19:41:01 +00:00
|
|
|
|
cmd:jq = $portVersion
|
2015-01-15 17:37:15 +00:00
|
|
|
|
"
|
|
|
|
|
REQUIRES="
|
|
|
|
|
haiku${secondaryArchSuffix}
|
2019-11-24 17:39:47 +00:00
|
|
|
|
lib:libonig$secondaryArchSuffix
|
2015-01-15 17:37:15 +00:00
|
|
|
|
"
|
|
|
|
|
|
|
|
|
|
BUILD_REQUIRES="
|
2015-08-08 17:08:27 +00:00
|
|
|
|
haiku${secondaryArchSuffix}_devel
|
2019-11-24 17:39:47 +00:00
|
|
|
|
devel:libonig$secondaryArchSuffix >= 5
|
2015-08-08 17:08:27 +00:00
|
|
|
|
"
|
|
|
|
|
BUILD_PREREQUIRES="
|
2016-11-10 19:41:01 +00:00
|
|
|
|
cmd:aclocal
|
2015-01-15 17:37:15 +00:00
|
|
|
|
cmd:awk
|
2016-11-10 19:41:01 +00:00
|
|
|
|
cmd:autoconf
|
|
|
|
|
cmd:autoreconf
|
|
|
|
|
cmd:gcc$secondaryArchSuffix
|
|
|
|
|
cmd:libtoolize$secondaryArchSuffix
|
2015-08-08 17:08:27 +00:00
|
|
|
|
cmd:make
|
2015-01-15 17:37:15 +00:00
|
|
|
|
"
|
|
|
|
|
|
|
|
|
|
BUILD()
|
|
|
|
|
{
|
2019-11-24 17:39:47 +00:00
|
|
|
|
touch src/lexer.c src/parser.c
|
2016-11-10 19:41:01 +00:00
|
|
|
|
autoreconf -fi
|
2015-01-15 17:37:15 +00:00
|
|
|
|
runConfigure ./configure
|
|
|
|
|
make $jobArgs
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
INSTALL()
|
|
|
|
|
{
|
2016-11-10 19:41:01 +00:00
|
|
|
|
mkdir -p $commandBinDir
|
|
|
|
|
cp -a jq $commandBinDir
|
2015-01-15 17:37:15 +00:00
|
|
|
|
}
|