summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanagiotis Christopoulos <pchrist@gentoo.org>2012-12-17 10:42:54 +0000
committerPanagiotis Christopoulos <pchrist@gentoo.org>2012-12-17 10:42:54 +0000
commitaec7066aaa42f5c8192160d29623b5671b4424a8 (patch)
treefd5748b9439cf1b2304c9e6d613454fd2fff05a1 /dev-lisp
parentVersion bump; remove old. (diff)
downloadhistorical-aec7066aaa42f5c8192160d29623b5671b4424a8.tar.gz
historical-aec7066aaa42f5c8192160d29623b5671b4424a8.tar.bz2
historical-aec7066aaa42f5c8192160d29623b5671b4424a8.zip
add zlib support to .55-r2. Dropped keywords cause it needs testing. Requested by Kyle Nusbaum on irc.
Package-Manager: portage-2.1.11.38/cvs/Linux x86_64
Diffstat (limited to 'dev-lisp')
-rw-r--r--dev-lisp/sbcl/ChangeLog9
-rw-r--r--dev-lisp/sbcl/Manifest3
-rw-r--r--dev-lisp/sbcl/sbcl-1.0.55-r2.ebuild198
3 files changed, 208 insertions, 2 deletions
diff --git a/dev-lisp/sbcl/ChangeLog b/dev-lisp/sbcl/ChangeLog
index 47b307493b96..1e16680905cb 100644
--- a/dev-lisp/sbcl/ChangeLog
+++ b/dev-lisp/sbcl/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-lisp/sbcl
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lisp/sbcl/ChangeLog,v 1.183 2012/12/14 12:53:31 grozin Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lisp/sbcl/ChangeLog,v 1.184 2012/12/17 10:42:50 pchrist Exp $
+
+*sbcl-1.0.55-r2 (17 Dec 2012)
+
+ 17 Dec 2012; Panagiotis Christopoulos <pchrist@gentoo.org>
+ +sbcl-1.0.55-r2.ebuild:
+ add zlib support to .55-r2. Dropped keywords cause it needs testing.
+ Requested by Kyle Nusbaum on irc.
*sbcl-1.1.2 (14 Dec 2012)
diff --git a/dev-lisp/sbcl/Manifest b/dev-lisp/sbcl/Manifest
index 508eed271d62..89769bc731d7 100644
--- a/dev-lisp/sbcl/Manifest
+++ b/dev-lisp/sbcl/Manifest
@@ -15,6 +15,7 @@ DIST sbcl-1.0.58-x86-linux-binary.tar.bz2 9313124 SHA256 a2195fce096fd7c64acef60
DIST sbcl-1.1.2-source.tar.bz2 3692248 SHA256 0c7a04d4ccf149324ff5919f230e1473757c223cda47623a97d749e018327713 SHA512 5d7cdaaa112da9fbacf7a67330e1981c0ba38aea7e17b307e2cdd6f832fac310868f06d1db659a80826b454a4dd6f3493c13ce0a3fdd1b1b70128832fd606dda WHIRLPOOL 52c5ae291adfcaa29e8ebb8db6faac753fa6be70ac7843af0f452df352bce04d403a2c3df1429de6a67d964f6be8667bb4cebc3cd2955872ff2d48a35e8bfe45
DIST sbcl-1.1.2-x86-64-linux-binary.tar.bz2 9258037 SHA256 4ceecb6e64a88e47e094a047ac0fc27719c3ddb3bce405c1ddbb3d61b2070ced SHA512 fb3f649518ef4d2139f9ac6448f31cf97e81a835a56cb3547103bd729f6e2290d877518353d3cc0b93eb7fee486c9012adc8657be8203359b18f79060450153c WHIRLPOOL 60ebf6153f7aa40b69c111a02912b8f3422f3e39e43c9776a6c607c02bf3b54ec6dd5d94bb836d3a83e0e978d006cae2aa25842afab319140ee07b606fec27db
EBUILD sbcl-1.0.55-r1.ebuild 6161 SHA256 764c48efc217326b8a9862bcc4589df7c2e1ba2b164937a6c008bf7850f383fd SHA512 ff9c03ce7aa6f523efd4e4b6b41639cdafc45fa242dfabe59ef8c5d428bb9a6025b44420663ea38fdfc110b2ff84a13bf5bfc62f8a6a4ad65b20e13ac4e92164 WHIRLPOOL 3585987db968443527fb6d31f71c110638855e19915679d7a89ce9024c21e1c400fc7e4b1de2ca67b9aaded423e6d0b6552c09b160c4d9bff7aa92606ced36bd
+EBUILD sbcl-1.0.55-r2.ebuild 6230 SHA256 02574bec1fb07d17dd604daa7c4279a5125d0e9362247eaa2bde4ac55d0db607 SHA512 125165bf61e89a98f4796c792bc9c39dd8caa9595253bda3b2d50af762a5a597438966cbb5faa0d2e37563104b97185c88718be3d2df6a8fdb56af7bfe0d00c5 WHIRLPOOL 5f945702055282b0a989001f39b5ceb4de62ec750902018a3421562098298c405f23c855b2a00dd5a02b25aedfe3a92eab3de13a19de98670f15f2ebe6197a22
EBUILD sbcl-1.1.2.ebuild 6346 SHA256 c894aaf0a47ec6cb01e36921bbb9ed067aa2c6f0b77fd30b68c06482625f0d48 SHA512 a1923895f9f6e7e46752ef7b883b3e7d8c73680ada3ea00e9af15a5fc9e18fae57c2172469074f4750d02fd154b937a2149e6a223d34c97db6f60659037d4024 WHIRLPOOL f64163a55dc7f70b680515175fa43b030f4b7d901e4a9ef7da90a9739f923f856eb995562ba0e6e6992a6bb5eb3d628d430e9c4bd50f67a4429b82a8201c173f
-MISC ChangeLog 50907 SHA256 2f996bfa5e279e04c85d154be5b8352c2e9a2f45c442733f18baca2eaa40d056 SHA512 64d2d4cc249af2b83d9e2848b11cbdcd7cd408eb34e25ea875d5ea990d60dc855816f3ea0f86f799941354cb9dae3c88807c40000849c0b6123991c0aa6de766 WHIRLPOOL 04756e4b95c6deb1f71743abc70364ff86cd21c7efe2c0b78ecc12851687e3d21f5f0946a4392a627dc2edbe6cdd44b66fa261147be50e6d1ee0e4db3e740ccd
+MISC ChangeLog 51134 SHA256 b22c58c01be97515487adb2659a963d2e74581a2ff45ed9a81b2fdc2576344fd SHA512 21c25be520f64ccd3ede849dbfe1c804952a8e5b6f6de43ec634080e01ffb845b7c05a0e837576ebd628df9691e5d6de4ee728d2ddbf300c5e9f3e7ee96226cb WHIRLPOOL fb8c567841bce54fc5b0d808ffdb02d4f5f88c6f7873660f7884a2ecc13d554b3a5c9472f782ca77098bbcd554a3a784f2cb724d55f15d94778895b132078395
MISC metadata.xml 1750 SHA256 a916cfa8985f73b90f2b8dbaf3cdc9a2a4754cddeb56470636a896ced2bfcc02 SHA512 f5fdb94cb628b3393bee98d4e185e921e96132dda93f0f0d0ab04467edd20fe795430270158f638b434e8d1d183ebd3f1a284169f2ed7cb4ac44162cd74a174f WHIRLPOOL d3829103bc94dabb30b352ec072a4fd207aeed991fd165fde5b776e0d78c18bd88082c0115c003fa2d449e47a6c790902ef424398ed29f42cc55137aca1896b1
diff --git a/dev-lisp/sbcl/sbcl-1.0.55-r2.ebuild b/dev-lisp/sbcl/sbcl-1.0.55-r2.ebuild
new file mode 100644
index 000000000000..e2b77cbdc7c2
--- /dev/null
+++ b/dev-lisp/sbcl/sbcl-1.0.55-r2.ebuild
@@ -0,0 +1,198 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lisp/sbcl/sbcl-1.0.55-r2.ebuild,v 1.1 2012/12/17 10:42:50 pchrist Exp $
+
+EAPI=3
+inherit multilib eutils flag-o-matic pax-utils
+
+#same order as http://www.sbcl.org/platform-table.html
+BV_X86=1.0.37
+BV_AMD64=1.0.37
+BV_PPC=1.0.28
+BV_SPARC=1.0.28
+BV_ALPHA=1.0.28
+
+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 )"
+
+LICENSE="MIT"
+SLOT="0"
+#KEYWORDS="amd64 ppc ~sparc x86"
+KEYWORDS=""
+IUSE="+asdf ldb source +threads +unicode debug doc pax_kernel zlib"
+
+DEPEND="doc? ( sys-apps/texinfo >=media-gfx/graphviz-2.26.0 )
+ pax_kernel? ( sys-apps/paxctl )"
+RDEPEND="asdf? ( >=dev-lisp/gentoo-init-0.1 )"
+
+# Disable warnings about executable stacks, as this won't be fixed soon by upstream
+QA_EXECSTACK="usr/bin/sbcl"
+
+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}"
+}
+
+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"
+ sbcl_feature "$(usep zlib)" ":sb-core-compression"
+ sbcl_feature "$(usep debug)" ":sb-xref-for-internals"
+ cat >> "${CONFIG}" <<'EOF'
+ )
+ list)
+EOF
+ cat "${CONFIG}"
+}
+
+src_unpack() {
+ unpack ${A}
+ mv sbcl-*-linux sbcl-binary
+ cd "${S}"
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/gentoo-fix_install_man.patch
+ epatch "${FILESDIR}"/gentoo-fix_linux-os-c.patch
+ epatch "${FILESDIR}"/gentoo_fix_waitpid_c.patch
+
+ if use !doc; then
+ epatch "${FILESDIR}"/${P}_no_doc_install.patch
+ fi
+
+ # To make the hardened compiler NOT compile with -fPIE -pie
+ if gcc-specs-pie ; then
+ einfo "Disabling PIE..."
+ epatch "${FILESDIR}"/gentoo-fix_nopie_for_hardened_toolchain.patch
+ fi
+
+ use source && sed 's%"$(BUILD_ROOT)%$(MODULE).lisp "$(BUILD_ROOT)%' -i contrib/vanilla-module.mk
+
+ # Some shells(such as dash) don't have "time" as builtin
+ # and we don't want to DEPEND on sys-process/time
+ sed "s,^time ,," -i make.sh
+ sed "s,/lib,/$(get_libdir),g" -i install.sh
+ sed "s,/usr/local/lib,/usr/$(get_libdir),g" -i src/runtime/runtime.c # #define SBCL_HOME ...
+
+ find . -type f -name .cvsignore -delete
+}
+
+src_configure() {
+ # 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\"gentoo-${PR}\"" > branch-version.lisp-expr
+
+ # applying customizations
+ sbcl_apply_features
+}
+
+src_compile() {
+ local bindir="${WORKDIR}"/sbcl-binary
+
+ strip-unsupported-flags ; filter-flags -fomit-frame-pointer
+
+ if use pax_kernel ; then
+ # To disable PaX on hardened systems
+ pax-mark -C "${bindir}"/src/runtime/sbcl
+ pax-mark -mr "${bindir}"/src/runtime/sbcl
+
+ # Hack to disable PaX on second GENESIS stage
+ sed -i -e '/load/!s/^echo \/\/doing warm.*$/&\npaxctl -C \.\/src\/runtime\/sbcl\npaxctl -mprexs \.\/src\/runtime\/sbcl/' \
+ "${S}"/make-target-2.sh || die "Cannot disable PaX on second GENESIS runtime"
+ fi
+
+ # clear the environment to get rid of non-ASCII strings, see bug 174702
+ # set HOME for paludis
+ env - HOME="${T}" \
+ CC="$(tc-getCC)" AS="$(tc-getAS)" LD="$(tc-getLD)" \
+ CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}" ASFLAGS="${ASFLAGS}" LDFLAGS="${LDFLAGS}" \
+ GNUMAKE=make ./make.sh \
+ "sh ${bindir}/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger" \
+ || 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 info html || die "Cannot build internal docs"
+ fi
+}
+
+src_test() {
+ ewarn "Unfortunately, it is known that some tests fail eg."
+ ewarn "run-program.impure.lisp. This is an issue of the upstream's"
+ ewarn "development and not of Gentoo's side. Please, before filing"
+ ewarn "any bug(s) search for older submissions. Thank you."
+ time ( cd tests && sh run-tests.sh )
+}
+
+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/**/*.*")))
+EOF
+ if use asdf; then
+ cat >> "${D}"/etc/sbclrc <<EOF
+
+;;; Setup ASDF2
+(load "/etc/gentoo-init.lisp")
+EOF
+ fi
+
+ unset SBCL_HOME
+ INSTALL_ROOT="${D}/usr" LIB_DIR="/usr/$(get_libdir)" DOC_DIR="${D}/usr/share/doc/${PF}" \
+ sh install.sh || die "install.sh failed"
+
+ # Install documentation
+ # rm empty directories lest paludis complain about this
+ find "${D}" -empty -type d -exec rmdir -v {} +
+
+ if use doc; then
+ dohtml -r doc/manual/
+ doinfo doc/manual/*.info*
+ dohtml -r doc/internals/sbcl-internals
+ doinfo doc/internals/sbcl-internals.info
+ docinto internals-notes && dodoc doc/internals-notes/*
+ else
+ rm -Rv "${D}/usr/share/doc/${PF}"
+ fi
+
+ dodoc BUGS CREDITS INSTALL NEWS OPTIMIZATIONS PRINCIPLES README TLA TODO
+
+ # install the SBCL source
+ if use source; then
+ ./clean.sh
+ cp -av src "${D}/usr/$(get_libdir)/sbcl/"
+ 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}"
+}