summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorjonb <jonb>2005-06-23 03:00:20 +0000
committerjonb <jonb>2005-06-23 03:00:20 +0000
commit46a20bdc126ca9a07812badc84bfc745cfb0e154 (patch)
treecaaea74df85e29611b17d0fff51dec3fc2a41c63 /lang
parentcb12beb031ea35664e761e25f937e2cea9f4030a (diff)
downloadpkgsrc-46a20bdc126ca9a07812badc84bfc745cfb0e154.tar.gz
Steel Bank Common Lisp (SBCL) is an Open Source complier and runtime
system for ANSI Common Lisp. It provides an interactive environment including an integrated native compiler, a debugger, and many extensions.
Diffstat (limited to 'lang')
-rw-r--r--lang/sbcl/DESCR4
-rw-r--r--lang/sbcl/Makefile58
-rw-r--r--lang/sbcl/PLIST94
-rw-r--r--lang/sbcl/distinfo8
-rw-r--r--lang/sbcl/patches/patch-aa13
-rw-r--r--lang/sbcl/patches/patch-ab22
-rw-r--r--lang/sbcl/patches/patch-ac18
7 files changed, 217 insertions, 0 deletions
diff --git a/lang/sbcl/DESCR b/lang/sbcl/DESCR
new file mode 100644
index 00000000000..dd38ebe9eb0
--- /dev/null
+++ b/lang/sbcl/DESCR
@@ -0,0 +1,4 @@
+Steel Bank Common Lisp (SBCL) is an Open Source complier and runtime
+system for ANSI Common Lisp. It provides an interactive environment
+including an integrated native compiler, a debugger, and many
+extensions.
diff --git a/lang/sbcl/Makefile b/lang/sbcl/Makefile
new file mode 100644
index 00000000000..3b331aa9ce7
--- /dev/null
+++ b/lang/sbcl/Makefile
@@ -0,0 +1,58 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/06/23 03:00:20 jonb Exp $
+
+DISTNAME= ${PKGNAME}-source
+PKGNAME= sbcl-0.9.1
+CATEGORIES= lang
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=sbcl/}
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= jonb@NetBSD.org
+HOMEPAGE= http://www.sbcl.org/
+COMMENT= SBCL, a Common Lisp implementation
+
+ONLY_FOR_PLATFORM= NetBSD-*-i386
+# It should be possible to have SBCL working on amd64, powerpc,
+# sparc, alpha, mips, and HPPA hardware also, but they probably
+# need a bit of porting work done in SBCL itself.
+# In addition, SBCL should also work on Linux, Darwin, Solaris,
+# FreeBSD, OpenBSD, and possibly Win32, OSF/1, HP-UX, and Irix.
+
+USE_TOOLS+= gmake
+PKG_INSTALLATION_TYPES= overwrite pkgviews
+
+WRKSRC= ${WRKDIR}/${PKGNAME}/
+
+#
+# Bootstrap section.
+#
+# SBCL needs an existing Common Lisp system to build it...
+# Currently allowed systems are CLisp, CMUCL, OpenMCL, and SBCL itself.
+#
+SBCL_BOOT_SYSTEM= clisp
+#SBCL_BOOT_SYSTEM= "lisp -batch"
+#SBCL_BOOT_SYSTEM= "openmcl --batch"
+#SBCL_BOOT_SYSTEM= sbcl
+
+.if defined(SBCL_BOOT_SYSTEM) && ${SBCL_BOOT_SYSTEM} == clisp
+BUILD_DEPENDS+= clisp-[0-9]*:../../lang/clisp
+.endif
+
+.if !defined(SBCL_BOOT_SYSTEM)
+PKG_SKIP_REASON= "Sorry, need a Common Lisp system"
+.endif
+
+post-patch:
+ ${MV} ${WRKSRC}/install.sh ${WRKSRC}/install.sh.dist
+ ${SED} -e "s,@PREFIX@,${PREFIX}," ${WRKSRC}/install.sh.dist > ${WRKSRC}/install.sh
+ ${MV} ${WRKSRC}/src/runtime/runtime.c ${WRKSRC}/src/runtime/runtime.c.dist
+ ${SED} -e "s,@PREFIX@,${PREFIX}," ${WRKSRC}/src/runtime/runtime.c.dist > ${WRKSRC}/src/runtime/runtime.c
+ ${MV} ${WRKSRC}/doc/sbcl.1 ${WRKSRC}/doc/sbcl.1.dist
+ ${SED} -e "s,@PREFIX@,${PREFIX}," ${WRKSRC}/doc/sbcl.1.dist > ${WRKSRC}/doc/sbcl.1
+
+do-build:
+ cd ${WRKSRC} && ${SH} make.sh "${SBCL_BOOT_SYSTEM}"
+
+do-install:
+ cd ${WRKSRC} && INSTALL_ROOT=${PREFIX} ${SH} install.sh
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/lang/sbcl/PLIST b/lang/sbcl/PLIST
new file mode 100644
index 00000000000..ab0876c0a1b
--- /dev/null
+++ b/lang/sbcl/PLIST
@@ -0,0 +1,94 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/06/23 03:00:20 jonb Exp $
+bin/sbcl
+lib/sbcl/asdf-install/asdf-install.fasl
+lib/sbcl/asdf-install/defpackage.fasl
+lib/sbcl/asdf-install/installer.fasl
+lib/sbcl/asdf-install/test-passed
+lib/sbcl/asdf/asdf.fasl
+lib/sbcl/sb-aclrepl/debug.fasl
+lib/sbcl/sb-aclrepl/inspect.fasl
+lib/sbcl/sb-aclrepl/repl.fasl
+lib/sbcl/sb-aclrepl/sb-aclrepl.fasl
+lib/sbcl/sb-aclrepl/test-passed
+lib/sbcl/sb-aclrepl/tests.fasl
+lib/sbcl/sb-aclrepl/toplevel.fasl
+lib/sbcl/sb-cltl2/compiler-let.fasl
+lib/sbcl/sb-cltl2/defpackage.fasl
+lib/sbcl/sb-cltl2/env.fasl
+lib/sbcl/sb-cltl2/macroexpand.fasl
+lib/sbcl/sb-cltl2/sb-cltl2.fasl
+lib/sbcl/sb-cltl2/test-passed
+lib/sbcl/sb-cltl2/tests.fasl
+lib/sbcl/sb-executable/sb-executable.fasl
+lib/sbcl/sb-grovel/def-to-lisp.fasl
+lib/sbcl/sb-grovel/defpackage.fasl
+lib/sbcl/sb-grovel/foreign-glue.fasl
+lib/sbcl/sb-grovel/sb-grovel.fasl
+lib/sbcl/sb-grovel/test-passed
+lib/sbcl/sb-introspect/sb-introspect.fasl
+lib/sbcl/sb-md5/md5-tests.fasl
+lib/sbcl/sb-md5/md5.fasl
+lib/sbcl/sb-md5/sb-md5.fasl
+lib/sbcl/sb-md5/test-passed
+lib/sbcl/sb-posix/a.out
+lib/sbcl/sb-posix/alien.so
+lib/sbcl/sb-posix/alien/stat-macros.o
+lib/sbcl/sb-posix/alien/waitpid-macros.o
+lib/sbcl/sb-posix/constants.fasl
+lib/sbcl/sb-posix/constants.lisp-temp
+lib/sbcl/sb-posix/defpackage.fasl
+lib/sbcl/sb-posix/designator.fasl
+lib/sbcl/sb-posix/foo.c
+lib/sbcl/sb-posix/interface.fasl
+lib/sbcl/sb-posix/macros.fasl
+lib/sbcl/sb-posix/posix-tests.fasl
+lib/sbcl/sb-posix/sb-posix.fasl
+lib/sbcl/sb-posix/test-passed
+lib/sbcl/sb-rotate-byte/compiler.fasl
+lib/sbcl/sb-rotate-byte/package.fasl
+lib/sbcl/sb-rotate-byte/rotate-byte-tests.fasl
+lib/sbcl/sb-rotate-byte/rotate-byte.fasl
+lib/sbcl/sb-rotate-byte/sb-rotate-byte.fasl
+lib/sbcl/sb-rotate-byte/test-passed
+lib/sbcl/sb-rotate-byte/x86-vm.fasl
+lib/sbcl/sb-rt/rt.fasl
+lib/sbcl/sb-rt/sb-rt.fasl
+lib/sbcl/sb-rt/test-passed
+lib/sbcl/sb-sprof/sb-sprof.fasl
+lib/sbcl/sbcl.core
+lib/sbcl/systems/asdf-install.asd
+lib/sbcl/systems/sb-aclrepl.asd
+lib/sbcl/systems/sb-cltl2.asd
+lib/sbcl/systems/sb-grovel.asd
+lib/sbcl/systems/sb-md5.asd
+lib/sbcl/systems/sb-posix.asd
+lib/sbcl/systems/sb-rotate-byte.asd
+lib/sbcl/systems/sb-rt.asd
+share/doc/sbcl/BUGS
+share/doc/sbcl/COPYING
+share/doc/sbcl/CREDITS
+share/doc/sbcl/NEWS
+share/doc/sbcl/SUPPORT
+share/man/man1/sbcl.1
+@exec ${MKDIR} %D/share/doc/sbcl/html
+@dirrm share/doc/sbcl/html
+@dirrm share/doc/sbcl
+@dirrm lib/sbcl/systems
+@exec ${MKDIR} %D/lib/sbcl/site-systems
+@dirrm lib/sbcl/site-systems
+@dirrm lib/sbcl/sb-sprof
+@dirrm lib/sbcl/sb-rt
+@dirrm lib/sbcl/sb-rotate-byte
+@exec ${MKDIR} %D/lib/sbcl/sb-posix/test-lab
+@dirrm lib/sbcl/sb-posix/test-lab
+@dirrm lib/sbcl/sb-posix/alien
+@dirrm lib/sbcl/sb-posix
+@dirrm lib/sbcl/sb-md5
+@dirrm lib/sbcl/sb-introspect
+@dirrm lib/sbcl/sb-grovel
+@dirrm lib/sbcl/sb-executable
+@dirrm lib/sbcl/sb-cltl2
+@dirrm lib/sbcl/sb-aclrepl
+@dirrm lib/sbcl/asdf-install
+@dirrm lib/sbcl/asdf
+@dirrm lib/sbcl
diff --git a/lang/sbcl/distinfo b/lang/sbcl/distinfo
new file mode 100644
index 00000000000..cbb3913cf2f
--- /dev/null
+++ b/lang/sbcl/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/06/23 03:00:20 jonb Exp $
+
+SHA1 (sbcl-0.9.1-source.tar.bz2) = c12a123eadf99625d1821df7f3b3081637a921d2
+RMD160 (sbcl-0.9.1-source.tar.bz2) = 7c9e6d2e51f4b578255cfb1dd6592d572945595b
+Size (sbcl-0.9.1-source.tar.bz2) = 2458526 bytes
+SHA1 (patch-aa) = 8f1c02fc96233af1063ca8dd62bc6033eb435db2
+SHA1 (patch-ab) = c52f6a54783fbc7e55f198a070430b4c7378e6e7
+SHA1 (patch-ac) = b814853d6259be62cd18a5b68760ec1db7efe634
diff --git a/lang/sbcl/patches/patch-aa b/lang/sbcl/patches/patch-aa
new file mode 100644
index 00000000000..72292597bec
--- /dev/null
+++ b/lang/sbcl/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2005/06/23 03:00:20 jonb Exp $
+
+--- src/runtime/runtime.c.orig 2005-05-05 21:07:13.000000000 +0000
++++ src/runtime/runtime.c
+@@ -62,7 +62,7 @@
+ #endif
+
+ #ifndef SBCL_HOME
+-#define SBCL_HOME "/usr/local/lib/sbcl/"
++#define SBCL_HOME "@PREFIX@/lib/sbcl/"
+ #endif
+
+
diff --git a/lang/sbcl/patches/patch-ab b/lang/sbcl/patches/patch-ab
new file mode 100644
index 00000000000..7927f3fd8bf
--- /dev/null
+++ b/lang/sbcl/patches/patch-ab
@@ -0,0 +1,22 @@
+$NetBSD: patch-ab,v 1.1.1.1 2005/06/23 03:00:20 jonb Exp $
+
+--- doc/sbcl.1.orig 2005-05-05 21:08:44.000000000 +0000
++++ doc/sbcl.1
+@@ -472,7 +472,7 @@ place to look for support.
+ This variable controls where files like "sbclrc", "sbcl.core", and the
+ add-on "contrib" systems are searched for. If it is not set, then
+ sbcl sets it from a compile-time default location which is usually
+-/usr/local/lib/sbcl/ but may have been changed e.g. by a third-party
++@PREFIX@/lib/sbcl/ but may have been changed e.g. by a third-party
+ packager.
+
+ .SH FILES
+@@ -512,7 +512,7 @@ been installed, the command
+ should give you access to the complete manual. Depending on your
+ installation it may also be available in HTML and PDF formats in eg.
+ .IP
+-.B /usr/local/share/doc/sbcl/
++.B @PREFIX@/share/doc/sbcl/
+ .PP
+ See the SBCL homepage
+ .IP
diff --git a/lang/sbcl/patches/patch-ac b/lang/sbcl/patches/patch-ac
new file mode 100644
index 00000000000..c6147319766
--- /dev/null
+++ b/lang/sbcl/patches/patch-ac
@@ -0,0 +1,18 @@
+$NetBSD: patch-ac,v 1.1.1.1 2005/06/23 03:00:20 jonb Exp $
+
+--- install.sh.orig 2004-10-21 13:00:23.000000000 +0000
++++ install.sh
+@@ -9,7 +9,7 @@ ensure_dirs ()
+ done;
+ }
+
+-INSTALL_ROOT=${INSTALL_ROOT-/usr/local}
+-MAN_DIR=${MAN_DIR-$INSTALL_ROOT/share/man}
+-INFO_DIR=${INFO_DIR-$INSTALL_ROOT/share/info}
++INSTALL_ROOT=${INSTALL_ROOT-@PREFIX@}
++MAN_DIR=${MAN_DIR-$INSTALL_ROOT/man}
++INFO_DIR=${INFO_DIR-$INSTALL_ROOT/info}
+ DOC_DIR=${DOC_DIR-$INSTALL_ROOT/share/doc/sbcl}
+
+ SBCL_SOURCE=`pwd`
+ if [ -n "$SBCL_HOME" -a "$INSTALL_ROOT/lib/sbcl" != "$SBCL_HOME" ];then