0
0
Fork 0
haikuports/dev-java/abcl/abcl-1.8.0.recipe

52 lines
1.3 KiB
Bash

SUMMARY="A Java-based common lisp implementation"
DESCRIPTION="Armed Bear Common Lisp (ABCL) is a full implementation \
of the Common Lisp language featuring both an interpreter and a compiler, \
running in the JVM. Originally started to be a scripting language for \
the J editor, it now supports JSR-223 (Java scripting API): it can be a \
scripting engine in any Java application. Additionally, it can be used \
to implement (parts of) the application using Java to Lisp integration APIs. "
HOMEPAGE="http://abcl.org/"
COPYRIGHT="1999-2020 ABCL development team"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://abcl.org/releases/$portVersion/abcl-bin-$portVersion.tar.gz"
CHECKSUM_SHA256="83faaee1f3c121daf4e1fc74e3887d167efe47bc94538592b88b4ca16ed3c5a5"
SOURCE_DIR="abcl-bin-$portVersion"
ARCHITECTURES="any"
PROVIDES="
abcl = $portVersion compat >= 1
cmd:abcl = $portVersion compat >= 1
"
REQUIRES="
haiku
java:environment >= 11
"
BUILD_REQUIRES="
"
BUILD_PREREQUIRES="
java:environment == 11
"
INSTALL()
{
source /system/data/profile.d/openjdk11.sh
export JAVA_HOME=$JDK11_HOME
# place jarfiles in lib
mkdir -p $libDir
cp *.jar $libDir
# runner script
mkdir -p $binDir
echo "#!/bin/sh
java -jar $libDir/abcl.jar \$@" > $libDir/abcl
chmod +x $libDir/abcl
ln -s $libDir/abcl $binDir
}