123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- set -e
- program=clisp
- version=20210628_de01f0f47;
- release=1
- pkgcategory=devel
- tarname=${program}-${version}.tar.lz
- fetch="
- https://dragora.mirror.garr.it/current/sources/$tarname
- rsync://rsync.dragora.org/current/sources/$tarname
- "
- description="
- An ANSI Common Lisp Implementation.
- In computing, CLISP is an implementation of the programming language
- Common Lisp originally developed by Bruno Haible and Michael Stoll for
- the Atari ST.
- LISP includes an interpreter, a bytecode compiler, debugger, socket
- interface, high-level foreign language interface, strong
- internationalization support, and two object systems:
- Common Lisp Object System (CLOS) and metaobject protocol (MOP).
- It is written in C and Common Lisp. It is now part of the GNU Project
- and is free software, available under the terms of the GNU General
- Public License (GPL).
- "
- hompage=https://clisp.org
- license=GPLv2+
- docs="ANNOUNCE COPYRIGHT GNU-GPL HACKING SUMMARY"
- docsdir="${docdir}/${program}-${version}"
- build()
- {
- unpack "${tardir}/$tarname"
-
- cd "$srcdir"
-
- chmod -R u+w,go-w,a+rX-s .
-
- rm -rf BUILD
- mkdir BUILD
- cd BUILD
- ../configure CPPFLAGS="$QICPPFLAGS" CFLAGS="$QICFLAGS" \
- LDFLAGS="$QILDFLAGS" \
- FORCE_UNSAFE_CONFIGURE=1 \
- --srcdir=../ \
- --prefix=/usr \
- --libdir=/usr/lib${libSuffix} \
- --mandir=$mandir \
- --docdir=$docsdir \
- --disable-rpath \
- --with-dynamic-ffi \
- --with-module=berkeley-db \
- --with-module=gdbm \
- --with-module=pcre \
- --with-module=zlib \
- --build="$(gcc -dumpmachine)"
- make -j${jobs} V=1
- make -j${jobs} DESTDIR="$destdir" install
- cd ..
-
- if test -d "${destdir}/$mandir"
- then
- (
- cd "${destdir}/$mandir"
- find . -type f -exec lzip -9 {} +
- find . -type l | while read -r file
- do
- ln -sf "$(readlink -- "$file").lz" "${file}.lz"
- rm -- "$file"
- done
- )
- fi
-
- mkdir -p "${destdir}/$docsdir"
- cp -p $docs "${destdir}/$docsdir"
- }
|