summaryrefslogtreecommitdiff
path: root/dev-lisp
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-08-25 10:45:55 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-08-25 10:45:55 +0100
commit3cf7c3ef441822c889356fd1812ebf2944a59851 (patch)
treec513fe68548b40365c1c2ebfe35c58ad431cdd77 /dev-lisp
parent05b8b0e0af1d72e51a3ee61522941bf7605cd01c (diff)
gentoo resync : 25.08.2020
Diffstat (limited to 'dev-lisp')
-rw-r--r--dev-lisp/Manifest.gzbin3369 -> 3374 bytes
-rw-r--r--dev-lisp/roswell/Manifest10
-rw-r--r--dev-lisp/roswell/roswell-19.09.12.102.ebuild22
-rw-r--r--dev-lisp/roswell/roswell-20.04.14.105.ebuild (renamed from dev-lisp/roswell/roswell-19.12.13.103.ebuild)1
-rw-r--r--dev-lisp/roswell/roswell-20.05.14.106.ebuild (renamed from dev-lisp/roswell/roswell-19.08.10.101.ebuild)2
-rw-r--r--dev-lisp/sbcl/Manifest3
-rw-r--r--dev-lisp/sbcl/sbcl-2.0.7.ebuild246
7 files changed, 254 insertions, 30 deletions
diff --git a/dev-lisp/Manifest.gz b/dev-lisp/Manifest.gz
index 2f795b93b4c4..aac965354bb5 100644
--- a/dev-lisp/Manifest.gz
+++ b/dev-lisp/Manifest.gz
Binary files differ
diff --git a/dev-lisp/roswell/Manifest b/dev-lisp/roswell/Manifest
index 533eb284d436..0ad1bedc6496 100644
--- a/dev-lisp/roswell/Manifest
+++ b/dev-lisp/roswell/Manifest
@@ -1,9 +1,7 @@
-DIST roswell-19.08.10.101.tar.gz 163259 BLAKE2B 80080a7d2665fd674281ae8af7ac735e8ebfa142cb2beac93e9536ab0251d654ce6f18e329b06bb1e8bb3a233ab15b42c35e544b4d2b9c87229d9290403cec31 SHA512 6a7dde53ba5f0793e3f5dac780265e1a88d35a0d4a2388fec6ecafde0904a36db222a3cfe867ae5bd90f38f08a5da09941182e72f81184bfd7f084d927e63ce3
-DIST roswell-19.09.12.102.tar.gz 164475 BLAKE2B 432a9aae8a2f2caa4b7c996829daff1e6a8807cccf936bf7d9aefc69e8842b73b355aede1213ed8ad3e2f3ed093fbb33f0d4f48c991ad4ae5dc3f919d5ea7c38 SHA512 04f6db828c81b7e6310c612e4a3fcd0d0abe6e9dbac794f78f9830902c8b8ad02bda7ff313edfebfd31fa299b2553f258dc82307ccdaf025b9eef2a13e93de54
-DIST roswell-19.12.13.103.tar.gz 165717 BLAKE2B 9d38deab38154146ebba80ce4efdcc99c2d4ced312cad5a04ba44bc1bf5f10cb3c83bbbccdbdb842f0ef92e7d20b7073973d4f7f3438e732987cfcff8ec4386a SHA512 3f7180843e81108ff026df6ead5541325dc622027483c2a33069020bdc90916c263a73ec40ead5ab0af2566967aa2a4cb8db2ece962465e7b0a41e4a6809335a
DIST roswell-20.01.14.104.tar.gz 164384 BLAKE2B 905bb54081da137c588b911f1aa6ef4957e9d860c9d42b72bcda37b084d4049c4234a757514170e2a857de40c4970d70e53e98d72bbeb037e5c35930fbd9286b SHA512 8eac3ada8afb9f2ee82004e46fcee72e45cfd2ed4e86dea8892ff6fa0bb5339bca7e3d1d4a7e2930d6848ef1bf1ef4b63aa576382bee1e66e98cf50441c81c7e
-EBUILD roswell-19.08.10.101.ebuild 448 BLAKE2B adc660208bf651b5a8fa4935a67f667e9f177d692c991adb365e7d964922a791eefc6e31ea86dcb89ed75032c4b77ca5bb0807baa7ab70c8ee7ebcc3782de340 SHA512 cb6af70bfbc9041934cb9de1ff0137e9ab14476e0fb57472b6d659cb1ff0344c6ee685c01ee4363e9a263af07b8838e56ec729b77671c77b627a931f5419eb22
-EBUILD roswell-19.09.12.102.ebuild 448 BLAKE2B adc660208bf651b5a8fa4935a67f667e9f177d692c991adb365e7d964922a791eefc6e31ea86dcb89ed75032c4b77ca5bb0807baa7ab70c8ee7ebcc3782de340 SHA512 cb6af70bfbc9041934cb9de1ff0137e9ab14476e0fb57472b6d659cb1ff0344c6ee685c01ee4363e9a263af07b8838e56ec729b77671c77b627a931f5419eb22
-EBUILD roswell-19.12.13.103.ebuild 474 BLAKE2B 08b89e1a12096c9ebdadfe4a58305755ecfc6faab143bddee8d1b0a73d1224182604c573614e790273f565b044a34459212809ddc5ccc1c1b70d85501fc67995 SHA512 ab085e14194e49dcdf4c46eb51229b6a581a8f592d569937ed0e1b42b2e6893b433b20c3b3868bf8af95e65bbc3ad6fbdbc9a7ca00851b741ae7404f2720cbfb
+DIST roswell-20.04.14.105.tar.gz 165121 BLAKE2B f7f0e651768aa2a0d8ccd648b511eaae8d9c18e64941b0ce1a155017e53bd5b6552b129afa35ca1132765d1f03ed91c26d9d83f52799704857f1c3f1475f581d SHA512 3e63b206253c0922877beb0c5091fc42052cb6a711b47333c3d6553cd22eb509f6fb09a0e073465bfb45225b46aa4041d760df17c8e781d3b815c583e9578c3e
+DIST roswell-20.05.14.106.tar.gz 164302 BLAKE2B bd2387bea78a746d5cfedc27e9d636ef7bc0f5118036ae2270c49a4361268527fafe2683850a2dcaeb1bf3f14db6a24fecd98f395081fdc1b4db620838d2936f SHA512 03a923accc4d6ac9a3a3e0fd1853441bf4be0268571e8b6ffffc122170befad6b1dcda6f062a566b54229bb325efb6a5d39459ce22a89355e927e3fea1e08cee
EBUILD roswell-20.01.14.104.ebuild 492 BLAKE2B 03043785edd822cf9eb850ecb74b345a8550afdd2e8f65d923f200ffffaffacc8ea6e56f3a36619e2b2ff7e6cb871b3a11d8da0401a682b89ef757ee35d3314e SHA512 707515dc5f0f25be00ec6029c588044668394975d30a8cbf157fe377287c8a9775da6e494ab63f08f5f964cfbc127609c7aaacb7aee648d93398186ba8869e32
+EBUILD roswell-20.04.14.105.ebuild 448 BLAKE2B 63875189e2f002c32e017b4d02840c3621aeaf3e2f04aa36af947fe5e96773ea95293bd8d14ea31f17280bb2a3fc8de8e6cc639b96b3c4d5bd1f9234e80d9671 SHA512 28cfbb5f37453c8c6ca96c825b7e9968b7a4dee2e9cd7d9883487b58e1eab1bba79cd65d170f88088a73303b3008b1305c3c66f3a5a60b1039cfce2192148d28
+EBUILD roswell-20.05.14.106.ebuild 448 BLAKE2B 63875189e2f002c32e017b4d02840c3621aeaf3e2f04aa36af947fe5e96773ea95293bd8d14ea31f17280bb2a3fc8de8e6cc639b96b3c4d5bd1f9234e80d9671 SHA512 28cfbb5f37453c8c6ca96c825b7e9968b7a4dee2e9cd7d9883487b58e1eab1bba79cd65d170f88088a73303b3008b1305c3c66f3a5a60b1039cfce2192148d28
MISC metadata.xml 655 BLAKE2B 91386e6b98fe2dcce69cef28983230e97007b0edd90e2b521f57a1d67b7a7d20d4b67525691e04ec9131b69be455d7220fe6a5e0436767c216a540b44c642b39 SHA512 a3152c908d723c2ac8888241ea21765eb1db041080ceaf62910f954e2c70e43d8a3fcfb21e2a829eafc68e024266143a4dc2ecf475cea1db22a31f2f697be487
diff --git a/dev-lisp/roswell/roswell-19.09.12.102.ebuild b/dev-lisp/roswell/roswell-19.09.12.102.ebuild
deleted file mode 100644
index 11cdfe7deea0..000000000000
--- a/dev-lisp/roswell/roswell-19.09.12.102.ebuild
+++ /dev/null
@@ -1,22 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit autotools
-
-DESCRIPTION="A lisp installer and launcher for major environment"
-HOMEPAGE="https://github.com/roswell/roswell"
-SRC_URI="https://github.com/roswell/roswell/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-
-SLOT="0"
-LICENSE="MIT"
-
-KEYWORDS="~amd64 ~x86"
-
-RDEPEND="!net-libs/librouteros"
-
-src_prepare() {
- default
- eautoreconf
-}
diff --git a/dev-lisp/roswell/roswell-19.12.13.103.ebuild b/dev-lisp/roswell/roswell-20.04.14.105.ebuild
index 5e5d2416212b..76c9e1152f1d 100644
--- a/dev-lisp/roswell/roswell-19.12.13.103.ebuild
+++ b/dev-lisp/roswell/roswell-20.04.14.105.ebuild
@@ -14,7 +14,6 @@ LICENSE="MIT"
KEYWORDS="~amd64 ~x86"
-# File collision, #691754
RDEPEND="!net-libs/librouteros"
src_prepare() {
diff --git a/dev-lisp/roswell/roswell-19.08.10.101.ebuild b/dev-lisp/roswell/roswell-20.05.14.106.ebuild
index 11cdfe7deea0..76c9e1152f1d 100644
--- a/dev-lisp/roswell/roswell-19.08.10.101.ebuild
+++ b/dev-lisp/roswell/roswell-20.05.14.106.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
diff --git a/dev-lisp/sbcl/Manifest b/dev-lisp/sbcl/Manifest
index b5520a4140b4..c02bc0d9add9 100644
--- a/dev-lisp/sbcl/Manifest
+++ b/dev-lisp/sbcl/Manifest
@@ -47,6 +47,8 @@ DIST sbcl-2.0.4-source.tar.bz2 6512479 BLAKE2B 95e42f8d77bb914cf0d45e59bb90c8229
DIST sbcl-2.0.4-x86-64-linux-binary.tar.bz2 10189030 BLAKE2B 93a59750d6c7b89add194ffd7e165599a24d0f23aec8415c1cc5321ad059144c266fd9218f2923d86c4cc19cff1c62dde08ab8a68c7cab8487aa458dfda93f42 SHA512 68533e83a452ec56ee5520daef54c24cfbd4307d8aab231c726eec69562262f40213dd453879c6f82bf9f31d850561a5f3f99c1207a3197ccab8017c2208979d
DIST sbcl-2.0.5-source.tar.bz2 6531110 BLAKE2B c658365c7247abb81fed8ef05a4edf8319df502ca5abed1b2908c9ffac24260bb654a2ad3a17573581a68ea6e6523ce4491e0ca53f36685f251aa168145dcf1a SHA512 0c27e22dd76d157a74ef7e97dcd03030096dde0eb46901ea27acb60faa0ab34881d76a9c6708d963b0e6f62da6331b85b8d3de76fd1fc9163c159e631759f808
DIST sbcl-2.0.5-x86-64-linux-binary.tar.bz2 10176341 BLAKE2B 602d1c3f09082f62bee04ab9f6d0906567aa9d74f364ea4278b725bf6fbe820f0b470fe2b326adb85c2867a8e96476f4e27cc3e6a18abe6483ab2704d8a1eddf SHA512 0bd278cbdb72f62bd441b061459d074080ff6aeef61137247f56b9c91a05185245539691d6a8a4b8efdcab523e4ab3275b6f924154246aac42cc3b49f48b8198
+DIST sbcl-2.0.7-source.tar.bz2 6622306 BLAKE2B a3395f390f6b58c86f6494eb03544616894f925bc90bc3f6bc8e62395c4b101d01e16666b8e9bf6f562db08408989f9b030d80de9fe2fce5663830cbe3ec2850 SHA512 02f39a2d643e2aebfe0e96611a9bca7cd859ff8a64d0e552cb4e39697a72a69fc51eacf40388bb49d64d851ea4005f9098100e490001d028844d0e2adc3b1490
+DIST sbcl-2.0.7-x86-64-linux-binary.tar.bz2 10199088 BLAKE2B f7ef2743958410b815dc2d235b9faa1d1df9c393bc06a6001de17a07be48d93caee577b29084448d787ce916a18b55dc97c0fa2bdbdb6c9b05ce0fe61357dd65 SHA512 d98d5a080c463a78ea3109a3350d22b816631d50fabed474cc267436b6eb6bf2dfbdd1fd6d29355c1a5714c5fba11ccf95247ffe9573049cb7f18035562a7d12
EBUILD sbcl-1.3.11.ebuild 8395 BLAKE2B 87ccd18ab7dcfae256a96f4a887bc13eb260335c691ba4c1551fd71be7a01b1b1c3aa98164eca14f3e0ad7f6f13f73ed749726c6a3f559d93fe8c3885b313b95 SHA512 4b8f5dab9a293284d73b19d116d13f2bbd6bde540fa5f00416d3e40f4bb7481b494137a715e9520dfa632bd2668133958b74d06a14d4484655cd420149f1dbeb
EBUILD sbcl-1.4.9.ebuild 8679 BLAKE2B 476e0b479c4985cf20a6d9cfa67bbfc36d778124d94edeb29416fc89863f1bd239939cf153031655be2b535aab48e03a03e74fdb5899cfb950494be7530e42b3 SHA512 0944d8adcb72d6c0c8b1ccecb4d9d705d7cb4bb71ab09e2866b58db5554dada0f5615a7252246fbdbaf388ccbb43b0688d9373512ecd5a13af39bb85d87fc6b8
EBUILD sbcl-1.5.6.ebuild 8681 BLAKE2B f691c065ea9db83ef49cf034078da21b95fa9fd941bfa8bced42053973be7c37171f38960b00fee17cf5eea658d672bd58b662d9016de1c7a3bbd5ed2ea355bb SHA512 5a237f39a124ae65fd466349031acc5f06f27493b0375bb1511d42b31b9a84e12243745a39bcccbcf361972c140dfbf79b626904375e8f7399a337f4111bb18c
@@ -57,4 +59,5 @@ EBUILD sbcl-2.0.1.ebuild 8681 BLAKE2B 90c75c2368fc238da9fbc5a0111a9ebe5dbf42b4ec
EBUILD sbcl-2.0.3.ebuild 8675 BLAKE2B 5a30af628197efc031ca492f169ba53140f78825a3d91dd9ee4f106907d60083df0c8e48c3e940434d5e66ef6eadb6092321c29e3f0024b7ee9641a598452ac8 SHA512 696853b2cb07d1d01f7df360ceb22fe1b8694adbda621c750cefa0eba699d99cc42e5e35fbb089dfff386015b6d8f608cc55ad5466a9bc285c761ae5f9136b6b
EBUILD sbcl-2.0.4.ebuild 8675 BLAKE2B 3a67ca421b894d2da98cb284eb4e0892661307043a67073744533023b65dcd4cbabc7e3508f52bfc91869ae3dcf94321fabb6ad4a4d933f463d27adfc34d3968 SHA512 5e28e55210b741275b75a343161a60157f4bc94421f18b466dbea831a4c2064233ac8fc5fd45fba29fb855e329393607630b0255da15d887f71c95ed3a94d8c0
EBUILD sbcl-2.0.5.ebuild 8669 BLAKE2B db89f2a82b292fd7c7f3b1281e4a1c841afe6b9a78793d1ff5f2219c79267dfa497ab4f610e039b335b933ef3327a0917d48f6652e280b3e03bdfc4e503ebba8 SHA512 50cb13a91845357b162c935b912f4dd4193273e5071496c41c44f8cc8809280d07907736bf25a299e351e71ddcf55e73f4fdf56b8750ac1b53f39559dc238f2a
+EBUILD sbcl-2.0.7.ebuild 8669 BLAKE2B 1adf4f05b741c682f3e1d7f8b355fd01e713fe8acd4ddc61977a65790cc2fa4cba4b2c4acc29d9f7f3cfcea8c1a264095df9d77a5930e9a6955da8eb22bb0335 SHA512 705af1d99a81110f0f30b6b0ad3fd1a10e32a99245f20fa7e95e6845be0e07eb0530a7cda9a8edd69ea2ba1d9679d57ff4fbd40b795be9044da597eef1ec7a92
MISC metadata.xml 1312 BLAKE2B a03042bd9d39465fe7ae45d6b749571fc4d22cf9d7f81d3cd498b155729576ec1f2ddec03c2c662ecb23abfd19a627ba2cbe9798960009e998a8823902062118 SHA512 3c4463de4a8871ab56fe74c286977fda3037e953d5fa26162d07976efa00b0d99bc98295435a7c5233c43b27369e31eb5d1c0b4c66600477a307aa1a7a322e1c
diff --git a/dev-lisp/sbcl/sbcl-2.0.7.ebuild b/dev-lisp/sbcl/sbcl-2.0.7.ebuild
new file mode 100644
index 000000000000..97c94b401320
--- /dev/null
+++ b/dev-lisp/sbcl/sbcl-2.0.7.ebuild
@@ -0,0 +1,246 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit multilib eutils flag-o-matic pax-utils toolchain-funcs
+
+#same order as http://www.sbcl.org/platform-table.html
+BV_X86=1.4.3
+BV_AMD64=2.0.7
+BV_PPC=1.2.7
+BV_SPARC=1.0.28
+BV_ALPHA=1.0.28
+BV_ARM=1.4.11
+BV_ARM64=1.4.2
+BV_X86_MACOS=1.1.6
+BV_X64_MACOS=1.2.11
+BV_PPC_MACOS=1.0.47
+BV_X86_SOLARIS=1.2.7
+BV_X64_SOLARIS=1.2.7
+BV_SPARC_SOLARIS=1.0.23
+
+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 )
+ arm? ( mirror://sourceforge/sbcl/${PN}-${BV_ARM}-armhf-linux-binary.tar.bz2 )
+ arm64? ( mirror://sourceforge/sbcl/${PN}-${BV_ARM64}-arm64-linux-binary.tar.bz2 )
+ x86-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_MACOS}-x86-darwin-binary.tar.bz2 )
+ x64-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_MACOS}-x86-64-darwin-binary.tar.bz2 )
+ ppc-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC_MACOS}-powerpc-darwin-binary.tar.bz2 )
+ x86-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_SOLARIS}-x86-solaris-binary.tar.bz2 )
+ x64-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_SOLARIS}-x86-64-solaris-binary.tar.bz2 )
+ sparc-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC_SOLARIS}-sparc-solaris-binary.tar.bz2 )"
+
+LICENSE="MIT"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~x86-solaris"
+IUSE="debug doc source +threads +unicode pax_kernel zlib"
+
+CDEPEND=">=dev-lisp/asdf-3.1:="
+DEPEND="${CDEPEND}
+ doc? ( sys-apps/texinfo >=media-gfx/graphviz-2.26.0 )
+ pax_kernel? ( sys-apps/elfix )"
+RDEPEND="${CDEPEND}
+ !prefix? ( elibc_glibc? ( >=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-*-* sbcl-binary || die
+ cd "${S}"
+}
+
+src_prepare() {
+ # bug #468482
+ eapply "${FILESDIR}"/concurrency-test-2.0.1.patch
+ # bugs #486552, #527666, #517004
+ eapply "${FILESDIR}"/bsd-sockets-test-2.0.5.patch
+ # bugs #560276, #561018
+ eapply "${FILESDIR}"/sb-posix-test-1.2.15.patch
+
+ eapply "${FILESDIR}"/${PN}-1.2.11-solaris.patch
+ eapply "${FILESDIR}"/verbose-build-2.0.3.patch
+
+ eapply_user
+
+ # Make sure the *FLAGS variables are sane.
+ # sbcl needs symbols in resulting binaries, so building with the -s linker flag will fail.
+ strip-unsupported-flags
+ filter-flags -fomit-frame-pointer -Wl,-s
+ filter-ldflags -s
+
+ # original bugs #526194, #620532
+ # this broke no-pie default builds, c.f. bug #632670
+ # Pass CFLAGS down by appending our value, to let users override
+ # the default values.
+ # Keep passing LDFLAGS down via the LINKFLAGS variable.
+ sed -e "s@\(CFLAGS += -g .*\)\$@\1 ${CFLAGS}@" \
+ -e "s@LINKFLAGS += -g\$@LINKFLAGS += ${LDFLAGS}@" \
+ -i src/runtime/GNUmakefile || die
+
+ sed -e "s@SBCL_PREFIX=\"/usr/local\"@SBCL_PREFIX=\"${EPREFIX}/usr\"@" \
+ -i make-config.sh || die
+
+ # Use installed ASDF version
+ cp "${EPREFIX}"/usr/share/common-lisp/source/asdf/build/asdf.lisp contrib/asdf/ || die
+ # Avoid installation of ASDF info page. See bug #605752
+ sed '/INFOFILES/s/asdf.info//' -i doc/manual/Makefile || 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,${EPREFIX}/usr/$(get_libdir),g" -i src/runtime/runtime.c || die
+ # change location of /etc/sbclrc ...
+ sed "s,/etc/sbclrc,${EPREFIX}/etc/sbclrc,g" -i src/code/toplevel.lisp || 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
+
+ if use pax_kernel ; then
+ # To disable PaX on hardened systems
+ pax-mark -mr "${bindir}"/src/runtime/sbcl
+
+ # Hack to disable PaX on second GENESIS stage
+ sed -i -e '/^[ \t]*echo \/\/doing warm init - compilation phase$/a\ paxmark.sh -mr \.\/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}" PATH="${PATH}" \
+ 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}" PATH="${PATH}" \
+ 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}" PATH="${PATH}" \
+ 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//' > "${ED}"/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"${EPREFIX}/usr/$(get_libdir)/sbcl/src/**/*.*")
+ X ("SYS:CONTRIB;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/**/*.*")))
+ X
+ ;;; Setup ASDF2
+ (load "${EPREFIX}/etc/common-lisp/gentoo-init.lisp")
+ EOF
+
+ # Install documentation
+ unset SBCL_HOME
+ INSTALL_ROOT="${ED}/usr" LIB_DIR="${EPREFIX}/usr/$(get_libdir)" DOC_DIR="${ED}/usr/share/doc/${PF}" \
+ sh install.sh || die "install.sh failed"
+
+ # bug #517008
+ pax-mark -mr "${D}"/usr/bin/sbcl
+
+ # rm empty directories lest paludis complain about this
+ find "${ED}" -empty -type d -exec rmdir -v {} +
+
+ if use doc; then
+ dodoc -r doc/internals/sbcl-internals
+
+ doinfo doc/manual/*.info*
+ doinfo doc/internals/sbcl-internals.info
+
+ docinto internals-notes
+ dodoc doc/internals-notes/*
+ else
+ rm -Rv "${ED}/usr/share/doc/${PF}" || die
+ fi
+
+ # install the SBCL source
+ if use source; then
+ ./clean.sh
+ cp -av src "${ED}/usr/$(get_libdir)/sbcl/" || die
+ fi
+
+ # necessary for running newly-saved images
+ echo "SBCL_HOME=${EPREFIX}/usr/$(get_libdir)/${PN}" > "${ENVD}"
+ echo "SBCL_SOURCE_ROOT=${EPREFIX}/usr/$(get_libdir)/${PN}/src" >> "${ENVD}"
+ doenvd "${ENVD}"
+}