New upstream version; Keywording =dev-lisp/clisp-2.34-r1 stable for x86.
authorMatthew Kennedy <mkennedy@gentoo.org>
Fri, 9 Sep 2005 03:12:13 +0000 (03:12 +0000)
committerMatthew Kennedy <mkennedy@gentoo.org>
Fri, 9 Sep 2005 03:12:13 +0000 (03:12 +0000)
Package-Manager: portage-2.0.51.22-r2

dev-lisp/clisp/ChangeLog
dev-lisp/clisp/Manifest
dev-lisp/clisp/clisp-2.34-r1.ebuild
dev-lisp/clisp/clisp-2.35.ebuild [new file with mode: 0644]
dev-lisp/clisp/files/2.35/README.Gentoo [new file with mode: 0644]
dev-lisp/clisp/files/2.35/clisp.sh [new file with mode: 0644]
dev-lisp/clisp/files/2.35/install-clc.lisp [new file with mode: 0644]
dev-lisp/clisp/files/digest-clisp-2.35 [new file with mode: 0644]

index 2d22d6d76ceb77aad23b0a6e5fb64e0f2802258d..e133d1ea71679ebc967f77bce60bb2ff220a81a5 100644 (file)
@@ -1,6 +1,13 @@
 # ChangeLog for dev-lisp/clisp
 # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lisp/clisp/ChangeLog,v 1.37 2005/07/22 19:25:22 mkennedy Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lisp/clisp/ChangeLog,v 1.38 2005/09/09 03:12:13 mkennedy Exp $
+
+*clisp-2.35 (09 Sep 2005)
+
+  09 Sep 2005; Matthew Kennedy <mkennedy@gentoo.org>
+  +files/2.35/README.Gentoo, +files/2.35/install-clc.lisp,
+  +files/2.35/clisp.sh, clisp-2.34-r1.ebuild, +clisp-2.35.ebuild:
+  New upstream version; Keywording =dev-lisp/clisp-2.34-r1 stable for x86.
 
 *clisp-2.34 (22 Jul 2005)
 
index 881155c3c4da2ff058964351e15a6772d3f4601c..9746948db1e24dddf307a8e9ed42ecf7ad1d2b5f 100644 (file)
@@ -1,12 +1,17 @@
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
-MD5 3b853208a763c60409534dfea44fd374 ChangeLog 8765
+MD5 592f2a2a66b66cf915c622b85f013c99 ChangeLog 9046
 MD5 ce231fc033009fe5fec7c7cee5634165 clisp-2.33.2-r2.ebuild 4238
+MD5 9052b8ed4f948d11af9c36f181bdfe0e clisp-2.34-r1.ebuild 4161
 MD5 485cde76397408cf913fc6d4c7a45a67 metadata.xml 882
-MD5 526ef74ef049559d5aaf99b7c55dac8b clisp-2.34-r1.ebuild 4162
+MD5 3807594f4a70eff60f4f2a307c696527 clisp-2.35.ebuild 2879
 MD5 9a2df7725b74af8b8b9f3db39b350e79 files/digest-clisp-2.33.2-r2 66
 MD5 d8868b134ba5463d87df11818719fcec files/digest-clisp-2.34-r1 64
+MD5 f9c5dbcccff51886eb3704fd7fa7c429 files/digest-clisp-2.35 64
+MD5 66e5b3968b3a6ad0301ca028447b26b3 files/2.35/README.Gentoo 334
+MD5 fe93240f140623bf55d2e503f6d8e01e files/2.35/clisp.sh 2792
+MD5 2f431f5c714c00d04b55e02a9d54f452 files/2.35/install-clc.lisp 501
 MD5 66e5b3968b3a6ad0301ca028447b26b3 files/2.33.2/README.Gentoo 334
 MD5 fe93240f140623bf55d2e503f6d8e01e files/2.33.2/clisp.sh 2792
 MD5 8d8449ba456d4f8b789d4349496845b6 files/2.33.2/compilefix.patch 1174
