Gentoo Archives: gentoo-commits

From: Andrey Grozin <grozin@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lisp/sbcl/, dev-lisp/sbcl/files/
Date: Fri, 15 Mar 2019 15:59:55
Message-Id: 1552665570.3615ca8fe7b01d94562525f0f798b59531f40c42.grozin@gentoo
1 commit: 3615ca8fe7b01d94562525f0f798b59531f40c42
2 Author: Andrey Grozin <grozin <AT> gentoo <DOT> org>
3 AuthorDate: Fri Mar 15 15:59:30 2019 +0000
4 Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org>
5 CommitDate: Fri Mar 15 15:59:30 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3615ca8f
7
8 dev-lisp/sbcl: cleaning old versions
9
10 Package-Manager: Portage-2.3.62, Repoman-2.3.12
11 Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org>
12
13 dev-lisp/sbcl/Manifest | 13 -
14 .../sbcl/files/sbcl-1.3.19-bsd-sockets-test.patch | 363 ---------------------
15 dev-lisp/sbcl/sbcl-1.3.21.ebuild | 237 --------------
16 dev-lisp/sbcl/sbcl-1.4.10.ebuild | 246 --------------
17 dev-lisp/sbcl/sbcl-1.4.11.ebuild | 246 --------------
18 dev-lisp/sbcl/sbcl-1.4.12.ebuild | 246 --------------
19 dev-lisp/sbcl/sbcl-1.4.13.ebuild | 246 --------------
20 dev-lisp/sbcl/sbcl-1.4.7.ebuild | 246 --------------
21 dev-lisp/sbcl/sbcl-1.4.8.ebuild | 246 --------------
22 9 files changed, 2089 deletions(-)
23
24 diff --git a/dev-lisp/sbcl/Manifest b/dev-lisp/sbcl/Manifest
25 index 4d0688ddf08..ad1f9145451 100644
26 --- a/dev-lisp/sbcl/Manifest
27 +++ b/dev-lisp/sbcl/Manifest
28 @@ -11,25 +11,12 @@ DIST sbcl-1.2.7-x86-solaris-binary.tar.bz2 10351529 BLAKE2B 9b7324c8177856c60242
29 DIST sbcl-1.3.11-source.tar.bz2 5790557 BLAKE2B d6b493d880ab2481f18381475165a3eed585fa46e626eb1e762cced29a6a7315be638df6f44ffdc694d8fb55509f912267a7dbe8892b6672eb56e839f55908ff SHA512 07cce0b33f1d41bc208827d228ae356b56165bb55fab72c48973a15a63e2e680aafc16db67d36cc4952f71101faaacafd9660276cd67673314f1699d6a91af82
30 DIST sbcl-1.3.11-x86-64-linux-binary.tar.bz2 9248214 BLAKE2B f1f6ebbec168a47d7405c15c63a70f10afad2d271d17dfa461f94bd8b1a1c21506a3a9c1d7ffe2501cc70419406e0d73b53a34ff9ff003e4791170101b7b1293 SHA512 ffb443f9e3ede2f9dbdc1bf28554bd59ef1fd5ad855465ee10f9835221fde20211188e881be854b4760870b122dfc6c5ad5c8cad1bea613ffb3b6a6f67a36056
31 DIST sbcl-1.3.12-armhf-linux-binary.tar.bz2 9193847 BLAKE2B 27106c0144ee99f534cd0a59cfb331ef8f39dbefdc76e294a8671523b1c05f42353d31b8e74600dd01f85fb5156d39216a877d77aba57a061427ea1dc28a492e SHA512 5bdb4e2b584933e9ee9aaa2ba68328f219f072af802782ee5dedf83baa5c679cd5a1ccbf3458678810ccb8679ffd392d4fba108e86d537e10554c1860bfd4de5
32 -DIST sbcl-1.3.16-arm64-linux-binary.tar.bz2 11228304 BLAKE2B 7825a53a86fdca32a2f99ff9ec9337b041c468831815d59f173a9f62e839e7b3f9f7a8d4e7d0d7586d126ac71fef332c193211e828528715036681776f3c59d6 SHA512 919835547d7613f64a2470157401e83c14584049602f21566a324af9fcbdfa838f5f2a7c5c6e28f3c3b5ccdec640024ce9c12b607a25741ad4c4d6e9813af3b8
33 -DIST sbcl-1.3.21-source.tar.bz2 5901141 BLAKE2B 6c8c678a964595fdc74121e62ce46721c37dc326591a0401fa162e8abd2cd35f4ce4c58d426607239077669609e55277c0d88f3ab26a7fad4bfcd9c5463439d7 SHA512 845f4977b46236b9e018c6c7e5cf5628aed6b75b0ec942cd0c54fb91b6dc7d46369e346cd3c3dbb3f4084e06ef81a168c5f5fec72c4ca649504aeaef4b71c1e5
34 -DIST sbcl-1.3.21-x86-64-linux-binary.tar.bz2 10633302 BLAKE2B bb427994983d3ba5dc079dfa50188ed7339dee8a1e7ffb571c51b0c727b9d03ecef31f287837a6f3fc1f2dc0bbd4d92b4d4d078fb41e559a540ed6f411a74370 SHA512 a0ce82d35874344e72dd013df835000eb07656f3fcdb583e577f9d6ab37d7f81ab0c8c20e2f809d9d36c4139274fe722bb1e8a6ceb3f47d1f62bc3fc46c5cade
35 DIST sbcl-1.3.9-armhf-linux-binary.tar.bz2 9161130 BLAKE2B 0dbfe39803d6e3955124fa1a619da7b6d4ec9e7d6eb78e868508c61bf478a980cb15ba427ef0b38d0f051ce38b881020534c0d37bfbcd81a8d763654283669ec SHA512 309e2ac7ef9ac95bf751432cf243af0de022c5b21054df2bf4e99da4ff087218af72b0ab3be69214eba3df1b6bbe707cc28840508e960c5d2ed2af0e86de3fdd
36 -DIST sbcl-1.4.10-source.tar.bz2 6161728 BLAKE2B 192f008ec2f488f3f28375e56f5c90e3bdd655522db5f6cbd90a9e0dcb8b948a864bfcf818c7b3becd7b08162842f49cef0695a4ffdc7d7767c3cdffbfbf1279 SHA512 647e4cb61c1f9df6286c6d58c0f71d949aa1e359970ce7134202f00d319961fc0961d597bbdd48f7ebee5c0b8e16e5bddef772bc03b5bbaa19d508b283ef4990
37 DIST sbcl-1.4.11-armhf-linux-binary.tar.bz2 9767589 BLAKE2B 2949338bc19973e0ca38f435caaa4c991a6c86d70dc092a4f1b6ec3eefa47af76f2a0c3fd8a4f8004127f4b8b3666a5cf4260b6ab56802308880067e4eaf8568 SHA512 297edddc36e9b9de080f9e25faa323e23877af234104b4b7e0fe2b74f0dd117d9cf0caa87b79718a8b071bcb5e97c8118f1d11af0e4aba2a961beb40c4dc99cb
38 -DIST sbcl-1.4.11-source.tar.bz2 6168945 BLAKE2B bff67a41265c06d38b62ee6ab64b750af86a26ff8945dc6ad910ea6e2e2359652cfaabca4710e0a2e967af35e883d4095bbc89721f2e0cafefa1af475ded4a20 SHA512 4a86a3fd355bc77616941af5dadff72b56cc212babfebff1f21db7546f9aa49c75b4ef3302712239eef957ceaba571cd41bec664824d6d996966d6ad8a7b274b
39 -DIST sbcl-1.4.11-x86-64-linux-binary.tar.bz2 10263675 BLAKE2B bb8f1d15ebdca6f980e9da5073884115f6ee70fe0837b0718d72b9f64f5c5706c1c56cae6b232d7cf48a858a0d00237cd6df9c4721b746a1902f603672f3a5f4 SHA512 8fc7bd9cc5742eb60e649069ce575f5dad9f0285388a920432c1b4662f24e38de1b45ae9128ba33b5f5ee585d4ce737e0178295d37a38c8185be661599bc65bb
40 -DIST sbcl-1.4.12-source.tar.bz2 6166453 BLAKE2B a85589610b6bad9bd2688c0320f4668508e923418f78a7ba6010c5f28c23cb23bc926156e3ea63dab6e23c38847449ffd0f7ae17db1ea3e49d0dad7b6b2db633 SHA512 5c6886a28460afc2fae67c8d651d718faf0e01c382010311c11fd15ba65c0073ec7bb63bdc74459b33cee062e1c1a50ab48d8f4cea47d626d710deb75553e377
41 -DIST sbcl-1.4.12-x86-64-linux-binary.tar.bz2 10226228 BLAKE2B da5ab75c4913424774beadd47c0d5a5e1ea2885c0e45891ff9b730ea63a60ae1532e79b74ba1ac4f719447cce02e997ae0c771a0a916de646be1809068b82248 SHA512 6eb8bd4a7a5bddb06d7cc7a3224f2edad7add58c0af88b2d36ef6523a942d30f659189833def36c4688ffaf7046b11c3b4ddca09473af234cab3527ecca96220
42 -DIST sbcl-1.4.13-source.tar.bz2 6172361 BLAKE2B 7a3ae9fee025b72a5d5efc6c6cb0fbdc094cc8d31dbe0191dd126f2f6a7fd3944c7faa2ae23fab6e584e63760cce2d3e1c516c9b4d91eae9c9f18efdeebf3fa0 SHA512 976336bc5d3477a89afac51c3ee89e4153f0fca923ea477d4b312d8d231bccc215a31956198b2b670d86e17580d874bc964e12aa8207a17f61d20e4be41e4fcd
43 -DIST sbcl-1.4.13-x86-64-linux-binary.tar.bz2 10157554 BLAKE2B 24954d81149c0c5048c92dec04bf9b8ebbf4e630248a3ae6eed5ed1f8c871a5e428ecdb2142223f2823746480bb5bf0cacbeb98508d64cce5ebed58336022732 SHA512 81832ca6e6763783730c5f85325f5584d1bbb8b9bbd0c83cd0d3cabee2a832ea18409243a7a674a251561f31c2bc8f2b723768ddd8729141261ba0301e357980
44 DIST sbcl-1.4.15-source.tar.bz2 6203416 BLAKE2B 181f237bf91c5923a343f8a249af78d6cd8c17b8af5fb93a9045677f1c604367dba5f4eb135dd368da48b55af6dfef8e2ea788c435a0ad787bcb6d4edebd3edf SHA512 9b38549c9a6170616b6966f98240df088f4a7c01d8aa939a8d38e1b2a7fdf5cea02c0346aa64c825949477ba56d57960db69018e31ec8ef6d78c8217a240a8db
45 DIST sbcl-1.4.15-x86-64-linux-binary.tar.bz2 10318352 BLAKE2B 2da21f7a72602d461849adbdda2c3149b5bd66c0639964ef0bd78f4095f8caa229f1c3f0247d03c49773f9b716cc92ed760e5ba5c08005f73263a3ceef8d4e42 SHA512 0b07a9625b227537d264263e5cf9a32b6e4a6389bce2a60a7f4569441d0c22d6ec1bacfa4e43952ec766edd1336d1afc00c9da21bd8308c483a46cbe0824e11b
46 DIST sbcl-1.4.2-arm64-linux-binary.tar.bz2 10578821 BLAKE2B 1cd25c548be0f1b7ec01edc3bee7fe6c2aaf07b7bd1fc55d408dee7ac95e8f3761a194bf9e8efb734179a7eff04cdae2fe5ba4a9ba5ab06f7322ac1550d142cc SHA512 39bbd735b242aa0bbac05c6f4dbe28cb45e01684db7e5b4f1e51f995a9f9d5b484f63cc4243f472f72b3b1e6c4cd2268a7e812b15426eca5cf9a1fede10f44bb
47 DIST sbcl-1.4.3-x86-linux-binary.tar.bz2 10227185 BLAKE2B 6d77c4f4177cbdb72fb9bab0da5bd91e0aa8deafffd238818a2551332f0ab246715d9489b5c1156f3481aa7fb79d161a988404620fc09fe86ff927543a1ee678 SHA512 41cd63d61dd7c46370341dce39a362287a23b528bfebe8e5571614aeefdea03d318207d25562e995db9ccedb6c1f50ea4d66627721f0fd9486e99440126e6a38
48 -DIST sbcl-1.4.7-source.tar.bz2 6031614 BLAKE2B b98d8c3891e4f3180624ef0ccc1e81146d97e58c577c9efb2b3ac178f81a836f4019111a6c33ec31edb47d41920249c33a87955303c02ffc608ea42747b7f662 SHA512 b6eb749878920bec90f50f19c8c8700f700677ae1a7f7fb1ba1bbaa37f218d36eeee0dea65eb200f0cd09a9694600969f4c15042faf357395715b5390a6fdb6b
49 -DIST sbcl-1.4.7-x86-64-linux-binary.tar.bz2 10380734 BLAKE2B 0d39cc7b0873e938e85182b687b0a1be9200c4ebe67c7175b7c9c6393b27c8f78bd2afa201b7ca91c39bcaeed4456f2578901518850b1db0975cddd55e9b0210 SHA512 517b6935e51ea56ee2c67692980fe7fa7382a2e4501437c7ec00a52aefeebd5e442f4bb8dbfdbe32e43a301fc5f0c584604027e7889ebb8ba269cafe866d6381
50 -DIST sbcl-1.4.8-source.tar.bz2 6040563 BLAKE2B e4d16993cec80a8d40bad9071c6ce0a9ce80aae4d49f682fc58d4a8124dd14200229dc063cb653af753afece1ca98d77b600d2c7f80d17e6b9fd8af33a5297f3 SHA512 f8bd6b4126b19de4e73557319118aa03999caf84c8913bdd51ce18b8ddba14944f3d1daf08f852b72ae862ae0e613dbfbfdddca3750f4464c1be924d685ccc9d
51 DIST sbcl-1.4.8-x86-64-linux-binary.tar.bz2 10353701 BLAKE2B 5b56f46fbdb87f015ed1fe103b6caaf43d2d424b45e2574e306b3d3cbc3c7bdfa48847a2e6d7d819e6bf4b59fa02ea01f9ce6b023802ae6f91fc7f56e5a260de SHA512 f3cb3c30dec1b7e6ac0c1b67de26192723871f8a8d543a41d7c4d04b0813fd7da1043433237b648a2c23f73169fe38f2ec3a3c2bd412eb4c9d36ed929c40f27d
52 DIST sbcl-1.4.9-source.tar.bz2 6051607 BLAKE2B 8abcaf73233ea1a23d47987b16554636dcf94acfbc7ab731f0730fdb4a8176593fb3ab52d9b25b3dd56753cd984f7e0eddb1585a142eb7ad1aa5e3e03d7b0ca9 SHA512 e0248f460f9737d47653dd520732062d2637813b550df356ecc90aa6d21fbdd74f03182d1e890c09c1da742f7d57b4fbd04a4e6dc36999aca51bb6c2952ac236
53 DIST sbcl-1.5.0-source.tar.bz2 6257355 BLAKE2B bbdca91c5baa28e4522bf37be041a2f7e8237d15c700f49960516e578ee7509fa3959022df3a7c3a4125bc2893f99d0a839a02ad484d5061cccffe900a078baf SHA512 c09fb26ec7abdb5275165806c61000bc258281d9e745eafe67ac5a6542fcca2741395de5f39aebaf140d2ec9a58327e883fee8a6c4f320f4cbbd204806b7b5c7
54
55 diff --git a/dev-lisp/sbcl/files/sbcl-1.3.19-bsd-sockets-test.patch b/dev-lisp/sbcl/files/sbcl-1.3.19-bsd-sockets-test.patch
56 deleted file mode 100644
57 index c5a16ae0577..00000000000
58 --- a/dev-lisp/sbcl/files/sbcl-1.3.19-bsd-sockets-test.patch
59 +++ /dev/null
60 @@ -1,363 +0,0 @@
61 -diff -Nuar a/contrib/sb-bsd-sockets/tests.lisp b/contrib/sb-bsd-sockets/tests.lisp
62 ---- a/contrib/sb-bsd-sockets/tests.lisp 2017-06-28 12:51:14.000000000 +0200
63 -+++ b/contrib/sb-bsd-sockets/tests.lisp 2017-07-02 17:18:23.862316798 +0200
64 -@@ -35,15 +35,15 @@
65 - ;;; See https://bugs.launchpad.net/sbcl/+bug/659857
66 - ;;; Apparently getprotobyname_r on FreeBSD says -1 and EINTR
67 - ;;; for unknown protocols...
68 --#-(and freebsd sb-thread)
69 --#-(and dragonfly sb-thread)
70 --(deftest get-protocol-by-name/error
71 -- (handler-case (get-protocol-by-name "nonexistent-protocol")
72 -- (unknown-protocol ()
73 -- t)
74 -- (:no-error ()
75 -- nil))
76 -- t)
77 -+;#-(and freebsd sb-thread)
78 -+;#-(and dragonfly sb-thread)
79 -+;(deftest get-protocol-by-name/error
80 -+; (handler-case (get-protocol-by-name "nonexistent-protocol")
81 -+; (unknown-protocol ()
82 -+; t)
83 -+; (:no-error ()
84 -+; nil))
85 -+; t)
86 -
87 - (when (handler-case (make-instance 'inet-socket
88 - :type :stream
89 -@@ -102,21 +102,21 @@
90 - (:no-error nil))
91 - t)
92 -
93 --#-win32
94 --(deftest make-inet6-socket.smoke
95 -- (handler-case
96 -- (let ((s (make-instance 'inet6-socket :type :stream :protocol (get-protocol-by-name "tcp"))))
97 -- (> (socket-file-descriptor s) 1))
98 -- ((or address-family-not-supported protocol-not-supported-error) () t))
99 -- t)
100 --
101 --#-win32
102 --(deftest make-inet6-socket.keyword
103 -- (handler-case
104 -- (let ((s (make-instance 'inet6-socket :type :stream :protocol :tcp)))
105 -- (> (socket-file-descriptor s) 1))
106 -- ((or address-family-not-supported protocol-not-supported-error) () t))
107 -- t)
108 -+;#-win32
109 -+;(deftest make-inet6-socket.smoke
110 -+; (handler-case
111 -+; (let ((s (make-instance 'inet6-socket :type :stream :protocol (get-protocol-by-name "tcp"))))
112 -+; (> (socket-file-descriptor s) 1))
113 -+; ((or address-family-not-supported protocol-not-supported-error) () t))
114 -+; t)
115 -+
116 -+;#-win32
117 -+;(deftest make-inet6-socket.keyword
118 -+; (handler-case
119 -+; (let ((s (make-instance 'inet6-socket :type :stream :protocol :tcp)))
120 -+; (> (socket-file-descriptor s) 1))
121 -+; ((or address-family-not-supported protocol-not-supported-error) () t))
122 -+; t)
123 -
124 - #+ipv4-support
125 - (deftest* (non-block-socket)
126 -@@ -125,55 +125,55 @@
127 - (non-blocking-mode s))
128 - t)
129 -
130 --#+ipv4-support
131 --(deftest inet-socket-bind
132 -- (let* ((tcp (get-protocol-by-name "tcp"))
133 -- (address (make-inet-address "127.0.0.1"))
134 -- (s1 (make-instance 'inet-socket :type :stream :protocol tcp))
135 -- (s2 (make-instance 'inet-socket :type :stream :protocol tcp)))
136 -- (unwind-protect
137 -- ;; Given the functions we've got so far, if you can think of a
138 -- ;; better way to make sure the bind succeeded than trying it
139 -- ;; twice, let me know
140 -- (progn
141 -- (socket-bind s1 address 0)
142 -- (handler-case
143 -- (let ((port (nth-value 1 (socket-name s1))))
144 -- (socket-bind s2 address port)
145 -- nil)
146 -- (address-in-use-error () t)))
147 -- (socket-close s1)
148 -- (socket-close s2)))
149 -- t)
150 --
151 --#-win32
152 --(deftest inet6-socket-bind
153 -- (handler-case
154 -- (let* ((tcp (get-protocol-by-name "tcp"))
155 -- (address (make-inet6-address "::1"))
156 -- (s1 (make-instance 'inet6-socket :type :stream :protocol tcp))
157 -- (s2 (make-instance 'inet6-socket :type :stream :protocol tcp)))
158 -- (unwind-protect
159 -- ;; Given the functions we've got so far, if you can think of a
160 -- ;; better way to make sure the bind succeeded than trying it
161 -- ;; twice, let me know
162 -- (handler-case
163 -- (socket-bind s1 address 0)
164 -- (socket-error ()
165 -- ;; This may mean no IPv6 support, can't fail a test
166 -- ;; because of that (address-family-not-supported doesn't catch that)
167 -- t)
168 -- (:no-error (x)
169 -- (declare (ignore x))
170 -- (handler-case
171 -- (let ((port (nth-value 1 (socket-name s1))))
172 -- (socket-bind s2 address port)
173 -- nil)
174 -- (address-in-use-error () t))))
175 -- (socket-close s1)
176 -- (socket-close s2)))
177 -- ((or address-family-not-supported protocol-not-supported-error) () t))
178 -- t)
179 -+;#+ipv4-support
180 -+;(deftest inet-socket-bind
181 -+; (let* ((tcp (get-protocol-by-name "tcp"))
182 -+; (address (make-inet-address "127.0.0.1"))
183 -+; (s1 (make-instance 'inet-socket :type :stream :protocol tcp))
184 -+; (s2 (make-instance 'inet-socket :type :stream :protocol tcp)))
185 -+; (unwind-protect
186 -+; ;; Given the functions we've got so far, if you can think of a
187 -+; ;; better way to make sure the bind succeeded than trying it
188 -+; ;; twice, let me know
189 -+; (progn
190 -+; (socket-bind s1 address 0)
191 -+; (handler-case
192 -+; (let ((port (nth-value 1 (socket-name s1))))
193 -+; (socket-bind s2 address port)
194 -+; nil)
195 -+; (address-in-use-error () t)))
196 -+; (socket-close s1)
197 -+; (socket-close s2)))
198 -+; t)
199 -+
200 -+;#-win32
201 -+;(deftest inet6-socket-bind
202 -+; (handler-case
203 -+; (let* ((tcp (get-protocol-by-name "tcp"))
204 -+; (address (make-inet6-address "::1"))
205 -+; (s1 (make-instance 'inet6-socket :type :stream :protocol tcp))
206 -+; (s2 (make-instance 'inet6-socket :type :stream :protocol tcp)))
207 -+; (unwind-protect
208 -+; ;; Given the functions we've got so far, if you can think of a
209 -+; ;; better way to make sure the bind succeeded than trying it
210 -+; ;; twice, let me know
211 -+; (handler-case
212 -+; (socket-bind s1 address 0)
213 -+; (socket-error ()
214 -+; ;; This may mean no IPv6 support, can't fail a test
215 -+; ;; because of that (address-family-not-supported doesn't catch that)
216 -+; t)
217 -+; (:no-error (x)
218 -+; (declare (ignore x))
219 -+; (handler-case
220 -+; (let ((port (nth-value 1 (socket-name s1))))
221 -+; (socket-bind s2 address port)
222 -+; nil)
223 -+; (address-in-use-error () t))))
224 -+; (socket-close s1)
225 -+; (socket-close s2)))
226 -+; ((or address-family-not-supported protocol-not-supported-error) () t))
227 -+; t)
228 -
229 - #+ipv4-support
230 - (deftest* (simple-sockopt-test)
231 -@@ -241,37 +241,37 @@
232 - ;;; to look at /etc/syslog.conf or local equivalent to find out where
233 - ;;; the message ended up
234 -
235 --#-win32
236 --(deftest simple-local-client
237 -- (progn
238 -- ;; SunOS (Solaris) and Darwin systems don't have a socket at
239 -- ;; /dev/log. We might also be building in a chroot or
240 -- ;; something, so don't fail this test just because the file is
241 -- ;; unavailable, or if it's a symlink to some weird character
242 -- ;; device.
243 -- (when (block nil
244 -- (handler-bind ((sb-posix:syscall-error
245 -- (lambda (e)
246 -- (declare (ignore e))
247 -- (return nil))))
248 -- (sb-posix:s-issock
249 -- (sb-posix::stat-mode (sb-posix:stat "/dev/log")))))
250 -- (let ((s (make-instance 'local-socket :type :datagram)))
251 -- (format t "Connecting ~A... " s)
252 -- (finish-output)
253 -- (handler-case
254 -- (socket-connect s "/dev/log")
255 -- (sb-bsd-sockets::socket-error ()
256 -- (setq s (make-instance 'local-socket :type :stream))
257 -- (format t "failed~%Retrying with ~A... " s)
258 -- (finish-output)
259 -- (socket-connect s "/dev/log")))
260 -- (format t "ok.~%")
261 -- (let ((stream (socket-make-stream s :input t :output t :buffering :none)))
262 -- (format stream
263 -- "<7>bsd-sockets: Don't panic. We're testing local-domain client code; this message can safely be ignored"))))
264 -- t)
265 -- t)
266 -+;#-win32
267 -+;(deftest simple-local-client
268 -+; (progn
269 -+; ;; SunOS (Solaris) and Darwin systems don't have a socket at
270 -+; ;; /dev/log. We might also be building in a chroot or
271 -+; ;; something, so don't fail this test just because the file is
272 -+; ;; unavailable, or if it's a symlink to some weird character
273 -+; ;; device.
274 -+; (when (block nil
275 -+; (handler-bind ((sb-posix:syscall-error
276 -+; (lambda (e)
277 -+; (declare (ignore e))
278 -+; (return nil))))
279 -+; (sb-posix:s-issock
280 -+; (sb-posix::stat-mode (sb-posix:stat "/dev/log")))))
281 -+; (let ((s (make-instance 'local-socket :type :datagram)))
282 -+; (format t "Connecting ~A... " s)
283 -+; (finish-output)
284 -+; (handler-case
285 -+; (socket-connect s "/dev/log")
286 -+; (sb-bsd-sockets::socket-error ()
287 -+; (setq s (make-instance 'local-socket :type :stream))
288 -+; (format t "failed~%Retrying with ~A... " s)
289 -+; (finish-output)
290 -+; (socket-connect s "/dev/log")))
291 -+; (format t "ok.~%")
292 -+; (let ((stream (socket-make-stream s :input t :output t :buffering :none)))
293 -+; (format stream
294 -+; "<7>bsd-sockets: Don't panic. We're testing local-domain client code; this message can safely be ignored"))))
295 -+; t)
296 -+; t)
297 -
298 -
299 - ;;; these require that the internet (or bits of it, at least) is available
300 -@@ -388,60 +388,60 @@
301 - (format t "Received ~A bytes from ~A:~A - ~A ~%"
302 - len address port (subseq buf 0 (min 10 len)))))))
303 -
304 --#+(and ipv4-support sb-thread)
305 --(deftest interrupt-io
306 -- (let (result)
307 -- (labels
308 -- ((client (port)
309 -- (setf result
310 -- (let ((s (make-instance 'inet-socket
311 -- :type :stream
312 -- :protocol :tcp)))
313 -- (socket-connect s #(127 0 0 1) port)
314 -- (let ((stream (socket-make-stream s
315 -- :input t
316 -- :output t
317 -- :buffering :none)))
318 -- (handler-case
319 -- (prog1
320 -- (catch 'stop
321 -- (progn
322 -- (read-char stream)
323 -- (sleep 0.1)
324 -- (sleep 0.1)
325 -- (sleep 0.1)))
326 -- (close stream))
327 -- (error (c)
328 -- c))))))
329 -- (server ()
330 -- (let ((s (make-instance 'inet-socket
331 -- :type :stream
332 -- :protocol :tcp)))
333 -- (setf (sockopt-reuse-address s) t)
334 -- (socket-bind s (make-inet-address "127.0.0.1") 0)
335 -- (socket-listen s 5)
336 -- (multiple-value-bind (* port)
337 -- (socket-name s)
338 -- (let* ((client (sb-thread:make-thread
339 -- (lambda () (client port))))
340 -- (r (socket-accept s))
341 -- (stream (socket-make-stream r
342 -- :input t
343 -- :output t
344 -- :buffering :none))
345 -- (ok :ok))
346 -- (socket-close s)
347 -- (sleep 5)
348 -- (sb-thread:interrupt-thread client
349 -- (lambda () (throw 'stop ok)))
350 -- (sleep 5)
351 -- (setf ok :not-ok)
352 -- (write-char #\x stream)
353 -- (close stream)
354 -- (socket-close r))))))
355 -- (server))
356 -- result)
357 -- :ok)
358 -+;#+(and ipv4-support sb-thread)
359 -+;(deftest interrupt-io
360 -+; (let (result)
361 -+; (labels
362 -+; ((client (port)
363 -+; (setf result
364 -+; (let ((s (make-instance 'inet-socket
365 -+; :type :stream
366 -+; :protocol :tcp)))
367 -+; (socket-connect s #(127 0 0 1) port)
368 -+; (let ((stream (socket-make-stream s
369 -+; :input t
370 -+; :output t
371 -+; :buffering :none)))
372 -+; (handler-case
373 -+; (prog1
374 -+; (catch 'stop
375 -+; (progn
376 -+; (read-char stream)
377 -+; (sleep 0.1)
378 -+; (sleep 0.1)
379 -+; (sleep 0.1)))
380 -+; (close stream))
381 -+; (error (c)
382 -+; c))))))
383 -+; (server ()
384 -+; (let ((s (make-instance 'inet-socket
385 -+; :type :stream
386 -+; :protocol :tcp)))
387 -+; (setf (sockopt-reuse-address s) t)
388 -+; (socket-bind s (make-inet-address "127.0.0.1") 0)
389 -+; (socket-listen s 5)
390 -+; (multiple-value-bind (* port)
391 -+; (socket-name s)
392 -+; (let* ((client (sb-thread:make-thread
393 -+; (lambda () (client port))))
394 -+; (r (socket-accept s))
395 -+; (stream (socket-make-stream r
396 -+; :input t
397 -+; :output t
398 -+; :buffering :none))
399 -+; (ok :ok))
400 -+; (socket-close s)
401 -+; (sleep 5)
402 -+; (sb-thread:interrupt-thread client
403 -+; (lambda () (throw 'stop ok)))
404 -+; (sleep 5)
405 -+; (setf ok :not-ok)
406 -+; (write-char #\x stream)
407 -+; (close stream)
408 -+; (socket-close r))))))
409 -+; (server))
410 -+; result)
411 -+; :ok)
412 -
413 - (defmacro with-client-and-server ((server-socket-var client-socket-var) &body body)
414 - (let ((listen-socket (gensym "LISTEN-SOCKET")))
415 -@@ -501,5 +501,6 @@
416 - (define-shutdown-test ,(make-name 'shutdown.client.ub8)
417 - client server (unsigned-byte 8) ,direction)))))
418 -
419 -- (define-shutdown-tests :output)
420 -- (define-shutdown-tests :io))
421 -+; (define-shutdown-tests :output)
422 -+; (define-shutdown-tests :io)
423 -+)
424
425 diff --git a/dev-lisp/sbcl/sbcl-1.3.21.ebuild b/dev-lisp/sbcl/sbcl-1.3.21.ebuild
426 deleted file mode 100644
427 index c54c4447f9a..00000000000
428 --- a/dev-lisp/sbcl/sbcl-1.3.21.ebuild
429 +++ /dev/null
430 @@ -1,237 +0,0 @@
431 -# Copyright 1999-2018 Gentoo Foundation
432 -# Distributed under the terms of the GNU General Public License v2
433 -
434 -EAPI=6
435 -
436 -inherit multilib eutils flag-o-matic pax-utils
437 -
438 -#same order as http://www.sbcl.org/platform-table.html
439 -BV_X86=1.2.7
440 -BV_AMD64=1.3.21
441 -BV_PPC=1.2.7
442 -BV_SPARC=1.0.28
443 -BV_ALPHA=1.0.28
444 -BV_ARM=1.3.12
445 -BV_ARM64=1.3.16
446 -BV_PPC_MACOS=1.0.47
447 -BV_X86_MACOS=1.1.6
448 -BV_X64_MACOS=1.2.11
449 -BV_SPARC_SOLARIS=1.0.23
450 -BV_X86_SOLARIS=1.2.7
451 -BV_X64_SOLARIS=1.2.7
452 -
453 -DESCRIPTION="Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp"
454 -HOMEPAGE="http://sbcl.sourceforge.net/"
455 -SRC_URI="mirror://sourceforge/sbcl/${P}-source.tar.bz2
456 - x86? ( mirror://sourceforge/sbcl/${PN}-${BV_X86}-x86-linux-binary.tar.bz2 )
457 - amd64? ( mirror://sourceforge/sbcl/${PN}-${BV_AMD64}-x86-64-linux-binary.tar.bz2 )
458 - ppc? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC}-powerpc-linux-binary.tar.bz2 )
459 - sparc? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC}-sparc-linux-binary.tar.bz2 )
460 - alpha? ( mirror://sourceforge/sbcl/${PN}-${BV_ALPHA}-alpha-linux-binary.tar.bz2 )
461 - arm? ( mirror://sourceforge/sbcl/${PN}-${BV_ARM}-armhf-linux-binary.tar.bz2 )
462 - arm64? ( mirror://sourceforge/sbcl/${PN}-${BV_ARM64}-arm64-linux-binary.tar.bz2 )
463 - ppc-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC_MACOS}-powerpc-darwin-binary.tar.bz2 )
464 - x86-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_MACOS}-x86-darwin-binary.tar.bz2 )
465 - x64-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_MACOS}-x86-64-darwin-binary.tar.bz2 )
466 - sparc-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC_SOLARIS}-sparc-solaris-binary.tar.bz2 )
467 - x86-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_SOLARIS}-x86-solaris-binary.tar.bz2 )
468 - x64-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_SOLARIS}-x86-64-solaris-binary.tar.bz2 )"
469 -
470 -LICENSE="MIT"
471 -SLOT="0/${PV}"
472 -KEYWORDS="amd64 ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~x86-solaris"
473 -IUSE="debug doc source +threads +unicode pax_kernel zlib"
474 -
475 -CDEPEND=">=dev-lisp/asdf-3.1:="
476 -DEPEND="${CDEPEND}
477 - doc? ( sys-apps/texinfo >=media-gfx/graphviz-2.26.0 )
478 - pax_kernel? ( sys-apps/elfix )"
479 -RDEPEND="${CDEPEND}
480 - !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.6 ) )"
481 -
482 -# Disable warnings about executable stacks, as this won't be fixed soon by upstream
483 -QA_EXECSTACK="usr/bin/sbcl"
484 -
485 -CONFIG="${S}/customize-target-features.lisp"
486 -ENVD="${T}/50sbcl"
487 -
488 -# Prevent ASDF from using the system libraries
489 -CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)"
490 -ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)"
491 -
492 -usep() {
493 - use ${1} && echo "true" || echo "false"
494 -}
495 -
496 -sbcl_feature() {
497 - echo "$( [[ ${1} == "true" ]] && echo "(enable ${2})" || echo "(disable ${2})")" >> "${CONFIG}"
498 -}
499 -
500 -sbcl_apply_features() {
501 - sed 's/^X//' > "${CONFIG}" <<-'EOF'
502 - (lambda (list)
503 - X (flet ((enable (x) (pushnew x list))
504 - X (disable (x) (setf list (remove x list))))
505 - EOF
506 - if use x86 || use amd64; then
507 - sbcl_feature "$(usep threads)" ":sb-thread"
508 - fi
509 - sbcl_feature "true" ":sb-ldb"
510 - sbcl_feature "false" ":sb-test"
511 - sbcl_feature "$(usep unicode)" ":sb-unicode"
512 - sbcl_feature "$(usep zlib)" ":sb-core-compression"
513 - sbcl_feature "$(usep debug)" ":sb-xref-for-internals"
514 - sed 's/^X//' >> "${CONFIG}" <<-'EOF'
515 - X )
516 - X list)
517 - EOF
518 - cat "${CONFIG}"
519 -}
520 -
521 -src_unpack() {
522 - unpack ${A}
523 - mv sbcl-*-* sbcl-binary || die
524 - cd "${S}"
525 -}
526 -
527 -src_prepare() {
528 - # bug #468482
529 - eapply "${FILESDIR}"/concurrency-test-1.3.15.patch
530 - # bugs #486552, #527666, #517004
531 - eapply "${FILESDIR}"/${PN}-1.3.19-bsd-sockets-test.patch
532 - # bugs #560276, #561018
533 - eapply "${FILESDIR}"/sb-posix-test-1.2.15.patch
534 -
535 - eapply "${FILESDIR}"/${PN}-1.2.11-solaris.patch
536 - eapply "${FILESDIR}"/${PN}-1.2.13-verbose-build.patch
537 -
538 - eapply_user
539 -
540 - # bugs #526194 and #620532
541 - sed -e "s@CFLAGS +=.*\$@CFLAGS = ${CFLAGS} -Wall -Wsign-compare -Wpointer-arith@" \
542 - -e "s@LINKFLAGS += -g\$@LINKFLAGS = ${LDFLAGS}@" \
543 - -e "s@LINKFLAGS += -no-pie\$@LINKFLAGS = ${LDFLAGS} -no-pie@" \
544 - -e "s@LINKFLAGS += -nopie\$@LINKFLAGS = ${LDFLAGS} -nopie@" \
545 - -i src/runtime/GNUmakefile || die
546 -
547 - sed -e "s@SBCL_PREFIX=\"/usr/local\"@SBCL_PREFIX=\"${EPREFIX}/usr\"@" \
548 - -i make-config.sh || die
549 -
550 - cp "${EPREFIX}"/usr/share/common-lisp/source/asdf/build/asdf.lisp contrib/asdf/ || die
551 -
552 - use source && sed 's%"$(BUILD_ROOT)%$(MODULE).lisp "$(BUILD_ROOT)%' -i contrib/vanilla-module.mk
553 -
554 - # Some shells(such as dash) don't have "time" as builtin
555 - # and we don't want to DEPEND on sys-process/time
556 - sed "s,^time ,," -i make.sh || die
557 - sed "s,/lib,/$(get_libdir),g" -i install.sh || die
558 - # #define SBCL_HOME ...
559 - sed "s,/usr/local/lib,${EPREFIX}/usr/$(get_libdir),g" -i src/runtime/runtime.c || die
560 - # change location of /etc/sbclrc ...
561 - sed "s,/etc/sbclrc,${EPREFIX}/etc/sbclrc,g" -i src/code/toplevel.lisp || die
562 -
563 - find . -type f -name .cvsignore -delete
564 -}
565 -
566 -src_configure() {
567 - # customizing SBCL version as per
568 - # http://sbcl.cvs.sourceforge.net/sbcl/sbcl/doc/PACKAGING-SBCL.txt?view=markup
569 - echo -e ";;; Auto-generated by Gentoo\n\"gentoo-${PR}\"" > branch-version.lisp-expr
570 -
571 - # applying customizations
572 - sbcl_apply_features
573 -}
574 -
575 -src_compile() {
576 - local bindir="${WORKDIR}"/sbcl-binary
577 -
578 - strip-unsupported-flags ; filter-flags -fomit-frame-pointer
579 -
580 - if use pax_kernel ; then
581 - # To disable PaX on hardened systems
582 - pax-mark -mr "${bindir}"/src/runtime/sbcl
583 -
584 - # Hack to disable PaX on second GENESIS stage
585 - sed -i -e '/^[ \t]*echo \/\/doing warm init - compilation phase$/a\ paxmark.sh -mr \.\/src\/runtime\/sbcl' \
586 - "${S}"/make-target-2.sh || die "Cannot disable PaX on second GENESIS runtime"
587 - fi
588 -
589 - # clear the environment to get rid of non-ASCII strings, see bug 174702
590 - # set HOME for paludis
591 - env - HOME="${T}" PATH="${PATH}" \
592 - CC="$(tc-getCC)" AS="$(tc-getAS)" LD="$(tc-getLD)" \
593 - CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}" ASFLAGS="${ASFLAGS}" LDFLAGS="${LDFLAGS}" \
594 - GNUMAKE=make ./make.sh \
595 - "sh ${bindir}/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger" \
596 - || die "make failed"
597 -
598 - # need to set HOME because libpango(used by graphviz) complains about it
599 - if use doc; then
600 - env - HOME="${T}" PATH="${PATH}" \
601 - CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
602 - ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
603 - make -C doc/manual info html || die "Cannot build manual"
604 - env - HOME="${T}" PATH="${PATH}" \
605 - CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
606 - ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
607 - make -C doc/internals info html || die "Cannot build internal docs"
608 - fi
609 -}
610 -
611 -src_test() {
612 - ewarn "Unfortunately, it is known that some tests fail eg."
613 - ewarn "run-program.impure.lisp. This is an issue of the upstream's"
614 - ewarn "development and not of Gentoo's side. Please, before filing"
615 - ewarn "any bug(s) search for older submissions. Thank you."
616 - time ( cd tests && sh run-tests.sh )
617 -}
618 -
619 -src_install() {
620 - # install system-wide initfile
621 - dodir /etc/
622 - sed 's/^X//' > "${ED}"/etc/sbclrc <<-EOF
623 - ;;; The following is required if you want source location functions to
624 - ;;; work in SLIME, for example.
625 - X
626 - (setf (logical-pathname-translations "SYS")
627 - X '(("SYS:SRC;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/src/**/*.*")
628 - X ("SYS:CONTRIB;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/**/*.*")))
629 - X
630 - ;;; Setup ASDF2
631 - (load "${EPREFIX}/etc/common-lisp/gentoo-init.lisp")
632 - EOF
633 -
634 - # Install documentation
635 - unset SBCL_HOME
636 - INSTALL_ROOT="${ED}/usr" LIB_DIR="${EPREFIX}/usr/$(get_libdir)" DOC_DIR="${ED}/usr/share/doc/${PF}" \
637 - sh install.sh || die "install.sh failed"
638 -
639 - # bug #517008
640 - pax-mark -mr "${D}"/usr/bin/sbcl
641 -
642 - # rm empty directories lest paludis complain about this
643 - find "${ED}" -empty -type d -exec rmdir -v {} +
644 -
645 - if use doc; then
646 - dodoc -r doc/internals/sbcl-internals
647 -
648 - doinfo doc/manual/*.info*
649 - doinfo doc/internals/sbcl-internals.info
650 -
651 - docinto internals-notes
652 - dodoc doc/internals-notes/*
653 - else
654 - rm -Rv "${ED}/usr/share/doc/${PF}" || die
655 - fi
656 -
657 - # install the SBCL source
658 - if use source; then
659 - ./clean.sh
660 - cp -av src "${ED}/usr/$(get_libdir)/sbcl/" || die
661 - fi
662 -
663 - # necessary for running newly-saved images
664 - echo "SBCL_HOME=${EPREFIX}/usr/$(get_libdir)/${PN}" > "${ENVD}"
665 - echo "SBCL_SOURCE_ROOT=${EPREFIX}/usr/$(get_libdir)/${PN}/src" >> "${ENVD}"
666 - doenvd "${ENVD}"
667 -}
668
669 diff --git a/dev-lisp/sbcl/sbcl-1.4.10.ebuild b/dev-lisp/sbcl/sbcl-1.4.10.ebuild
670 deleted file mode 100644
671 index f07d8939edf..00000000000
672 --- a/dev-lisp/sbcl/sbcl-1.4.10.ebuild
673 +++ /dev/null
674 @@ -1,246 +0,0 @@
675 -# Copyright 1999-2018 Gentoo Foundation
676 -# Distributed under the terms of the GNU General Public License v2
677 -
678 -EAPI=6
679 -
680 -inherit multilib eutils flag-o-matic pax-utils
681 -
682 -#same order as http://www.sbcl.org/platform-table.html
683 -BV_X86=1.4.3
684 -BV_AMD64=1.4.8
685 -BV_PPC=1.2.7
686 -BV_SPARC=1.0.28
687 -BV_ALPHA=1.0.28
688 -BV_ARM=1.3.12
689 -BV_ARM64=1.4.2
690 -BV_X86_MACOS=1.1.6
691 -BV_X64_MACOS=1.2.11
692 -BV_PPC_MACOS=1.0.47
693 -BV_X86_SOLARIS=1.2.7
694 -BV_X64_SOLARIS=1.2.7
695 -BV_SPARC_SOLARIS=1.0.23
696 -
697 -DESCRIPTION="Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp"
698 -HOMEPAGE="http://sbcl.sourceforge.net/"
699 -SRC_URI="mirror://sourceforge/sbcl/${P}-source.tar.bz2
700 - x86? ( mirror://sourceforge/sbcl/${PN}-${BV_X86}-x86-linux-binary.tar.bz2 )
701 - amd64? ( mirror://sourceforge/sbcl/${PN}-${BV_AMD64}-x86-64-linux-binary.tar.bz2 )
702 - ppc? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC}-powerpc-linux-binary.tar.bz2 )
703 - sparc? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC}-sparc-linux-binary.tar.bz2 )
704 - alpha? ( mirror://sourceforge/sbcl/${PN}-${BV_ALPHA}-alpha-linux-binary.tar.bz2 )
705 - arm? ( mirror://sourceforge/sbcl/${PN}-${BV_ARM}-armhf-linux-binary.tar.bz2 )
706 - arm64? ( mirror://sourceforge/sbcl/${PN}-${BV_ARM64}-arm64-linux-binary.tar.bz2 )
707 - x86-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_MACOS}-x86-darwin-binary.tar.bz2 )
708 - x64-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_MACOS}-x86-64-darwin-binary.tar.bz2 )
709 - ppc-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC_MACOS}-powerpc-darwin-binary.tar.bz2 )
710 - x86-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_SOLARIS}-x86-solaris-binary.tar.bz2 )
711 - x64-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_SOLARIS}-x86-64-solaris-binary.tar.bz2 )
712 - sparc-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC_SOLARIS}-sparc-solaris-binary.tar.bz2 )"
713 -
714 -LICENSE="MIT"
715 -SLOT="0/${PV}"
716 -KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~x86-solaris"
717 -IUSE="debug doc source +threads +unicode pax_kernel zlib"
718 -
719 -CDEPEND=">=dev-lisp/asdf-3.1:="
720 -DEPEND="${CDEPEND}
721 - doc? ( sys-apps/texinfo >=media-gfx/graphviz-2.26.0 )
722 - pax_kernel? ( sys-apps/elfix )"
723 -RDEPEND="${CDEPEND}
724 - !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.6 ) )"
725 -
726 -# Disable warnings about executable stacks, as this won't be fixed soon by upstream
727 -QA_EXECSTACK="usr/bin/sbcl"
728 -
729 -CONFIG="${S}/customize-target-features.lisp"
730 -ENVD="${T}/50sbcl"
731 -
732 -# Prevent ASDF from using the system libraries
733 -CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)"
734 -ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)"
735 -
736 -usep() {
737 - use ${1} && echo "true" || echo "false"
738 -}
739 -
740 -sbcl_feature() {
741 - echo "$( [[ ${1} == "true" ]] && echo "(enable ${2})" || echo "(disable ${2})")" >> "${CONFIG}"
742 -}
743 -
744 -sbcl_apply_features() {
745 - sed 's/^X//' > "${CONFIG}" <<-'EOF'
746 - (lambda (list)
747 - X (flet ((enable (x) (pushnew x list))
748 - X (disable (x) (setf list (remove x list))))
749 - EOF
750 - if use x86 || use amd64; then
751 - sbcl_feature "$(usep threads)" ":sb-thread"
752 - fi
753 - sbcl_feature "true" ":sb-ldb"
754 - sbcl_feature "false" ":sb-test"
755 - sbcl_feature "$(usep unicode)" ":sb-unicode"
756 - sbcl_feature "$(usep zlib)" ":sb-core-compression"
757 - sbcl_feature "$(usep debug)" ":sb-xref-for-internals"
758 - sed 's/^X//' >> "${CONFIG}" <<-'EOF'
759 - X )
760 - X list)
761 - EOF
762 - cat "${CONFIG}"
763 -}
764 -
765 -src_unpack() {
766 - unpack ${A}
767 - mv sbcl-*-* sbcl-binary || die
768 - cd "${S}"
769 -}
770 -
771 -src_prepare() {
772 - # bug #468482
773 - eapply "${FILESDIR}"/concurrency-test-1.3.15.patch
774 - # bugs #486552, #527666, #517004
775 - eapply "${FILESDIR}"/${PN}-1.4.0-bsd-sockets-test.patch
776 - # bugs #560276, #561018
777 - eapply "${FILESDIR}"/sb-posix-test-1.2.15.patch
778 -
779 - eapply "${FILESDIR}"/${PN}-1.2.11-solaris.patch
780 - eapply "${FILESDIR}"/${PN}-1.4.0-verbose-build.patch
781 -
782 - eapply_user
783 -
784 - # Make sure the *FLAGS variables are sane.
785 - # sbcl needs symbols in resulting binaries, so building with the -s linker flag will fail.
786 - strip-unsupported-flags
787 - filter-flags -fomit-frame-pointer -Wl,-s
788 - filter-ldflags -s
789 -
790 - # original bugs #526194, #620532
791 - # this broke no-pie default builds, c.f. bug #632670
792 - # Pass CFLAGS down by appending our value, to let users override
793 - # the default values.
794 - # Keep passing LDFLAGS down via the LINKFLAGS variable.
795 - sed -e "s@\(CFLAGS += -g .*\)\$@\1 ${CFLAGS}@" \
796 - -e "s@LINKFLAGS += -g\$@LINKFLAGS += ${LDFLAGS}@" \
797 - -i src/runtime/GNUmakefile || die
798 -
799 - sed -e "s@SBCL_PREFIX=\"/usr/local\"@SBCL_PREFIX=\"${EPREFIX}/usr\"@" \
800 - -i make-config.sh || die
801 -
802 - # Use installed ASDF version
803 - cp "${EPREFIX}"/usr/share/common-lisp/source/asdf/build/asdf.lisp contrib/asdf/ || die
804 - # Avoid installation of ASDF info page. See bug #605752
805 - sed '/INFOFILES/s/asdf.info//' -i doc/manual/Makefile || die
806 -
807 - use source && sed 's%"$(BUILD_ROOT)%$(MODULE).lisp "$(BUILD_ROOT)%' -i contrib/vanilla-module.mk
808 -
809 - # Some shells(such as dash) don't have "time" as builtin
810 - # and we don't want to DEPEND on sys-process/time
811 - sed "s,^time ,," -i make.sh || die
812 - sed "s,/lib,/$(get_libdir),g" -i install.sh || die
813 - # #define SBCL_HOME ...
814 - sed "s,/usr/local/lib,${EPREFIX}/usr/$(get_libdir),g" -i src/runtime/runtime.c || die
815 - # change location of /etc/sbclrc ...
816 - sed "s,/etc/sbclrc,${EPREFIX}/etc/sbclrc,g" -i src/code/toplevel.lisp || die
817 -
818 - find . -type f -name .cvsignore -delete
819 -}
820 -
821 -src_configure() {
822 - # customizing SBCL version as per
823 - # http://sbcl.cvs.sourceforge.net/sbcl/sbcl/doc/PACKAGING-SBCL.txt?view=markup
824 - echo -e ";;; Auto-generated by Gentoo\n\"gentoo-${PR}\"" > branch-version.lisp-expr
825 -
826 - # applying customizations
827 - sbcl_apply_features
828 -}
829 -
830 -src_compile() {
831 - local bindir="${WORKDIR}"/sbcl-binary
832 -
833 - if use pax_kernel ; then
834 - # To disable PaX on hardened systems
835 - pax-mark -mr "${bindir}"/src/runtime/sbcl
836 -
837 - # Hack to disable PaX on second GENESIS stage
838 - sed -i -e '/^[ \t]*echo \/\/doing warm init - compilation phase$/a\ paxmark.sh -mr \.\/src\/runtime\/sbcl' \
839 - "${S}"/make-target-2.sh || die "Cannot disable PaX on second GENESIS runtime"
840 - fi
841 -
842 - # clear the environment to get rid of non-ASCII strings, see bug #174702
843 - # set HOME for paludis
844 - env - HOME="${T}" PATH="${PATH}" \
845 - CC="$(tc-getCC)" AS="$(tc-getAS)" LD="$(tc-getLD)" \
846 - CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}" ASFLAGS="${ASFLAGS}" LDFLAGS="${LDFLAGS}" \
847 - GNUMAKE=make ./make.sh \
848 - "sh ${bindir}/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger" \
849 - || die "make failed"
850 -
851 - # need to set HOME because libpango(used by graphviz) complains about it
852 - if use doc; then
853 - env - HOME="${T}" PATH="${PATH}" \
854 - CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
855 - ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
856 - make -C doc/manual info html || die "Cannot build manual"
857 - env - HOME="${T}" PATH="${PATH}" \
858 - CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
859 - ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
860 - make -C doc/internals info html || die "Cannot build internal docs"
861 - fi
862 -}
863 -
864 -src_test() {
865 - ewarn "Unfortunately, it is known that some tests fail eg."
866 - ewarn "run-program.impure.lisp. This is an issue of the upstream's"
867 - ewarn "development and not of Gentoo's side. Please, before filing"
868 - ewarn "any bug(s) search for older submissions. Thank you."
869 - time ( cd tests && sh run-tests.sh )
870 -}
871 -
872 -src_install() {
873 - # install system-wide initfile
874 - dodir /etc/
875 - sed 's/^X//' > "${ED}"/etc/sbclrc <<-EOF
876 - ;;; The following is required if you want source location functions to
877 - ;;; work in SLIME, for example.
878 - X
879 - (setf (logical-pathname-translations "SYS")
880 - X '(("SYS:SRC;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/src/**/*.*")
881 - X ("SYS:CONTRIB;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/**/*.*")))
882 - X
883 - ;;; Setup ASDF2
884 - (load "${EPREFIX}/etc/common-lisp/gentoo-init.lisp")
885 - EOF
886 -
887 - # Install documentation
888 - unset SBCL_HOME
889 - INSTALL_ROOT="${ED}/usr" LIB_DIR="${EPREFIX}/usr/$(get_libdir)" DOC_DIR="${ED}/usr/share/doc/${PF}" \
890 - sh install.sh || die "install.sh failed"
891 -
892 - # bug #517008
893 - pax-mark -mr "${D}"/usr/bin/sbcl
894 -
895 - # rm empty directories lest paludis complain about this
896 - find "${ED}" -empty -type d -exec rmdir -v {} +
897 -
898 - if use doc; then
899 - dodoc -r doc/internals/sbcl-internals
900 -
901 - doinfo doc/manual/*.info*
902 - doinfo doc/internals/sbcl-internals.info
903 -
904 - docinto internals-notes
905 - dodoc doc/internals-notes/*
906 - else
907 - rm -Rv "${ED}/usr/share/doc/${PF}" || die
908 - fi
909 -
910 - # install the SBCL source
911 - if use source; then
912 - ./clean.sh
913 - cp -av src "${ED}/usr/$(get_libdir)/sbcl/" || die
914 - fi
915 -
916 - # necessary for running newly-saved images
917 - echo "SBCL_HOME=${EPREFIX}/usr/$(get_libdir)/${PN}" > "${ENVD}"
918 - echo "SBCL_SOURCE_ROOT=${EPREFIX}/usr/$(get_libdir)/${PN}/src" >> "${ENVD}"
919 - doenvd "${ENVD}"
920 -}
921
922 diff --git a/dev-lisp/sbcl/sbcl-1.4.11.ebuild b/dev-lisp/sbcl/sbcl-1.4.11.ebuild
923 deleted file mode 100644
924 index d8437987be7..00000000000
925 --- a/dev-lisp/sbcl/sbcl-1.4.11.ebuild
926 +++ /dev/null
927 @@ -1,246 +0,0 @@
928 -# Copyright 1999-2018 Gentoo Foundation
929 -# Distributed under the terms of the GNU General Public License v2
930 -
931 -EAPI=6
932 -
933 -inherit multilib eutils flag-o-matic pax-utils
934 -
935 -#same order as http://www.sbcl.org/platform-table.html
936 -BV_X86=1.4.3
937 -BV_AMD64=1.4.11
938 -BV_PPC=1.2.7
939 -BV_SPARC=1.0.28
940 -BV_ALPHA=1.0.28
941 -BV_ARM=1.4.11
942 -BV_ARM64=1.4.2
943 -BV_X86_MACOS=1.1.6
944 -BV_X64_MACOS=1.2.11
945 -BV_PPC_MACOS=1.0.47
946 -BV_X86_SOLARIS=1.2.7
947 -BV_X64_SOLARIS=1.2.7
948 -BV_SPARC_SOLARIS=1.0.23
949 -
950 -DESCRIPTION="Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp"
951 -HOMEPAGE="http://sbcl.sourceforge.net/"
952 -SRC_URI="mirror://sourceforge/sbcl/${P}-source.tar.bz2
953 - x86? ( mirror://sourceforge/sbcl/${PN}-${BV_X86}-x86-linux-binary.tar.bz2 )
954 - amd64? ( mirror://sourceforge/sbcl/${PN}-${BV_AMD64}-x86-64-linux-binary.tar.bz2 )
955 - ppc? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC}-powerpc-linux-binary.tar.bz2 )
956 - sparc? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC}-sparc-linux-binary.tar.bz2 )
957 - alpha? ( mirror://sourceforge/sbcl/${PN}-${BV_ALPHA}-alpha-linux-binary.tar.bz2 )
958 - arm? ( mirror://sourceforge/sbcl/${PN}-${BV_ARM}-armhf-linux-binary.tar.bz2 )
959 - arm64? ( mirror://sourceforge/sbcl/${PN}-${BV_ARM64}-arm64-linux-binary.tar.bz2 )
960 - x86-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_MACOS}-x86-darwin-binary.tar.bz2 )
961 - x64-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_MACOS}-x86-64-darwin-binary.tar.bz2 )
962 - ppc-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC_MACOS}-powerpc-darwin-binary.tar.bz2 )
963 - x86-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_SOLARIS}-x86-solaris-binary.tar.bz2 )
964 - x64-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_SOLARIS}-x86-64-solaris-binary.tar.bz2 )
965 - sparc-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC_SOLARIS}-sparc-solaris-binary.tar.bz2 )"
966 -
967 -LICENSE="MIT"
968 -SLOT="0/${PV}"
969 -KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~x86-solaris"
970 -IUSE="debug doc source +threads +unicode pax_kernel zlib"
971 -
972 -CDEPEND=">=dev-lisp/asdf-3.1:="
973 -DEPEND="${CDEPEND}
974 - doc? ( sys-apps/texinfo >=media-gfx/graphviz-2.26.0 )
975 - pax_kernel? ( sys-apps/elfix )"
976 -RDEPEND="${CDEPEND}
977 - !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.6 ) )"
978 -
979 -# Disable warnings about executable stacks, as this won't be fixed soon by upstream
980 -QA_EXECSTACK="usr/bin/sbcl"
981 -
982 -CONFIG="${S}/customize-target-features.lisp"
983 -ENVD="${T}/50sbcl"
984 -
985 -# Prevent ASDF from using the system libraries
986 -CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)"
987 -ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)"
988 -
989 -usep() {
990 - use ${1} && echo "true" || echo "false"
991 -}
992 -
993 -sbcl_feature() {
994 - echo "$( [[ ${1} == "true" ]] && echo "(enable ${2})" || echo "(disable ${2})")" >> "${CONFIG}"
995 -}
996 -
997 -sbcl_apply_features() {
998 - sed 's/^X//' > "${CONFIG}" <<-'EOF'
999 - (lambda (list)
1000 - X (flet ((enable (x) (pushnew x list))
1001 - X (disable (x) (setf list (remove x list))))
1002 - EOF
1003 - if use x86 || use amd64; then
1004 - sbcl_feature "$(usep threads)" ":sb-thread"
1005 - fi
1006 - sbcl_feature "true" ":sb-ldb"
1007 - sbcl_feature "false" ":sb-test"
1008 - sbcl_feature "$(usep unicode)" ":sb-unicode"
1009 - sbcl_feature "$(usep zlib)" ":sb-core-compression"
1010 - sbcl_feature "$(usep debug)" ":sb-xref-for-internals"
1011 - sed 's/^X//' >> "${CONFIG}" <<-'EOF'
1012 - X )
1013 - X list)
1014 - EOF
1015 - cat "${CONFIG}"
1016 -}
1017 -
1018 -src_unpack() {
1019 - unpack ${A}
1020 - mv sbcl-*-* sbcl-binary || die
1021 - cd "${S}"
1022 -}
1023 -
1024 -src_prepare() {
1025 - # bug #468482
1026 - eapply "${FILESDIR}"/concurrency-test-1.3.15.patch
1027 - # bugs #486552, #527666, #517004
1028 - eapply "${FILESDIR}"/${PN}-1.4.0-bsd-sockets-test.patch
1029 - # bugs #560276, #561018
1030 - eapply "${FILESDIR}"/sb-posix-test-1.2.15.patch
1031 -
1032 - eapply "${FILESDIR}"/${PN}-1.2.11-solaris.patch
1033 - eapply "${FILESDIR}"/${PN}-1.4.0-verbose-build.patch
1034 -
1035 - eapply_user
1036 -
1037 - # Make sure the *FLAGS variables are sane.
1038 - # sbcl needs symbols in resulting binaries, so building with the -s linker flag will fail.
1039 - strip-unsupported-flags
1040 - filter-flags -fomit-frame-pointer -Wl,-s
1041 - filter-ldflags -s
1042 -
1043 - # original bugs #526194, #620532
1044 - # this broke no-pie default builds, c.f. bug #632670
1045 - # Pass CFLAGS down by appending our value, to let users override
1046 - # the default values.
1047 - # Keep passing LDFLAGS down via the LINKFLAGS variable.
1048 - sed -e "s@\(CFLAGS += -g .*\)\$@\1 ${CFLAGS}@" \
1049 - -e "s@LINKFLAGS += -g\$@LINKFLAGS += ${LDFLAGS}@" \
1050 - -i src/runtime/GNUmakefile || die
1051 -
1052 - sed -e "s@SBCL_PREFIX=\"/usr/local\"@SBCL_PREFIX=\"${EPREFIX}/usr\"@" \
1053 - -i make-config.sh || die
1054 -
1055 - # Use installed ASDF version
1056 - cp "${EPREFIX}"/usr/share/common-lisp/source/asdf/build/asdf.lisp contrib/asdf/ || die
1057 - # Avoid installation of ASDF info page. See bug #605752
1058 - sed '/INFOFILES/s/asdf.info//' -i doc/manual/Makefile || die
1059 -
1060 - use source && sed 's%"$(BUILD_ROOT)%$(MODULE).lisp "$(BUILD_ROOT)%' -i contrib/vanilla-module.mk
1061 -
1062 - # Some shells(such as dash) don't have "time" as builtin
1063 - # and we don't want to DEPEND on sys-process/time
1064 - sed "s,^time ,," -i make.sh || die
1065 - sed "s,/lib,/$(get_libdir),g" -i install.sh || die
1066 - # #define SBCL_HOME ...
1067 - sed "s,/usr/local/lib,${EPREFIX}/usr/$(get_libdir),g" -i src/runtime/runtime.c || die
1068 - # change location of /etc/sbclrc ...
1069 - sed "s,/etc/sbclrc,${EPREFIX}/etc/sbclrc,g" -i src/code/toplevel.lisp || die
1070 -
1071 - find . -type f -name .cvsignore -delete
1072 -}
1073 -
1074 -src_configure() {
1075 - # customizing SBCL version as per
1076 - # http://sbcl.cvs.sourceforge.net/sbcl/sbcl/doc/PACKAGING-SBCL.txt?view=markup
1077 - echo -e ";;; Auto-generated by Gentoo\n\"gentoo-${PR}\"" > branch-version.lisp-expr
1078 -
1079 - # applying customizations
1080 - sbcl_apply_features
1081 -}
1082 -
1083 -src_compile() {
1084 - local bindir="${WORKDIR}"/sbcl-binary
1085 -
1086 - if use pax_kernel ; then
1087 - # To disable PaX on hardened systems
1088 - pax-mark -mr "${bindir}"/src/runtime/sbcl
1089 -
1090 - # Hack to disable PaX on second GENESIS stage
1091 - sed -i -e '/^[ \t]*echo \/\/doing warm init - compilation phase$/a\ paxmark.sh -mr \.\/src\/runtime\/sbcl' \
1092 - "${S}"/make-target-2.sh || die "Cannot disable PaX on second GENESIS runtime"
1093 - fi
1094 -
1095 - # clear the environment to get rid of non-ASCII strings, see bug #174702
1096 - # set HOME for paludis
1097 - env - HOME="${T}" PATH="${PATH}" \
1098 - CC="$(tc-getCC)" AS="$(tc-getAS)" LD="$(tc-getLD)" \
1099 - CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}" ASFLAGS="${ASFLAGS}" LDFLAGS="${LDFLAGS}" \
1100 - GNUMAKE=make ./make.sh \
1101 - "sh ${bindir}/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger" \
1102 - || die "make failed"
1103 -
1104 - # need to set HOME because libpango(used by graphviz) complains about it
1105 - if use doc; then
1106 - env - HOME="${T}" PATH="${PATH}" \
1107 - CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
1108 - ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
1109 - make -C doc/manual info html || die "Cannot build manual"
1110 - env - HOME="${T}" PATH="${PATH}" \
1111 - CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
1112 - ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
1113 - make -C doc/internals info html || die "Cannot build internal docs"
1114 - fi
1115 -}
1116 -
1117 -src_test() {
1118 - ewarn "Unfortunately, it is known that some tests fail eg."
1119 - ewarn "run-program.impure.lisp. This is an issue of the upstream's"
1120 - ewarn "development and not of Gentoo's side. Please, before filing"
1121 - ewarn "any bug(s) search for older submissions. Thank you."
1122 - time ( cd tests && sh run-tests.sh )
1123 -}
1124 -
1125 -src_install() {
1126 - # install system-wide initfile
1127 - dodir /etc/
1128 - sed 's/^X//' > "${ED}"/etc/sbclrc <<-EOF
1129 - ;;; The following is required if you want source location functions to
1130 - ;;; work in SLIME, for example.
1131 - X
1132 - (setf (logical-pathname-translations "SYS")
1133 - X '(("SYS:SRC;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/src/**/*.*")
1134 - X ("SYS:CONTRIB;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/**/*.*")))
1135 - X
1136 - ;;; Setup ASDF2
1137 - (load "${EPREFIX}/etc/common-lisp/gentoo-init.lisp")
1138 - EOF
1139 -
1140 - # Install documentation
1141 - unset SBCL_HOME
1142 - INSTALL_ROOT="${ED}/usr" LIB_DIR="${EPREFIX}/usr/$(get_libdir)" DOC_DIR="${ED}/usr/share/doc/${PF}" \
1143 - sh install.sh || die "install.sh failed"
1144 -
1145 - # bug #517008
1146 - pax-mark -mr "${D}"/usr/bin/sbcl
1147 -
1148 - # rm empty directories lest paludis complain about this
1149 - find "${ED}" -empty -type d -exec rmdir -v {} +
1150 -
1151 - if use doc; then
1152 - dodoc -r doc/internals/sbcl-internals
1153 -
1154 - doinfo doc/manual/*.info*
1155 - doinfo doc/internals/sbcl-internals.info
1156 -
1157 - docinto internals-notes
1158 - dodoc doc/internals-notes/*
1159 - else
1160 - rm -Rv "${ED}/usr/share/doc/${PF}" || die
1161 - fi
1162 -
1163 - # install the SBCL source
1164 - if use source; then
1165 - ./clean.sh
1166 - cp -av src "${ED}/usr/$(get_libdir)/sbcl/" || die
1167 - fi
1168 -
1169 - # necessary for running newly-saved images
1170 - echo "SBCL_HOME=${EPREFIX}/usr/$(get_libdir)/${PN}" > "${ENVD}"
1171 - echo "SBCL_SOURCE_ROOT=${EPREFIX}/usr/$(get_libdir)/${PN}/src" >> "${ENVD}"
1172 - doenvd "${ENVD}"
1173 -}
1174
1175 diff --git a/dev-lisp/sbcl/sbcl-1.4.12.ebuild b/dev-lisp/sbcl/sbcl-1.4.12.ebuild
1176 deleted file mode 100644
1177 index 3b0d00a105d..00000000000
1178 --- a/dev-lisp/sbcl/sbcl-1.4.12.ebuild
1179 +++ /dev/null
1180 @@ -1,246 +0,0 @@
1181 -# Copyright 1999-2018 Gentoo Foundation
1182 -# Distributed under the terms of the GNU General Public License v2
1183 -
1184 -EAPI=6
1185 -
1186 -inherit multilib eutils flag-o-matic pax-utils
1187 -
1188 -#same order as http://www.sbcl.org/platform-table.html
1189 -BV_X86=1.4.3
1190 -BV_AMD64=1.4.12
1191 -BV_PPC=1.2.7
1192 -BV_SPARC=1.0.28
1193 -BV_ALPHA=1.0.28
1194 -BV_ARM=1.4.11
1195 -BV_ARM64=1.4.2
1196 -BV_X86_MACOS=1.1.6
1197 -BV_X64_MACOS=1.2.11
1198 -BV_PPC_MACOS=1.0.47
1199 -BV_X86_SOLARIS=1.2.7
1200 -BV_X64_SOLARIS=1.2.7
1201 -BV_SPARC_SOLARIS=1.0.23
1202 -
1203 -DESCRIPTION="Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp"
1204 -HOMEPAGE="http://sbcl.sourceforge.net/"
1205 -SRC_URI="mirror://sourceforge/sbcl/${P}-source.tar.bz2
1206 - x86? ( mirror://sourceforge/sbcl/${PN}-${BV_X86}-x86-linux-binary.tar.bz2 )
1207 - amd64? ( mirror://sourceforge/sbcl/${PN}-${BV_AMD64}-x86-64-linux-binary.tar.bz2 )
1208 - ppc? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC}-powerpc-linux-binary.tar.bz2 )
1209 - sparc? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC}-sparc-linux-binary.tar.bz2 )
1210 - alpha? ( mirror://sourceforge/sbcl/${PN}-${BV_ALPHA}-alpha-linux-binary.tar.bz2 )
1211 - arm? ( mirror://sourceforge/sbcl/${PN}-${BV_ARM}-armhf-linux-binary.tar.bz2 )
1212 - arm64? ( mirror://sourceforge/sbcl/${PN}-${BV_ARM64}-arm64-linux-binary.tar.bz2 )
1213 - x86-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_MACOS}-x86-darwin-binary.tar.bz2 )
1214 - x64-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_MACOS}-x86-64-darwin-binary.tar.bz2 )
1215 - ppc-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC_MACOS}-powerpc-darwin-binary.tar.bz2 )
1216 - x86-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_SOLARIS}-x86-solaris-binary.tar.bz2 )
1217 - x64-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_SOLARIS}-x86-64-solaris-binary.tar.bz2 )
1218 - sparc-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC_SOLARIS}-sparc-solaris-binary.tar.bz2 )"
1219 -
1220 -LICENSE="MIT"
1221 -SLOT="0/${PV}"
1222 -KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~x86-solaris"
1223 -IUSE="debug doc source +threads +unicode pax_kernel zlib"
1224 -
1225 -CDEPEND=">=dev-lisp/asdf-3.1:="
1226 -DEPEND="${CDEPEND}
1227 - doc? ( sys-apps/texinfo >=media-gfx/graphviz-2.26.0 )
1228 - pax_kernel? ( sys-apps/elfix )"
1229 -RDEPEND="${CDEPEND}
1230 - !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.6 ) )"
1231 -
1232 -# Disable warnings about executable stacks, as this won't be fixed soon by upstream
1233 -QA_EXECSTACK="usr/bin/sbcl"
1234 -
1235 -CONFIG="${S}/customize-target-features.lisp"
1236 -ENVD="${T}/50sbcl"
1237 -
1238 -# Prevent ASDF from using the system libraries
1239 -CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)"
1240 -ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)"
1241 -
1242 -usep() {
1243 - use ${1} && echo "true" || echo "false"
1244 -}
1245 -
1246 -sbcl_feature() {
1247 - echo "$( [[ ${1} == "true" ]] && echo "(enable ${2})" || echo "(disable ${2})")" >> "${CONFIG}"
1248 -}
1249 -
1250 -sbcl_apply_features() {
1251 - sed 's/^X//' > "${CONFIG}" <<-'EOF'
1252 - (lambda (list)
1253 - X (flet ((enable (x) (pushnew x list))
1254 - X (disable (x) (setf list (remove x list))))
1255 - EOF
1256 - if use x86 || use amd64; then
1257 - sbcl_feature "$(usep threads)" ":sb-thread"
1258 - fi
1259 - sbcl_feature "true" ":sb-ldb"
1260 - sbcl_feature "false" ":sb-test"
1261 - sbcl_feature "$(usep unicode)" ":sb-unicode"
1262 - sbcl_feature "$(usep zlib)" ":sb-core-compression"
1263 - sbcl_feature "$(usep debug)" ":sb-xref-for-internals"
1264 - sed 's/^X//' >> "${CONFIG}" <<-'EOF'
1265 - X )
1266 - X list)
1267 - EOF
1268 - cat "${CONFIG}"
1269 -}
1270 -
1271 -src_unpack() {
1272 - unpack ${A}
1273 - mv sbcl-*-* sbcl-binary || die
1274 - cd "${S}"
1275 -}
1276 -
1277 -src_prepare() {
1278 - # bug #468482
1279 - eapply "${FILESDIR}"/concurrency-test-1.3.15.patch
1280 - # bugs #486552, #527666, #517004
1281 - eapply "${FILESDIR}"/${PN}-1.4.0-bsd-sockets-test.patch
1282 - # bugs #560276, #561018
1283 - eapply "${FILESDIR}"/sb-posix-test-1.2.15.patch
1284 -
1285 - eapply "${FILESDIR}"/${PN}-1.2.11-solaris.patch
1286 - eapply "${FILESDIR}"/${PN}-1.4.0-verbose-build.patch
1287 -
1288 - eapply_user
1289 -
1290 - # Make sure the *FLAGS variables are sane.
1291 - # sbcl needs symbols in resulting binaries, so building with the -s linker flag will fail.
1292 - strip-unsupported-flags
1293 - filter-flags -fomit-frame-pointer -Wl,-s
1294 - filter-ldflags -s
1295 -
1296 - # original bugs #526194, #620532
1297 - # this broke no-pie default builds, c.f. bug #632670
1298 - # Pass CFLAGS down by appending our value, to let users override
1299 - # the default values.
1300 - # Keep passing LDFLAGS down via the LINKFLAGS variable.
1301 - sed -e "s@\(CFLAGS += -g .*\)\$@\1 ${CFLAGS}@" \
1302 - -e "s@LINKFLAGS += -g\$@LINKFLAGS += ${LDFLAGS}@" \
1303 - -i src/runtime/GNUmakefile || die
1304 -
1305 - sed -e "s@SBCL_PREFIX=\"/usr/local\"@SBCL_PREFIX=\"${EPREFIX}/usr\"@" \
1306 - -i make-config.sh || die
1307 -
1308 - # Use installed ASDF version
1309 - cp "${EPREFIX}"/usr/share/common-lisp/source/asdf/build/asdf.lisp contrib/asdf/ || die
1310 - # Avoid installation of ASDF info page. See bug #605752
1311 - sed '/INFOFILES/s/asdf.info//' -i doc/manual/Makefile || die
1312 -
1313 - use source && sed 's%"$(BUILD_ROOT)%$(MODULE).lisp "$(BUILD_ROOT)%' -i contrib/vanilla-module.mk
1314 -
1315 - # Some shells(such as dash) don't have "time" as builtin
1316 - # and we don't want to DEPEND on sys-process/time
1317 - sed "s,^time ,," -i make.sh || die
1318 - sed "s,/lib,/$(get_libdir),g" -i install.sh || die
1319 - # #define SBCL_HOME ...
1320 - sed "s,/usr/local/lib,${EPREFIX}/usr/$(get_libdir),g" -i src/runtime/runtime.c || die
1321 - # change location of /etc/sbclrc ...
1322 - sed "s,/etc/sbclrc,${EPREFIX}/etc/sbclrc,g" -i src/code/toplevel.lisp || die
1323 -
1324 - find . -type f -name .cvsignore -delete
1325 -}
1326 -
1327 -src_configure() {
1328 - # customizing SBCL version as per
1329 - # http://sbcl.cvs.sourceforge.net/sbcl/sbcl/doc/PACKAGING-SBCL.txt?view=markup
1330 - echo -e ";;; Auto-generated by Gentoo\n\"gentoo-${PR}\"" > branch-version.lisp-expr
1331 -
1332 - # applying customizations
1333 - sbcl_apply_features
1334 -}
1335 -
1336 -src_compile() {
1337 - local bindir="${WORKDIR}"/sbcl-binary
1338 -
1339 - if use pax_kernel ; then
1340 - # To disable PaX on hardened systems
1341 - pax-mark -mr "${bindir}"/src/runtime/sbcl
1342 -
1343 - # Hack to disable PaX on second GENESIS stage
1344 - sed -i -e '/^[ \t]*echo \/\/doing warm init - compilation phase$/a\ paxmark.sh -mr \.\/src\/runtime\/sbcl' \
1345 - "${S}"/make-target-2.sh || die "Cannot disable PaX on second GENESIS runtime"
1346 - fi
1347 -
1348 - # clear the environment to get rid of non-ASCII strings, see bug #174702
1349 - # set HOME for paludis
1350 - env - HOME="${T}" PATH="${PATH}" \
1351 - CC="$(tc-getCC)" AS="$(tc-getAS)" LD="$(tc-getLD)" \
1352 - CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}" ASFLAGS="${ASFLAGS}" LDFLAGS="${LDFLAGS}" \
1353 - GNUMAKE=make ./make.sh \
1354 - "sh ${bindir}/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger" \
1355 - || die "make failed"
1356 -
1357 - # need to set HOME because libpango(used by graphviz) complains about it
1358 - if use doc; then
1359 - env - HOME="${T}" PATH="${PATH}" \
1360 - CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
1361 - ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
1362 - make -C doc/manual info html || die "Cannot build manual"
1363 - env - HOME="${T}" PATH="${PATH}" \
1364 - CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
1365 - ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
1366 - make -C doc/internals info html || die "Cannot build internal docs"
1367 - fi
1368 -}
1369 -
1370 -src_test() {
1371 - ewarn "Unfortunately, it is known that some tests fail eg."
1372 - ewarn "run-program.impure.lisp. This is an issue of the upstream's"
1373 - ewarn "development and not of Gentoo's side. Please, before filing"
1374 - ewarn "any bug(s) search for older submissions. Thank you."
1375 - time ( cd tests && sh run-tests.sh )
1376 -}
1377 -
1378 -src_install() {
1379 - # install system-wide initfile
1380 - dodir /etc/
1381 - sed 's/^X//' > "${ED}"/etc/sbclrc <<-EOF
1382 - ;;; The following is required if you want source location functions to
1383 - ;;; work in SLIME, for example.
1384 - X
1385 - (setf (logical-pathname-translations "SYS")
1386 - X '(("SYS:SRC;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/src/**/*.*")
1387 - X ("SYS:CONTRIB;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/**/*.*")))
1388 - X
1389 - ;;; Setup ASDF2
1390 - (load "${EPREFIX}/etc/common-lisp/gentoo-init.lisp")
1391 - EOF
1392 -
1393 - # Install documentation
1394 - unset SBCL_HOME
1395 - INSTALL_ROOT="${ED}/usr" LIB_DIR="${EPREFIX}/usr/$(get_libdir)" DOC_DIR="${ED}/usr/share/doc/${PF}" \
1396 - sh install.sh || die "install.sh failed"
1397 -
1398 - # bug #517008
1399 - pax-mark -mr "${D}"/usr/bin/sbcl
1400 -
1401 - # rm empty directories lest paludis complain about this
1402 - find "${ED}" -empty -type d -exec rmdir -v {} +
1403 -
1404 - if use doc; then
1405 - dodoc -r doc/internals/sbcl-internals
1406 -
1407 - doinfo doc/manual/*.info*
1408 - doinfo doc/internals/sbcl-internals.info
1409 -
1410 - docinto internals-notes
1411 - dodoc doc/internals-notes/*
1412 - else
1413 - rm -Rv "${ED}/usr/share/doc/${PF}" || die
1414 - fi
1415 -
1416 - # install the SBCL source
1417 - if use source; then
1418 - ./clean.sh
1419 - cp -av src "${ED}/usr/$(get_libdir)/sbcl/" || die
1420 - fi
1421 -
1422 - # necessary for running newly-saved images
1423 - echo "SBCL_HOME=${EPREFIX}/usr/$(get_libdir)/${PN}" > "${ENVD}"
1424 - echo "SBCL_SOURCE_ROOT=${EPREFIX}/usr/$(get_libdir)/${PN}/src" >> "${ENVD}"
1425 - doenvd "${ENVD}"
1426 -}
1427
1428 diff --git a/dev-lisp/sbcl/sbcl-1.4.13.ebuild b/dev-lisp/sbcl/sbcl-1.4.13.ebuild
1429 deleted file mode 100644
1430 index 9cddf8fa072..00000000000
1431 --- a/dev-lisp/sbcl/sbcl-1.4.13.ebuild
1432 +++ /dev/null
1433 @@ -1,246 +0,0 @@
1434 -# Copyright 1999-2018 Gentoo Foundation
1435 -# Distributed under the terms of the GNU General Public License v2
1436 -
1437 -EAPI=6
1438 -
1439 -inherit multilib eutils flag-o-matic pax-utils
1440 -
1441 -#same order as http://www.sbcl.org/platform-table.html
1442 -BV_X86=1.4.3
1443 -BV_AMD64=1.4.13
1444 -BV_PPC=1.2.7
1445 -BV_SPARC=1.0.28
1446 -BV_ALPHA=1.0.28
1447 -BV_ARM=1.4.11
1448 -BV_ARM64=1.4.2
1449 -BV_X86_MACOS=1.1.6
1450 -BV_X64_MACOS=1.2.11
1451 -BV_PPC_MACOS=1.0.47
1452 -BV_X86_SOLARIS=1.2.7
1453 -BV_X64_SOLARIS=1.2.7
1454 -BV_SPARC_SOLARIS=1.0.23
1455 -
1456 -DESCRIPTION="Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp"
1457 -HOMEPAGE="http://sbcl.sourceforge.net/"
1458 -SRC_URI="mirror://sourceforge/sbcl/${P}-source.tar.bz2
1459 - x86? ( mirror://sourceforge/sbcl/${PN}-${BV_X86}-x86-linux-binary.tar.bz2 )
1460 - amd64? ( mirror://sourceforge/sbcl/${PN}-${BV_AMD64}-x86-64-linux-binary.tar.bz2 )
1461 - ppc? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC}-powerpc-linux-binary.tar.bz2 )
1462 - sparc? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC}-sparc-linux-binary.tar.bz2 )
1463 - alpha? ( mirror://sourceforge/sbcl/${PN}-${BV_ALPHA}-alpha-linux-binary.tar.bz2 )
1464 - arm? ( mirror://sourceforge/sbcl/${PN}-${BV_ARM}-armhf-linux-binary.tar.bz2 )
1465 - arm64? ( mirror://sourceforge/sbcl/${PN}-${BV_ARM64}-arm64-linux-binary.tar.bz2 )
1466 - x86-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_MACOS}-x86-darwin-binary.tar.bz2 )
1467 - x64-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_MACOS}-x86-64-darwin-binary.tar.bz2 )
1468 - ppc-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC_MACOS}-powerpc-darwin-binary.tar.bz2 )
1469 - x86-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_SOLARIS}-x86-solaris-binary.tar.bz2 )
1470 - x64-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_SOLARIS}-x86-64-solaris-binary.tar.bz2 )
1471 - sparc-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC_SOLARIS}-sparc-solaris-binary.tar.bz2 )"
1472 -
1473 -LICENSE="MIT"
1474 -SLOT="0/${PV}"
1475 -KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~x86-solaris"
1476 -IUSE="debug doc source +threads +unicode pax_kernel zlib"
1477 -
1478 -CDEPEND=">=dev-lisp/asdf-3.1:="
1479 -DEPEND="${CDEPEND}
1480 - doc? ( sys-apps/texinfo >=media-gfx/graphviz-2.26.0 )
1481 - pax_kernel? ( sys-apps/elfix )"
1482 -RDEPEND="${CDEPEND}
1483 - !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.6 ) )"
1484 -
1485 -# Disable warnings about executable stacks, as this won't be fixed soon by upstream
1486 -QA_EXECSTACK="usr/bin/sbcl"
1487 -
1488 -CONFIG="${S}/customize-target-features.lisp"
1489 -ENVD="${T}/50sbcl"
1490 -
1491 -# Prevent ASDF from using the system libraries
1492 -CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)"
1493 -ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)"
1494 -
1495 -usep() {
1496 - use ${1} && echo "true" || echo "false"
1497 -}
1498 -
1499 -sbcl_feature() {
1500 - echo "$( [[ ${1} == "true" ]] && echo "(enable ${2})" || echo "(disable ${2})")" >> "${CONFIG}"
1501 -}
1502 -
1503 -sbcl_apply_features() {
1504 - sed 's/^X//' > "${CONFIG}" <<-'EOF'
1505 - (lambda (list)
1506 - X (flet ((enable (x) (pushnew x list))
1507 - X (disable (x) (setf list (remove x list))))
1508 - EOF
1509 - if use x86 || use amd64; then
1510 - sbcl_feature "$(usep threads)" ":sb-thread"
1511 - fi
1512 - sbcl_feature "true" ":sb-ldb"
1513 - sbcl_feature "false" ":sb-test"
1514 - sbcl_feature "$(usep unicode)" ":sb-unicode"
1515 - sbcl_feature "$(usep zlib)" ":sb-core-compression"
1516 - sbcl_feature "$(usep debug)" ":sb-xref-for-internals"
1517 - sed 's/^X//' >> "${CONFIG}" <<-'EOF'
1518 - X )
1519 - X list)
1520 - EOF
1521 - cat "${CONFIG}"
1522 -}
1523 -
1524 -src_unpack() {
1525 - unpack ${A}
1526 - mv sbcl-*-* sbcl-binary || die
1527 - cd "${S}"
1528 -}
1529 -
1530 -src_prepare() {
1531 - # bug #468482
1532 - eapply "${FILESDIR}"/concurrency-test-1.3.15.patch
1533 - # bugs #486552, #527666, #517004
1534 - eapply "${FILESDIR}"/${PN}-1.4.0-bsd-sockets-test.patch
1535 - # bugs #560276, #561018
1536 - eapply "${FILESDIR}"/sb-posix-test-1.2.15.patch
1537 -
1538 - eapply "${FILESDIR}"/${PN}-1.2.11-solaris.patch
1539 - eapply "${FILESDIR}"/${PN}-1.4.0-verbose-build.patch
1540 -
1541 - eapply_user
1542 -
1543 - # Make sure the *FLAGS variables are sane.
1544 - # sbcl needs symbols in resulting binaries, so building with the -s linker flag will fail.
1545 - strip-unsupported-flags
1546 - filter-flags -fomit-frame-pointer -Wl,-s
1547 - filter-ldflags -s
1548 -
1549 - # original bugs #526194, #620532
1550 - # this broke no-pie default builds, c.f. bug #632670
1551 - # Pass CFLAGS down by appending our value, to let users override
1552 - # the default values.
1553 - # Keep passing LDFLAGS down via the LINKFLAGS variable.
1554 - sed -e "s@\(CFLAGS += -g .*\)\$@\1 ${CFLAGS}@" \
1555 - -e "s@LINKFLAGS += -g\$@LINKFLAGS += ${LDFLAGS}@" \
1556 - -i src/runtime/GNUmakefile || die
1557 -
1558 - sed -e "s@SBCL_PREFIX=\"/usr/local\"@SBCL_PREFIX=\"${EPREFIX}/usr\"@" \
1559 - -i make-config.sh || die
1560 -
1561 - # Use installed ASDF version
1562 - cp "${EPREFIX}"/usr/share/common-lisp/source/asdf/build/asdf.lisp contrib/asdf/ || die
1563 - # Avoid installation of ASDF info page. See bug #605752
1564 - sed '/INFOFILES/s/asdf.info//' -i doc/manual/Makefile || die
1565 -
1566 - use source && sed 's%"$(BUILD_ROOT)%$(MODULE).lisp "$(BUILD_ROOT)%' -i contrib/vanilla-module.mk
1567 -
1568 - # Some shells(such as dash) don't have "time" as builtin
1569 - # and we don't want to DEPEND on sys-process/time
1570 - sed "s,^time ,," -i make.sh || die
1571 - sed "s,/lib,/$(get_libdir),g" -i install.sh || die
1572 - # #define SBCL_HOME ...
1573 - sed "s,/usr/local/lib,${EPREFIX}/usr/$(get_libdir),g" -i src/runtime/runtime.c || die
1574 - # change location of /etc/sbclrc ...
1575 - sed "s,/etc/sbclrc,${EPREFIX}/etc/sbclrc,g" -i src/code/toplevel.lisp || die
1576 -
1577 - find . -type f -name .cvsignore -delete
1578 -}
1579 -
1580 -src_configure() {
1581 - # customizing SBCL version as per
1582 - # http://sbcl.cvs.sourceforge.net/sbcl/sbcl/doc/PACKAGING-SBCL.txt?view=markup
1583 - echo -e ";;; Auto-generated by Gentoo\n\"gentoo-${PR}\"" > branch-version.lisp-expr
1584 -
1585 - # applying customizations
1586 - sbcl_apply_features
1587 -}
1588 -
1589 -src_compile() {
1590 - local bindir="${WORKDIR}"/sbcl-binary
1591 -
1592 - if use pax_kernel ; then
1593 - # To disable PaX on hardened systems
1594 - pax-mark -mr "${bindir}"/src/runtime/sbcl
1595 -
1596 - # Hack to disable PaX on second GENESIS stage
1597 - sed -i -e '/^[ \t]*echo \/\/doing warm init - compilation phase$/a\ paxmark.sh -mr \.\/src\/runtime\/sbcl' \
1598 - "${S}"/make-target-2.sh || die "Cannot disable PaX on second GENESIS runtime"
1599 - fi
1600 -
1601 - # clear the environment to get rid of non-ASCII strings, see bug #174702
1602 - # set HOME for paludis
1603 - env - HOME="${T}" PATH="${PATH}" \
1604 - CC="$(tc-getCC)" AS="$(tc-getAS)" LD="$(tc-getLD)" \
1605 - CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}" ASFLAGS="${ASFLAGS}" LDFLAGS="${LDFLAGS}" \
1606 - GNUMAKE=make ./make.sh \
1607 - "sh ${bindir}/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger" \
1608 - || die "make failed"
1609 -
1610 - # need to set HOME because libpango(used by graphviz) complains about it
1611 - if use doc; then
1612 - env - HOME="${T}" PATH="${PATH}" \
1613 - CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
1614 - ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
1615 - make -C doc/manual info html || die "Cannot build manual"
1616 - env - HOME="${T}" PATH="${PATH}" \
1617 - CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
1618 - ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
1619 - make -C doc/internals info html || die "Cannot build internal docs"
1620 - fi
1621 -}
1622 -
1623 -src_test() {
1624 - ewarn "Unfortunately, it is known that some tests fail eg."
1625 - ewarn "run-program.impure.lisp. This is an issue of the upstream's"
1626 - ewarn "development and not of Gentoo's side. Please, before filing"
1627 - ewarn "any bug(s) search for older submissions. Thank you."
1628 - time ( cd tests && sh run-tests.sh )
1629 -}
1630 -
1631 -src_install() {
1632 - # install system-wide initfile
1633 - dodir /etc/
1634 - sed 's/^X//' > "${ED}"/etc/sbclrc <<-EOF
1635 - ;;; The following is required if you want source location functions to
1636 - ;;; work in SLIME, for example.
1637 - X
1638 - (setf (logical-pathname-translations "SYS")
1639 - X '(("SYS:SRC;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/src/**/*.*")
1640 - X ("SYS:CONTRIB;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/**/*.*")))
1641 - X
1642 - ;;; Setup ASDF2
1643 - (load "${EPREFIX}/etc/common-lisp/gentoo-init.lisp")
1644 - EOF
1645 -
1646 - # Install documentation
1647 - unset SBCL_HOME
1648 - INSTALL_ROOT="${ED}/usr" LIB_DIR="${EPREFIX}/usr/$(get_libdir)" DOC_DIR="${ED}/usr/share/doc/${PF}" \
1649 - sh install.sh || die "install.sh failed"
1650 -
1651 - # bug #517008
1652 - pax-mark -mr "${D}"/usr/bin/sbcl
1653 -
1654 - # rm empty directories lest paludis complain about this
1655 - find "${ED}" -empty -type d -exec rmdir -v {} +
1656 -
1657 - if use doc; then
1658 - dodoc -r doc/internals/sbcl-internals
1659 -
1660 - doinfo doc/manual/*.info*
1661 - doinfo doc/internals/sbcl-internals.info
1662 -
1663 - docinto internals-notes
1664 - dodoc doc/internals-notes/*
1665 - else
1666 - rm -Rv "${ED}/usr/share/doc/${PF}" || die
1667 - fi
1668 -
1669 - # install the SBCL source
1670 - if use source; then
1671 - ./clean.sh
1672 - cp -av src "${ED}/usr/$(get_libdir)/sbcl/" || die
1673 - fi
1674 -
1675 - # necessary for running newly-saved images
1676 - echo "SBCL_HOME=${EPREFIX}/usr/$(get_libdir)/${PN}" > "${ENVD}"
1677 - echo "SBCL_SOURCE_ROOT=${EPREFIX}/usr/$(get_libdir)/${PN}/src" >> "${ENVD}"
1678 - doenvd "${ENVD}"
1679 -}
1680
1681 diff --git a/dev-lisp/sbcl/sbcl-1.4.7.ebuild b/dev-lisp/sbcl/sbcl-1.4.7.ebuild
1682 deleted file mode 100644
1683 index 4f5351742e1..00000000000
1684 --- a/dev-lisp/sbcl/sbcl-1.4.7.ebuild
1685 +++ /dev/null
1686 @@ -1,246 +0,0 @@
1687 -# Copyright 1999-2018 Gentoo Foundation
1688 -# Distributed under the terms of the GNU General Public License v2
1689 -
1690 -EAPI=6
1691 -
1692 -inherit multilib eutils flag-o-matic pax-utils
1693 -
1694 -#same order as http://www.sbcl.org/platform-table.html
1695 -BV_X86=1.4.3
1696 -BV_AMD64=1.4.7
1697 -BV_PPC=1.2.7
1698 -BV_SPARC=1.0.28
1699 -BV_ALPHA=1.0.28
1700 -BV_ARM=1.3.12
1701 -BV_ARM64=1.4.2
1702 -BV_X86_MACOS=1.1.6
1703 -BV_X64_MACOS=1.2.11
1704 -BV_PPC_MACOS=1.0.47
1705 -BV_X86_SOLARIS=1.2.7
1706 -BV_X64_SOLARIS=1.2.7
1707 -BV_SPARC_SOLARIS=1.0.23
1708 -
1709 -DESCRIPTION="Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp"
1710 -HOMEPAGE="http://sbcl.sourceforge.net/"
1711 -SRC_URI="mirror://sourceforge/sbcl/${P}-source.tar.bz2
1712 - x86? ( mirror://sourceforge/sbcl/${PN}-${BV_X86}-x86-linux-binary.tar.bz2 )
1713 - amd64? ( mirror://sourceforge/sbcl/${PN}-${BV_AMD64}-x86-64-linux-binary.tar.bz2 )
1714 - ppc? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC}-powerpc-linux-binary.tar.bz2 )
1715 - sparc? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC}-sparc-linux-binary.tar.bz2 )
1716 - alpha? ( mirror://sourceforge/sbcl/${PN}-${BV_ALPHA}-alpha-linux-binary.tar.bz2 )
1717 - arm? ( mirror://sourceforge/sbcl/${PN}-${BV_ARM}-armhf-linux-binary.tar.bz2 )
1718 - arm64? ( mirror://sourceforge/sbcl/${PN}-${BV_ARM64}-arm64-linux-binary.tar.bz2 )
1719 - x86-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_MACOS}-x86-darwin-binary.tar.bz2 )
1720 - x64-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_MACOS}-x86-64-darwin-binary.tar.bz2 )
1721 - ppc-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC_MACOS}-powerpc-darwin-binary.tar.bz2 )
1722 - x86-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_SOLARIS}-x86-solaris-binary.tar.bz2 )
1723 - x64-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_SOLARIS}-x86-64-solaris-binary.tar.bz2 )
1724 - sparc-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC_SOLARIS}-sparc-solaris-binary.tar.bz2 )"
1725 -
1726 -LICENSE="MIT"
1727 -SLOT="0/${PV}"
1728 -KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~x86-solaris"
1729 -IUSE="debug doc source +threads +unicode pax_kernel zlib"
1730 -
1731 -CDEPEND=">=dev-lisp/asdf-3.1:="
1732 -DEPEND="${CDEPEND}
1733 - doc? ( sys-apps/texinfo >=media-gfx/graphviz-2.26.0 )
1734 - pax_kernel? ( sys-apps/elfix )"
1735 -RDEPEND="${CDEPEND}
1736 - !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.6 ) )"
1737 -
1738 -# Disable warnings about executable stacks, as this won't be fixed soon by upstream
1739 -QA_EXECSTACK="usr/bin/sbcl"
1740 -
1741 -CONFIG="${S}/customize-target-features.lisp"
1742 -ENVD="${T}/50sbcl"
1743 -
1744 -# Prevent ASDF from using the system libraries
1745 -CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)"
1746 -ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)"
1747 -
1748 -usep() {
1749 - use ${1} && echo "true" || echo "false"
1750 -}
1751 -
1752 -sbcl_feature() {
1753 - echo "$( [[ ${1} == "true" ]] && echo "(enable ${2})" || echo "(disable ${2})")" >> "${CONFIG}"
1754 -}
1755 -
1756 -sbcl_apply_features() {
1757 - sed 's/^X//' > "${CONFIG}" <<-'EOF'
1758 - (lambda (list)
1759 - X (flet ((enable (x) (pushnew x list))
1760 - X (disable (x) (setf list (remove x list))))
1761 - EOF
1762 - if use x86 || use amd64; then
1763 - sbcl_feature "$(usep threads)" ":sb-thread"
1764 - fi
1765 - sbcl_feature "true" ":sb-ldb"
1766 - sbcl_feature "false" ":sb-test"
1767 - sbcl_feature "$(usep unicode)" ":sb-unicode"
1768 - sbcl_feature "$(usep zlib)" ":sb-core-compression"
1769 - sbcl_feature "$(usep debug)" ":sb-xref-for-internals"
1770 - sed 's/^X//' >> "${CONFIG}" <<-'EOF'
1771 - X )
1772 - X list)
1773 - EOF
1774 - cat "${CONFIG}"
1775 -}
1776 -
1777 -src_unpack() {
1778 - unpack ${A}
1779 - mv sbcl-*-* sbcl-binary || die
1780 - cd "${S}"
1781 -}
1782 -
1783 -src_prepare() {
1784 - # bug #468482
1785 - eapply "${FILESDIR}"/concurrency-test-1.3.15.patch
1786 - # bugs #486552, #527666, #517004
1787 - eapply "${FILESDIR}"/${PN}-1.4.0-bsd-sockets-test.patch
1788 - # bugs #560276, #561018
1789 - eapply "${FILESDIR}"/sb-posix-test-1.2.15.patch
1790 -
1791 - eapply "${FILESDIR}"/${PN}-1.2.11-solaris.patch
1792 - eapply "${FILESDIR}"/${PN}-1.4.0-verbose-build.patch
1793 -
1794 - eapply_user
1795 -
1796 - # Make sure the *FLAGS variables are sane.
1797 - # sbcl needs symbols in resulting binaries, so building with the -s linker flag will fail.
1798 - strip-unsupported-flags
1799 - filter-flags -fomit-frame-pointer -Wl,-s
1800 - filter-ldflags -s
1801 -
1802 - # original bugs #526194, #620532
1803 - # this broke no-pie default builds, c.f. bug #632670
1804 - # Pass CFLAGS down by appending our value, to let users override
1805 - # the default values.
1806 - # Keep passing LDFLAGS down via the LINKFLAGS variable.
1807 - sed -e "s@\(CFLAGS += -g .*\)\$@\1 ${CFLAGS}@" \
1808 - -e "s@LINKFLAGS += -g\$@LINKFLAGS += ${LDFLAGS}@" \
1809 - -i src/runtime/GNUmakefile || die
1810 -
1811 - sed -e "s@SBCL_PREFIX=\"/usr/local\"@SBCL_PREFIX=\"${EPREFIX}/usr\"@" \
1812 - -i make-config.sh || die
1813 -
1814 - # Use installed ASDF version
1815 - cp "${EPREFIX}"/usr/share/common-lisp/source/asdf/build/asdf.lisp contrib/asdf/ || die
1816 - # Avoid installation of ASDF info page. See bug #605752
1817 - sed '/INFOFILES/s/asdf.info//' -i doc/manual/Makefile || die
1818 -
1819 - use source && sed 's%"$(BUILD_ROOT)%$(MODULE).lisp "$(BUILD_ROOT)%' -i contrib/vanilla-module.mk
1820 -
1821 - # Some shells(such as dash) don't have "time" as builtin
1822 - # and we don't want to DEPEND on sys-process/time
1823 - sed "s,^time ,," -i make.sh || die
1824 - sed "s,/lib,/$(get_libdir),g" -i install.sh || die
1825 - # #define SBCL_HOME ...
1826 - sed "s,/usr/local/lib,${EPREFIX}/usr/$(get_libdir),g" -i src/runtime/runtime.c || die
1827 - # change location of /etc/sbclrc ...
1828 - sed "s,/etc/sbclrc,${EPREFIX}/etc/sbclrc,g" -i src/code/toplevel.lisp || die
1829 -
1830 - find . -type f -name .cvsignore -delete
1831 -}
1832 -
1833 -src_configure() {
1834 - # customizing SBCL version as per
1835 - # http://sbcl.cvs.sourceforge.net/sbcl/sbcl/doc/PACKAGING-SBCL.txt?view=markup
1836 - echo -e ";;; Auto-generated by Gentoo\n\"gentoo-${PR}\"" > branch-version.lisp-expr
1837 -
1838 - # applying customizations
1839 - sbcl_apply_features
1840 -}
1841 -
1842 -src_compile() {
1843 - local bindir="${WORKDIR}"/sbcl-binary
1844 -
1845 - if use pax_kernel ; then
1846 - # To disable PaX on hardened systems
1847 - pax-mark -mr "${bindir}"/src/runtime/sbcl
1848 -
1849 - # Hack to disable PaX on second GENESIS stage
1850 - sed -i -e '/^[ \t]*echo \/\/doing warm init - compilation phase$/a\ paxmark.sh -mr \.\/src\/runtime\/sbcl' \
1851 - "${S}"/make-target-2.sh || die "Cannot disable PaX on second GENESIS runtime"
1852 - fi
1853 -
1854 - # clear the environment to get rid of non-ASCII strings, see bug #174702
1855 - # set HOME for paludis
1856 - env - HOME="${T}" PATH="${PATH}" \
1857 - CC="$(tc-getCC)" AS="$(tc-getAS)" LD="$(tc-getLD)" \
1858 - CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}" ASFLAGS="${ASFLAGS}" LDFLAGS="${LDFLAGS}" \
1859 - GNUMAKE=make ./make.sh \
1860 - "sh ${bindir}/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger" \
1861 - || die "make failed"
1862 -
1863 - # need to set HOME because libpango(used by graphviz) complains about it
1864 - if use doc; then
1865 - env - HOME="${T}" PATH="${PATH}" \
1866 - CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
1867 - ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
1868 - make -C doc/manual info html || die "Cannot build manual"
1869 - env - HOME="${T}" PATH="${PATH}" \
1870 - CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
1871 - ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
1872 - make -C doc/internals info html || die "Cannot build internal docs"
1873 - fi
1874 -}
1875 -
1876 -src_test() {
1877 - ewarn "Unfortunately, it is known that some tests fail eg."
1878 - ewarn "run-program.impure.lisp. This is an issue of the upstream's"
1879 - ewarn "development and not of Gentoo's side. Please, before filing"
1880 - ewarn "any bug(s) search for older submissions. Thank you."
1881 - time ( cd tests && sh run-tests.sh )
1882 -}
1883 -
1884 -src_install() {
1885 - # install system-wide initfile
1886 - dodir /etc/
1887 - sed 's/^X//' > "${ED}"/etc/sbclrc <<-EOF
1888 - ;;; The following is required if you want source location functions to
1889 - ;;; work in SLIME, for example.
1890 - X
1891 - (setf (logical-pathname-translations "SYS")
1892 - X '(("SYS:SRC;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/src/**/*.*")
1893 - X ("SYS:CONTRIB;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/**/*.*")))
1894 - X
1895 - ;;; Setup ASDF2
1896 - (load "${EPREFIX}/etc/common-lisp/gentoo-init.lisp")
1897 - EOF
1898 -
1899 - # Install documentation
1900 - unset SBCL_HOME
1901 - INSTALL_ROOT="${ED}/usr" LIB_DIR="${EPREFIX}/usr/$(get_libdir)" DOC_DIR="${ED}/usr/share/doc/${PF}" \
1902 - sh install.sh || die "install.sh failed"
1903 -
1904 - # bug #517008
1905 - pax-mark -mr "${D}"/usr/bin/sbcl
1906 -
1907 - # rm empty directories lest paludis complain about this
1908 - find "${ED}" -empty -type d -exec rmdir -v {} +
1909 -
1910 - if use doc; then
1911 - dodoc -r doc/internals/sbcl-internals
1912 -
1913 - doinfo doc/manual/*.info*
1914 - doinfo doc/internals/sbcl-internals.info
1915 -
1916 - docinto internals-notes
1917 - dodoc doc/internals-notes/*
1918 - else
1919 - rm -Rv "${ED}/usr/share/doc/${PF}" || die
1920 - fi
1921 -
1922 - # install the SBCL source
1923 - if use source; then
1924 - ./clean.sh
1925 - cp -av src "${ED}/usr/$(get_libdir)/sbcl/" || die
1926 - fi
1927 -
1928 - # necessary for running newly-saved images
1929 - echo "SBCL_HOME=${EPREFIX}/usr/$(get_libdir)/${PN}" > "${ENVD}"
1930 - echo "SBCL_SOURCE_ROOT=${EPREFIX}/usr/$(get_libdir)/${PN}/src" >> "${ENVD}"
1931 - doenvd "${ENVD}"
1932 -}
1933
1934 diff --git a/dev-lisp/sbcl/sbcl-1.4.8.ebuild b/dev-lisp/sbcl/sbcl-1.4.8.ebuild
1935 deleted file mode 100644
1936 index f07d8939edf..00000000000
1937 --- a/dev-lisp/sbcl/sbcl-1.4.8.ebuild
1938 +++ /dev/null
1939 @@ -1,246 +0,0 @@
1940 -# Copyright 1999-2018 Gentoo Foundation
1941 -# Distributed under the terms of the GNU General Public License v2
1942 -
1943 -EAPI=6
1944 -
1945 -inherit multilib eutils flag-o-matic pax-utils
1946 -
1947 -#same order as http://www.sbcl.org/platform-table.html
1948 -BV_X86=1.4.3
1949 -BV_AMD64=1.4.8
1950 -BV_PPC=1.2.7
1951 -BV_SPARC=1.0.28
1952 -BV_ALPHA=1.0.28
1953 -BV_ARM=1.3.12
1954 -BV_ARM64=1.4.2
1955 -BV_X86_MACOS=1.1.6
1956 -BV_X64_MACOS=1.2.11
1957 -BV_PPC_MACOS=1.0.47
1958 -BV_X86_SOLARIS=1.2.7
1959 -BV_X64_SOLARIS=1.2.7
1960 -BV_SPARC_SOLARIS=1.0.23
1961 -
1962 -DESCRIPTION="Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp"
1963 -HOMEPAGE="http://sbcl.sourceforge.net/"
1964 -SRC_URI="mirror://sourceforge/sbcl/${P}-source.tar.bz2
1965 - x86? ( mirror://sourceforge/sbcl/${PN}-${BV_X86}-x86-linux-binary.tar.bz2 )
1966 - amd64? ( mirror://sourceforge/sbcl/${PN}-${BV_AMD64}-x86-64-linux-binary.tar.bz2 )
1967 - ppc? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC}-powerpc-linux-binary.tar.bz2 )
1968 - sparc? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC}-sparc-linux-binary.tar.bz2 )
1969 - alpha? ( mirror://sourceforge/sbcl/${PN}-${BV_ALPHA}-alpha-linux-binary.tar.bz2 )
1970 - arm? ( mirror://sourceforge/sbcl/${PN}-${BV_ARM}-armhf-linux-binary.tar.bz2 )
1971 - arm64? ( mirror://sourceforge/sbcl/${PN}-${BV_ARM64}-arm64-linux-binary.tar.bz2 )
1972 - x86-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_MACOS}-x86-darwin-binary.tar.bz2 )
1973 - x64-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_MACOS}-x86-64-darwin-binary.tar.bz2 )
1974 - ppc-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC_MACOS}-powerpc-darwin-binary.tar.bz2 )
1975 - x86-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_SOLARIS}-x86-solaris-binary.tar.bz2 )
1976 - x64-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_SOLARIS}-x86-64-solaris-binary.tar.bz2 )
1977 - sparc-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC_SOLARIS}-sparc-solaris-binary.tar.bz2 )"
1978 -
1979 -LICENSE="MIT"
1980 -SLOT="0/${PV}"
1981 -KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~x86-solaris"
1982 -IUSE="debug doc source +threads +unicode pax_kernel zlib"
1983 -
1984 -CDEPEND=">=dev-lisp/asdf-3.1:="
1985 -DEPEND="${CDEPEND}
1986 - doc? ( sys-apps/texinfo >=media-gfx/graphviz-2.26.0 )
1987 - pax_kernel? ( sys-apps/elfix )"
1988 -RDEPEND="${CDEPEND}
1989 - !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.6 ) )"
1990 -
1991 -# Disable warnings about executable stacks, as this won't be fixed soon by upstream
1992 -QA_EXECSTACK="usr/bin/sbcl"
1993 -
1994 -CONFIG="${S}/customize-target-features.lisp"
1995 -ENVD="${T}/50sbcl"
1996 -
1997 -# Prevent ASDF from using the system libraries
1998 -CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)"
1999 -ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)"
2000 -
2001 -usep() {
2002 - use ${1} && echo "true" || echo "false"
2003 -}
2004 -
2005 -sbcl_feature() {
2006 - echo "$( [[ ${1} == "true" ]] && echo "(enable ${2})" || echo "(disable ${2})")" >> "${CONFIG}"
2007 -}
2008 -
2009 -sbcl_apply_features() {
2010 - sed 's/^X//' > "${CONFIG}" <<-'EOF'
2011 - (lambda (list)
2012 - X (flet ((enable (x) (pushnew x list))
2013 - X (disable (x) (setf list (remove x list))))
2014 - EOF
2015 - if use x86 || use amd64; then
2016 - sbcl_feature "$(usep threads)" ":sb-thread"
2017 - fi
2018 - sbcl_feature "true" ":sb-ldb"
2019 - sbcl_feature "false" ":sb-test"
2020 - sbcl_feature "$(usep unicode)" ":sb-unicode"
2021 - sbcl_feature "$(usep zlib)" ":sb-core-compression"
2022 - sbcl_feature "$(usep debug)" ":sb-xref-for-internals"
2023 - sed 's/^X//' >> "${CONFIG}" <<-'EOF'
2024 - X )
2025 - X list)
2026 - EOF
2027 - cat "${CONFIG}"
2028 -}
2029 -
2030 -src_unpack() {
2031 - unpack ${A}
2032 - mv sbcl-*-* sbcl-binary || die
2033 - cd "${S}"
2034 -}
2035 -
2036 -src_prepare() {
2037 - # bug #468482
2038 - eapply "${FILESDIR}"/concurrency-test-1.3.15.patch
2039 - # bugs #486552, #527666, #517004
2040 - eapply "${FILESDIR}"/${PN}-1.4.0-bsd-sockets-test.patch
2041 - # bugs #560276, #561018
2042 - eapply "${FILESDIR}"/sb-posix-test-1.2.15.patch
2043 -
2044 - eapply "${FILESDIR}"/${PN}-1.2.11-solaris.patch
2045 - eapply "${FILESDIR}"/${PN}-1.4.0-verbose-build.patch
2046 -
2047 - eapply_user
2048 -
2049 - # Make sure the *FLAGS variables are sane.
2050 - # sbcl needs symbols in resulting binaries, so building with the -s linker flag will fail.
2051 - strip-unsupported-flags
2052 - filter-flags -fomit-frame-pointer -Wl,-s
2053 - filter-ldflags -s
2054 -
2055 - # original bugs #526194, #620532
2056 - # this broke no-pie default builds, c.f. bug #632670
2057 - # Pass CFLAGS down by appending our value, to let users override
2058 - # the default values.
2059 - # Keep passing LDFLAGS down via the LINKFLAGS variable.
2060 - sed -e "s@\(CFLAGS += -g .*\)\$@\1 ${CFLAGS}@" \
2061 - -e "s@LINKFLAGS += -g\$@LINKFLAGS += ${LDFLAGS}@" \
2062 - -i src/runtime/GNUmakefile || die
2063 -
2064 - sed -e "s@SBCL_PREFIX=\"/usr/local\"@SBCL_PREFIX=\"${EPREFIX}/usr\"@" \
2065 - -i make-config.sh || die
2066 -
2067 - # Use installed ASDF version
2068 - cp "${EPREFIX}"/usr/share/common-lisp/source/asdf/build/asdf.lisp contrib/asdf/ || die
2069 - # Avoid installation of ASDF info page. See bug #605752
2070 - sed '/INFOFILES/s/asdf.info//' -i doc/manual/Makefile || die
2071 -
2072 - use source && sed 's%"$(BUILD_ROOT)%$(MODULE).lisp "$(BUILD_ROOT)%' -i contrib/vanilla-module.mk
2073 -
2074 - # Some shells(such as dash) don't have "time" as builtin
2075 - # and we don't want to DEPEND on sys-process/time
2076 - sed "s,^time ,," -i make.sh || die
2077 - sed "s,/lib,/$(get_libdir),g" -i install.sh || die
2078 - # #define SBCL_HOME ...
2079 - sed "s,/usr/local/lib,${EPREFIX}/usr/$(get_libdir),g" -i src/runtime/runtime.c || die
2080 - # change location of /etc/sbclrc ...
2081 - sed "s,/etc/sbclrc,${EPREFIX}/etc/sbclrc,g" -i src/code/toplevel.lisp || die
2082 -
2083 - find . -type f -name .cvsignore -delete
2084 -}
2085 -
2086 -src_configure() {
2087 - # customizing SBCL version as per
2088 - # http://sbcl.cvs.sourceforge.net/sbcl/sbcl/doc/PACKAGING-SBCL.txt?view=markup
2089 - echo -e ";;; Auto-generated by Gentoo\n\"gentoo-${PR}\"" > branch-version.lisp-expr
2090 -
2091 - # applying customizations
2092 - sbcl_apply_features
2093 -}
2094 -
2095 -src_compile() {
2096 - local bindir="${WORKDIR}"/sbcl-binary
2097 -
2098 - if use pax_kernel ; then
2099 - # To disable PaX on hardened systems
2100 - pax-mark -mr "${bindir}"/src/runtime/sbcl
2101 -
2102 - # Hack to disable PaX on second GENESIS stage
2103 - sed -i -e '/^[ \t]*echo \/\/doing warm init - compilation phase$/a\ paxmark.sh -mr \.\/src\/runtime\/sbcl' \
2104 - "${S}"/make-target-2.sh || die "Cannot disable PaX on second GENESIS runtime"
2105 - fi
2106 -
2107 - # clear the environment to get rid of non-ASCII strings, see bug #174702
2108 - # set HOME for paludis
2109 - env - HOME="${T}" PATH="${PATH}" \
2110 - CC="$(tc-getCC)" AS="$(tc-getAS)" LD="$(tc-getLD)" \
2111 - CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}" ASFLAGS="${ASFLAGS}" LDFLAGS="${LDFLAGS}" \
2112 - GNUMAKE=make ./make.sh \
2113 - "sh ${bindir}/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger" \
2114 - || die "make failed"
2115 -
2116 - # need to set HOME because libpango(used by graphviz) complains about it
2117 - if use doc; then
2118 - env - HOME="${T}" PATH="${PATH}" \
2119 - CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
2120 - ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
2121 - make -C doc/manual info html || die "Cannot build manual"
2122 - env - HOME="${T}" PATH="${PATH}" \
2123 - CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
2124 - ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
2125 - make -C doc/internals info html || die "Cannot build internal docs"
2126 - fi
2127 -}
2128 -
2129 -src_test() {
2130 - ewarn "Unfortunately, it is known that some tests fail eg."
2131 - ewarn "run-program.impure.lisp. This is an issue of the upstream's"
2132 - ewarn "development and not of Gentoo's side. Please, before filing"
2133 - ewarn "any bug(s) search for older submissions. Thank you."
2134 - time ( cd tests && sh run-tests.sh )
2135 -}
2136 -
2137 -src_install() {
2138 - # install system-wide initfile
2139 - dodir /etc/
2140 - sed 's/^X//' > "${ED}"/etc/sbclrc <<-EOF
2141 - ;;; The following is required if you want source location functions to
2142 - ;;; work in SLIME, for example.
2143 - X
2144 - (setf (logical-pathname-translations "SYS")
2145 - X '(("SYS:SRC;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/src/**/*.*")
2146 - X ("SYS:CONTRIB;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/**/*.*")))
2147 - X
2148 - ;;; Setup ASDF2
2149 - (load "${EPREFIX}/etc/common-lisp/gentoo-init.lisp")
2150 - EOF
2151 -
2152 - # Install documentation
2153 - unset SBCL_HOME
2154 - INSTALL_ROOT="${ED}/usr" LIB_DIR="${EPREFIX}/usr/$(get_libdir)" DOC_DIR="${ED}/usr/share/doc/${PF}" \
2155 - sh install.sh || die "install.sh failed"
2156 -
2157 - # bug #517008
2158 - pax-mark -mr "${D}"/usr/bin/sbcl
2159 -
2160 - # rm empty directories lest paludis complain about this
2161 - find "${ED}" -empty -type d -exec rmdir -v {} +
2162 -
2163 - if use doc; then
2164 - dodoc -r doc/internals/sbcl-internals
2165 -
2166 - doinfo doc/manual/*.info*
2167 - doinfo doc/internals/sbcl-internals.info
2168 -
2169 - docinto internals-notes
2170 - dodoc doc/internals-notes/*
2171 - else
2172 - rm -Rv "${ED}/usr/share/doc/${PF}" || die
2173 - fi
2174 -
2175 - # install the SBCL source
2176 - if use source; then
2177 - ./clean.sh
2178 - cp -av src "${ED}/usr/$(get_libdir)/sbcl/" || die
2179 - fi
2180 -
2181 - # necessary for running newly-saved images
2182 - echo "SBCL_HOME=${EPREFIX}/usr/$(get_libdir)/${PN}" > "${ENVD}"
2183 - echo "SBCL_SOURCE_ROOT=${EPREFIX}/usr/$(get_libdir)/${PN}/src" >> "${ENVD}"
2184 - doenvd "${ENVD}"
2185 -}