mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
Initial CLISP recipe (#11269)
This commit is contained in:
87
dev-lisp/clisp/clisp-2.49.93~git.recipe
Normal file
87
dev-lisp/clisp/clisp-2.49.93~git.recipe
Normal file
@@ -0,0 +1,87 @@
|
||||
SUMMARY="ANSI Common Lisp Implementation"
|
||||
DESCRIPTION="GNU CLISP is an ANSI Common Lisp Implementation. \
|
||||
It is known for high portability, small image size and efficient bignums."
|
||||
HOMEPAGE="https://clisp.sourceforge.io/"
|
||||
COPYRIGHT="1992-1993 Bruno Haible, Michael Stoll
|
||||
1994-1997 Bruno Haible, Marcus Daniels
|
||||
1998 Bruno Haible, Pierpaolo Bernardi, Sam Steingold
|
||||
1999-2000 Bruno Haible, Sam Steingold
|
||||
2001-2018 Sam Steingold, Bruno Haible
|
||||
"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
srcGitRev="c735dd548ba2365804bcee9c2bdd3c291657e8ae"
|
||||
SOURCE_URI="https://gitlab.com/gnu-clisp/clisp/-/archive/$srcGitRev.tar.gz"
|
||||
CHECKSUM_SHA256="7c29554297e5d27abd7e50fff7691b4dc2ee26bd694369b238fb368b38278bf7"
|
||||
SOURCE_DIR="clisp-$srcGitRev"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
clisp$secondaryArchSuffix = $portVersion
|
||||
cmd:clisp = $portVersion
|
||||
cmd:clisp_link = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libffcall$secondaryArchSuffix
|
||||
devel:libiconv$secondaryArchSuffix
|
||||
devel:libintl$secondaryArchSuffix
|
||||
devel:libncurses$secondaryArchSuffix
|
||||
devel:libreadline$secondaryArchSuffix >= 8
|
||||
devel:libsigsegv$secondaryArchSuffix
|
||||
devel:libunistring$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:awk
|
||||
cmd:cmp
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:msgfmt
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
./configure \
|
||||
FORCE_UNSAFE_CONFIGURE=1 \
|
||||
LDFLAGS="-lbsd -lnetwork" \
|
||||
--with-included-regex \
|
||||
--prefix=$prefix \
|
||||
--bindir=$prefix/bin \
|
||||
--datarootdir=$dataDir \
|
||||
--docdir=$docDir \
|
||||
--libdir=$libDir \
|
||||
--mandir=$manDir \
|
||||
build-dir
|
||||
# TODO Waiting for Haiku specific config.lisp
|
||||
sed -i 's|"vi"|"/boot/system/apps/Pe/Pe"|g' build-dir/config.lisp
|
||||
sed -i 's|:firefox|"/boot/system/apps/WebPositive"|g' build-dir/config.lisp
|
||||
sed -i 's|;;[[:space:]](setq[[:space:]][*]browser[*]|(setq *browser*|g' build-dir/config.lisp
|
||||
#make
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd build-dir
|
||||
make install
|
||||
make install-modules MODULES="asdf"
|
||||
make install-modules MODULES="rawsock"
|
||||
#make install-modules MODULES="i18n"
|
||||
#make install-modules MODULES="regexp"
|
||||
#make install-modules MODULES="syscalls"
|
||||
#make install-modules MODULES="readline"
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make bench -Cbuild-dir
|
||||
# make check-tests
|
||||
# make check-recompile # Probably not necessary
|
||||
# make check-sacla-tests # This seems to be helpful
|
||||
# make check-ansi-tests #Did not find it
|
||||
}
|
||||
Reference in New Issue
Block a user