diff options
author | Marijn Schouten <hkbst@gentoo.org> | 2008-01-28 15:13:59 +0000 |
---|---|---|
committer | Marijn Schouten <hkbst@gentoo.org> | 2008-01-28 15:13:59 +0000 |
commit | de1f09b806bcba545662c2a70af6388ad35c25c6 (patch) | |
tree | f284a272a54558ea7c0f339403578ecc209e3a89 /dev-lisp/sbcl | |
parent | Patch for linux 2.6.24, thanks to Antonio Quartulli <www.quartulli.org>, #207... (diff) | |
download | gentoo-2-de1f09b806bcba545662c2a70af6388ad35c25c6.tar.gz gentoo-2-de1f09b806bcba545662c2a70af6388ad35c25c6.tar.bz2 gentoo-2-de1f09b806bcba545662c2a70af6388ad35c25c6.zip |
bump
(Portage version: 2.1.4)
Diffstat (limited to 'dev-lisp/sbcl')
-rw-r--r-- | dev-lisp/sbcl/ChangeLog | 32 | ||||
-rw-r--r-- | dev-lisp/sbcl/files/digest-sbcl-1.0.14 | 24 | ||||
-rw-r--r-- | dev-lisp/sbcl/sbcl-1.0.14.ebuild | 191 |
3 files changed, 246 insertions, 1 deletions
diff --git a/dev-lisp/sbcl/ChangeLog b/dev-lisp/sbcl/ChangeLog index 135b46fcc548..3c286bc4fcbb 100644 --- a/dev-lisp/sbcl/ChangeLog +++ b/dev-lisp/sbcl/ChangeLog @@ -1,6 +1,36 @@ # ChangeLog for dev-lisp/sbcl # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lisp/sbcl/ChangeLog,v 1.137 2008/01/01 23:58:31 hkbst Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lisp/sbcl/ChangeLog,v 1.138 2008/01/28 15:13:58 hkbst Exp $ + +*sbcl-1.0.14 (28 Jan 2008) + + 28 Jan 2008; Marijn Schouten <hkBst@gentoo.org> +sbcl-1.0.14.ebuild: + bump: + * new feature: SB-EXT:*EXIT-HOOKS* are called when the process exits + (see documentation for details.) + * revived support for OpenBSD (contributed by Josh Elsasser) + * partially fixed bug #108: ROOM no longer suffers from occasional + (AVER (SAP= CURRENT END)) failures . + * fixed bug #402: proclaimed non-standard declarations in DEFMETHOD + bodies no longer cause a WARNING to be signalled. (reported by + Vincent Arkesteijn) + * bug fix: (TRUNCATE X 0) when X is a bignum now correctly signals + DIVISION-BY-ZERO. Similarly for MOD and REM (which suffered due to + the bug in TRUNCATE.) (reported by Michael Weber) + * bug fix: SB-SPROF:REPORT no longer signals an error if there are + no samples. (reported by Andy Hefner) + * bug fix: functions compiled using (COMPILE NIL '(LAMBDA ...)) + no longer appear as (NIL ...) frames in backtraces. + * bug fix: RESOLVE-CONFLICT (and the other name conflict machinery) + is now actually exported from SB-EXT as documented. (reported by + Maciej Katafiasz) + * bug fix: sb-aclrepl now correctly understands how to inspect + single-floats on 64-bit platforms where single-floats are not boxed. + * bug fix: SB-MOP:CLASS-SLOTS now signals an error if the class has not + yet been finalized. (reported by Levente Meszaros) + * bug fix: CLOSE :ABORT T behaves more correctly on Windows. + * DESCRIBE and (DOCUMENTATION ... 'OPTIMIZE) describe meaning of + SBCL-specific optimize qualities. *sbcl-1.0.13 (01 Jan 2008) diff --git a/dev-lisp/sbcl/files/digest-sbcl-1.0.14 b/dev-lisp/sbcl/files/digest-sbcl-1.0.14 new file mode 100644 index 000000000000..17d339cdaa00 --- /dev/null +++ b/dev-lisp/sbcl/files/digest-sbcl-1.0.14 @@ -0,0 +1,24 @@ +MD5 f6b5eddb055df93b990ea137b667df20 sbcl-0.9.12-alpha-linux-binary.tar.bz2 7147697 +RMD160 09fa934242a9da6c765056420f694c8f23bba925 sbcl-0.9.12-alpha-linux-binary.tar.bz2 7147697 +SHA256 3a16825480ca476c986bc18d1a1a2c5cad5a1e71ff6ba21d5c5011f69b119245 sbcl-0.9.12-alpha-linux-binary.tar.bz2 7147697 +MD5 a7cbf41b8fb27f8b0b9bff2bda2f63e0 sbcl-0.9.17-sparc-linux-binary.tar.bz2 7322996 +RMD160 b9887c767ddc693fade88b04cc919859aef1b79a sbcl-0.9.17-sparc-linux-binary.tar.bz2 7322996 +SHA256 9238d9de88be3d05c3369cd15f52ae2819a82e7e55f9b85133c947d102ce4059 sbcl-0.9.17-sparc-linux-binary.tar.bz2 7322996 +MD5 ba1d967bbdba88da7c8ea965c5508f26 sbcl-1.0-powerpc-linux-binary.tar.bz2 6841127 +RMD160 11cba4cec1efed9d9b322ab80d58ec63b93f66e4 sbcl-1.0-powerpc-linux-binary.tar.bz2 6841127 +SHA256 912bdbee882907b5d4437fb9611637e31801db5303ddcd34f9514a386b0b995f sbcl-1.0-powerpc-linux-binary.tar.bz2 6841127 +MD5 94e8ad74e7176053ad8dc71b9e70be77 sbcl-1.0.12-mips-linux-binary.tar.bz2 7778180 +RMD160 f44c4b90041fc73e380fe61d54f2cb78e0f30ad3 sbcl-1.0.12-mips-linux-binary.tar.bz2 7778180 +SHA256 2b3928adc6d837fc7fc3b634d707cab6d635a3e8dc6f6a7388a655ac7263f9ab sbcl-1.0.12-mips-linux-binary.tar.bz2 7778180 +MD5 b7b916e9a1c4fe8651a0f710fcf3a853 sbcl-1.0.12-mipsel-linux-binary.tar.bz2 7827012 +RMD160 c99903449fffbbd58cbb6680f1f61d9ca54fb0f8 sbcl-1.0.12-mipsel-linux-binary.tar.bz2 7827012 +SHA256 08bd5c5bf23ef0ef6aa21dd7d73b2151c773d730965378d95327ef83cabe5a8d sbcl-1.0.12-mipsel-linux-binary.tar.bz2 7827012 +MD5 cf43526dfe4c097498292f926580db56 sbcl-1.0.12-x86-64-linux-binary.tar.bz2 7914115 +RMD160 6806dc677628eb423a51ddd2a517e3a9280f12dd sbcl-1.0.12-x86-64-linux-binary.tar.bz2 7914115 +SHA256 03fd47d5173b54b4aa747f8f688b98f235faabb00b9c2d3da97be45dedcee5aa sbcl-1.0.12-x86-64-linux-binary.tar.bz2 7914115 +MD5 9c80b4ea9019b6a70dba84614b95aba7 sbcl-1.0.12-x86-linux-binary.tar.bz2 8131767 +RMD160 317139e46949a617dae539f609a6e807d6bdff32 sbcl-1.0.12-x86-linux-binary.tar.bz2 8131767 +SHA256 07413233d21039e44704c83c1bc911e1bf52ec4cf3ae7013cfa1cfb822d1cce2 sbcl-1.0.12-x86-linux-binary.tar.bz2 8131767 +MD5 07fd7e865fb6052a82e1efc3f4b9899e sbcl-1.0.14-source.tar.bz2 3194555 +RMD160 546663988c3dc01edd8afe276baf8b2db693e125 sbcl-1.0.14-source.tar.bz2 3194555 +SHA256 7acc55123811fb135448e4f8ccc98d66e6b9b55d5f4c823b6da4b7cd9b4aeba1 sbcl-1.0.14-source.tar.bz2 3194555 diff --git a/dev-lisp/sbcl/sbcl-1.0.14.ebuild b/dev-lisp/sbcl/sbcl-1.0.14.ebuild new file mode 100644 index 000000000000..de4a9be13f11 --- /dev/null +++ b/dev-lisp/sbcl/sbcl-1.0.14.ebuild @@ -0,0 +1,191 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lisp/sbcl/sbcl-1.0.14.ebuild,v 1.1 2008/01/28 15:13:58 hkbst Exp $ + +inherit common-lisp-common-3 eutils flag-o-matic + +#same order as http://www.sbcl.org/platform-table.html +BV_X86=1.0.12 +BV_AMD64=1.0.12 +BV_PPC=1.0 +BV_SPARC=0.9.17 +BV_ALPHA=0.9.12 +BV_MIPS=1.0.12 +BV_MIPSEL=1.0.12 + +DESCRIPTION="Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp." +HOMEPAGE="http://sbcl.sourceforge.net/" +SRC_URI="mirror://sourceforge/sbcl/${P}-source.tar.bz2 + x86? ( mirror://sourceforge/sbcl/${PN}-${BV_X86}-x86-linux-binary.tar.bz2 ) + amd64? ( mirror://sourceforge/sbcl/${PN}-${BV_AMD64}-x86-64-linux-binary.tar.bz2 ) + ppc? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC}-powerpc-linux-binary.tar.bz2 ) + sparc? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC}-sparc-linux-binary.tar.bz2 ) + alpha? ( mirror://sourceforge/sbcl/${PN}-${BV_ALPHA}-alpha-linux-binary.tar.bz2 ) + mips? ( !cobalt? ( mirror://sourceforge/sbcl/${PN}-${BV_MIPS}-mips-linux-binary.tar.bz2 ) ) + mips? ( cobalt? ( mirror://sourceforge/sbcl/${PN}-${BV_MIPSEL}-mipsel-linux-binary.tar.bz2 ) )" + +# SRC_URI is part of the metadata cache; it's evaluated contents must be independent of the system that creates the metadata cache. +# ILLEGAL: mips? ( mirror://sourceforge/sbcl/${PN}-${BV_MIPS}-$([[$(tc-endian) = big]] && echo mips || echo mipsel)-linux-binary.tar.bz2 ) + +LICENSE="MIT" +SLOT="0" + +KEYWORDS="-* ~amd64 ~ppc ~sparc ~x86" + +IUSE="ldb source threads unicode doc cobalt" + +DEPEND="dev-lisp/gentoo-init + doc? ( sys-apps/texinfo media-gfx/graphviz )" + +PROVIDE="virtual/commonlisp" + +pkg_setup() { + if built_with_use sys-devel/gcc hardened && gcc-config -c | grep -qv vanilla; then + eerror "So-called \"hardened\" compiler features are incompatible with SBCL. You" + eerror "must use gcc-config to select a profile with non-hardened features" + eerror "(the \"vanilla\" profile) and \"source /etc/profile\" before continuing." + die + fi + if (use x86 || use amd64) && has_version "<sys-libs/glibc-2.6" \ + && ! built_with_use sys-libs/glibc nptl; then + eerror "Building SBCL without NPTL support on at least x86 and amd64" + eerror "architectures is not a supported configuration in Gentoo. Please" + eerror "refer to Bug #119016 for more information." + die + fi +} + +CONFIG="${S}/customize-target-features.lisp" +ENVD="${T}/50sbcl" + +usep() { + use ${1} && echo "true" || echo "false" +} + +sbcl_feature() { + echo "$( [[ $1 == "true" ]] && echo "(enable $2)" || echo "(disable $2)")" >> "${CONFIG}" +# if [[ $1 == "true" ]]; then echo "(enable $2)" >> "${CONFIG}"; fi +# if [[ $1 == "false" ]]; then echo "(disable $2)" >> "${CONFIG}"; fi +} + +sbcl_apply_features() { + cat > "${CONFIG}" <<'EOF' +(lambda (list) + (flet ((enable (x) (pushnew x list)) + (disable (x) (setf list (remove x list)))) +EOF + if use x86 || use amd64; then + sbcl_feature "$(usep threads)" ":sb-thread" + fi + sbcl_feature "$(usep ldb)" ":sb-ldb" + sbcl_feature "false" ":sb-test" + sbcl_feature "$(usep unicode)" ":sb-unicode" + cat >> "${CONFIG}" <<'EOF' + ) + list) +EOF + cat "${CONFIG}" +} + +src_unpack() { + unpack ${A} + mv sbcl-*-linux sbcl-binary + cd "${S}" + +# epatch "${FILESDIR}/disable-tests-gentoo-${PV}.patch" + use source && sed 's%"$(BUILD_ROOT)%$(MODULE).lisp "$(BUILD_ROOT)%' -i contrib/vanilla-module.mk + + sed "s,/lib,/$(get_libdir),g" -i "${S}/install.sh" + sed "s,/usr/local/lib,/usr/$(get_libdir),g" -i "${S}/src/runtime/runtime.c" # #define SBCL_HOME ... + + # customizing SBCL version as per + # http://sbcl.cvs.sourceforge.net/sbcl/sbcl/doc/PACKAGING-SBCL.txt?view=markup + echo -e ";;; Auto-generated by Gentoo\n\"${PVR}-gentoo\"" > "${S}/version.lisp-expr" + + # applying customizations + sbcl_apply_features + + find "${S}" -type f -name .cvsignore -print0 | xargs -0 rm -f + find "${S}" -depth -type d -name CVS -or -name .git -print0 | xargs -0 rm -rf + find "${S}" -type f -name \*.c -print0 | xargs -0 chmod 644 +} + +src_compile() { + local bindir="${WORKDIR}"/sbcl-binary + + filter-ldflags -Wl,--as-needed --as-needed # see Bug #132992 + + # clear the environment to get rid of non-ASCII strings, see bug 174702 + # set HOME for paludis + env - HOME="${T}" \ + PATH="${bindir}/src/runtime:${PATH}" SBCL_HOME="${bindir}/output" GNUMAKE=make ./make.sh \ + "sbcl --sysinit /dev/null --userinit /dev/null --disable-debugger --core ${bindir}/output/sbcl.core" \ + || die "make failed" + + # need to set HOME because libpango(used by graphviz) complains about it + if use doc; then + env - HOME="${T}" make -C doc/manual info html || die "Cannot build manual" + env - HOME="${T}" make -C doc/internals html || die "Cannot build internal docs" + fi +} + +src_test() { +# FILES="exhaust.impure.lisp" + cd tests + sh run-tests.sh +# sh run-tests.sh ${FILES} +# sh run-tests.sh --break-on-failure ${FILES} +} + +src_install() { + # install system-wide initfile + dodir /etc/ + cat > "${D}"/etc/sbclrc <<EOF +;;; The following is required if you want source location functions to +;;; work in SLIME, for example. + +(setf (logical-pathname-translations "SYS") + '(("SYS:SRC;**;*.*.*" #p"/usr/$(get_libdir)/sbcl/src/**/*.*") + ("SYS:CONTRIB;**;*.*.*" #p"/usr/$(get_libdir)/sbcl/**/*.*"))) + +;;; Setup ASDF +(load "/etc/gentoo-init.lisp") +EOF + + # Install documentation + dodir /usr/share/man + dodir /usr/share/doc/${PF} + unset SBCL_HOME + INSTALL_ROOT="${D}"/usr DOC_DIR="${D}"/usr/share/doc/${PF} sh install.sh || die "install.sh failed" + + doman doc/sbcl-asdf-install.1 + + dodoc BUGS CREDITS INSTALL NEWS OPTIMIZATIONS PRINCIPLES README STYLE SUPPORT TLA TODO + + if use doc; then + dohtml doc/html/* + doinfo "${S}"/doc/manual/*.info* + dohtml -r "${S}"/doc/internals/sbcl-internals + fi + + # install the SBCL source + if use source; then + cp -pPR "${S}"/src "${D}/usr/$(get_libdir)"/sbcl + find "${D}/usr/$(get_libdir)/sbcl/src" -type f -name '*.fasl' -print0 | xargs -0 rm -f + fi + + # necessary for running newly-saved images + echo "SBCL_HOME=/usr/$(get_libdir)/${PN}" > "${ENVD}" + echo "SBCL_SOURCE_ROOT=/usr/$(get_libdir)/${PN}/src" >> "${ENVD}" + doenvd "${ENVD}" + + impl-save-timestamp-hack sbcl +} + +pkg_postinst() { + standard-impl-postinst sbcl +} + +pkg_postrm() { + standard-impl-postrm sbcl /usr/bin/sbcl +} |