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 \ is often shorter and simpler than you’d expect." HOMEPAGE="http://jqlang.github.io/jq/" COPYRIGHT="2012,2015 Stephen Dolan" LICENSE="MIT" REVISION="2" SOURCE_URI="http://github.com/jqlang/jq/releases/download/jq-$portVersion/jq-$portVersion.tar.gz" CHECKSUM_SHA256="402a0d6975d946e6f4e484d1a84320414a0ff8eb6cf49d2c11d144d4d344db62" ARCHITECTURES="all !x86_gcc2" SECONDARY_ARCHITECTURES="x86" commandBinDir=$binDir if [ "$targetArchitecture" = x86_gcc2 ]; then commandBinDir=$prefix/bin fi libVersion="1.0.4" libVersionCompat="$libVersion compat >= ${libVersion%%.*}" PROVIDES=" jq$secondaryArchSuffix = $portVersion cmd:jq = $portVersion lib:libjq$secondaryArchSuffix = $libVersionCompat " REQUIRES=" haiku$secondaryArchSuffix lib:libonig$secondaryArchSuffix " PROVIDES_devel=" jq${secondaryArchSuffix}_devel = $portVersion devel:libjq$secondaryArchSuffix = $libVersionCompat " REQUIRES_devel=" jq$secondaryArchSuffix == $portVersion base " BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel devel:libonig$secondaryArchSuffix >= 5 " BUILD_PREREQUIRES=" cmd:awk cmd:bison cmd:diff cmd:gcc$secondaryArchSuffix cmd:make " BUILD() { # avoid a warning about not rebuilding lexer.c touch src/lexer.c runConfigure --omit-dirs binDir ./configure --bindir=$commandBinDir --disable-static make $jobArgs } INSTALL() { make install prepareInstalledDevelLib libjq fixPkgconfig packageEntries devel $developDir } TEST() { make check }