mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-29 11:38:52 +02:00
* First working version of chez scheme * Tests all pass * Use portVersion in SOURCE_URI path Co-authored-by: Joachim Mairböck <j.mairboeck@gmail.com> * Apply changes from review comments * alphabetise dependencies * remove unnecessary CFLags * re-add diff and patch as test requirements Co-authored-by: Joachim Mairböck <j.mairboeck@gmail.com> * Use system lz4 and zlib
83 lines
1.8 KiB
Bash
83 lines
1.8 KiB
Bash
SUMMARY="Cisco's Chez Scheme compiler and interpreter"
|
|
DESCRIPTION="Both a programming language and an implementation of that \
|
|
language, with supporting tools and documentation.
|
|
|
|
As a superset of the language described in the Revised6 Report on the \
|
|
Algorithmic Language Scheme (R6RS), Chez Scheme supports all standard \
|
|
features of Scheme, including first-class procedures, proper treatment of \
|
|
tail calls, continuations, user-defined records, libraries, exceptions, and \
|
|
hygienic macro expansion.
|
|
|
|
Chez Scheme also includes extensive support for interfacing with C and other \
|
|
languages, support for multiple threads possibly running on multiple cores, \
|
|
non-blocking I/O, and many other features."
|
|
HOMEPAGE="https://cisco.github.io/ChezScheme/"
|
|
COPYRIGHT="2022 Cisco Systems, Inc."
|
|
LICENSE="Apache v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/cisco/ChezScheme/releases/download/v$portVersion/csv$portVersion.tar.gz"
|
|
SOURCE_DIR="csv$portVersion"
|
|
CHECKSUM_SHA256="d237d9874c6e8b0ccf7758daa8286a6e825528b13ce3b2bca56eb1f73cddbc2c"
|
|
PATCHES="chez-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="x86_64"
|
|
|
|
PROVIDES="
|
|
chez = $portVersion
|
|
cmd:petite = $portVersion
|
|
cmd:scheme = $portVersion
|
|
cmd:scheme_script = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
lib:libiconv
|
|
lib:liblz4
|
|
lib:libncurses
|
|
lib:libz
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku_devel
|
|
devel:libiconv
|
|
devel:liblz4
|
|
devel:libncurses
|
|
devel:libz
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc
|
|
cmd:ld
|
|
cmd:make
|
|
"
|
|
|
|
TEST_REQUIRES="
|
|
cmd:diff
|
|
cmd:patch
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
export LZ4=liblz4 ZLIB=libz
|
|
./configure --pb
|
|
make bootquick XM=ta6hk $jobArgs
|
|
./configure --machine=ta6hk \
|
|
--threads \
|
|
--64 \
|
|
--disable-x11 \
|
|
--prefix=$prefix \
|
|
--installbin=$binDir --installlib=$libDir \
|
|
--installman=$manDir --installdoc=$docDir \
|
|
--installabsolute \
|
|
--as-is
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make test $jobArgs
|
|
}
|