clisp stable port information

Package: clisp
# IMPORTANT: see DescPackaging before changing this package's version or
# revision
Version: 2.43
Revision: 2
#Distribution: 10.4
Architecture: i386, powerpc
License: GPL
Description: ANSI Common Lisp implementation
Maintainer: elcepi

Depends: readline5-shlibs, libgettext3-shlibs, libsigsegv-shlibs (>= 2.5-2), libncurses5-shlibs, libiconv
BuildDepends: readline5, libgettext3-dev, libsigsegv, libncurses5, fink (>= 0.24.12), libiconv-dev

Source: mirror:sourceforge:%n/%n-%v.tar.gz
Source-MD5: b030d366c7c746c0b46eae9b334b086a

PatchFile: %n.patch
PatchFile-MD5: b003815b3d2dc765cc91f09ebee2b6c3

GCC: 4.0
ConfigureParams: --with-gettext --with-readline --with-libreadline-prefix=%p --with-libsigsegv-prefix=%p --with-libiconv-prefix=%p
# What's wrong with " --with-dynamic-ffi" (assumming ffcall installed _ is latest version, from same author !) ??

Compilescript: <<
#!/bin/sh -ev
ulimit -S -s 16384
./configure %c
cd src
make || ( rm config.cache ; make )
<<

InfoTest:<<
TestScript: <<
#!/bin/sh -ev
cd src
make check || exit 2
<<
<<