@@ -19,9 +24,9 @@ MD5 a68a303f8d8e4eec8542f36167df1377 files/2.34/fastcgi-Makefile.in-gentoo.patch
 MD5 e415e209cc23163e624face90f97e024 files/2.34/glibc-linux.lisp-sigpause-gentoo.patch 614
 MD5 2f431f5c714c00d04b55e02a9d54f452 files/2.34/install-clc.lisp 501
 -----BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.1 (GNU/Linux)
+Version: GnuPG v1.4.2 (GNU/Linux)
 
-iD8DBQFC8Rw1yiNZaEAZA+ARAkl6AJ9q2OtoIXR2hLq35traTBjHkioBUQCfT5Nj
-1xscBf2u5teBpw1DcHC3+6k=
-=sZCj
+iD8DBQFDIP3PyiNZaEAZA+ARAm97AJ9edVFptbh3oWVJ0OqlGYUvbkqLYwCcDvy5
+MOpx6tFQiwwG7Q2weDk4zAE=
+=ibf8
 -----END PGP SIGNATURE-----
index 7966c4f427c4a7684dc6147da573f597e3cfb1d5..7823fa124454c152521d1a6e157000dd37e0f0c8 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lisp/clisp/clisp-2.34-r1.ebuild,v 1.1 2005/08/03 19:33:45 mkennedy Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lisp/clisp/clisp-2.34-r1.ebuild,v 1.2 2005/09/09 03:12:13 mkennedy Exp $
 
 inherit flag-o-matic common-lisp-common-2 eutils toolchain-funcs
 
@@ -10,7 +10,7 @@ SRC_URI="mirror://sourceforge/clisp/${P}.tar.bz2"
 
 LICENSE="GPL-2"
 SLOT="2"
-KEYWORDS="~x86 ~ppc ~ppc-macos ~amd64 ~sparc"
+KEYWORDS="x86 ~ppc ~ppc-macos ~amd64 ~sparc"
 IUSE="X fastcgi pcre postgres readline zlib"
 
 DEPEND="dev-libs/libsigsegv
