summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Grozin <grozin@gentoo.org>2012-12-14 12:53:36 +0000
committerAndrey Grozin <grozin@gentoo.org>2012-12-14 12:53:36 +0000
commit190984fe6086682fc7481d14b48c87e56e328196 (patch)
tree97c8d9883af9a34903751da9b67359e579a7495b /dev-lisp
parentStable for x86, wrt bug #446520 (diff)
downloadhistorical-190984fe6086682fc7481d14b48c87e56e328196.tar.gz
historical-190984fe6086682fc7481d14b48c87e56e328196.tar.bz2
historical-190984fe6086682fc7481d14b48c87e56e328196.zip
Version bump (masked for testing)
Package-Manager: portage-2.2.0_alpha148/cvs/Linux i686
Diffstat (limited to 'dev-lisp')
-rw-r--r--dev-lisp/sbcl/ChangeLog8
-rw-r--r--dev-lisp/sbcl/Manifest12
-rw-r--r--dev-lisp/sbcl/files/gentoo-fix_linux-os-c.patch1
-rw-r--r--dev-lisp/sbcl/metadata.xml7
-rw-r--r--dev-lisp/sbcl/sbcl-1.1.2.ebuild196
5 files changed, 217 insertions, 7 deletions
diff --git a/dev-lisp/sbcl/ChangeLog b/dev-lisp/sbcl/ChangeLog
index 7d6bfe20bd73..47b307493b96 100644
--- a/dev-lisp/sbcl/ChangeLog
+++ b/dev-lisp/sbcl/ChangeLog
@@ -1,6 +1,12 @@
# 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.182 2012/08/29 03:17:11 mattst88 Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lisp/sbcl/ChangeLog,v 1.183 2012/12/14 12:53:31 grozin Exp $
+
+*sbcl-1.1.2 (14 Dec 2012)
+
+ 14 Dec 2012; Andrey Grozin <grozin@gentoo.org> +sbcl-1.1.2.ebuild,
+ metadata.xml files/gentoo-fix_linux-os-c.patch:
+ Version bump (masked for testing)
29 Aug 2012; Matt Turner <mattst88@gentoo.org> sbcl-1.0.55-r1.ebuild,
metadata.xml:
diff --git a/dev-lisp/sbcl/Manifest b/dev-lisp/sbcl/Manifest
index 41bcaca9ba4a..508eed271d62 100644
--- a/dev-lisp/sbcl/Manifest
+++ b/dev-lisp/sbcl/Manifest
@@ -1,14 +1,20 @@
AUX gentoo-fix_install_man.patch 399 SHA256 7e3e3f84be6d4dae51953825daaf26d8fe1482fd2f4e9d017297dd8ef55ebe47 SHA512 bc5118ddf2fd851dcabf773cc7443fa0d3f5a5b83715173110f9164c631faaf8c2d6b247f7ac205da23bb388ff459eba228deeaa2a45202870b7f97376564030 WHIRLPOOL abc43631045e56b9d373c3966eb1d2f5575d258db239e6f1f9a2247492fcb0aab8d000ece39c504aeec5462f7e0ce7e6efc3a215e5776fa64d460b20c0f52a21
-AUX gentoo-fix_linux-os-c.patch 416 SHA256 ace8b944d7401428c42e915656bd8509efac926615349876abf3b1f5b33120fa SHA512 4c6fcbbac10cc0c760dfc19407417c8ca311d5c4162cd3fa4b91d5ef45fc777e25aa829e36722a0615cb77d0ee9595558e01fbbdfa85bb2f3641fd0ee8e67bf0 WHIRLPOOL 300b47810ef4a17c4fb276b481159081062a0d9256953bb64d571f299fb2fde4ac066b06dd689362742283ac4554074ba62029cb47d1a88612adc9ae93f9ec97
+AUX gentoo-fix_linux-os-c.patch 418 SHA256 50b310b3d72b380b91828730a5539638decb6a4df6d28f93dff84ddad824b2ae SHA512 1c78d991c8685b8beeb41cfb3d79aafab4ffa08a36adba7741faefc1a66be3d5ab73efbce43d4d0424cdb86946997a945799fe42a4df44a9b8823a8b7d401f84 WHIRLPOOL a106afda17d6cf67a5c41a6f0b71e0bc44131eaaa5b07ba2d6afb332a8d70b4c5a0892f30904db7992732d1c560ade735bc8ab2572d3be5bffa91ee8c7633640
AUX gentoo-fix_nopie_for_hardened_toolchain.patch 1122 SHA256 80cdbc63648c2ea84bb4cd33815b7332bdca9a6101caab130705f0ef2bc078a4 SHA512 95dd9f7ccfc7ce274d84f71b1a2ab3ffb39dd5d8000ff52d9b154a0e5d7bb2cc7eea394c05adbcf050073becfe789d94abed72ce56bc494a64199e9e7cb9c7d1 WHIRLPOOL 45bb11865fbbd95f3fda806e339cf3097168732dcbc5e2f23770a49a8e7415a14262c1a9c217c4b431ffb247f74776956447d9494e2a7be35ca60928a788da99
AUX gentoo_fix_waitpid_c.patch 407 SHA256 6f0f2c40f0074f509a0f4cd38286896d6fb8f21eab296c7896d6162f20849f9a SHA512 7c049dabf8eeef335dbaead9e74a99f45824201c94b5f09e51b91f8927d444238232c896bff9de9f362e11e854e30ac30bb7c7552497251cd69c98b84479979d WHIRLPOOL 7b6fd6e45688697775defa9cc366f0195eec7de52405a726033bcb2f5e911600bd1c89d2edfffc2022d74252afc98a4f337b8576c812dd213e7dc81805a69e2a
AUX sbcl-1.0.55_no_doc_install.patch 1778 SHA256 aae79884a1f8dd693ef4c10129920ccbcc32bacb72e076b326c6fd6730988b9b SHA512 41b5c5274cb0465f706156444c249516db115cade23eeadd4f20fdf4a5a355fc0fc5b71c5b02c26d13c2118e63a53e0c1ccd525a44b301ffc03b8cb2c45c6ad3 WHIRLPOOL b119518fcf01a3e4bd4189e56620aa3216aeaaa6b22fa7943c75a4e07fac815e6f2490f89b5fc19b6054ce22144e6af25994824615e565af0ad6b009cc529c60
+DIST sbcl-1.0.23-mips-linux-binary.tar.bz2 7932957 SHA256 9a4ef25e7119ad12ca4789ad8e333b6550bbb865f8eae06c9fb66fbf9323f960 SHA512 1d0b9177660fdba8ee88feeb3bc7b0eea57839d4bf793334611f674846d2b4369f07ca48574b176c3762ed346ff333c54451cc2ec521a0fd07b67e8a2d2931c0 WHIRLPOOL 4b5269bfb7672685aa39186ebe93c33169fee12b10132fede64f49e504349838b9f9fd489b3d13856bcba82194a2b14d97ddf39940c16c0444fde20eb49e53e9
DIST sbcl-1.0.28-alpha-linux-binary.tar.bz2 7573824 SHA256 0bd8125e1375a75b9dda286439dcbe9861d6df5c6fc8475fd217b8b757edf9cc SHA512 85ceb4d3bf971777f5444a63cbabd88ccfaf16ed3b3c86cc5ea6cb3fd3189c4cd5a5ebbf785c97366afb7026604ffc34a1129936291deede5993056e158125ab WHIRLPOOL 839363a0d2fcc7cf383143fc130c40bf6f03468a89eb4b5eecb39339ba376a6b3a2096938934a91cf689310bff20807d2ac24b99c0d6e3673729b26d9edb83aa
+DIST sbcl-1.0.28-mipsel-linux-binary.tar.bz2 8099121 SHA256 ddff119b6e868b05704b9d171c7defb626a845f991cc0c1ec90fc1c11e022a13 SHA512 514609df314d8f1623bf3f4cfa2329bab3c7087fd4f1be7f39b8d5829b600a7196cbea2a4bc05f33c96c419fac7bb42b3a008f7aa6c8f8a41a27ce698bb47d93 WHIRLPOOL 9f84b47d61b4a12cc98c87f85cb5e52a8d66b15227f2421d4bddc72f780ff8730c08acf07035c45f0adaa675f4dac9485d0d2bd638eea159f7e315a39186633a
DIST sbcl-1.0.28-powerpc-linux-binary.tar.bz2 7621107 SHA256 b51fe8cd3a998d178fc1876d10016439cfa4ed3566d761c331cacab364acd591 SHA512 e3386d25ae44c03cac5ecf2a9ba95338348b51955dc731f0bb57a124e572601b84170b452ff0c3540af07278053f1e5d153a4f1a621b376ceb1861f84777bad3 WHIRLPOOL 1c16053a0c15b3bec892811185945df59765f4d220045e0f116234aa18f843c6a6b8ce472029603624e47751185822891ffaaeb96dfd87f714b8fddf74149f26
DIST sbcl-1.0.28-sparc-linux-binary.tar.bz2 8032042 SHA256 a2e848ac11b0f16bb91866bd187949d908ad94fabb958a0b56320fc0e8b8923e SHA512 cea1ba06f85169fca9fe3026813c6e7e8e8209b874e048b7bd63cb3a1c5bd7c829e8dbb2c486977e190a0390d28e4845938a9e84378f4f2f16f72bf0b6f45c80 WHIRLPOOL e7f7e9bc7b43cab7b729792a22f0f41be12d8dd97a1c45fa039a49607865b977dd336fef8c7ccda087a9e9e32f92241c83e05da442e12cf883d3dfb3c2fda169
DIST sbcl-1.0.37-x86-64-linux-binary.tar.bz2 8702821 SHA256 0757a1d49d5452c9bef8d1c270dd423aa1b752e6a7ce4a3ffb546253e1bf56f3 SHA512 2175c30ce46c0b7b8fb4b2ed7aaadfa7a127cd50f2343adf1e8e0bd8b16c30803be5171fa076ca3a477df03a698f6887287bcf5e3249ba7c9e07f86f57cf8540 WHIRLPOOL 65322b7c36cf7cc23a796f4a4fd0c9f460c60cc18a0f3f167c20e892177c342f6af6ecda94e30ea32858ec3f13f0d7cb0a86955615b3fc180c62310de8bf1884
DIST sbcl-1.0.37-x86-linux-binary.tar.bz2 8815040 SHA256 3d04ffc7c71afe523858799386a3175467556648b27184e39f62df8f60cf7268 SHA512 6c630ed7f5a86f1ed928e59f5258b7b7be116c23f469c814a386fd82c4a554ab02ca6819098e5703063ac6f683538779b00c3bd6757338ce2b843062d873989f WHIRLPOOL 25e575652d1c87ad6ecb8a0934c5e9b0210e566e11f6c5df09bb4048c7567732b10350c1f91e0bcc1c85907d1e2ed877e7297b7ee838b941cefd6fb6fe5da781
DIST sbcl-1.0.55-source.tar.bz2 3611026 SHA256 e3216a7b9c302b6c1431d0f1ae444008de8ac465eb44f4ae841300d052d207ad SHA512 dbda1f1bcb28a4bea8bc3ab8c3d5c6c27754a1388087ae9db81b783444ac306d0c72dde3a096bc6dc716d1b174868f5e5f39402f69b0604fc8023b9227eea38b WHIRLPOOL ead2425660e1a8812f882bb4d359471f5f70295a0196e1df70ec5b6aa2bc2ccfb0f3c23d63aba19e149b808e4b4ced26b98428745033c8197255274094ccccea
+DIST sbcl-1.0.58-x86-linux-binary.tar.bz2 9313124 SHA256 a2195fce096fd7c64acef60ca496a29d703afc61eb39c366fdd9e56dc8982f84 SHA512 2776faa09f8a3d35ccb2745ec4a07e78bd714c47ae39032bbef3161d599d14fcc6313e65629df06b576cb973012b9c8356fac47bf7b886f9549d688fab3c4f98 WHIRLPOOL d98dda83b6ee02a777c787013ada2ca0a4548c75abe907a29215a48693bbbf787a6c6f83e07b2e8ab94afae261572dc0222570927357656d388329541301537c
+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
-MISC ChangeLog 50726 SHA256 2be2c989646b6a9df84fad81c39fabbaba3343f817f875c3ca0ba2e47d19acd7 SHA512 cf30003e9a25b4ede7cfcc0f45177fbf4ee5d2426bc0674c851e33c0b76edc8cdc56de35ca7c9371b848d4940150be6ba6023b7122c4fc9f4021757a09a03cb7 WHIRLPOOL dd18db4f651dd20fef64b123f941f722c682f74b0df91d247a4173e66d69445baa76e56ea03cb557735b0752958d81f4668650f6694714b0c1bd36e15a671865
-MISC metadata.xml 1643 SHA256 e40c9555ee2bdfeaf1f229137fc738e2506f1aefd9fbe5a6ccf6290b3ad8b826 SHA512 7b7c4251780c4e287e856432609c4ac5c4fdfc22fc8b50dc986677cfd54a8f61ad467814e76f5e3f1f228ed156fcbb79d2613f007d05a1edde27d9934d25c009 WHIRLPOOL 33f0aa7a9d4fd6661c533385c99db16c37d84139abbae561a7dc81185d86f42d029b529c623d326195233eb401cd85bf8291212e406590d3dca3f8e8bdb582e3
+EBUILD sbcl-1.1.2.ebuild 6346 SHA256 c894aaf0a47ec6cb01e36921bbb9ed067aa2c6f0b77fd30b68c06482625f0d48 SHA512 a1923895f9f6e7e46752ef7b883b3e7d8c73680ada3ea00e9af15a5fc9e18fae57c2172469074f4750d02fd154b937a2149e6a223d34c97db6f60659037d4024 WHIRLPOOL f64163a55dc7f70b680515175fa43b030f4b7d901e4a9ef7da90a9739f923f856eb995562ba0e6e6992a6bb5eb3d628d430e9c4bd50f67a4429b82a8201c173f
+MISC ChangeLog 50907 SHA256 2f996bfa5e279e04c85d154be5b8352c2e9a2f45c442733f18baca2eaa40d056 SHA512 64d2d4cc249af2b83d9e2848b11cbdcd7cd408eb34e25ea875d5ea990d60dc855816f3ea0f86f799941354cb9dae3c88807c40000849c0b6123991c0aa6de766 WHIRLPOOL 04756e4b95c6deb1f71743abc70364ff86cd21c7efe2c0b78ecc12851687e3d21f5f0946a4392a627dc2edbe6cdd44b66fa261147be50e6d1ee0e4db3e740ccd
+MISC metadata.xml 1750 SHA256 a916cfa8985f73b90f2b8dbaf3cdc9a2a4754cddeb56470636a896ced2bfcc02 SHA512 f5fdb94cb628b3393bee98d4e185e921e96132dda93f0f0d0ab04467edd20fe795430270158f638b434e8d1d183ebd3f1a284169f2ed7cb4ac44162cd74a174f WHIRLPOOL d3829103bc94dabb30b352ec072a4fd207aeed991fd165fde5b776e0d78c18bd88082c0115c003fa2d449e47a6c790902ef424398ed29f42cc55137aca1896b1
diff --git a/dev-lisp/sbcl/files/gentoo-fix_linux-os-c.patch b/dev-lisp/sbcl/files/gentoo-fix_linux-os-c.patch
index cabfafe6e45e..b5c593051186 100644
--- a/dev-lisp/sbcl/files/gentoo-fix_linux-os-c.patch
+++ b/dev-lisp/sbcl/files/gentoo-fix_linux-os-c.patch
@@ -11,3 +11,4 @@
-#endif
size_t os_vm_page_size;
+
diff --git a/dev-lisp/sbcl/metadata.xml b/dev-lisp/sbcl/metadata.xml
index 5e07508634bd..eabe14e37cc9 100644
--- a/dev-lisp/sbcl/metadata.xml
+++ b/dev-lisp/sbcl/metadata.xml
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE
-pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer>
<email>pchrist@gentoo.org</email>
@@ -25,10 +24,12 @@ pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
non-ANSI extensions, or on backward compatibility with old
non-ANSI features. Support for native threading on GNU/Linux is
available for the x86 and amd64 platforms using an NPTL enabled
- GLIBC. SBCL 0.8.17 and later support Unicode.</longdescription>
+ GLIBC. SBCL 0.8.17 and later support Unicode.
+</longdescription>
<use>
<flag name='asdf'>Include support for <pkg>dev-lisp/asdf in SBCL</pkg></flag>
<flag name='ldb'>Include support for the SBCL low level debugger</flag>
<flag name='pax_kernel'>Enable if the user plans to run the package under a pax enabled hardened kernel</flag>
+ <flag name='cobalt'>mips only: use mipsel binary instead of mips big endian binary to bootstrap</flag>
</use>
</pkgmetadata>
diff --git a/dev-lisp/sbcl/sbcl-1.1.2.ebuild b/dev-lisp/sbcl/sbcl-1.1.2.ebuild
new file mode 100644
index 000000000000..e57b8b04cc29
--- /dev/null
+++ b/dev-lisp/sbcl/sbcl-1.1.2.ebuild
@@ -0,0 +1,196 @@
+# 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.1.2.ebuild,v 1.1 2012/12/14 12:53:31 grozin 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.58
+BV_AMD64=1.1.2
+BV_PPC=1.0.28
+BV_SPARC=1.0.28
+BV_ALPHA=1.0.28
+BV_MIPS=1.0.23
+BV_MIPSEL=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 )
+ 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 ) )"
+RESTRICT="mirror"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="+asdf ldb source +threads +unicode debug doc cobalt"
+
+DEPEND="doc? ( sys-apps/texinfo >=media-gfx/graphviz-2.26.0 )"
+RDEPEND="elibc_glibc? ( >=sys-libs/glibc-2.3 || ( <sys-libs/glibc-2.6[nptl] >=sys-libs/glibc-2.6 ) )
+ asdf? ( >=dev-lisp/gentoo-init-1.0 )"
+
+# 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 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
+
+ # 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 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}" 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/common-lisp/gentoo-init.lisp")
+EOF
+ fi
+
+ # 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}"
+ fi
+
+ dodoc BUGS CREDITS INSTALL NEWS OPTIMIZATIONS PRINCIPLES README STYLE 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}"
+}