InstallScript: <<
#!/bin/sh -ev
cd src
make DESTDIR=%d install
cd %i/lib/clisp-%v/base
rm -f *
ln -s ../full/* .
chmod a+x %i/lib/clisp-%v/clisp-link
<<

DescDetail: <<
A feature loaded common lisp programming environment with unicode
support, excellent ANSI compliance, and a full-featured MOP.
<<

DescPort: <<
There is a problem with the build script that causes make to fail. Removing
src/config.cache and run make agains correct the problem.
FFI is not working.
<<

DescPackaging: <<
Fink's maxima package uses clisp as it's host lisp. As part of maxima's build
process, it dumps a new lisp image. This image will only work reliably if it
is used with a clisp kernel of the same version built under the same
conditions. In other words, the version of clisp used to run maxima must be
exactly the same as the version used to build maxima. Any time you commit an
update to this package that changes clisp's version or revision, you must also
change the versioned dependency in fink's maxima package (and of course also
bump maxima's revision).
<<

Homepage: http://clisp.cons.org
DocFiles: GNU-GPL COPYRIGHT SUMMARY doc/Why-CLISP-is-under-GPL

clisp stable port .patch

diff -urN clisp-2.43/modules/regexp/configure clisp-2.43.patch/modules/regexp/configure
--- clisp-2.43/modules/regexp/configure 2007-11-16 11:33:21.000000000 -0800
+++ clisp-2.43.patch/modules/regexp/configure 2007-12-05 13:18:51.000000000 -0800
@@ -6244,7 +6244,7 @@
yes|no) ac_use_included_regex=$with_included_regex ;;
'') case $gl_cv_func_re_compile_pattern_working in
yes) ac_use_included_regex=no ;;
- no) ac_use_included_regex=yes ;;
+ *) ac_use_included_regex=yes ;;
esac ;;
esac
# can we use the system-wide regex implementation?

clisp _unstable_ port information

Package: clisp
Version: 2.48
Revision: 1
License: GPL
Description: ANSI Common Lisp implementation
Maintainer: elcepi

Depends: readline5-shlibs, libgettext3-shlibs, libsigsegv2-shlibs, libncurses5-shlibs, libiconv, ffcall
BuildDepends: readline5, libgettext3-dev, libsigsegv2, libncurses5, fink (>= 0.24.12), libiconv-dev

Source: mirror:sourceforge:%n/%n-%v.tar.bz2
Source-MD5: 5e4c4f7cdcf7a1ef4196b9897c287158

GCC: 4.0
PatchFile: %n.patch
PatchFile-MD5: 92a97dc47f87a4490b8bc80bbd759f93

ConfigureParams: --with-gettext --with-readline --with-unicode --with-libsigsegv-prefix=%p --with-ffcall-prefix=%p --with-libreadline-prefix=%p --with-libiconv-prefix=%p --with-dynamic-modules --with-dynamic-ffi --docdir=%p/share/doc/%n

CompileScript: <<
#!/bin/sh -ev
ulimit -S -s 16384
./configure %c
cd src
make
<<

InfoTest:<<
TestScript: <<
#!/bin/sh -ev
ulimit -S -s 16384
cd src
make check
# Checking just the base since there is no modules compiled
make base-mod-check
<<
<<

InstallScript: <<
#!/bin/sh -ev
cd src
make DESTDIR=%d install
cd %i/lib/clisp-%v/base
rm -f *
ln -s ../full/* .
chmod a+x %i/lib/clisp-%v/clisp-link
rm -fR %i/bin/clisp.dSYM
# remove duplicate files
rm -f %i/share/doc/%n/doc/%n.*
<<

DescDetail: <<
A feature loaded common lisp programming environment with unicode
support, excellent ANSI compliance, and a full-featured MOP.
<<

DescPackaging: <<
Patch readline test to comment readline version 5.2 tests
Patch syscall test to pass bug in wait function.
<<
Homepage: http://clisp.cons.org
DocFiles: GNU-GPL COPYRIGHT SUMMARY doc/Why-CLISP-is-under-GPL

clisp _unstable_ port .patch

diff -urN clisp-2.48.orignal/modules/readline/test.tst clisp-2.48/modules/readline/test.tst
--- clisp-2.48.orignal/modules/readline/test.tst 2009-07-30 18:57:25.000000000 -0700
+++ clisp-2.48/modules/readline/test.tst 2009-07-30 19:07:04.000000000 -0700
@@ -11,7 +11,8 @@

(integerp (show readline:gnu-readline-p)) T
(typep (show readline:terminal-name) '(or null string)) T
-(integerp (show readline:prefer-env-winsize)) T
+;; available on readline version 5.2
+;; (integerp (show readline:prefer-env-winsize)) T

(if (boundp 'readline:editing-mode) readline:editing-mode 1) 1
(if (boundp 'readline:insert-mode) readline:insert-mode 1) 1
@@ -42,7 +43,8 @@

(readline:resize-terminal) NIL

-(readline:reset-screen-size) NIL
+;; available on readline version 5.2
+;; (readline:reset-screen-size) NIL

(multiple-value-bind (rows cols) (readline:get-screen-size)
(show (list rows cols))
diff -urN clisp-2.48.orignal/modules/syscalls/test.tst clisp-2.48/modules/syscalls/test.tst
--- clisp-2.48.orignal/modules/syscalls/test.tst 2009-07-30 18:57:26.000000000 -0700
+++ clisp-2.48/modules/syscalls/test.tst 2009-07-30 19:06:10.000000000 -0700
@@ -568,19 +568,6 @@
(list kind status (posix:usage-p (show rusage)))))
#+(and :unix (not :cygwin)) (:SIGNALED :SIGTERM T)

-#+(and :unix (not :cygwin))
-(let ((pid (run-sleep 1)))
- (posix:kill pid :SIGSTOP)
- (multiple-value-bind (pid1 kind status) (posix:wait :pid pid :untraced t)
- (assert (= pid pid1) () "pid: ~S<>~S" pid pid1)
- (assert (eq kind :STOPPED) () "kind=~S <> :STOPPED" kind)
- (assert (eq status :SIGSTOP) () "status=~S <> :SIGCONT" status))
- (posix:kill pid :SIGCONT)
- (multiple-value-bind (pid1 kind status) (posix:wait :pid pid :continued t)
- (assert (= pid pid1) () "pid: ~S<>~S" pid pid1)
- (assert (eq kind :CONTINUED) () "kind=~S <> :CONTINUED" kind)
- (assert (null status) () "status=~S is non-NIL" status)))
-#+(and :unix (not :cygwin)) NIL

(progn (delete-file *tmp1*) (symbol-cleanup '*tmp1*)
(delete-file *tmp2*) (symbol-cleanup '*tmp2*)