diff options
author | Marijn Schouten <hkbst@gentoo.org> | 2008-01-01 23:58:32 +0000 |
---|---|---|
committer | Marijn Schouten <hkbst@gentoo.org> | 2008-01-01 23:58:32 +0000 |
commit | 6064f0749a7e5382a6ead0ea11f89e6a41a8c92d (patch) | |
tree | d87f16d7ab8216197b4065cd6012683a612f53b3 /dev-lisp | |
parent | stick musicbrainz deps to -2*, bug #203784 (diff) | |
download | gentoo-2-6064f0749a7e5382a6ead0ea11f89e6a41a8c92d.tar.gz gentoo-2-6064f0749a7e5382a6ead0ea11f89e6a41a8c92d.tar.bz2 gentoo-2-6064f0749a7e5382a6ead0ea11f89e6a41a8c92d.zip |
bump
(Portage version: 2.1.4_rc14)
Diffstat (limited to 'dev-lisp')
-rw-r--r-- | dev-lisp/sbcl/ChangeLog | 51 | ||||
-rw-r--r-- | dev-lisp/sbcl/files/digest-sbcl-1.0.13 | 24 | ||||
-rw-r--r-- | dev-lisp/sbcl/sbcl-1.0.13.ebuild | 191 |
3 files changed, 264 insertions, 2 deletions
diff --git a/dev-lisp/sbcl/ChangeLog b/dev-lisp/sbcl/ChangeLog index 9061e0ac857f..135b46fcc548 100644 --- a/dev-lisp/sbcl/ChangeLog +++ b/dev-lisp/sbcl/ChangeLog @@ -1,6 +1,53 @@ # ChangeLog for dev-lisp/sbcl -# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lisp/sbcl/ChangeLog,v 1.136 2007/12/19 02:54:06 halcy0n Exp $ +# 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 $ + +*sbcl-1.0.13 (01 Jan 2008) + + 01 Jan 2008; Marijn Schouten <hkBst@gentoo.org> +sbcl-1.0.13.ebuild: + bump: +changes in sbcl-1.0.13 relative to sbcl-1.0.12: + * minor incompatible change: RUN-PROGRAM now uses execvp(3) to find + an executable in the search path, and does so in the child + process's PATH. The function FIND-EXECUTABLE-IN-SEARCH-PATH has + been removed; it can be found in the CVS history, for somebody who + needs that search behavior (see the manual). + * minor incompatible change: compiler policy re. weakening type + checks has changed: now type checks are weakened on if SAFETY < 2 + and SAFETY < SPEED. + * SB-EXT:NATIVE-NAMESTRING takes a new keyword AS-FILE, forcing + unparsing of directory pathnames as files. Analogously, + SB-EXT:PARSE-NATIVE-NAMESTRING takes an AS-DIRECTORY, forcing a + filename to parse into a directory pathname. + * enhancement: implicit generic function creation now signals a + specific style-warning IMPLICIT-GENERIC-FUNCTION-WARNING, which + users can bind handlers for and muffle around calls to LOAD. + * enhancement: RUN-PROGRAM allows unicode arguments and environments + to be used (using the default stream external format), and allows + non-simple strings to be used. (thanks to Harald Hanche-Olsen) + * optimization: COPY-SEQ, FILL, and SUBSEQ are 30-80% faster for + strings and vectors whose element-type or simplicity is not fully + known at compile-time. + * optimization: STRING-TRIM and related functions no longer allocate + a new string when no trimming needs to be performed. These functions + are also faster than before when the input string has been declared + as a simple-string. + * optimization: READ-SEQUENCE on simple-strings is up to 80% faster. + * optimization: READ-LINE is significantly faster for files containing + long lines. + * optimization: non-open coded uses of character comparison operators + (e.g. char=) no longer cons when called with more than one parameter + on platforms supporting dynamic-extent allocation. + * bug fix: READ-SEQUENCE on composite stream wrapping a Gray stream + with STREAM-ELEMENT-TYPE (UNSIGNED-BYTE 8) signalled an error. + * bug fix: COPY-SEQ on lists did not signal a type-error on improper + lists in safe code. + * bug fix: some sequence functions elided bounds checking when + SPEED > SAFETY. + * bug fix: too liberal weakening of union-type checks when SPEED > + SAFETY. + * bug fix: more bogus fixnum declarations in ROOM implementation + have been fixed. 19 Dec 2007; Mark Loeser <halcy0n@gentoo.org> sbcl-1.0.9.ebuild, sbcl-1.0.10.ebuild, sbcl-1.0.11-r1.ebuild, sbcl-1.0.12.ebuild: diff --git a/dev-lisp/sbcl/files/digest-sbcl-1.0.13 b/dev-lisp/sbcl/files/digest-sbcl-1.0.13 new file mode 100644 index 000000000000..3e5478785f11 --- /dev/null +++ b/dev-lisp/sbcl/files/digest-sbcl-1.0.13 @@ -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 e85b4dce822726b7e9304ec60bf87618 sbcl-1.0.13-source.tar.bz2 3185697 +RMD160 f6b26c98649094d87565d271d022e33785b91686 sbcl-1.0.13-source.tar.bz2 3185697 +SHA256 2f503d70d8db712a948d0307991c731d7af73a11d7478a4d94c87ee5b0c4e5d0 sbcl-1.0.13-source.tar.bz2 3185697 diff --git a/dev-lisp/sbcl/sbcl-1.0.13.ebuild b/dev-lisp/sbcl/sbcl-1.0.13.ebuild new file mode 100644 index 000000000000..f18bc7096e21 --- /dev/null +++ b/dev-lisp/sbcl/sbcl-1.0.13.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.13.ebuild,v 1.1 2008/01/01 23:58:31 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 +} |