From aefcec27c15eb3e266073b9ea1bdcdfc62bcb248 Mon Sep 17 00:00:00 2001 From: Joshua Ross Date: Thu, 30 Nov 2006 05:31:24 +0000 Subject: [PATCH] Initial adding of version 1.0 Package-Manager: portage-2.1.2_rc2-r3 --- dev-lisp/sbcl/ChangeLog | 7 +- dev-lisp/sbcl/Manifest | 26 ++-- dev-lisp/sbcl/files/digest-sbcl-1.0 | 21 ++++ dev-lisp/sbcl/sbcl-1.0.ebuild | 183 ++++++++++++++++++++++++++++ 4 files changed, 222 insertions(+), 15 deletions(-) create mode 100644 dev-lisp/sbcl/files/digest-sbcl-1.0 create mode 100644 dev-lisp/sbcl/sbcl-1.0.ebuild diff --git a/dev-lisp/sbcl/ChangeLog b/dev-lisp/sbcl/ChangeLog index 69f69155c32b..8e3446401b95 100644 --- a/dev-lisp/sbcl/ChangeLog +++ b/dev-lisp/sbcl/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-lisp/sbcl # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lisp/sbcl/ChangeLog,v 1.96 2006/11/14 06:27:31 mkennedy Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lisp/sbcl/ChangeLog,v 1.97 2006/11/30 05:31:23 joslwah Exp $ + +*sbcl-1.0 (30 Nov 2006) + + 30 Nov 2006; Joshua +sbcl-1.0.ebuild: + Initial commit of 1.0. 14 Nov 2006; Matthew Kennedy sbcl-0.9.18.ebuild: Install sbclrc to /etc, not /. diff --git a/dev-lisp/sbcl/Manifest b/dev-lisp/sbcl/Manifest index 8aa8a346c1f7..741b019606a5 100644 --- a/dev-lisp/sbcl/Manifest +++ b/dev-lisp/sbcl/Manifest @@ -1,6 +1,3 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - AUX 0.9.17/README.Gentoo 1146 RMD160 fa2614a2041834c3cb5d65ce0cbdf697fc9fb1c8 SHA1 6c6535d466828c8d37edf7f6f63a4613aec13e45 SHA256 161daf1a10d025cf5ac243a8d7e79d54b13903049dea892a39d3da4cf0ddcd20 MD5 db78fd713728972c92af140e21a0468b files/0.9.17/README.Gentoo 1146 RMD160 fa2614a2041834c3cb5d65ce0cbdf697fc9fb1c8 files/0.9.17/README.Gentoo 1146 @@ -107,6 +104,7 @@ DIST sbcl-0.9.3-html.tar.bz2 113165 DIST sbcl-0.9.3-source.tar.bz2 2582754 DIST sbcl-0.9.4-html.tar.bz2 115151 DIST sbcl-0.9.4-source.tar.bz2 2607058 +DIST sbcl-1.0-source.tar.bz2 2891666 RMD160 1a192869acec8eb5605e1dbd46a53fc05f977479 SHA1 7c9d0cafff57eb632fd566050c78f557eb399976 SHA256 5d33383963ef8ae3ff1be7871aeb0df196923ab5b78513aa666214b52c2f5cfb EBUILD sbcl-0.9.17.ebuild 5804 RMD160 fb12a1652a879b37511ee4122fed499d3d0f694c SHA1 3ab08f7d660386ff8912dfa7a7257500a53b7062 SHA256 38fd74085b568644932653a8775ebb2a8188b50fb79537a0130a70ce45baaf6b MD5 1e67e6783921dc2d8f067832b3145e73 sbcl-0.9.17.ebuild 5804 RMD160 fb12a1652a879b37511ee4122fed499d3d0f694c sbcl-0.9.17.ebuild 5804 @@ -123,10 +121,14 @@ EBUILD sbcl-0.9.4.ebuild 5046 RMD160 363ce109869cf85377908417bcf351ddbd73a6f4 SH MD5 845ba0e216f2adf5eb504a5eb06b9037 sbcl-0.9.4.ebuild 5046 RMD160 363ce109869cf85377908417bcf351ddbd73a6f4 sbcl-0.9.4.ebuild 5046 SHA256 4a1654e23a4bb8b0702ce75af99b86d158582885689691c5f3931346518a3523 sbcl-0.9.4.ebuild 5046 -MISC ChangeLog 33237 RMD160 3deb23efde2b63c8a4aae481092e994e835ea166 SHA1 806ba0aa3c3652444f1286c810081fd0a0844194 SHA256 f2f9566c86af09d0e6f3e8f963f18cb73bbf7abada798dc84a2d05e10b759b2d -MD5 f6888d6fdeb8e2138e4026d6bac7a314 ChangeLog 33237 -RMD160 3deb23efde2b63c8a4aae481092e994e835ea166 ChangeLog 33237 -SHA256 f2f9566c86af09d0e6f3e8f963f18cb73bbf7abada798dc84a2d05e10b759b2d ChangeLog 33237 +EBUILD sbcl-1.0.ebuild 5449 RMD160 a46de7455017c2bd1669851cd2ef48f02bd88f8b SHA1 fa308ef8067d8531c1f28638cb0d592dc8780e8d SHA256 dfc135980ba4f507ddce344498d91d77f71abf7962ec4855a263103bf7250ab2 +MD5 c8b161e82fd796dd6a5f39e5c127bd8e sbcl-1.0.ebuild 5449 +RMD160 a46de7455017c2bd1669851cd2ef48f02bd88f8b sbcl-1.0.ebuild 5449 +SHA256 dfc135980ba4f507ddce344498d91d77f71abf7962ec4855a263103bf7250ab2 sbcl-1.0.ebuild 5449 +MISC ChangeLog 33348 RMD160 55f63e61a9bbf946ff9795d0cb35cb53327b0c55 SHA1 17a0a778874fb53a9d848a1f18ddfaf3ba1b6e39 SHA256 9b4017ffdc609234c13ab39e8910ee9ed7af928802bdbdb41ad67e5db3cd812f +MD5 5051bc7fdcd6ec993840eb7d0021a757 ChangeLog 33348 +RMD160 55f63e61a9bbf946ff9795d0cb35cb53327b0c55 ChangeLog 33348 +SHA256 9b4017ffdc609234c13ab39e8910ee9ed7af928802bdbdb41ad67e5db3cd812f ChangeLog 33348 MISC metadata.xml 1004 RMD160 79462681370688e5a3700593b5b6c9401bb7ccde SHA1 b800796ace836a62cd9d500487f3c6e21d89f5f8 SHA256 4cb74fa43cdc4e8291063beae14ca74fb605508225913474763ad3fb7e6985d7 MD5 276b2c3efa0ff299306d94ad4704a9e2 metadata.xml 1004 RMD160 79462681370688e5a3700593b5b6c9401bb7ccde metadata.xml 1004 @@ -143,10 +145,6 @@ SHA256 b638fadfc63bbb56450912ea81254fe7247f380784bf192fbaccb04ad9207f4d files/di MD5 6bc193cb6d6551be1c08d61676d8bd35 files/digest-sbcl-0.9.4 1199 RMD160 0ba609ac3dc9d32cfb2fd03e215186a6e42cbe2b files/digest-sbcl-0.9.4 1199 SHA256 227a2c49bf0029f271bb40fac5c2f46ed5ef34c1e45b83d553b7d9b64f4cd5e6 files/digest-sbcl-0.9.4 1199 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.5 (GNU/Linux) - -iD8DBQFFWWHgyiNZaEAZA+ARAn7lAJ9mPlRtve1typfAeq8nSUdd1iq+/QCdGrEc -LUx7HBVjcsL3uZsj7Yuwq+g= -=6mxO ------END PGP SIGNATURE----- +MD5 11d3e0536ae7f037029d12c7e93cf0a5 files/digest-sbcl-1.0 2050 +RMD160 6dc6ac02fa63ec683ca93fa5aeaaaf020bd1b536 files/digest-sbcl-1.0 2050 +SHA256 b0684083b96c6706dfa877e082e04d5ee49bfcc3808d77743f903036158f6edb files/digest-sbcl-1.0 2050 diff --git a/dev-lisp/sbcl/files/digest-sbcl-1.0 b/dev-lisp/sbcl/files/digest-sbcl-1.0 new file mode 100644 index 000000000000..4feb83f65f26 --- /dev/null +++ b/dev-lisp/sbcl/files/digest-sbcl-1.0 @@ -0,0 +1,21 @@ +MD5 29ad145f1fc45c65b8d65b39013bc43f sbcl-0.7.10-mips-linux-binary.tar.gz 7473873 +RMD160 d9c34e109dd307bfe652ef57d5837c83cbc60055 sbcl-0.7.10-mips-linux-binary.tar.gz 7473873 +SHA256 90bff80973c3e295b5ecdd0b59525583ae04cb2d5967378af65e04ac77fad660 sbcl-0.7.10-mips-linux-binary.tar.gz 7473873 +MD5 3a72d0785ce0a8e02f9af632c2a4f217 sbcl-0.8.15-powerpc-linux-binary.tar.bz2 6656148 +RMD160 0e73b6e96f0170d44be60dfde8bf580596d3a6ee sbcl-0.8.15-powerpc-linux-binary.tar.bz2 6656148 +SHA256 fef30a771530096c4f190c60d9d7c396844fc67a3ec2bbaae9b0ff497f925129 sbcl-0.8.15-powerpc-linux-binary.tar.bz2 6656148 +MD5 029b85186984d0bfc8b49c4de1e8e45e sbcl-0.8.15-sparc-linux-binary.tar.bz2 6903090 +RMD160 41015dcfb41caf93b54a02a0f55eec994309accf sbcl-0.8.15-sparc-linux-binary.tar.bz2 6903090 +SHA256 f0bc5fc11e9c0f1651ebe773b5c7e972da589cc4af2811d25438a099f490cc7d sbcl-0.8.15-sparc-linux-binary.tar.bz2 6903090 +MD5 46d67859cac0d3b748310a93311b308a sbcl-0.9.11a-powerpc-darwin-binary.tar.bz2 6766401 +RMD160 c60dba2a0278acf787d53a93ebac4de03c1d5ed8 sbcl-0.9.11a-powerpc-darwin-binary.tar.bz2 6766401 +SHA256 5cb563b19d1dd828e55bde9763404f5b908c9f5a043ba8c443415291b969b3d9 sbcl-0.9.11a-powerpc-darwin-binary.tar.bz2 6766401 +MD5 033b04259a929e71393281981fdf1f7a sbcl-0.9.14-x86-64-linux-binary.tar.bz2 7225013 +RMD160 7a544bedebd4389eb75fe67bb48c0d25f677bc0d sbcl-0.9.14-x86-64-linux-binary.tar.bz2 7225013 +SHA256 3db39ce36b1efc42cf99fc1be355aa8c0107e60ffb56f50bb001cc9b5cab70eb sbcl-0.9.14-x86-64-linux-binary.tar.bz2 7225013 +MD5 5a703f5dd196ed246fd84f4f58314995 sbcl-0.9.14-x86-linux-binary.tar.bz2 7517927 +RMD160 039968db40389a481da29dcc310aa05a50ee6ac6 sbcl-0.9.14-x86-linux-binary.tar.bz2 7517927 +SHA256 f1add7f9c76e1ea45f17b752a62f5ad5d1fb4d27d06ae5ebfed05629bba9fafa sbcl-0.9.14-x86-linux-binary.tar.bz2 7517927 +MD5 52e07dcc8eef0dc45ecdc35e46d4999f sbcl-1.0-source.tar.bz2 2891666 +RMD160 1a192869acec8eb5605e1dbd46a53fc05f977479 sbcl-1.0-source.tar.bz2 2891666 +SHA256 5d33383963ef8ae3ff1be7871aeb0df196923ab5b78513aa666214b52c2f5cfb sbcl-1.0-source.tar.bz2 2891666 diff --git a/dev-lisp/sbcl/sbcl-1.0.ebuild b/dev-lisp/sbcl/sbcl-1.0.ebuild new file mode 100644 index 000000000000..29f4edc68e67 --- /dev/null +++ b/dev-lisp/sbcl/sbcl-1.0.ebuild @@ -0,0 +1,183 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lisp/sbcl/sbcl-1.0.ebuild,v 1.1 2006/11/30 05:31:23 joslwah Exp $ + +inherit common-lisp-common-3 eutils flag-o-matic + +BV_X86=0.9.14 +BV_PPC=0.8.15 +BV_SPARC=0.8.15 +BV_MIPS=0.7.10 +BV_AMD64=0.9.14 +BV_PPC_MACOS=0.9.11a + +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 ) + ppc? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC}-powerpc-linux-binary.tar.bz2 ) + sparc? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC}-sparc-linux-binary.tar.bz2 ) + mips? ( mirror://sourceforge/sbcl/${PN}-${BV_MIPS}-mips-linux-binary.tar.gz ) + amd64? ( mirror://sourceforge/sbcl/${PN}-${BV_AMD64}-x86-64-linux-binary.tar.bz2 ) + ppc-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC_MACOS}-powerpc-darwin-binary.tar.bz2 )" + +LICENSE="MIT" +SLOT="0" + +KEYWORDS="~amd64 ~mips ~ppc ~ppc-macos ~sparc ~x86" + +IUSE="ldb source threads unicode doc" + +DEPEND=">=dev-lisp/cl-asdf-1.84 + doc? ( sys-apps/texinfo )" + +PROVIDE="virtual/commonlisp" + +sbcl_einfo() { + local method + case $# in + 0) method=einfo;; + 1) method=$1;; + *) die "Invalid number of arguments to scbl_einfo" + esac + $method ""; while read line; do $method "${line}"; done; $method "" +} + +pkg_setup() { + if built_with_use sys-devel/gcc hardened && gcc-config -c |grep -qv vanilla; then + sbcl_einfo eerror <<'EOF' +So-called "hardened" compiler features are incompatible with SBCL. You +must use gcc-config to select a profile with non-hardened features +(the "vanilla" profile) and "source /etc/profile" before continuing. +EOF + die + fi + if ! built_with_use sys-libs/glibc nptl && (use x86 || use amd64); then + sbcl_einfo eerror <<'EOF' +Building SBCL without NPTL support on at least x86 and amd64 +architectures is not a supported configuration in Gentoo. Please +refer to Bug #119016 for more information. +EOF + die + fi + if (use ppc-macos || use ppc) && use ldb; then + sbcl_einfo ewarn <<'EOF' +Building SBCL on PPC with LDB support is not a supported configuration +in Gentoo. Please refer to Bug #121830 for more information. +Continuing with LDB support disabled. +EOF + fi +} + +src_unpack() { + local a + # `use ppc` returns true for both ppc linux and ppc-macos systems + # specify + if use ppc-macos ; then + a="${PN}-${BV_PPC_MACOS}-powerpc-darwin-binary.tar.bz2" + elif use ppc; then + a="${PN}-${BV_PPC}-powerpc-linux-binary.tar.bz2" + else + for a in ${A}; do [[ $a == *binary* ]] && break; done + fi + unpack $a + mv ${PN}* sbcl-binary || die + unpack ${P}-source.tar.bz2 + pushd ${S} + epatch ${FILESDIR}/disable-tests-gentoo.patch || die + epatch ${FILESDIR}/vanilla-module-install-source-gentoo.patch || die + popd + sed -i "s,/lib,/$(get_libdir),g" ${S}/install.sh + sed -i "s,/usr/local/lib,/usr/$(get_libdir),g" \ + ${S}/src/runtime/runtime.c # #define SBCL_HOME ... + cat >${S}/customize-target-features.lisp <<'EOF' +(lambda (list) + (flet ((enable (x) + (pushnew x list)) + (disable (x) + (setf list (remove x list)))) +EOF + if use x86 || use amd64; then + use threads && echo '(enable :sb-thread)' \ + >>${S}/customize-target-features.lisp + fi + if (use ppc-macos || use ppc) && use ldb; then + sbcl_einfo ewarn <<'EOF' +Excluding LDB support for ppc-macos or ppc. +EOF + else + use ldb \ + && echo '(enable :sb-ldb)' \ + >>${S}/customize-target-features.lisp + fi + echo '(disable :sb-test)' >>${S}/customize-target-features.lisp + ! use unicode \ + && echo '(disable :sb-unicode)' \ + >>${S}/customize-target-features.lisp + cat >>${S}/customize-target-features.lisp <<'EOF' + ) + list) +EOF + cat ${S}/customize-target-features.lisp + + find ${S} -type f -name .cvsignore -print0 | xargs -0 rm -f + find ${S} -depth -type d -name CVS -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 + + LANG=C 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 + if use doc; then + cd ${S}/doc/manual + LANG=C make info html || die + fi +} + +src_install() { + unset SBCL_HOME + dodir /etc/ + cat >${D}/etc/sbclrc <