diff --git a/dev-lisp/clisp/clisp-2.35.ebuild b/dev-lisp/clisp/clisp-2.35.ebuild
new file mode 100644 (file)
index 0000000..2eb6614
--- /dev/null
@@ -0,0 +1,96 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lisp/clisp/clisp-2.35.ebuild,v 1.1 2005/09/09 03:12:13 mkennedy Exp $
+
+inherit flag-o-matic common-lisp-common-2 eutils toolchain-funcs
+
+DESCRIPTION="A portable, bytecode-compiled implementation of Common Lisp"
+HOMEPAGE="http://clisp.sourceforge.net/"
+SRC_URI="mirror://sourceforge/clisp/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="2"
+KEYWORDS="~x86 ~ppc ~ppc-macos ~amd64 ~sparc"
+IUSE="X fastcgi pcre postgres readline zlib"
+
+DEPEND="dev-libs/libsigsegv
+       dev-lisp/common-lisp-controller
+       sys-devel/gettext
+       virtual/tetex
+       fastcgi? ( dev-libs/fcgi )
+       postgres? ( dev-db/postgresql )
+       X? ( virtual/x11 )
+       readline? ( sys-libs/readline )
+       pcre? ( dev-libs/libpcre )
+       zlib? ( sys-libs/zlib )"
+
+PROVIDE="virtual/commonlisp"
+
+src_compile() {
+       # Let CLISP use its own set of optimizations
+       unset CFLAGS CXXFLAGS
+       CC="$(tc-getCC)"
+       local myconf="--with-dynamic-ffi
+               --with-module=wildcard
+               --with-module=rawsock"
+       use ppc-macos || myconf="${myconf} --with-module=bindings/glibc"
+       use readline || myconf="${myconf} --with-noreadline"
+       use X && myconf="${myconf} --with-module=clx/new-clx"
+       if use postgres; then
+               myconf="${myconf} --with-module=postgresql"
+               CC="${CC} -I $(pg_config --includedir)"
+       fi
+       use fastcgi && myconf="${myconf} --with-module=fastcgi"
+       use pcre && myconf="${myconf} --with-module=pcre"
+       use zlib && myconf="${myconf} --with-module=zlib"
+       einfo "Configuring with ${myconf}"
+       ./configure --prefix=/usr ${myconf} build || die "./configure failed"
+       cd build
+       ./makemake ${myconf} >Makefile
+       emake -j1 config.lisp
+       sed -i 's,"vi","nano",g' config.lisp
+       sed -i 's,http://www.lisp.org/HyperSpec/,http://www.lispworks.com/reference/HyperSpec/,g' config.lisp
+       emake -j1 || die
+}
+
+src_install() {
+       pushd build
+       make DESTDIR=${D} prefix=/usr install-bin || die
+       doman clisp.1
+       dodoc SUMMARY README* NEWS MAGIC.add GNU-GPL COPYRIGHT \
+               ANNOUNCE clisp.dvi clisp.html
+       rm -f ${D}/usr/lib/clisp/base/*
+       (cd ${D}/usr/lib/clisp/base && ln -s ../full/* .)
+       chmod a+x ${D}/usr/lib/clisp/clisp-link
+       popd
+       # install common-lisp-controller profile
+       exeinto /usr/lib/common-lisp/bin
+       doexe ${FILESDIR}/${PV}/clisp.sh
+       insinto /usr/lib/clisp
+       doins ${FILESDIR}/${PV}/install-clc.lisp
+       dodoc ${FILESDIR}/${PV}/README.Gentoo
+       keepdir /usr/lib/common-lisp/clisp
+}
+
+pkg_preinst() {
+       local clisp_dir=/usr/lib/clisp
+       local old_mem=$clisp_dir/full/lispinit.mem
+       local new_mem=$clisp_dir/full/lispinit-new.mem
+       local clean_mem=$clisp_dir/full/lispinit-clean.mem
+       local lisp_run=$clisp_dir/full/lisp.run
+       rm -f $old_mem $new_mem $clean_mem $lisp_run
+}
+
+pkg_postinst() {
+       standard-impl-postinst clisp
+}
+
+pkg_postrm() {
+       standard-impl-postrm clisp /usr/bin/clisp
+}
+
+pkg_postrm() {
+       if [ ! -x /usr/bin/clisp ]; then
+               rm -rf /usr/lib/clisp/ || die
+       fi
+}
diff --git a/dev-lisp/clisp/files/2.35/README.Gentoo b/dev-lisp/clisp/files/2.35/README.Gentoo
new file mode 100644 (file)
index 0000000..6bec925
--- /dev/null
@@ -0,0 +1,11 @@
+                                                            -*-outline-*-
+
+* Gentoo Specific Notes
+
+The CLISP port for Gentoo uses Common Lisp Controller related code
+(install-clc.lisp and clisp.sh) from Debian.  This code contains the following
+copyright:
+
+    ;;;; Copyright (c) 2004 Kevin M. Rosenberg
+    ;;;; GNU GPL v2 license
+
diff --git a/dev-lisp/clisp/files/2.35/clisp.sh b/dev-lisp/clisp/files/2.35/clisp.sh
new file mode 100644 (file)
index 0000000..f5ed6a1
--- /dev/null
@@ -0,0 +1,118 @@
+#!/bin/sh
+# Copyright (c) 2002 Kevin M. Rosenberg
+# GNU GPL v2 license
+ 
+if [ ! -f /usr/share/common-lisp/source/common-lisp-controller/common-lisp-controller.lisp ] ; then
+  echo "*** Can't find common-lisp-controller.lisp ***" >&2
+  echo "Please report this as a bug" &>2
+  exit 1
+fi
+
+clisp_dir=/usr/lib/clisp
+clc_lib_dir=/usr/lib/common-lisp/clisp
+
+builder=/usr/bin/clisp
+old_mem=$clisp_dir/full/lispinit.mem
+new_mem=$clisp_dir/full/lispinit-new.mem
+clean_mem=$clisp_dir/full/lispinit-clean.mem
+
+lisp_error()
+{
+    echo "Error running $builder" >&2
+    exit 1
+}
+
+mem_error()
+{
+    echo "Error moving new lisp image $new_mem" >&2
+    exit 1
+}
+
+
+case $1 in
+    rebuild)
+       echo $0 Rebuilding packages...
+       shift
+       while [ -x $builder ] && [ ! -z "$1" ] ; do
+           echo ...rebuilding $1
+           $builder -norc -q -M $old_mem -x "
+(let ((*compile-print* nil)
+      (*compile-progress* nil)
+      (*compile-verbose*  nil)
+      (*require-verbose* nil)
+      (*load-verbose* nil) 
+      (mk::*load-source-if-no-binary* nil)
+      (mk::*bother-user-if-no-binary* nil)
+      (mk::*compile-during-load* t))
+   (handler-case
+      (progn
+         (c-l-c:compile-library (quote $1))
+         (ext:exit 0)
+       )
+    (error (e)
+      (ignore-errors (format t \"~&Build error: ~A~%\" e))
+      (finish-output)
+      (ext:exit 1))))"  || exit 1
+           shift
+       done 
+       ;;
+    remove)
+       echo $0 Removing packages...
+       shift
+       while [ ! -z "$1" ] ; do
+           echo ...removing package $1
+           rm -rf "${clc_lib_dir}/$1"
+           shift
+       done
+       rmdir $clc_lib_dir 2> /dev/null 
+       ;;
+    install-clc)
+       echo Installing clc...
+       if [ ! -f $clean_mem ]; then
+           cp $old_mem $clean_mem
+       fi
+       if [ -x $clisp_dir/$lisp_builder ]; then
+           $builder -norc -q -M $clean_mem \
+               -x "
+(handler-case
+  (progn 
+    (when (find-package :c-l-c) ; have to remove 
+      (delete-package :c-l-c))  ; for clisp workaround
+    (load \"$clisp_dir/install-clc.lisp\") 
+    (saveinitmem \"${new_mem}\")
+    (ext:exit 0))
+  (error (e)
+    (ignore-errors (format t \"~&install-clc error: ~A~%\" e))
+    (finish-output)
+    (ext:exit 1)))"   || lisp_error
+           mv $new_mem $old_mem || mem_error
+       fi
+       ;;
+    remove-clc)
+       if [ -f $clean_mem ]; then
+           cp $clean_mem $old_mem
+       else
+           echo "Warning: Can't find original image file $clean_mem. Aborting." >& 2
+       fi
+       ;;
+    make-user-image)
+       if [ ! -f $2 ] ; then 
+           echo "Trying to make-user image, but can not find file $2" >&2
+           exit 1
+       fi 
+       $builder -norc -q -M $old_mem \
+           -x "(progn    
+  (load \"$2\") 
+  (saveinitmem \"${new_mem}\"))
+  (ext:exit 0)" || lisp_error
+       mv $new_mem $old_mem || mem_error
+       ;;
+    *)
+       echo "`basename $0`: Unknown command $1" >&2
+       echo "Known commands are:" >&2 
+       echo "install-clc, remove-clc, rebuild, remove, and make-user-image" >&2
+       exit 1
+       ;;
+esac
+
+exit 0
diff --git a/dev-lisp/clisp/files/2.35/install-clc.lisp b/dev-lisp/clisp/files/2.35/install-clc.lisp
new file mode 100644 (file)
index 0000000..06cb217
--- /dev/null
@@ -0,0 +1,15 @@
+;;;; -*- Mode: Lisp; Package: CL-USER -*-
+;;;; Copyright (c) 2004 Kevin M. Rosenberg
+;;;; GNU GPL v2 license
+
+(in-package #:cl-user)
+
+(handler-case
+    (load "/usr/share/common-lisp/source/common-lisp-controller/common-lisp-controller.lisp")
+  (error (e)
+    (format t "Error during loading of common-lisp-controller.lisp: ~A~%" e)))
+
+(handler-case
+    (common-lisp-controller:init-common-lisp-controller-v4 "clisp")
+  (error (e)
+    (format t "Error during init-common-lisp-controller-v4: ~A~%" e)))
diff --git a/dev-lisp/clisp/files/digest-clisp-2.35 b/dev-lisp/clisp/files/digest-clisp-2.35
new file mode 100644 (file)
index 0000000..fb1aef6
--- /dev/null
@@ -0,0 +1 @@
+MD5 a8e3136c4ecfb5deb65fe53e22ca2c07 clisp-2.35.tar.bz2 7902817