0
0
Fork 0
haikuports/dev-lang/squirrel/squirrel-3.1.recipe

69 lines
1.5 KiB
Bash
Raw Permalink Normal View History

2014-01-09 09:25:56 +00:00
SUMMARY="A light-weight scripting language"
DESCRIPTION="
Squirrel is a light weight programming language featuring higher-order \
functions, classes/inheritance, delegation, tail recursion, generators, \
cooperative threads, exception handling, reference counting and garbage \
2016-02-26 15:33:51 +00:00
collection on demand. C-like syntax."
2014-01-09 09:25:56 +00:00
HOMEPAGE="http://www.squirrel-lang.org"
2017-08-06 15:30:17 +00:00
COPYRIGHT="2003-2016 Alberto Demichelis"
2016-02-17 19:26:37 +00:00
LICENSE="MIT"
2018-08-06 14:41:25 +00:00
REVISION="2"
2017-08-06 15:30:17 +00:00
SOURCE_URI="https://github.com/albertodemichelis/squirrel/archive/v3.1.tar.gz"
CHECKSUM_SHA256="51942b8638a97b673e34ecf3ca50304996fa99bbdbfa7fe93d9744e6769b2f95"
SOURCE_DIR="squirrel-3.1"
2014-01-09 09:25:56 +00:00
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
2014-01-09 09:25:56 +00:00
PROVIDES="
squirrel$secondaryArchSuffix = $portVersion
cmd:sq$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
2014-01-09 09:25:56 +00:00
"
2016-02-17 19:26:37 +00:00
PROVIDES_devel="
2018-08-06 14:41:25 +00:00
squirrel${secondaryArchSuffix}_devel = $portVersion
2016-02-17 19:26:37 +00:00
devel:libsqstdlib$secondaryArchSuffix = $portVersion
2018-08-08 14:18:18 +00:00
devel:libsquirrel$secondaryArchSuffix = $portVersion
2016-02-17 19:26:37 +00:00
"
REQUIRES_devel="
squirrel$secondaryArchSuffix == $portVersion base
"
2018-08-06 13:04:59 +00:00
2014-01-09 09:25:56 +00:00
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel
2014-01-09 09:25:56 +00:00
cmd:gcc$secondaryArchSuffix
2018-08-08 14:18:18 +00:00
cmd:make
2014-01-09 09:25:56 +00:00
"
BUILD()
{
2017-08-06 15:30:17 +00:00
if [ $effectiveTargetArchitecture = x86 ]; then
2014-01-09 09:25:56 +00:00
make $jobArgs
2017-08-06 15:30:17 +00:00
else
make sq64 $jobArgs
fi
2014-01-09 09:25:56 +00:00
}
INSTALL()
{
mkdir -p $binDir
cp -r bin/* $binDir
2014-01-09 09:25:56 +00:00
mkdir -p $includeDir
cp -r include/* $includeDir
2014-01-09 09:25:56 +00:00
mkdir -p $developDocDir
cp -r doc/* $developDocDir
2014-01-09 09:25:56 +00:00
mkdir -p $libDir
cp -r lib/* $develLibDir
2014-01-09 09:25:56 +00:00
rm -rf $libDir
2014-01-09 09:25:56 +00:00
packageEntries devel \
$developDir
}