Gentoo Archives: gentoo-commits

From: "José María Alonso" <nimiux@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/lisp:master commit in: dev-lisp/sbcl/files/, dev-lisp/sbcl/
Date: Sun, 01 Oct 2017 19:26:33
Message-Id: 1506885987.3428d5cd57e6b15b046e3b48160ba39820753814.nimiux@gentoo
1 commit: 3428d5cd57e6b15b046e3b48160ba39820753814
2 Author: Chema Alonso Josa <nimiux <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 1 19:26:27 2017 +0000
4 Commit: José María Alonso <nimiux <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 1 19:26:27 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/lisp.git/commit/?id=3428d5cd
7
8 dev-lisp/sbcl: Drops old versions
9
10 dev-lisp/sbcl/files/gentoo-fix_install_man.patch | 12 --
11 ...5-gentoo-fix_nopie_for_hardened_toolchain.patch | 19 --
12 .../files/sbcl-1.3.16-gentoo-fix_install_man.patch | 12 --
13 dev-lisp/sbcl/sbcl-1.3.15.ebuild | 236 ---------------------
14 dev-lisp/sbcl/sbcl-1.3.16.ebuild | 234 --------------------
15 dev-lisp/sbcl/sbcl-1.3.17.ebuild | 234 --------------------
16 dev-lisp/sbcl/sbcl-1.3.18.ebuild | 234 --------------------
17 dev-lisp/sbcl/sbcl-1.3.19.ebuild | 234 --------------------
18 8 files changed, 1215 deletions(-)
19
20 diff --git a/dev-lisp/sbcl/files/gentoo-fix_install_man.patch b/dev-lisp/sbcl/files/gentoo-fix_install_man.patch
21 deleted file mode 100644
22 index 87a5f43c..00000000
23 --- a/dev-lisp/sbcl/files/gentoo-fix_install_man.patch
24 +++ /dev/null
25 @@ -1,12 +0,0 @@
26 -diff --git a/install.sh b/install.sh
27 -index 1400791..ac149c1 100644
28 ---- a/install.sh
29 -+++ b/install.sh
30 -@@ -106,6 +106,7 @@ echo "Documentation:"
31 -
32 - # man
33 - cp doc/sbcl.1 "$BUILD_ROOT$MAN_DIR"/man1/ && echo " man $BUILD_ROOT$MAN_DIR/man1/sbcl.1"
34 -+cp doc/sbcl-asdf-install.1 "$BUILD_ROOT$MAN_DIR"/man1/ && echo " man $BUILD_ROOT$MAN_DIR/man1/sbcl-asdf-install.1"
35 -
36 - # info
37 - for info in doc/manual/*.info
38
39 diff --git a/dev-lisp/sbcl/files/sbcl-1.3.15-gentoo-fix_nopie_for_hardened_toolchain.patch b/dev-lisp/sbcl/files/sbcl-1.3.15-gentoo-fix_nopie_for_hardened_toolchain.patch
40 deleted file mode 100644
41 index a3f93309..00000000
42 --- a/dev-lisp/sbcl/files/sbcl-1.3.15-gentoo-fix_nopie_for_hardened_toolchain.patch
43 +++ /dev/null
44 @@ -1,19 +0,0 @@
45 -diff -U3 -r sbcl-1.3.15.orig/src/runtime/GNUmakefile sbcl-1.3.15/src/runtime/GNUmakefile
46 ---- sbcl-1.3.15.orig/src/runtime/GNUmakefile 2017-02-28 20:51:29.000000000 +0100
47 -+++ sbcl-1.3.15/src/runtime/GNUmakefile 2017-03-02 18:22:13.959257937 +0100
48 -@@ -46,13 +46,13 @@
49 - include Config
50 -
51 - # Disable PIE when possible
52 --ifneq ($(shell $(CC) -dumpspecs 2>/dev/null | grep -e no-pie),)
53 -+ifneq ($(shell $(CC) -dumpspecs 2>/dev/null | grep -e '[^f]no-pie'),)
54 - CFLAGS += -fno-pie
55 - LINKFLAGS += -no-pie
56 - LDFLAGS += -no-pie
57 - __LDFLAGS__ += -no-pie
58 - endif
59 --ifneq ($(shell $(CC) -dumpspecs 2>/dev/null | grep -e nopie),)
60 -+ifneq ($(shell $(CC) -dumpspecs 2>/dev/null | grep -e '[^f]nopie'),)
61 - CFLAGS += -fno-pie
62 - LINKFLAGS += -nopie
63 - LDFLAGS += -nopie
64
65 diff --git a/dev-lisp/sbcl/files/sbcl-1.3.16-gentoo-fix_install_man.patch b/dev-lisp/sbcl/files/sbcl-1.3.16-gentoo-fix_install_man.patch
66 deleted file mode 100644
67 index 5e01b331..00000000
68 --- a/dev-lisp/sbcl/files/sbcl-1.3.16-gentoo-fix_install_man.patch
69 +++ /dev/null
70 @@ -1,12 +0,0 @@
71 -diff -Nuar a/install.sh b/install.sh
72 ---- a/install.sh 2017-03-27 11:57:34.000000000 +0200
73 -+++ b/install.sh 2017-04-04 20:21:25.510085555 +0200
74 -@@ -110,7 +110,7 @@
75 - CP="cp -f"
76 -
77 - # man
78 --$CP doc/sbcl.1 "$BUILD_ROOT$MAN_DIR"/man1/ && echo " man $BUILD_ROOT$MAN_DIR/man1/sbcl.1"
79 -+$CP doc/sbcl-asdf-install.1 "$BUILD_ROOT$MAN_DIR"/man1/ && echo " man $BUILD_ROOT$MAN_DIR/man1/sbcl-asdf-install.1"
80 -
81 - # info
82 - for info in doc/manual/*.info
83
84 diff --git a/dev-lisp/sbcl/sbcl-1.3.15.ebuild b/dev-lisp/sbcl/sbcl-1.3.15.ebuild
85 deleted file mode 100644
86 index 51f1378d..00000000
87 --- a/dev-lisp/sbcl/sbcl-1.3.15.ebuild
88 +++ /dev/null
89 @@ -1,236 +0,0 @@
90 -# Copyright 1999-2017 Gentoo Foundation
91 -# Distributed under the terms of the GNU General Public License v2
92 -
93 -EAPI=6
94 -inherit multilib eutils flag-o-matic pax-utils
95 -
96 -#same order as http://www.sbcl.org/platform-table.html
97 -BV_X86=1.2.7
98 -BV_AMD64=1.3.15
99 -BV_PPC=1.2.7
100 -BV_SPARC=1.0.28
101 -BV_ALPHA=1.0.28
102 -BV_ARM=1.3.12
103 -BV_ARM64=1.3.11
104 -BV_PPC_MACOS=1.0.47
105 -BV_X86_MACOS=1.1.6
106 -BV_X64_MACOS=1.2.11
107 -BV_SPARC_SOLARIS=1.0.23
108 -BV_X86_SOLARIS=1.2.7
109 -BV_X64_SOLARIS=1.2.7
110 -
111 -DESCRIPTION="Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp"
112 -HOMEPAGE="http://sbcl.sourceforge.net/"
113 -SRC_URI="mirror://sourceforge/sbcl/${P}-source.tar.bz2
114 - x86? ( mirror://sourceforge/sbcl/${PN}-${BV_X86}-x86-linux-binary.tar.bz2 )
115 - amd64? ( mirror://sourceforge/sbcl/${PN}-${BV_AMD64}-x86-64-linux-binary.tar.bz2 )
116 - ppc? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC}-powerpc-linux-binary.tar.bz2 )
117 - sparc? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC}-sparc-linux-binary.tar.bz2 )
118 - alpha? ( mirror://sourceforge/sbcl/${PN}-${BV_ALPHA}-alpha-linux-binary.tar.bz2 )
119 - arm? ( mirror://sourceforge/sbcl/${PN}-${BV_ARM}-armhf-linux-binary.tar.bz2 )
120 - ppc-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC_MACOS}-powerpc-darwin-binary.tar.bz2 )
121 - x86-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_MACOS}-x86-darwin-binary.tar.bz2 )
122 - x64-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_MACOS}-x86-64-darwin-binary.tar.bz2 )
123 - sparc-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC_SOLARIS}-sparc-solaris-binary.tar.bz2 )
124 - x86-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_SOLARIS}-x86-solaris-binary.tar.bz2 )
125 - x64-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_SOLARIS}-x86-64-solaris-binary.tar.bz2 )"
126 -
127 -LICENSE="MIT"
128 -SLOT="0/${PV}"
129 -KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~x86-solaris"
130 -IUSE="debug doc source +threads +unicode pax_kernel zlib"
131 -
132 -CDEPEND=">=dev-lisp/asdf-3.1:="
133 -DEPEND="${CDEPEND}
134 - doc? ( sys-apps/texinfo >=media-gfx/graphviz-2.26.0 )
135 - pax_kernel? ( sys-apps/elfix )"
136 -RDEPEND="${CDEPEND}
137 - !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.6 ) )"
138 -
139 -# Disable warnings about executable stacks, as this won't be fixed soon by upstream
140 -QA_EXECSTACK="usr/bin/sbcl"
141 -
142 -CONFIG="${S}/customize-target-features.lisp"
143 -ENVD="${T}/50sbcl"
144 -
145 -# Prevent ASDF from using the system libraries
146 -CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)"
147 -ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)"
148 -
149 -usep() {
150 - use ${1} && echo "true" || echo "false"
151 -}
152 -
153 -sbcl_feature() {
154 - echo "$( [[ ${1} == "true" ]] && echo "(enable ${2})" || echo "(disable ${2})")" >> "${CONFIG}"
155 -}
156 -
157 -sbcl_apply_features() {
158 - sed 's/^X//' > "${CONFIG}" <<-'EOF'
159 - (lambda (list)
160 - X (flet ((enable (x) (pushnew x list))
161 - X (disable (x) (setf list (remove x list))))
162 - EOF
163 - if use x86 || use amd64; then
164 - sbcl_feature "$(usep threads)" ":sb-thread"
165 - fi
166 - sbcl_feature "true" ":sb-ldb"
167 - sbcl_feature "false" ":sb-test"
168 - sbcl_feature "$(usep unicode)" ":sb-unicode"
169 - sbcl_feature "$(usep zlib)" ":sb-core-compression"
170 - sbcl_feature "$(usep debug)" ":sb-xref-for-internals"
171 - sed 's/^X//' >> "${CONFIG}" <<-'EOF'
172 - X )
173 - X list)
174 - EOF
175 - cat "${CONFIG}"
176 -}
177 -
178 -src_unpack() {
179 - unpack ${A}
180 - mv sbcl-*-* sbcl-binary || die
181 - cd "${S}"
182 -}
183 -
184 -src_prepare() {
185 - eapply "${FILESDIR}"/gentoo-fix_install_man.patch
186 - # bug #468482
187 - eapply "${FILESDIR}"/concurrency-test-1.3.15.patch
188 - # bugs #486552, #527666, #517004
189 - eapply "${FILESDIR}"/bsd-sockets-test-1.3.12.patch
190 - # bugs #560276, #561018
191 - eapply "${FILESDIR}"/sb-posix-test-1.2.15.patch
192 - # bug #599902, #607302, #583930
193 - eapply "${FILESDIR}"/${PN}-1.3.15-gentoo-fix_nopie_for_hardened_toolchain.patch
194 -
195 - eapply "${FILESDIR}"/${PN}-1.2.11-solaris.patch
196 - eapply "${FILESDIR}"/${PN}-1.2.13-verbose-build.patch
197 -
198 - eapply_user
199 -
200 - # bug #526194
201 - sed -e "s@CFLAGS =.*\$@CFLAGS = ${CFLAGS} -g -Wall -Wsign-compare@" \
202 - -e "s@LINKFLAGS =.*\$@LINKFLAGS = ${LDFLAGS} -g@" \
203 - -i src/runtime/GNUmakefile || die
204 -
205 - sed -e "s@SBCL_PREFIX=\"/usr/local\"@SBCL_PREFIX=\"${EPREFIX}/usr\"@" \
206 - -i make-config.sh || die
207 -
208 - cp "${EPREFIX}"/usr/share/common-lisp/source/asdf/build/asdf.lisp contrib/asdf/ || die
209 -
210 - use source && sed 's%"$(BUILD_ROOT)%$(MODULE).lisp "$(BUILD_ROOT)%' -i contrib/vanilla-module.mk
211 -
212 - # Some shells(such as dash) don't have "time" as builtin
213 - # and we don't want to DEPEND on sys-process/time
214 - sed "s,^time ,," -i make.sh || die
215 - sed "s,/lib,/$(get_libdir),g" -i install.sh || die
216 - # #define SBCL_HOME ...
217 - sed "s,/usr/local/lib,${EPREFIX}/usr/$(get_libdir),g" -i src/runtime/runtime.c || die
218 - # change location of /etc/sbclrc ...
219 - sed "s,/etc/sbclrc,${EPREFIX}/etc/sbclrc,g" -i src/code/toplevel.lisp || die
220 -
221 - find . -type f -name .cvsignore -delete
222 -}
223 -
224 -src_configure() {
225 - # customizing SBCL version as per
226 - # http://sbcl.cvs.sourceforge.net/sbcl/sbcl/doc/PACKAGING-SBCL.txt?view=markup
227 - echo -e ";;; Auto-generated by Gentoo\n\"gentoo-${PR}\"" > branch-version.lisp-expr
228 -
229 - # applying customizations
230 - sbcl_apply_features
231 -}
232 -
233 -src_compile() {
234 - local bindir="${WORKDIR}"/sbcl-binary
235 -
236 - strip-unsupported-flags ; filter-flags -fomit-frame-pointer
237 -
238 - if use pax_kernel ; then
239 - # To disable PaX on hardened systems
240 - pax-mark -mr "${bindir}"/src/runtime/sbcl
241 -
242 - # Hack to disable PaX on second GENESIS stage
243 - sed -i -e '/^[ \t]*echo \/\/doing warm init - compilation phase$/a\ paxmark.sh -mr \.\/src\/runtime\/sbcl' \
244 - "${S}"/make-target-2.sh || die "Cannot disable PaX on second GENESIS runtime"
245 - fi
246 -
247 - # clear the environment to get rid of non-ASCII strings, see bug 174702
248 - # set HOME for paludis
249 - env - HOME="${T}" PATH="${PATH}" \
250 - CC="$(tc-getCC)" AS="$(tc-getAS)" LD="$(tc-getLD)" \
251 - CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}" ASFLAGS="${ASFLAGS}" LDFLAGS="${LDFLAGS}" \
252 - GNUMAKE=make ./make.sh \
253 - "sh ${bindir}/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger" \
254 - || die "make failed"
255 -
256 - # need to set HOME because libpango(used by graphviz) complains about it
257 - if use doc; then
258 - env - HOME="${T}" PATH="${PATH}" \
259 - CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
260 - ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
261 - make -C doc/manual info html || die "Cannot build manual"
262 - env - HOME="${T}" PATH="${PATH}" \
263 - CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
264 - ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
265 - make -C doc/internals info html || die "Cannot build internal docs"
266 - fi
267 -}
268 -
269 -src_test() {
270 - ewarn "Unfortunately, it is known that some tests fail eg."
271 - ewarn "run-program.impure.lisp. This is an issue of the upstream's"
272 - ewarn "development and not of Gentoo's side. Please, before filing"
273 - ewarn "any bug(s) search for older submissions. Thank you."
274 - time ( cd tests && sh run-tests.sh )
275 -}
276 -
277 -src_install() {
278 - # install system-wide initfile
279 - dodir /etc/
280 - sed 's/^X//' > "${ED}"/etc/sbclrc <<-EOF
281 - ;;; The following is required if you want source location functions to
282 - ;;; work in SLIME, for example.
283 - X
284 - (setf (logical-pathname-translations "SYS")
285 - X '(("SYS:SRC;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/src/**/*.*")
286 - X ("SYS:CONTRIB;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/**/*.*")))
287 - X
288 - ;;; Setup ASDF2
289 - (load "${EPREFIX}/etc/common-lisp/gentoo-init.lisp")
290 - EOF
291 -
292 - # Install documentation
293 - unset SBCL_HOME
294 - INSTALL_ROOT="${ED}/usr" LIB_DIR="${EPREFIX}/usr/$(get_libdir)" DOC_DIR="${ED}/usr/share/doc/${PF}" \
295 - sh install.sh || die "install.sh failed"
296 -
297 - # bug #517008
298 - pax-mark -mr "${D}"/usr/bin/sbcl
299 -
300 - # rm empty directories lest paludis complain about this
301 - find "${ED}" -empty -type d -exec rmdir -v {} +
302 -
303 - if use doc; then
304 - dodoc -r doc/internals/sbcl-internals
305 -
306 - doinfo doc/manual/*.info*
307 - doinfo doc/internals/sbcl-internals.info
308 -
309 - docinto internals-notes
310 - dodoc doc/internals-notes/*
311 - else
312 - rm -Rv "${ED}/usr/share/doc/${PF}" || die
313 - fi
314 -
315 - # install the SBCL source
316 - if use source; then
317 - ./clean.sh
318 - cp -av src "${ED}/usr/$(get_libdir)/sbcl/" || die
319 - fi
320 -
321 - # necessary for running newly-saved images
322 - echo "SBCL_HOME=${EPREFIX}/usr/$(get_libdir)/${PN}" > "${ENVD}"
323 - echo "SBCL_SOURCE_ROOT=${EPREFIX}/usr/$(get_libdir)/${PN}/src" >> "${ENVD}"
324 - doenvd "${ENVD}"
325 -}
326
327 diff --git a/dev-lisp/sbcl/sbcl-1.3.16.ebuild b/dev-lisp/sbcl/sbcl-1.3.16.ebuild
328 deleted file mode 100644
329 index 57ea1430..00000000
330 --- a/dev-lisp/sbcl/sbcl-1.3.16.ebuild
331 +++ /dev/null
332 @@ -1,234 +0,0 @@
333 -# Copyright 1999-2017 Gentoo Foundation
334 -# Distributed under the terms of the GNU General Public License v2
335 -
336 -EAPI=6
337 -inherit multilib eutils flag-o-matic pax-utils
338 -
339 -#same order as http://www.sbcl.org/platform-table.html
340 -BV_X86=1.2.7
341 -BV_AMD64=1.3.16
342 -BV_PPC=1.2.7
343 -BV_SPARC=1.0.28
344 -BV_ALPHA=1.0.28
345 -BV_ARM=1.3.12
346 -BV_ARM64=1.3.16
347 -BV_PPC_MACOS=1.0.47
348 -BV_X86_MACOS=1.1.6
349 -BV_X64_MACOS=1.2.11
350 -BV_SPARC_SOLARIS=1.0.23
351 -BV_X86_SOLARIS=1.2.7
352 -BV_X64_SOLARIS=1.2.7
353 -
354 -DESCRIPTION="Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp"
355 -HOMEPAGE="http://sbcl.sourceforge.net/"
356 -SRC_URI="mirror://sourceforge/sbcl/${P}-source.tar.bz2
357 - x86? ( mirror://sourceforge/sbcl/${PN}-${BV_X86}-x86-linux-binary.tar.bz2 )
358 - amd64? ( mirror://sourceforge/sbcl/${PN}-${BV_AMD64}-x86-64-linux-binary.tar.bz2 )
359 - ppc? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC}-powerpc-linux-binary.tar.bz2 )
360 - sparc? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC}-sparc-linux-binary.tar.bz2 )
361 - alpha? ( mirror://sourceforge/sbcl/${PN}-${BV_ALPHA}-alpha-linux-binary.tar.bz2 )
362 - arm? ( mirror://sourceforge/sbcl/${PN}-${BV_ARM}-armhf-linux-binary.tar.bz2 )
363 - ppc-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC_MACOS}-powerpc-darwin-binary.tar.bz2 )
364 - x86-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_MACOS}-x86-darwin-binary.tar.bz2 )
365 - x64-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_MACOS}-x86-64-darwin-binary.tar.bz2 )
366 - sparc-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC_SOLARIS}-sparc-solaris-binary.tar.bz2 )
367 - x86-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_SOLARIS}-x86-solaris-binary.tar.bz2 )
368 - x64-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_SOLARIS}-x86-64-solaris-binary.tar.bz2 )"
369 -
370 -LICENSE="MIT"
371 -SLOT="0/${PV}"
372 -KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~x86-solaris"
373 -IUSE="debug doc source +threads +unicode pax_kernel zlib"
374 -
375 -CDEPEND=">=dev-lisp/asdf-3.1:="
376 -DEPEND="${CDEPEND}
377 - doc? ( sys-apps/texinfo >=media-gfx/graphviz-2.26.0 )
378 - pax_kernel? ( sys-apps/elfix )"
379 -RDEPEND="${CDEPEND}
380 - !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.6 ) )"
381 -
382 -# Disable warnings about executable stacks, as this won't be fixed soon by upstream
383 -QA_EXECSTACK="usr/bin/sbcl"
384 -
385 -CONFIG="${S}/customize-target-features.lisp"
386 -ENVD="${T}/50sbcl"
387 -
388 -# Prevent ASDF from using the system libraries
389 -CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)"
390 -ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)"
391 -
392 -usep() {
393 - use ${1} && echo "true" || echo "false"
394 -}
395 -
396 -sbcl_feature() {
397 - echo "$( [[ ${1} == "true" ]] && echo "(enable ${2})" || echo "(disable ${2})")" >> "${CONFIG}"
398 -}
399 -
400 -sbcl_apply_features() {
401 - sed 's/^X//' > "${CONFIG}" <<-'EOF'
402 - (lambda (list)
403 - X (flet ((enable (x) (pushnew x list))
404 - X (disable (x) (setf list (remove x list))))
405 - EOF
406 - if use x86 || use amd64; then
407 - sbcl_feature "$(usep threads)" ":sb-thread"
408 - fi
409 - sbcl_feature "true" ":sb-ldb"
410 - sbcl_feature "false" ":sb-test"
411 - sbcl_feature "$(usep unicode)" ":sb-unicode"
412 - sbcl_feature "$(usep zlib)" ":sb-core-compression"
413 - sbcl_feature "$(usep debug)" ":sb-xref-for-internals"
414 - sed 's/^X//' >> "${CONFIG}" <<-'EOF'
415 - X )
416 - X list)
417 - EOF
418 - cat "${CONFIG}"
419 -}
420 -
421 -src_unpack() {
422 - unpack ${A}
423 - mv sbcl-*-* sbcl-binary || die
424 - cd "${S}"
425 -}
426 -
427 -src_prepare() {
428 - eapply "${FILESDIR}"/${P}-gentoo-fix_install_man.patch
429 - # bug #468482
430 - eapply "${FILESDIR}"/concurrency-test-1.3.15.patch
431 - # bugs #486552, #527666, #517004
432 - eapply "${FILESDIR}"/bsd-sockets-test-1.3.12.patch
433 - # bugs #560276, #561018
434 - eapply "${FILESDIR}"/sb-posix-test-1.2.15.patch
435 -
436 - eapply "${FILESDIR}"/${PN}-1.2.11-solaris.patch
437 - eapply "${FILESDIR}"/${PN}-1.2.13-verbose-build.patch
438 -
439 - eapply_user
440 -
441 - # bug #526194
442 - sed -e "s@CFLAGS =.*\$@CFLAGS = ${CFLAGS} -g -Wall -Wsign-compare@" \
443 - -e "s@LINKFLAGS =.*\$@LINKFLAGS = ${LDFLAGS} -g@" \
444 - -i src/runtime/GNUmakefile || die
445 -
446 - sed -e "s@SBCL_PREFIX=\"/usr/local\"@SBCL_PREFIX=\"${EPREFIX}/usr\"@" \
447 - -i make-config.sh || die
448 -
449 - cp "${EPREFIX}"/usr/share/common-lisp/source/asdf/build/asdf.lisp contrib/asdf/ || die
450 -
451 - use source && sed 's%"$(BUILD_ROOT)%$(MODULE).lisp "$(BUILD_ROOT)%' -i contrib/vanilla-module.mk
452 -
453 - # Some shells(such as dash) don't have "time" as builtin
454 - # and we don't want to DEPEND on sys-process/time
455 - sed "s,^time ,," -i make.sh || die
456 - sed "s,/lib,/$(get_libdir),g" -i install.sh || die
457 - # #define SBCL_HOME ...
458 - sed "s,/usr/local/lib,${EPREFIX}/usr/$(get_libdir),g" -i src/runtime/runtime.c || die
459 - # change location of /etc/sbclrc ...
460 - sed "s,/etc/sbclrc,${EPREFIX}/etc/sbclrc,g" -i src/code/toplevel.lisp || die
461 -
462 - find . -type f -name .cvsignore -delete
463 -}
464 -
465 -src_configure() {
466 - # customizing SBCL version as per
467 - # http://sbcl.cvs.sourceforge.net/sbcl/sbcl/doc/PACKAGING-SBCL.txt?view=markup
468 - echo -e ";;; Auto-generated by Gentoo\n\"gentoo-${PR}\"" > branch-version.lisp-expr
469 -
470 - # applying customizations
471 - sbcl_apply_features
472 -}
473 -
474 -src_compile() {
475 - local bindir="${WORKDIR}"/sbcl-binary
476 -
477 - strip-unsupported-flags ; filter-flags -fomit-frame-pointer
478 -
479 - if use pax_kernel ; then
480 - # To disable PaX on hardened systems
481 - pax-mark -mr "${bindir}"/src/runtime/sbcl
482 -
483 - # Hack to disable PaX on second GENESIS stage
484 - sed -i -e '/^[ \t]*echo \/\/doing warm init - compilation phase$/a\ paxmark.sh -mr \.\/src\/runtime\/sbcl' \
485 - "${S}"/make-target-2.sh || die "Cannot disable PaX on second GENESIS runtime"
486 - fi
487 -
488 - # clear the environment to get rid of non-ASCII strings, see bug 174702
489 - # set HOME for paludis
490 - env - HOME="${T}" PATH="${PATH}" \
491 - CC="$(tc-getCC)" AS="$(tc-getAS)" LD="$(tc-getLD)" \
492 - CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}" ASFLAGS="${ASFLAGS}" LDFLAGS="${LDFLAGS}" \
493 - GNUMAKE=make ./make.sh \
494 - "sh ${bindir}/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger" \
495 - || die "make failed"
496 -
497 - # need to set HOME because libpango(used by graphviz) complains about it
498 - if use doc; then
499 - env - HOME="${T}" PATH="${PATH}" \
500 - CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
501 - ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
502 - make -C doc/manual info html || die "Cannot build manual"
503 - env - HOME="${T}" PATH="${PATH}" \
504 - CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
505 - ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
506 - make -C doc/internals info html || die "Cannot build internal docs"
507 - fi
508 -}
509 -
510 -src_test() {
511 - ewarn "Unfortunately, it is known that some tests fail eg."
512 - ewarn "run-program.impure.lisp. This is an issue of the upstream's"
513 - ewarn "development and not of Gentoo's side. Please, before filing"
514 - ewarn "any bug(s) search for older submissions. Thank you."
515 - time ( cd tests && sh run-tests.sh )
516 -}
517 -
518 -src_install() {
519 - # install system-wide initfile
520 - dodir /etc/
521 - sed 's/^X//' > "${ED}"/etc/sbclrc <<-EOF
522 - ;;; The following is required if you want source location functions to
523 - ;;; work in SLIME, for example.
524 - X
525 - (setf (logical-pathname-translations "SYS")
526 - X '(("SYS:SRC;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/src/**/*.*")
527 - X ("SYS:CONTRIB;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/**/*.*")))
528 - X
529 - ;;; Setup ASDF2
530 - (load "${EPREFIX}/etc/common-lisp/gentoo-init.lisp")
531 - EOF
532 -
533 - # Install documentation
534 - unset SBCL_HOME
535 - INSTALL_ROOT="${ED}/usr" LIB_DIR="${EPREFIX}/usr/$(get_libdir)" DOC_DIR="${ED}/usr/share/doc/${PF}" \
536 - sh install.sh || die "install.sh failed"
537 -
538 - # bug #517008
539 - pax-mark -mr "${D}"/usr/bin/sbcl
540 -
541 - # rm empty directories lest paludis complain about this
542 - find "${ED}" -empty -type d -exec rmdir -v {} +
543 -
544 - if use doc; then
545 - dodoc -r doc/internals/sbcl-internals
546 -
547 - doinfo doc/manual/*.info*
548 - doinfo doc/internals/sbcl-internals.info
549 -
550 - docinto internals-notes
551 - dodoc doc/internals-notes/*
552 - else
553 - rm -Rv "${ED}/usr/share/doc/${PF}" || die
554 - fi
555 -
556 - # install the SBCL source
557 - if use source; then
558 - ./clean.sh
559 - cp -av src "${ED}/usr/$(get_libdir)/sbcl/" || die
560 - fi
561 -
562 - # necessary for running newly-saved images
563 - echo "SBCL_HOME=${EPREFIX}/usr/$(get_libdir)/${PN}" > "${ENVD}"
564 - echo "SBCL_SOURCE_ROOT=${EPREFIX}/usr/$(get_libdir)/${PN}/src" >> "${ENVD}"
565 - doenvd "${ENVD}"
566 -}
567
568 diff --git a/dev-lisp/sbcl/sbcl-1.3.17.ebuild b/dev-lisp/sbcl/sbcl-1.3.17.ebuild
569 deleted file mode 100644
570 index 7ba0df37..00000000
571 --- a/dev-lisp/sbcl/sbcl-1.3.17.ebuild
572 +++ /dev/null
573 @@ -1,234 +0,0 @@
574 -# Copyright 1999-2017 Gentoo Foundation
575 -# Distributed under the terms of the GNU General Public License v2
576 -
577 -EAPI=6
578 -
579 -inherit multilib eutils flag-o-matic pax-utils
580 -
581 -#same order as http://www.sbcl.org/platform-table.html
582 -BV_X86=1.2.7
583 -BV_AMD64=1.3.17
584 -BV_PPC=1.2.7
585 -BV_SPARC=1.0.28
586 -BV_ALPHA=1.0.28
587 -BV_ARM=1.3.12
588 -BV_ARM64=1.3.16
589 -BV_PPC_MACOS=1.0.47
590 -BV_X86_MACOS=1.1.6
591 -BV_X64_MACOS=1.2.11
592 -BV_SPARC_SOLARIS=1.0.23
593 -BV_X86_SOLARIS=1.2.7
594 -BV_X64_SOLARIS=1.2.7
595 -
596 -DESCRIPTION="Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp"
597 -HOMEPAGE="http://sbcl.sourceforge.net/"
598 -SRC_URI="mirror://sourceforge/sbcl/${P}-source.tar.bz2
599 - x86? ( mirror://sourceforge/sbcl/${PN}-${BV_X86}-x86-linux-binary.tar.bz2 )
600 - amd64? ( mirror://sourceforge/sbcl/${PN}-${BV_AMD64}-x86-64-linux-binary.tar.bz2 )
601 - ppc? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC}-powerpc-linux-binary.tar.bz2 )
602 - sparc? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC}-sparc-linux-binary.tar.bz2 )
603 - alpha? ( mirror://sourceforge/sbcl/${PN}-${BV_ALPHA}-alpha-linux-binary.tar.bz2 )
604 - arm? ( mirror://sourceforge/sbcl/${PN}-${BV_ARM}-armhf-linux-binary.tar.bz2 )
605 - ppc-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC_MACOS}-powerpc-darwin-binary.tar.bz2 )
606 - x86-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_MACOS}-x86-darwin-binary.tar.bz2 )
607 - x64-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_MACOS}-x86-64-darwin-binary.tar.bz2 )
608 - sparc-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC_SOLARIS}-sparc-solaris-binary.tar.bz2 )
609 - x86-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_SOLARIS}-x86-solaris-binary.tar.bz2 )
610 - x64-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_SOLARIS}-x86-64-solaris-binary.tar.bz2 )"
611 -
612 -LICENSE="MIT"
613 -SLOT="0/${PV}"
614 -KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~x86-solaris"
615 -IUSE="debug doc source +threads +unicode pax_kernel zlib"
616 -
617 -CDEPEND=">=dev-lisp/asdf-3.1:="
618 -DEPEND="${CDEPEND}
619 - doc? ( sys-apps/texinfo >=media-gfx/graphviz-2.26.0 )
620 - pax_kernel? ( sys-apps/elfix )"
621 -RDEPEND="${CDEPEND}
622 - !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.6 ) )"
623 -
624 -# Disable warnings about executable stacks, as this won't be fixed soon by upstream
625 -QA_EXECSTACK="usr/bin/sbcl"
626 -
627 -CONFIG="${S}/customize-target-features.lisp"
628 -ENVD="${T}/50sbcl"
629 -
630 -# Prevent ASDF from using the system libraries
631 -CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)"
632 -ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)"
633 -
634 -usep() {
635 - use ${1} && echo "true" || echo "false"
636 -}
637 -
638 -sbcl_feature() {
639 - echo "$( [[ ${1} == "true" ]] && echo "(enable ${2})" || echo "(disable ${2})")" >> "${CONFIG}"
640 -}
641 -
642 -sbcl_apply_features() {
643 - sed 's/^X//' > "${CONFIG}" <<-'EOF'
644 - (lambda (list)
645 - X (flet ((enable (x) (pushnew x list))
646 - X (disable (x) (setf list (remove x list))))
647 - EOF
648 - if use x86 || use amd64; then
649 - sbcl_feature "$(usep threads)" ":sb-thread"
650 - fi
651 - sbcl_feature "true" ":sb-ldb"
652 - sbcl_feature "false" ":sb-test"
653 - sbcl_feature "$(usep unicode)" ":sb-unicode"
654 - sbcl_feature "$(usep zlib)" ":sb-core-compression"
655 - sbcl_feature "$(usep debug)" ":sb-xref-for-internals"
656 - sed 's/^X//' >> "${CONFIG}" <<-'EOF'
657 - X )
658 - X list)
659 - EOF
660 - cat "${CONFIG}"
661 -}
662 -
663 -src_unpack() {
664 - unpack ${A}
665 - mv sbcl-*-* sbcl-binary || die
666 - cd "${S}"
667 -}
668 -
669 -src_prepare() {
670 - # bug #468482
671 - eapply "${FILESDIR}"/concurrency-test-1.3.15.patch
672 - # bugs #486552, #527666, #517004
673 - eapply "${FILESDIR}"/bsd-sockets-test-1.3.12.patch
674 - # bugs #560276, #561018
675 - eapply "${FILESDIR}"/sb-posix-test-1.2.15.patch
676 -
677 - eapply "${FILESDIR}"/${PN}-1.2.11-solaris.patch
678 - eapply "${FILESDIR}"/${PN}-1.2.13-verbose-build.patch
679 -
680 - eapply_user
681 -
682 - # bug #526194
683 - sed -e "s@CFLAGS =.*\$@CFLAGS = ${CFLAGS} -g -Wall -Wsign-compare@" \
684 - -e "s@LINKFLAGS =.*\$@LINKFLAGS = ${LDFLAGS} -g@" \
685 - -i src/runtime/GNUmakefile || die
686 -
687 - sed -e "s@SBCL_PREFIX=\"/usr/local\"@SBCL_PREFIX=\"${EPREFIX}/usr\"@" \
688 - -i make-config.sh || die
689 -
690 - cp "${EPREFIX}"/usr/share/common-lisp/source/asdf/build/asdf.lisp contrib/asdf/ || die
691 -
692 - use source && sed 's%"$(BUILD_ROOT)%$(MODULE).lisp "$(BUILD_ROOT)%' -i contrib/vanilla-module.mk
693 -
694 - # Some shells(such as dash) don't have "time" as builtin
695 - # and we don't want to DEPEND on sys-process/time
696 - sed "s,^time ,," -i make.sh || die
697 - sed "s,/lib,/$(get_libdir),g" -i install.sh || die
698 - # #define SBCL_HOME ...
699 - sed "s,/usr/local/lib,${EPREFIX}/usr/$(get_libdir),g" -i src/runtime/runtime.c || die
700 - # change location of /etc/sbclrc ...
701 - sed "s,/etc/sbclrc,${EPREFIX}/etc/sbclrc,g" -i src/code/toplevel.lisp || die
702 -
703 - find . -type f -name .cvsignore -delete
704 -}
705 -
706 -src_configure() {
707 - # customizing SBCL version as per
708 - # http://sbcl.cvs.sourceforge.net/sbcl/sbcl/doc/PACKAGING-SBCL.txt?view=markup
709 - echo -e ";;; Auto-generated by Gentoo\n\"gentoo-${PR}\"" > branch-version.lisp-expr
710 -
711 - # applying customizations
712 - sbcl_apply_features
713 -}
714 -
715 -src_compile() {
716 - local bindir="${WORKDIR}"/sbcl-binary
717 -
718 - strip-unsupported-flags ; filter-flags -fomit-frame-pointer
719 -
720 - if use pax_kernel ; then
721 - # To disable PaX on hardened systems
722 - pax-mark -mr "${bindir}"/src/runtime/sbcl
723 -
724 - # Hack to disable PaX on second GENESIS stage
725 - sed -i -e '/^[ \t]*echo \/\/doing warm init - compilation phase$/a\ paxmark.sh -mr \.\/src\/runtime\/sbcl' \
726 - "${S}"/make-target-2.sh || die "Cannot disable PaX on second GENESIS runtime"
727 - fi
728 -
729 - # clear the environment to get rid of non-ASCII strings, see bug 174702
730 - # set HOME for paludis
731 - env - HOME="${T}" PATH="${PATH}" \
732 - CC="$(tc-getCC)" AS="$(tc-getAS)" LD="$(tc-getLD)" \
733 - CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}" ASFLAGS="${ASFLAGS}" LDFLAGS="${LDFLAGS}" \
734 - GNUMAKE=make ./make.sh \
735 - "sh ${bindir}/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger" \
736 - || die "make failed"
737 -
738 - # need to set HOME because libpango(used by graphviz) complains about it
739 - if use doc; then
740 - env - HOME="${T}" PATH="${PATH}" \
741 - CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
742 - ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
743 - make -C doc/manual info html || die "Cannot build manual"
744 - env - HOME="${T}" PATH="${PATH}" \
745 - CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
746 - ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
747 - make -C doc/internals info html || die "Cannot build internal docs"
748 - fi
749 -}
750 -
751 -src_test() {
752 - ewarn "Unfortunately, it is known that some tests fail eg."
753 - ewarn "run-program.impure.lisp. This is an issue of the upstream's"
754 - ewarn "development and not of Gentoo's side. Please, before filing"
755 - ewarn "any bug(s) search for older submissions. Thank you."
756 - time ( cd tests && sh run-tests.sh )
757 -}
758 -
759 -src_install() {
760 - # install system-wide initfile
761 - dodir /etc/
762 - sed 's/^X//' > "${ED}"/etc/sbclrc <<-EOF
763 - ;;; The following is required if you want source location functions to
764 - ;;; work in SLIME, for example.
765 - X
766 - (setf (logical-pathname-translations "SYS")
767 - X '(("SYS:SRC;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/src/**/*.*")
768 - X ("SYS:CONTRIB;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/**/*.*")))
769 - X
770 - ;;; Setup ASDF2
771 - (load "${EPREFIX}/etc/common-lisp/gentoo-init.lisp")
772 - EOF
773 -
774 - # Install documentation
775 - unset SBCL_HOME
776 - INSTALL_ROOT="${ED}/usr" LIB_DIR="${EPREFIX}/usr/$(get_libdir)" DOC_DIR="${ED}/usr/share/doc/${PF}" \
777 - sh install.sh || die "install.sh failed"
778 -
779 - # bug #517008
780 - pax-mark -mr "${D}"/usr/bin/sbcl
781 -
782 - # rm empty directories lest paludis complain about this
783 - find "${ED}" -empty -type d -exec rmdir -v {} +
784 -
785 - if use doc; then
786 - dodoc -r doc/internals/sbcl-internals
787 -
788 - doinfo doc/manual/*.info*
789 - doinfo doc/internals/sbcl-internals.info
790 -
791 - docinto internals-notes
792 - dodoc doc/internals-notes/*
793 - else
794 - rm -Rv "${ED}/usr/share/doc/${PF}" || die
795 - fi
796 -
797 - # install the SBCL source
798 - if use source; then
799 - ./clean.sh
800 - cp -av src "${ED}/usr/$(get_libdir)/sbcl/" || die
801 - fi
802 -
803 - # necessary for running newly-saved images
804 - echo "SBCL_HOME=${EPREFIX}/usr/$(get_libdir)/${PN}" > "${ENVD}"
805 - echo "SBCL_SOURCE_ROOT=${EPREFIX}/usr/$(get_libdir)/${PN}/src" >> "${ENVD}"
806 - doenvd "${ENVD}"
807 -}
808
809 diff --git a/dev-lisp/sbcl/sbcl-1.3.18.ebuild b/dev-lisp/sbcl/sbcl-1.3.18.ebuild
810 deleted file mode 100644
811 index 8ddf97d5..00000000
812 --- a/dev-lisp/sbcl/sbcl-1.3.18.ebuild
813 +++ /dev/null
814 @@ -1,234 +0,0 @@
815 -# Copyright 1999-2017 Gentoo Foundation
816 -# Distributed under the terms of the GNU General Public License v2
817 -
818 -EAPI=6
819 -
820 -inherit multilib eutils flag-o-matic pax-utils
821 -
822 -#same order as http://www.sbcl.org/platform-table.html
823 -BV_X86=1.2.7
824 -BV_AMD64=1.3.18
825 -BV_PPC=1.2.7
826 -BV_SPARC=1.0.28
827 -BV_ALPHA=1.0.28
828 -BV_ARM=1.3.12
829 -BV_ARM64=1.3.16
830 -BV_PPC_MACOS=1.0.47
831 -BV_X86_MACOS=1.1.6
832 -BV_X64_MACOS=1.2.11
833 -BV_SPARC_SOLARIS=1.0.23
834 -BV_X86_SOLARIS=1.2.7
835 -BV_X64_SOLARIS=1.2.7
836 -
837 -DESCRIPTION="Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp"
838 -HOMEPAGE="http://sbcl.sourceforge.net/"
839 -SRC_URI="mirror://sourceforge/sbcl/${P}-source.tar.bz2
840 - x86? ( mirror://sourceforge/sbcl/${PN}-${BV_X86}-x86-linux-binary.tar.bz2 )
841 - amd64? ( mirror://sourceforge/sbcl/${PN}-${BV_AMD64}-x86-64-linux-binary.tar.bz2 )
842 - ppc? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC}-powerpc-linux-binary.tar.bz2 )
843 - sparc? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC}-sparc-linux-binary.tar.bz2 )
844 - alpha? ( mirror://sourceforge/sbcl/${PN}-${BV_ALPHA}-alpha-linux-binary.tar.bz2 )
845 - arm? ( mirror://sourceforge/sbcl/${PN}-${BV_ARM}-armhf-linux-binary.tar.bz2 )
846 - ppc-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC_MACOS}-powerpc-darwin-binary.tar.bz2 )
847 - x86-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_MACOS}-x86-darwin-binary.tar.bz2 )
848 - x64-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_MACOS}-x86-64-darwin-binary.tar.bz2 )
849 - sparc-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC_SOLARIS}-sparc-solaris-binary.tar.bz2 )
850 - x86-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_SOLARIS}-x86-solaris-binary.tar.bz2 )
851 - x64-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_SOLARIS}-x86-64-solaris-binary.tar.bz2 )"
852 -
853 -LICENSE="MIT"
854 -SLOT="0/${PV}"
855 -KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~x86-solaris"
856 -IUSE="debug doc source +threads +unicode pax_kernel zlib"
857 -
858 -CDEPEND=">=dev-lisp/asdf-3.1:="
859 -DEPEND="${CDEPEND}
860 - doc? ( sys-apps/texinfo >=media-gfx/graphviz-2.26.0 )
861 - pax_kernel? ( sys-apps/elfix )"
862 -RDEPEND="${CDEPEND}
863 - !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.6 ) )"
864 -
865 -# Disable warnings about executable stacks, as this won't be fixed soon by upstream
866 -QA_EXECSTACK="usr/bin/sbcl"
867 -
868 -CONFIG="${S}/customize-target-features.lisp"
869 -ENVD="${T}/50sbcl"
870 -
871 -# Prevent ASDF from using the system libraries
872 -CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)"
873 -ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)"
874 -
875 -usep() {
876 - use ${1} && echo "true" || echo "false"
877 -}
878 -
879 -sbcl_feature() {
880 - echo "$( [[ ${1} == "true" ]] && echo "(enable ${2})" || echo "(disable ${2})")" >> "${CONFIG}"
881 -}
882 -
883 -sbcl_apply_features() {
884 - sed 's/^X//' > "${CONFIG}" <<-'EOF'
885 - (lambda (list)
886 - X (flet ((enable (x) (pushnew x list))
887 - X (disable (x) (setf list (remove x list))))
888 - EOF
889 - if use x86 || use amd64; then
890 - sbcl_feature "$(usep threads)" ":sb-thread"
891 - fi
892 - sbcl_feature "true" ":sb-ldb"
893 - sbcl_feature "false" ":sb-test"
894 - sbcl_feature "$(usep unicode)" ":sb-unicode"
895 - sbcl_feature "$(usep zlib)" ":sb-core-compression"
896 - sbcl_feature "$(usep debug)" ":sb-xref-for-internals"
897 - sed 's/^X//' >> "${CONFIG}" <<-'EOF'
898 - X )
899 - X list)
900 - EOF
901 - cat "${CONFIG}"
902 -}
903 -
904 -src_unpack() {
905 - unpack ${A}
906 - mv sbcl-*-* sbcl-binary || die
907 - cd "${S}"
908 -}
909 -
910 -src_prepare() {
911 - # bug #468482
912 - eapply "${FILESDIR}"/concurrency-test-1.3.15.patch
913 - # bugs #486552, #527666, #517004
914 - eapply "${FILESDIR}"/bsd-sockets-test-1.3.12.patch
915 - # bugs #560276, #561018
916 - eapply "${FILESDIR}"/sb-posix-test-1.2.15.patch
917 -
918 - eapply "${FILESDIR}"/${PN}-1.2.11-solaris.patch
919 - eapply "${FILESDIR}"/${PN}-1.2.13-verbose-build.patch
920 -
921 - eapply_user
922 -
923 - # bug #526194
924 - sed -e "s@CFLAGS =.*\$@CFLAGS = ${CFLAGS} -g -Wall -Wsign-compare@" \
925 - -e "s@LINKFLAGS =.*\$@LINKFLAGS = ${LDFLAGS} -g@" \
926 - -i src/runtime/GNUmakefile || die
927 -
928 - sed -e "s@SBCL_PREFIX=\"/usr/local\"@SBCL_PREFIX=\"${EPREFIX}/usr\"@" \
929 - -i make-config.sh || die
930 -
931 - cp "${EPREFIX}"/usr/share/common-lisp/source/asdf/build/asdf.lisp contrib/asdf/ || die
932 -
933 - use source && sed 's%"$(BUILD_ROOT)%$(MODULE).lisp "$(BUILD_ROOT)%' -i contrib/vanilla-module.mk
934 -
935 - # Some shells(such as dash) don't have "time" as builtin
936 - # and we don't want to DEPEND on sys-process/time
937 - sed "s,^time ,," -i make.sh || die
938 - sed "s,/lib,/$(get_libdir),g" -i install.sh || die
939 - # #define SBCL_HOME ...
940 - sed "s,/usr/local/lib,${EPREFIX}/usr/$(get_libdir),g" -i src/runtime/runtime.c || die
941 - # change location of /etc/sbclrc ...
942 - sed "s,/etc/sbclrc,${EPREFIX}/etc/sbclrc,g" -i src/code/toplevel.lisp || die
943 -
944 - find . -type f -name .cvsignore -delete
945 -}
946 -
947 -src_configure() {
948 - # customizing SBCL version as per
949 - # http://sbcl.cvs.sourceforge.net/sbcl/sbcl/doc/PACKAGING-SBCL.txt?view=markup
950 - echo -e ";;; Auto-generated by Gentoo\n\"gentoo-${PR}\"" > branch-version.lisp-expr
951 -
952 - # applying customizations
953 - sbcl_apply_features
954 -}
955 -
956 -src_compile() {
957 - local bindir="${WORKDIR}"/sbcl-binary
958 -
959 - strip-unsupported-flags ; filter-flags -fomit-frame-pointer
960 -
961 - if use pax_kernel ; then
962 - # To disable PaX on hardened systems
963 - pax-mark -mr "${bindir}"/src/runtime/sbcl
964 -
965 - # Hack to disable PaX on second GENESIS stage
966 - sed -i -e '/^[ \t]*echo \/\/doing warm init - compilation phase$/a\ paxmark.sh -mr \.\/src\/runtime\/sbcl' \
967 - "${S}"/make-target-2.sh || die "Cannot disable PaX on second GENESIS runtime"
968 - fi
969 -
970 - # clear the environment to get rid of non-ASCII strings, see bug 174702
971 - # set HOME for paludis
972 - env - HOME="${T}" PATH="${PATH}" \
973 - CC="$(tc-getCC)" AS="$(tc-getAS)" LD="$(tc-getLD)" \
974 - CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}" ASFLAGS="${ASFLAGS}" LDFLAGS="${LDFLAGS}" \
975 - GNUMAKE=make ./make.sh \
976 - "sh ${bindir}/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger" \
977 - || die "make failed"
978 -
979 - # need to set HOME because libpango(used by graphviz) complains about it
980 - if use doc; then
981 - env - HOME="${T}" PATH="${PATH}" \
982 - CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
983 - ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
984 - make -C doc/manual info html || die "Cannot build manual"
985 - env - HOME="${T}" PATH="${PATH}" \
986 - CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
987 - ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
988 - make -C doc/internals info html || die "Cannot build internal docs"
989 - fi
990 -}
991 -
992 -src_test() {
993 - ewarn "Unfortunately, it is known that some tests fail eg."
994 - ewarn "run-program.impure.lisp. This is an issue of the upstream's"
995 - ewarn "development and not of Gentoo's side. Please, before filing"
996 - ewarn "any bug(s) search for older submissions. Thank you."
997 - time ( cd tests && sh run-tests.sh )
998 -}
999 -
1000 -src_install() {
1001 - # install system-wide initfile
1002 - dodir /etc/
1003 - sed 's/^X//' > "${ED}"/etc/sbclrc <<-EOF
1004 - ;;; The following is required if you want source location functions to
1005 - ;;; work in SLIME, for example.
1006 - X
1007 - (setf (logical-pathname-translations "SYS")
1008 - X '(("SYS:SRC;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/src/**/*.*")
1009 - X ("SYS:CONTRIB;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/**/*.*")))
1010 - X
1011 - ;;; Setup ASDF2
1012 - (load "${EPREFIX}/etc/common-lisp/gentoo-init.lisp")
1013 - EOF
1014 -
1015 - # Install documentation
1016 - unset SBCL_HOME
1017 - INSTALL_ROOT="${ED}/usr" LIB_DIR="${EPREFIX}/usr/$(get_libdir)" DOC_DIR="${ED}/usr/share/doc/${PF}" \
1018 - sh install.sh || die "install.sh failed"
1019 -
1020 - # bug #517008
1021 - pax-mark -mr "${D}"/usr/bin/sbcl
1022 -
1023 - # rm empty directories lest paludis complain about this
1024 - find "${ED}" -empty -type d -exec rmdir -v {} +
1025 -
1026 - if use doc; then
1027 - dodoc -r doc/internals/sbcl-internals
1028 -
1029 - doinfo doc/manual/*.info*
1030 - doinfo doc/internals/sbcl-internals.info
1031 -
1032 - docinto internals-notes
1033 - dodoc doc/internals-notes/*
1034 - else
1035 - rm -Rv "${ED}/usr/share/doc/${PF}" || die
1036 - fi
1037 -
1038 - # install the SBCL source
1039 - if use source; then
1040 - ./clean.sh
1041 - cp -av src "${ED}/usr/$(get_libdir)/sbcl/" || die
1042 - fi
1043 -
1044 - # necessary for running newly-saved images
1045 - echo "SBCL_HOME=${EPREFIX}/usr/$(get_libdir)/${PN}" > "${ENVD}"
1046 - echo "SBCL_SOURCE_ROOT=${EPREFIX}/usr/$(get_libdir)/${PN}/src" >> "${ENVD}"
1047 - doenvd "${ENVD}"
1048 -}
1049
1050 diff --git a/dev-lisp/sbcl/sbcl-1.3.19.ebuild b/dev-lisp/sbcl/sbcl-1.3.19.ebuild
1051 deleted file mode 100644
1052 index acdabe50..00000000
1053 --- a/dev-lisp/sbcl/sbcl-1.3.19.ebuild
1054 +++ /dev/null
1055 @@ -1,234 +0,0 @@
1056 -# Copyright 1999-2017 Gentoo Foundation
1057 -# Distributed under the terms of the GNU General Public License v2
1058 -
1059 -EAPI=6
1060 -
1061 -inherit multilib eutils flag-o-matic pax-utils
1062 -
1063 -#same order as http://www.sbcl.org/platform-table.html
1064 -BV_X86=1.2.7
1065 -BV_AMD64=1.3.19
1066 -BV_PPC=1.2.7
1067 -BV_SPARC=1.0.28
1068 -BV_ALPHA=1.0.28
1069 -BV_ARM=1.3.12
1070 -BV_ARM64=1.3.16
1071 -BV_PPC_MACOS=1.0.47
1072 -BV_X86_MACOS=1.1.6
1073 -BV_X64_MACOS=1.2.11
1074 -BV_SPARC_SOLARIS=1.0.23
1075 -BV_X86_SOLARIS=1.2.7
1076 -BV_X64_SOLARIS=1.2.7
1077 -
1078 -DESCRIPTION="Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp"
1079 -HOMEPAGE="http://sbcl.sourceforge.net/"
1080 -SRC_URI="mirror://sourceforge/sbcl/${P}-source.tar.bz2
1081 - x86? ( mirror://sourceforge/sbcl/${PN}-${BV_X86}-x86-linux-binary.tar.bz2 )
1082 - amd64? ( mirror://sourceforge/sbcl/${PN}-${BV_AMD64}-x86-64-linux-binary.tar.bz2 )
1083 - ppc? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC}-powerpc-linux-binary.tar.bz2 )
1084 - sparc? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC}-sparc-linux-binary.tar.bz2 )
1085 - alpha? ( mirror://sourceforge/sbcl/${PN}-${BV_ALPHA}-alpha-linux-binary.tar.bz2 )
1086 - arm? ( mirror://sourceforge/sbcl/${PN}-${BV_ARM}-armhf-linux-binary.tar.bz2 )
1087 - ppc-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC_MACOS}-powerpc-darwin-binary.tar.bz2 )
1088 - x86-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_MACOS}-x86-darwin-binary.tar.bz2 )
1089 - x64-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_MACOS}-x86-64-darwin-binary.tar.bz2 )
1090 - sparc-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC_SOLARIS}-sparc-solaris-binary.tar.bz2 )
1091 - x86-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_SOLARIS}-x86-solaris-binary.tar.bz2 )
1092 - x64-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_SOLARIS}-x86-64-solaris-binary.tar.bz2 )"
1093 -
1094 -LICENSE="MIT"
1095 -SLOT="0/${PV}"
1096 -KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~x86-solaris"
1097 -IUSE="debug doc source +threads +unicode pax_kernel zlib"
1098 -
1099 -CDEPEND=">=dev-lisp/asdf-3.1:="
1100 -DEPEND="${CDEPEND}
1101 - doc? ( sys-apps/texinfo >=media-gfx/graphviz-2.26.0 )
1102 - pax_kernel? ( sys-apps/elfix )"
1103 -RDEPEND="${CDEPEND}
1104 - !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.6 ) )"
1105 -
1106 -# Disable warnings about executable stacks, as this won't be fixed soon by upstream
1107 -QA_EXECSTACK="usr/bin/sbcl"
1108 -
1109 -CONFIG="${S}/customize-target-features.lisp"
1110 -ENVD="${T}/50sbcl"
1111 -
1112 -# Prevent ASDF from using the system libraries
1113 -CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)"
1114 -ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)"
1115 -
1116 -usep() {
1117 - use ${1} && echo "true" || echo "false"
1118 -}
1119 -
1120 -sbcl_feature() {
1121 - echo "$( [[ ${1} == "true" ]] && echo "(enable ${2})" || echo "(disable ${2})")" >> "${CONFIG}"
1122 -}
1123 -
1124 -sbcl_apply_features() {
1125 - sed 's/^X//' > "${CONFIG}" <<-'EOF'
1126 - (lambda (list)
1127 - X (flet ((enable (x) (pushnew x list))
1128 - X (disable (x) (setf list (remove x list))))
1129 - EOF
1130 - if use x86 || use amd64; then
1131 - sbcl_feature "$(usep threads)" ":sb-thread"
1132 - fi
1133 - sbcl_feature "true" ":sb-ldb"
1134 - sbcl_feature "false" ":sb-test"
1135 - sbcl_feature "$(usep unicode)" ":sb-unicode"
1136 - sbcl_feature "$(usep zlib)" ":sb-core-compression"
1137 - sbcl_feature "$(usep debug)" ":sb-xref-for-internals"
1138 - sed 's/^X//' >> "${CONFIG}" <<-'EOF'
1139 - X )
1140 - X list)
1141 - EOF
1142 - cat "${CONFIG}"
1143 -}
1144 -
1145 -src_unpack() {
1146 - unpack ${A}
1147 - mv sbcl-*-* sbcl-binary || die
1148 - cd "${S}"
1149 -}
1150 -
1151 -src_prepare() {
1152 - # bug #468482
1153 - eapply "${FILESDIR}"/concurrency-test-1.3.15.patch
1154 - # bugs #486552, #527666, #517004
1155 - eapply "${FILESDIR}"/${PN}-1.3.19-bsd-sockets-test.patch
1156 - # bugs #560276, #561018
1157 - eapply "${FILESDIR}"/sb-posix-test-1.2.15.patch
1158 -
1159 - eapply "${FILESDIR}"/${PN}-1.2.11-solaris.patch
1160 - eapply "${FILESDIR}"/${PN}-1.2.13-verbose-build.patch
1161 -
1162 - eapply_user
1163 -
1164 - # bug #526194
1165 - sed -e "s@CFLAGS =.*\$@CFLAGS = ${CFLAGS} -g -Wall -Wsign-compare@" \
1166 - -e "s@LINKFLAGS =.*\$@LINKFLAGS = ${LDFLAGS} -g@" \
1167 - -i src/runtime/GNUmakefile || die
1168 -
1169 - sed -e "s@SBCL_PREFIX=\"/usr/local\"@SBCL_PREFIX=\"${EPREFIX}/usr\"@" \
1170 - -i make-config.sh || die
1171 -
1172 - cp "${EPREFIX}"/usr/share/common-lisp/source/asdf/build/asdf.lisp contrib/asdf/ || die
1173 -
1174 - use source && sed 's%"$(BUILD_ROOT)%$(MODULE).lisp "$(BUILD_ROOT)%' -i contrib/vanilla-module.mk
1175 -
1176 - # Some shells(such as dash) don't have "time" as builtin
1177 - # and we don't want to DEPEND on sys-process/time
1178 - sed "s,^time ,," -i make.sh || die
1179 - sed "s,/lib,/$(get_libdir),g" -i install.sh || die
1180 - # #define SBCL_HOME ...
1181 - sed "s,/usr/local/lib,${EPREFIX}/usr/$(get_libdir),g" -i src/runtime/runtime.c || die
1182 - # change location of /etc/sbclrc ...
1183 - sed "s,/etc/sbclrc,${EPREFIX}/etc/sbclrc,g" -i src/code/toplevel.lisp || die
1184 -
1185 - find . -type f -name .cvsignore -delete
1186 -}
1187 -
1188 -src_configure() {
1189 - # customizing SBCL version as per
1190 - # http://sbcl.cvs.sourceforge.net/sbcl/sbcl/doc/PACKAGING-SBCL.txt?view=markup
1191 - echo -e ";;; Auto-generated by Gentoo\n\"gentoo-${PR}\"" > branch-version.lisp-expr
1192 -
1193 - # applying customizations
1194 - sbcl_apply_features
1195 -}
1196 -
1197 -src_compile() {
1198 - local bindir="${WORKDIR}"/sbcl-binary
1199 -
1200 - strip-unsupported-flags ; filter-flags -fomit-frame-pointer
1201 -
1202 - if use pax_kernel ; then
1203 - # To disable PaX on hardened systems
1204 - pax-mark -mr "${bindir}"/src/runtime/sbcl
1205 -
1206 - # Hack to disable PaX on second GENESIS stage
1207 - sed -i -e '/^[ \t]*echo \/\/doing warm init - compilation phase$/a\ paxmark.sh -mr \.\/src\/runtime\/sbcl' \
1208 - "${S}"/make-target-2.sh || die "Cannot disable PaX on second GENESIS runtime"
1209 - fi
1210 -
1211 - # clear the environment to get rid of non-ASCII strings, see bug 174702
1212 - # set HOME for paludis
1213 - env - HOME="${T}" PATH="${PATH}" \
1214 - CC="$(tc-getCC)" AS="$(tc-getAS)" LD="$(tc-getLD)" \
1215 - CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}" ASFLAGS="${ASFLAGS}" LDFLAGS="${LDFLAGS}" \
1216 - GNUMAKE=make ./make.sh \
1217 - "sh ${bindir}/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger" \
1218 - || die "make failed"
1219 -
1220 - # need to set HOME because libpango(used by graphviz) complains about it
1221 - if use doc; then
1222 - env - HOME="${T}" PATH="${PATH}" \
1223 - CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
1224 - ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
1225 - make -C doc/manual info html || die "Cannot build manual"
1226 - env - HOME="${T}" PATH="${PATH}" \
1227 - CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
1228 - ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
1229 - make -C doc/internals info html || die "Cannot build internal docs"
1230 - fi
1231 -}
1232 -
1233 -src_test() {
1234 - ewarn "Unfortunately, it is known that some tests fail eg."
1235 - ewarn "run-program.impure.lisp. This is an issue of the upstream's"
1236 - ewarn "development and not of Gentoo's side. Please, before filing"
1237 - ewarn "any bug(s) search for older submissions. Thank you."
1238 - time ( cd tests && sh run-tests.sh )
1239 -}
1240 -
1241 -src_install() {
1242 - # install system-wide initfile
1243 - dodir /etc/
1244 - sed 's/^X//' > "${ED}"/etc/sbclrc <<-EOF
1245 - ;;; The following is required if you want source location functions to
1246 - ;;; work in SLIME, for example.
1247 - X
1248 - (setf (logical-pathname-translations "SYS")
1249 - X '(("SYS:SRC;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/src/**/*.*")
1250 - X ("SYS:CONTRIB;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/**/*.*")))
1251 - X
1252 - ;;; Setup ASDF2
1253 - (load "${EPREFIX}/etc/common-lisp/gentoo-init.lisp")
1254 - EOF
1255 -
1256 - # Install documentation
1257 - unset SBCL_HOME
1258 - INSTALL_ROOT="${ED}/usr" LIB_DIR="${EPREFIX}/usr/$(get_libdir)" DOC_DIR="${ED}/usr/share/doc/${PF}" \
1259 - sh install.sh || die "install.sh failed"
1260 -
1261 - # bug #517008
1262 - pax-mark -mr "${D}"/usr/bin/sbcl
1263 -
1264 - # rm empty directories lest paludis complain about this
1265 - find "${ED}" -empty -type d -exec rmdir -v {} +
1266 -
1267 - if use doc; then
1268 - dodoc -r doc/internals/sbcl-internals
1269 -
1270 - doinfo doc/manual/*.info*
1271 - doinfo doc/internals/sbcl-internals.info
1272 -
1273 - docinto internals-notes
1274 - dodoc doc/internals-notes/*
1275 - else
1276 - rm -Rv "${ED}/usr/share/doc/${PF}" || die
1277 - fi
1278 -
1279 - # install the SBCL source
1280 - if use source; then
1281 - ./clean.sh
1282 - cp -av src "${ED}/usr/$(get_libdir)/sbcl/" || die
1283 - fi
1284 -
1285 - # necessary for running newly-saved images
1286 - echo "SBCL_HOME=${EPREFIX}/usr/$(get_libdir)/${PN}" > "${ENVD}"
1287 - echo "SBCL_SOURCE_ROOT=${EPREFIX}/usr/$(get_libdir)/${PN}/src" >> "${ENVD}"
1288 - doenvd "${ENVD}"
1289 -}