diff options
author | Lee Starnes <lee@canned-death.us> | 2020-04-18 05:41:59 +0000 |
---|---|---|
committer | Lee Starnes <lee@canned-death.us> | 2020-04-18 09:49:20 +0000 |
commit | e2de959186282f7808a01d4249933f9a89db0096 (patch) | |
tree | 998d2f45fae084de1e0df27af52266ef2f9a309e /user | |
parent | eb9884ddc8c49fe36411ebdb178eec1033accd3f (diff) | |
download | packages-e2de959186282f7808a01d4249933f9a89db0096.tar.gz packages-e2de959186282f7808a01d4249933f9a89db0096.tar.bz2 packages-e2de959186282f7808a01d4249933f9a89db0096.tar.xz packages-e2de959186282f7808a01d4249933f9a89db0096.zip |
user/clisp: import/adapt from Alpine
Diffstat (limited to 'user')
-rw-r--r-- | user/clisp/APKBUILD | 47 | ||||
-rw-r--r-- | user/clisp/no-page.h.patch | 12 |
2 files changed, 59 insertions, 0 deletions
diff --git a/user/clisp/APKBUILD b/user/clisp/APKBUILD new file mode 100644 index 000000000..bdca17a85 --- /dev/null +++ b/user/clisp/APKBUILD @@ -0,0 +1,47 @@ +# Contributor: Soren Tempel <soeren+alpine@soeren-tempel.net> +# Contrubutor: Carlo Landmeter <clandmeter@gmail.com> +# Contributor: Lee Starnes <lee@canned-death.us> +# Maintainer: Lee Starnes <lee@canned-death.us> +pkgname=clisp +pkgver=2.49 +pkgrel=0 +pkgdesc="ANSI Common Lisp interpreter, compiler, and debugger" +url="https://clisp.sourceforge.io" +arch="all" +license="GPL-2.0-only" +depends="libsigsegv" +depends_dev="libsigsegv-dev ffcall ncurses-dev" +makedepends="$depends_dev" +subpackages="$pkgname-dev $pkgname-doc" +source="https://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2 + no-page.h.patch" +builddir="$srcdir/$pkgname-$pkgver" + +prepare() { + default_prepare + update_config_sub +} + +build() { + ulimit -s 16384 + + ./configure \ + --prefix=/usr \ + --with-ffcall \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info\ + "$builddir" + # Parallel builds fail + make -j1 +} + +check() { + make check +} + +package() { + make -j1 DESTDIR="$pkgdir" install +} + +sha512sums="eef66fc85199a2c283b616db61bf67ff103eeb0f19fa907da48994dc790b6f5f8d0c74fb3bd723c6b827c0ff3cfd89fa6ba67934fc669ed5d5249044b5140d81 clisp-2.49.tar.bz2 +86273c5d5d05a8d41ab6311192e0c757d3f7fe4d78546590830aa00f8c2f170fcb08f66ea739ae8834cec00cdf0f6a20824eb6a3d0f6df97be405c26b1cc5d39 no-page.h.patch" diff --git a/user/clisp/no-page.h.patch b/user/clisp/no-page.h.patch new file mode 100644 index 000000000..aafb98a31 --- /dev/null +++ b/user/clisp/no-page.h.patch @@ -0,0 +1,12 @@ +--- a/src/unix.d ++++ b/src/unix.d +@@ -135,9 +135,6 @@ + #ifdef UNIX_AUX + #include <sys/mmu.h> /* for SHMLBA */ + #endif +- #if defined(UNIX_LINUX) && !defined(UNIX_GNU) +- #include <asm/page.h> /* for SHMLBA on Linux 2.0 */ +- #endif + /* <sys/shm.h> declares shmget(), shmat(), shmdt(), shmctl() */ + #endif + /* used by SPVW, STREAM */ |