summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Grozin <grozin@gentoo.org>2014-08-03 04:29:29 +0000
committerAndrey Grozin <grozin@gentoo.org>2014-08-03 04:29:29 +0000
commitc5196c91213fc69371137a54fc073472aae51216 (patch)
tree46d094d1e0d637bdc68b801a8bade82c21474bf2 /dev-lisp/sbcl
parentold (diff)
downloadhistorical-c5196c91213fc69371137a54fc073472aae51216.tar.gz
historical-c5196c91213fc69371137a54fc073472aae51216.tar.bz2
historical-c5196c91213fc69371137a54fc073472aae51216.zip
Version bump
Package-Manager: portage-2.2.10/cvs/Linux i686 Manifest-Sign-Key: 0x3AFFCE974D34BD8C!
Diffstat (limited to 'dev-lisp/sbcl')
-rw-r--r--dev-lisp/sbcl/ChangeLog8
-rw-r--r--dev-lisp/sbcl/Manifest28
-rw-r--r--dev-lisp/sbcl/files/bsd-sockets-test-1.2.patch24
-rw-r--r--dev-lisp/sbcl/sbcl-1.2.2.ebuild207
4 files changed, 265 insertions, 2 deletions
diff --git a/dev-lisp/sbcl/ChangeLog b/dev-lisp/sbcl/ChangeLog
index 21f64ce5e2b1..1cd3faac9570 100644
--- a/dev-lisp/sbcl/ChangeLog
+++ b/dev-lisp/sbcl/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-lisp/sbcl
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lisp/sbcl/ChangeLog,v 1.206 2014/07/11 08:51:57 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lisp/sbcl/ChangeLog,v 1.207 2014/08/03 04:29:08 grozin Exp $
+
+*sbcl-1.2.2 (03 Aug 2014)
+
+ 03 Aug 2014; Andrey Grozin <grozin@gentoo.org> +sbcl-1.2.2.ebuild,
+ +files/bsd-sockets-test-1.2.patch:
+ Version bump
11 Jul 2014; Patrick Lauer <patrick@gentoo.org> sbcl-1.1.18.ebuild:
Stable on amd64 #511170
diff --git a/dev-lisp/sbcl/Manifest b/dev-lisp/sbcl/Manifest
index 3e7aab5dabe6..61f84264fabd 100644
--- a/dev-lisp/sbcl/Manifest
+++ b/dev-lisp/sbcl/Manifest
@@ -1,3 +1,7 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+AUX bsd-sockets-test-1.2.patch 803 SHA256 5fd1abd8992903e60b1f6fe19dcd1b7ce7c7cb57fcfede8830f1d5d264ea3b07 SHA512 07199deb9315f749ea7998d8990cc5f73833d80cef16de77c0bcafb24eb79eb2c2495d0768100b9322c21a70949463b0fe007e15b45ef248e1c74ebd6365b733 WHIRLPOOL 43ca5ea5bfb24ad30033184a0d0e31a86688da9b3ae879f448aafdcae6ded6ca0091e48c89cfc8314903ba7ac368e32496f7c384471c0fec8686f16b3b9fed96
AUX bsd-sockets-test.patch 748 SHA256 e23fff91524c4a5c12e5e6b088c9b9785ea86854690583b44118f4ed56fa423d SHA512 d46e08c92d8bf98095762b1a8601c9f9292ea41f55f0089f7fd150977b9cacdf7edd9340fab4242a9c100d7023bd7f12e4dd492c435bbdb2d849a6aba6907e42 WHIRLPOOL 435ac6780f8412fe982acc75902e577f9ff266ce05b14f629e70492a115f1bba5e84d9787fff9a595a549b7fb4e275bdfbd4a5c6701872d9641383663aceb6c7
AUX concurrency-test.patch 924 SHA256 363aa5f82c4c238df4459deb345d63185c7a3bc557880831d628753af8b48a13 SHA512 831860e23a430959de1833c542cee546d68d62cdb7ca10a45f338b35cf37b4521036eb721ac5a06747ab2f018b3fea7b47d5a25f1f52d669e41ea17716698462 WHIRLPOOL f55031d3b0483d942fa3267dc2f6c51227bc65d3e461b8bc70bc1b2fae694f8e5e82ed1bef53daf6ef4ace6bd6e56866ffbc4713f315c049419d1aca9d9c9a28
AUX gentoo-fix_install_man.patch 399 SHA256 7e3e3f84be6d4dae51953825daaf26d8fe1482fd2f4e9d017297dd8ef55ebe47 SHA512 bc5118ddf2fd851dcabf773cc7443fa0d3f5a5b83715173110f9164c631faaf8c2d6b247f7ac205da23bb388ff459eba228deeaa2a45202870b7f97376564030 WHIRLPOOL abc43631045e56b9d373c3966eb1d2f5575d258db239e6f1f9a2247492fcb0aab8d000ece39c504aeec5462f7e0ce7e6efc3a215e5776fa64d460b20c0f52a21
@@ -21,11 +25,33 @@ DIST sbcl-1.1.17-source.tar.bz2 4263128 SHA256 11895b41ce664bf128e1ad5c2e59a8f14
DIST sbcl-1.1.17-x86-64-linux-binary.tar.bz2 9192043 SHA256 0aecea084c885c2c8e52269dd866e6cd8eeb9c2a90debcc2fefa31f3e3807411 SHA512 b47eaf8ef2d351d23f7a04466bdfdd6d85113611cb468bcbce146457b0f10d7a54736dcce2c019a69a5ee69cc0b703468d07b70b7b5c96bceb57fa36840a3da2 WHIRLPOOL a23444dda1c3e233c77a8eaccd75753c419c9ba6e6d06849e7e89bcec8569e11096548f8050fc488b9efa16590f2637ca0dec4b22ab0ebcb7dd2ad2f73c5c2b6
DIST sbcl-1.1.18-source.tar.bz2 4272315 SHA256 933238392a2a3533b4088b86c4fbd0704a5573c1c66987a603eec4afa782c7d0 SHA512 48501a670c7e1ea9ab5a03514e8b49b93d1dcbdb7712da8b38496a2d51a604fe30e2785a5e5e8aa40032ede5ee11a75f63ae1919ccd7316089a74486177ad417 WHIRLPOOL a7285ee77753bc1f14755425e232e6ffcff159be883bad779585cb247ff47b904b4fcab99e8fc2e33644764c602409c6e9bbd28588d3d639431650ea9d31c5f5
DIST sbcl-1.1.18-x86-64-linux-binary.tar.bz2 9196684 SHA256 c945406f9421736982efc4eaaeb376b19331422f5b5a349382ed53c742d6cb0a SHA512 d63a33532ae6390c00d789c22c4a504b621e707b8aa5f72d12b497be8a590a75604a18f384fa2d27df3a4a0ef3ecd4c27e7bfc4f74fde3a014df1aad5dd8ff0c WHIRLPOOL 980726e0dd182c2b29c5ac4deab994d028e0003a3e2ac3e38a0c052f6607fc75f6b298fb60c99ff9f373c9ba1f243d6bd97de2cb765aad559867598affd510ab
+DIST sbcl-1.2.2-source.tar.bz2 4437174 SHA256 5b2c510cdd7300956428c3b9bad78bd730908f6841ff15097e078133e50a5322 SHA512 6270e561185d617f90bf1ae6ddb52c7aac723eaf1498d259a6e1bd299c49064dd2a0968e9a88f97a2f36972f67e88bb82dbf32c64932f2787a364b23d422147f WHIRLPOOL 9e9855c82eacb2a9bdc85ba979faf0a0d3437d8f53c39c93a13e6a27489aeeca9d9f6252a4320083bb4718b397f8325d92d186468d7e782b85d12332ae20e6b3
+DIST sbcl-1.2.2-x86-64-linux-binary.tar.bz2 9412798 SHA256 a20779fefd466ad985f530fbd3093b603779efa20f0d3045d75420b4e73d0723 SHA512 aca469a106a848920861f9254f264fe9ce6c025268f43d86a96f69d4f149b16666f33260b12407fcbcbec564126d2a17c4f1b152ce7676cff45ef0762413385b WHIRLPOOL b98aae862ce72fabf1acaefac6a7a76fbb64ed152f7113cc27f4b5be7540a96effb1c1ee65325294666d1fe24fac397b32b5f4987bc7dba88994cf892fc9b823
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.15.ebuild 6886 SHA256 66da6a3f0d6c3c6ae713f5285de69bd82eb0cae3d73d40cfb54388ce3e046419 SHA512 07ef57b521b97933b2c47f33e33cf05566de98524e5e3c02148cc336b1946b5015bb258193d73c5f52b5c3046c7102db543d32073fdae0064796d4f27656a89d WHIRLPOOL a0f6dae5a08cf7a580dc003a260d1def659ffbe033a888e554d32c92e9329ffb8f9c638c205aae9af9bbbd0824fb87c3438dc01ff1c61e9ecd3f7d6fff0fd04c
EBUILD sbcl-1.1.16.ebuild 6886 SHA256 1a7654de5b78618224fa88508af1c2eef11ce894835abce55474b9849327a0ca SHA512 4103a075b9708aa267ed34a3e314fcfbd7a29734695e200f6138544a0673a29c51ddb3363f84497fcb5c5aef6ee8c6546a46df9d7d815a85705e8b87d7f30fc7 WHIRLPOOL cf39987e7cd36cdb96de692af1979ac54b599c7f23a7e351d7afe0e1cfc1b798b9b462f649d2c6f68dfaa2aefd746d344fe5e4ac942457129c4ed310df110d36
EBUILD sbcl-1.1.17.ebuild 6970 SHA256 d93fdbd333eb4308656c2be81a87736878e1e0770cdd2e3f5ab2bbdfe4ac9606 SHA512 f5a664525c06cbe91776fa5c1a9c73f8949face23876f819172898fca29755fe081a75e05ac7c3489dedb653db2ed3a4f35ab5a78f5714a38e1ab7a388d9924a WHIRLPOOL 71fc43956a7d051d5a32a3dc4d9181de849b0ed00588b7e39e675b0454467764b683518c49c6a1f15a8c3f6da3aba820417c40d70f549cfcfdd1a2ecde6958b7
EBUILD sbcl-1.1.18.ebuild 6973 SHA256 6bf6f7f45c15c8bd5bf394e5013fa6a9b9db989a4ef76acfa80f5908a720fc52 SHA512 198315341531d406de66e2dd5b3352a51fc8b736786fe081006a53224d9d5fa694f1edc6d35d1b2b4eeb2eadae4fec33b417fe5bfa30a61f34a8432bbeeeed49 WHIRLPOOL 5cd1e43ff0267d329c65f3e007c593704fd4f9df429c4d7dc2a959aa7e2e9e9e1c8b4a2693049d5e28a0d9bf716c4853af5d0cbad457616d5df2274d378add52
-MISC ChangeLog 54404 SHA256 b9998b8b575baefaab5a431a88810d02e1b246172b848481df387d34f3fd56cb SHA512 9e3fe77cd511e74ba68699d0bea6ec7c97360071fb670c082f2449ce2521e0ffa3212d504e87dd349eaa44db19c330bc3e7dd518d480f2777287f1a181d5aaac WHIRLPOOL 0bf69de2f99828a42cc50a89ce8aee15a097284c2a26e0d7f54a5d9df8729198be315e7fb00ba0ec61a823139b94a35accc268f49dd703bdf8cbfa2ce2595366
+EBUILD sbcl-1.2.2.ebuild 6975 SHA256 98b043b864ba0ea329ed3dd5ecfe10b3b2e4daec21612f963cd5ed078697a445 SHA512 9b5f62a05110f2252aeeb6b31c1d8ba0939b8ce3bd4b2bbfce23927fbd1ea0a6449875967fc87fa04249cd26b1ab9b7a5fe4286524401d5852fec4ec899e489d WHIRLPOOL b046a2b229d6e60bd9fed998e53e479438937b12c01ccf68963952556ab453e218d55849525c528a511a8af2d96f6f33c0ab78e9305f358f45b0114bced6f204
+MISC ChangeLog 54552 SHA256 d6a23ac1f17ed40cfe3c6321a8f8a37ba2103a8be857c628c4699f6849c50bf6 SHA512 354d2595242673f5142ae5a1ada5730993cb32bed6c30710a6d497b396811a5358ae462f79c1892078ec5fb1f3fadb33627cd383e954d5a865c5f97858191147 WHIRLPOOL dc65962e9eb16ea3590613c1e48efc16373ff3d275b2184a7b409b5d5c2ce5617be9fb2ea9d77e5c49657a33e61d0d9463351d7c77a25f43e5e92cd62e7764d3
MISC metadata.xml 1676 SHA256 17fb0c325844368c649a311f15fbb53a87e5ef987021c52424ffa647745101f3 SHA512 54f12b8385602a6f26b35bb63cbfb0414788e899bc2f5240f60ce249d8ac914c1e236b8d66cee893eac1c3602661869a4333223fa4ce043bd284bde51fa99512 WHIRLPOOL 90a7306f698aa56ab618874f1d325bd3bb789961675d4b0728744abff152bfb6e8cb7303c3cc063782e0411ce27551527c313b404846dadbe2638c5ea086e2f1
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0
+
+iQJ8BAEBCABmBQJT3bi0XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
+ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQwOEM0RURGNjY5QzVBNjMwRkU3REVCOTQz
+QUZGQ0U5NzREMzRCRDhDAAoJEDr/zpdNNL2MGmAP/0+PL06FSD1aGOAr6XCEN6mU
+E5XndSfLdlyxiQ2Wc2csQjFkpEaiKXSexLw1MqGegb3eR/csozU/zO2xaRFDazrp
+Fhcfj+w5268MNejDTiAo9r7K+6Q8Ay7PKipssC4evl1DAw/YN9RUkqN4oY7uSHOY
+h7rBC/6QY4v6Zc+nQV8sKA9lEGi7XyNKiCpz+yZyLQ051y6XPMNfGdmk+KB3/XRA
+0Fgtsc233mr18OM40jiqbzdDwomovHtmd/BjBgVdEaV8Z3jy/DCNDQoJPou2fpFg
+WcoGp/fiYVTsh5hCdpvg1jizPQv7FfJ1lEYhOQggCUkE907nVGwE+l9BGVYZNeo8
+DWHpGavAqhyLGlUpG+5M0Bwx0IpP6ZwEfzP/Fr4XkwWsvaBIfZLzJtOfre4yGEhO
+JQT9+0/puftrHOvYT5IR35ytHbmXINFdqd+eeza8K0gV25oKZRTNdoPjmM5FzLI9
+HkANO5wSEBbGIhiPiXOOd/bdLznKIjiiEGFlBq8HIKDmt/FpgKJD8TN0P5eN6FZz
+eVnW5w7HhUvowhxi2Ba4G/Vabgnri3GyST0YW2+U/o0LkaJPoiFJGEGnLoim9OxT
+LaPg1xKH1oY37GR7Gy5DJz4WWrmBGeEjkbrnQu2HFSxaMbA8SHiJ/V+Y4cchdWGi
+HT9ysNrupnswKU2XCh6s
+=hDCg
+-----END PGP SIGNATURE-----
diff --git a/dev-lisp/sbcl/files/bsd-sockets-test-1.2.patch b/dev-lisp/sbcl/files/bsd-sockets-test-1.2.patch
new file mode 100644
index 000000000000..7a7b12bdea14
--- /dev/null
+++ b/dev-lisp/sbcl/files/bsd-sockets-test-1.2.patch
@@ -0,0 +1,24 @@
+diff -r -U1 sbcl-1.2.2.orig/contrib/sb-bsd-sockets/tests.lisp sbcl-1.2.2/contrib/sb-bsd-sockets/tests.lisp
+--- sbcl-1.2.2.orig/contrib/sb-bsd-sockets/tests.lisp 2014-07-28 17:15:05.000000000 +0700
++++ sbcl-1.2.2/contrib/sb-bsd-sockets/tests.lisp 2014-08-01 19:48:30.011931081 +0700
+@@ -31,11 +31,11 @@
+ ;;; for unknown protocols...
+-#-(and freebsd sb-thread)
+-#-(and dragonfly sb-thread)
+-(deftest get-protocol-by-name/error
+- (handler-case (get-protocol-by-name "nonexistent-protocol")
+- (unknown-protocol ()
+- t)
+- (:no-error ()
+- nil))
+- t)
++;#-(and freebsd sb-thread)
++;#-(and dragonfly sb-thread)
++;(deftest get-protocol-by-name/error
++; (handler-case (get-protocol-by-name "nonexistent-protocol")
++; (unknown-protocol ()
++; t)
++; (:no-error ()
++; nil))
++; t)
+
diff --git a/dev-lisp/sbcl/sbcl-1.2.2.ebuild b/dev-lisp/sbcl/sbcl-1.2.2.ebuild
new file mode 100644
index 000000000000..d03cabd53cee
--- /dev/null
+++ b/dev-lisp/sbcl/sbcl-1.2.2.ebuild
@@ -0,0 +1,207 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lisp/sbcl/sbcl-1.2.2.ebuild,v 1.1 2014/08/03 04:29:08 grozin Exp $
+
+EAPI=5
+inherit multilib eutils flag-o-matic pax-utils
+
+#same order as http://www.sbcl.org/platform-table.html
+BV_X86=1.0.58
+BV_AMD64=1.2.2
+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/${PV}"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="debug doc source +threads +unicode zlib"
+
+CDEPEND=">=dev-lisp/asdf-2.33-r3:="
+DEPEND="${CDEPEND}
+ doc? ( sys-apps/texinfo >=media-gfx/graphviz-2.26.0 )"
+RDEPEND="${CDEPEND}
+ elibc_glibc? ( >=sys-libs/glibc-2.3 || ( <sys-libs/glibc-2.6[nptl] >=sys-libs/glibc-2.6 ) )"
+
+# 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"
+
+# Prevent ASDF from using the system libraries
+CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)"
+ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)"
+
+usep() {
+ use ${1} && echo "true" || echo "false"
+}
+
+sbcl_feature() {
+ echo "$( [[ ${1} == "true" ]] && echo "(enable ${2})" || echo "(disable ${2})")" >> "${CONFIG}"
+}
+
+sbcl_apply_features() {
+ sed 's/^X//' > "${CONFIG}" <<-'EOF'
+ (lambda (list)
+ X (flet ((enable (x) (pushnew x list))
+ X (disable (x) (setf list (remove x list))))
+ EOF
+ if use x86 || use amd64; then
+ sbcl_feature "$(usep threads)" ":sb-thread"
+ fi
+ sbcl_feature "true" ":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"
+ sed 's/^X//' >> "${CONFIG}" <<-'EOF'
+ X )
+ X list)
+ EOF
+ cat "${CONFIG}"
+}
+
+src_unpack() {
+ unpack ${A}
+ mv sbcl-*-linux sbcl-binary || die
+ cd "${S}"
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/gentoo-fix_install_man.patch
+ epatch "${FILESDIR}"/gentoo-fix_linux-os-c.patch
+ # bug #468482
+ epatch "${FILESDIR}"/concurrency-test.patch
+ # bug #486552
+ epatch "${FILESDIR}"/bsd-sockets-test-1.2.patch
+
+ # To make the hardened compiler NOT compile with -fPIE -pie
+ if gcc-specs-pie ; then
+ einfo "Disabling PIE..."
+ epatch "${FILESDIR}"/${PN}-1.1.17-gentoo-fix_nopie_for_hardened_toolchain.patch
+ fi
+
+ cp /usr/share/common-lisp/source/asdf/build/asdf.lisp contrib/asdf/ || die
+
+ 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 || die
+ sed "s,/lib,/$(get_libdir),g" -i install.sh || die
+ # #define SBCL_HOME ...
+ sed "s,/usr/local/lib,/usr/$(get_libdir),g" -i src/runtime/runtime.c || die
+
+ 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 host-is-pax ; 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}" \
+ CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
+ ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
+ make -C doc/manual info html || die "Cannot build manual"
+ env - HOME="${T}" \
+ CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
+ ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
+ 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/
+ sed 's/^X//' > "${D}"/etc/sbclrc <<-EOF
+ ;;; The following is required if you want source location functions to
+ ;;; work in SLIME, for example.
+ X
+ (setf (logical-pathname-translations "SYS")
+ X '(("SYS:SRC;**;*.*.*" #p"/usr/$(get_libdir)/sbcl/src/**/*.*")
+ X ("SYS:CONTRIB;**;*.*.*" #p"/usr/$(get_libdir)/sbcl/**/*.*")))
+ X
+ ;;; Setup ASDF2
+ (load "/etc/common-lisp/gentoo-init.lisp")
+ EOF
+
+ # Install documentation
+ 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"
+
+ # 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}" || die
+ 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/" || die
+ 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}"
+}