0
0
Fork 0
haikuports/dev-lang/kona/kona-20190226.recipe

61 lines
1.6 KiB
Bash

SUMMARY="Open-source implementation of the K programming language"
DESCRIPTION="Kona is the open-source implementation of the k3 programming \
language. k is a synthesis of APL and LISP. Although many of the capabilities \
come from APL, the fundamental data construct is quite different. In APL the \
construct is a multi-dimensional matrix-like array, where the dimension of \
the array can range from 0 to some maximum (often 9). In k, like LISP, the \
fundamental data construct is a list. Also, like LISP, the k language is \
ASCII-based, so you don't need a special keyboard."
HOMEPAGE="https://kona.github.io/"
COPYRIGHT="2009-2015 Kevin Lawler"
LICENSE="ISC"
REVISION="1"
SOURCE_URI="https://github.com/kevinlawler/kona/archive/Win64-$portVersion.tar.gz"
CHECKSUM_SHA256="26cfebd47a3ae60753fc8a910132f45cad58381155255fbac2129e4507fef403"
SOURCE_DIR="kona-Win64-$portVersion"
SOURCE_FILENAME="kona-$portVersion.tar.gz"
PATCHES="kona-$portVersion.patch"
ARCHITECTURES="all !x86_gcc2"
commandBinDir=$binDir
if [ "$targetArchitecture" = x86_gcc2 ]; then
SECONDARY_ARCHITECTURES="x86"
commandBinDir=$prefix/bin
fi
PROVIDES="
kona$secondaryArchSuffix = $portVersion
cmd:k
"
REQUIRES="
haiku$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:make
"
defineDebugInfoPackage kona$secondaryArchSuffix \
$commandBinDir/k
BUILD()
{
make $jobArgs
}
INSTALL()
{
install -m 755 -d "$commandBinDir" "$docDir"
install -m 755 k "$commandBinDir"
install -m 644 README.md "$docDir"
}
TEST()
{
./k_test bench/sum.k
}