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/, dev-lisp/asdf/
Date: Sat, 04 Aug 2018 18:20:16
Message-Id: 1533406912.3f99581a95cfe9044ff04293f039f6d7b6ea8b55.nimiux@gentoo
1 commit: 3f99581a95cfe9044ff04293f039f6d7b6ea8b55
2 Author: Chema Alonso Josa <nimiux <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 4 18:21:52 2018 +0000
4 Commit: José María Alonso <nimiux <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 4 18:21:52 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/lisp.git/commit/?id=3f99581a
7
8 dev-lisp/asdf: Sync with portage tree
9
10 dev-lisp/asdf/asdf-3.3.2-r1.ebuild | 53 ++++++++
11 dev-lisp/sbcl/sbcl-1.4.6.ebuild | 246 -------------------------------------
12 dev-lisp/sbcl/sbcl-1.4.7.ebuild | 246 -------------------------------------
13 dev-lisp/sbcl/sbcl-1.4.8.ebuild | 246 -------------------------------------
14 4 files changed, 53 insertions(+), 738 deletions(-)
15
16 diff --git a/dev-lisp/asdf/asdf-3.3.2-r1.ebuild b/dev-lisp/asdf/asdf-3.3.2-r1.ebuild
17 new file mode 100644
18 index 00000000..74e4ab62
19 --- /dev/null
20 +++ b/dev-lisp/asdf/asdf-3.3.2-r1.ebuild
21 @@ -0,0 +1,53 @@
22 +# Copyright 1999-2018 Gentoo Foundation
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=6
26 +
27 +inherit eutils prefix common-lisp-3
28 +
29 +DESCRIPTION="ASDF is Another System Definition Facility for Common Lisp"
30 +HOMEPAGE="http://common-lisp.net/project/asdf/"
31 +SRC_URI="http://common-lisp.net/project/${PN}/archives/${P}.tar.gz"
32 +
33 +LICENSE="MIT"
34 +SLOT="0"
35 +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~x86-solaris"
36 +IUSE="doc test"
37 +
38 +SLOT="0/${PVR}"
39 +
40 +DEPEND="!dev-lisp/cl-${PN}
41 + !<dev-lisp/asdf-2.33-r3
42 + doc? ( virtual/texi2dvi )
43 + test? ( virtual/commonlisp )"
44 +PDEPEND="virtual/commonlisp
45 + ~dev-lisp/uiop-${PV}"
46 +
47 +install_docs() {
48 + (cd doc ; dodoc *.{html,css,ico,png} "${PN}.pdf" ; dodoc -r asdf )
49 + if has_version ">=dev-lisp/sbcl-1.4.0" ; then
50 + (cd doc ; doinfo "${PN}.info" )
51 + fi
52 +}
53 +
54 +src_compile() {
55 + emake
56 + use doc && emake -C doc
57 +}
58 +
59 +src_test() {
60 + common-lisp-export-impl-args "$(common-lisp-find-lisp-impl)"
61 + test/run-tests.sh ${CL_BINARY}
62 +}
63 +
64 +src_install() {
65 + insinto "${CLSOURCEROOT}/${PN}"
66 + doins -r build version.lisp-expr
67 + dodoc README.md TODO
68 + use doc && install_docs
69 + insinto /etc/common-lisp
70 + cd "${T}" || die
71 + cp "${FILESDIR}/gentoo-init.lisp" "${FILESDIR}/source-registry.conf" . || die
72 + eprefixify gentoo-init.lisp source-registry.conf
73 + doins gentoo-init.lisp source-registry.conf
74 +}
75
76 diff --git a/dev-lisp/sbcl/sbcl-1.4.6.ebuild b/dev-lisp/sbcl/sbcl-1.4.6.ebuild
77 deleted file mode 100644
78 index 47f7132a..00000000
79 --- a/dev-lisp/sbcl/sbcl-1.4.6.ebuild
80 +++ /dev/null
81 @@ -1,246 +0,0 @@
82 -# Copyright 1999-2018 Gentoo Foundation
83 -# Distributed under the terms of the GNU General Public License v2
84 -
85 -EAPI=6
86 -
87 -inherit multilib eutils flag-o-matic pax-utils
88 -
89 -#same order as http://www.sbcl.org/platform-table.html
90 -BV_X86=1.4.3
91 -BV_AMD64=1.4.6
92 -BV_PPC=1.2.7
93 -BV_SPARC=1.0.28
94 -BV_ALPHA=1.0.28
95 -BV_ARM=1.3.12
96 -BV_ARM64=1.4.2
97 -BV_X86_MACOS=1.1.6
98 -BV_X64_MACOS=1.2.11
99 -BV_PPC_MACOS=1.0.47
100 -BV_X86_SOLARIS=1.2.7
101 -BV_X64_SOLARIS=1.2.7
102 -BV_SPARC_SOLARIS=1.0.23
103 -
104 -DESCRIPTION="Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp"
105 -HOMEPAGE="http://sbcl.sourceforge.net/"
106 -SRC_URI="mirror://sourceforge/sbcl/${P}-source.tar.bz2
107 - x86? ( mirror://sourceforge/sbcl/${PN}-${BV_X86}-x86-linux-binary.tar.bz2 )
108 - amd64? ( mirror://sourceforge/sbcl/${PN}-${BV_AMD64}-x86-64-linux-binary.tar.bz2 )
109 - ppc? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC}-powerpc-linux-binary.tar.bz2 )
110 - sparc? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC}-sparc-linux-binary.tar.bz2 )
111 - alpha? ( mirror://sourceforge/sbcl/${PN}-${BV_ALPHA}-alpha-linux-binary.tar.bz2 )
112 - arm? ( mirror://sourceforge/sbcl/${PN}-${BV_ARM}-armhf-linux-binary.tar.bz2 )
113 - arm64? ( mirror://sourceforge/sbcl/${PN}-${BV_ARM64}-arm64-linux-binary.tar.bz2 )
114 - x86-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_MACOS}-x86-darwin-binary.tar.bz2 )
115 - x64-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_MACOS}-x86-64-darwin-binary.tar.bz2 )
116 - ppc-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC_MACOS}-powerpc-darwin-binary.tar.bz2 )
117 - x86-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_SOLARIS}-x86-solaris-binary.tar.bz2 )
118 - x64-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_SOLARIS}-x86-64-solaris-binary.tar.bz2 )
119 - sparc-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC_SOLARIS}-sparc-solaris-binary.tar.bz2 )"
120 -
121 -LICENSE="MIT"
122 -SLOT="0/${PV}"
123 -KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~x86-solaris"
124 -IUSE="debug doc source +threads +unicode pax_kernel zlib"
125 -
126 -CDEPEND=">=dev-lisp/asdf-3.1:="
127 -DEPEND="${CDEPEND}
128 - doc? ( sys-apps/texinfo >=media-gfx/graphviz-2.26.0 )
129 - pax_kernel? ( sys-apps/elfix )"
130 -RDEPEND="${CDEPEND}
131 - !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.6 ) )"
132 -
133 -# Disable warnings about executable stacks, as this won't be fixed soon by upstream
134 -QA_EXECSTACK="usr/bin/sbcl"
135 -
136 -CONFIG="${S}/customize-target-features.lisp"
137 -ENVD="${T}/50sbcl"
138 -
139 -# Prevent ASDF from using the system libraries
140 -CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)"
141 -ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)"
142 -
143 -usep() {
144 - use ${1} && echo "true" || echo "false"
145 -}
146 -
147 -sbcl_feature() {
148 - echo "$( [[ ${1} == "true" ]] && echo "(enable ${2})" || echo "(disable ${2})")" >> "${CONFIG}"
149 -}
150 -
151 -sbcl_apply_features() {
152 - sed 's/^X//' > "${CONFIG}" <<-'EOF'
153 - (lambda (list)
154 - X (flet ((enable (x) (pushnew x list))
155 - X (disable (x) (setf list (remove x list))))
156 - EOF
157 - if use x86 || use amd64; then
158 - sbcl_feature "$(usep threads)" ":sb-thread"
159 - fi
160 - sbcl_feature "true" ":sb-ldb"
161 - sbcl_feature "false" ":sb-test"
162 - sbcl_feature "$(usep unicode)" ":sb-unicode"
163 - sbcl_feature "$(usep zlib)" ":sb-core-compression"
164 - sbcl_feature "$(usep debug)" ":sb-xref-for-internals"
165 - sed 's/^X//' >> "${CONFIG}" <<-'EOF'
166 - X )
167 - X list)
168 - EOF
169 - cat "${CONFIG}"
170 -}
171 -
172 -src_unpack() {
173 - unpack ${A}
174 - mv sbcl-*-* sbcl-binary || die
175 - cd "${S}"
176 -}
177 -
178 -src_prepare() {
179 - # bug #468482
180 - eapply "${FILESDIR}"/concurrency-test-1.3.15.patch
181 - # bugs #486552, #527666, #517004
182 - eapply "${FILESDIR}"/${PN}-1.4.0-bsd-sockets-test.patch
183 - # bugs #560276, #561018
184 - eapply "${FILESDIR}"/sb-posix-test-1.2.15.patch
185 -
186 - eapply "${FILESDIR}"/${PN}-1.2.11-solaris.patch
187 - eapply "${FILESDIR}"/${PN}-1.4.0-verbose-build.patch
188 -
189 - eapply_user
190 -
191 - # Make sure the *FLAGS variables are sane.
192 - # sbcl needs symbols in resulting binaries, so building with the -s linker flag will fail.
193 - strip-unsupported-flags
194 - filter-flags -fomit-frame-pointer -Wl,-s
195 - filter-ldflags -s
196 -
197 - # original bugs #526194, #620532
198 - # this broke no-pie default builds, c.f. bug #632670
199 - # Pass CFLAGS down by appending our value, to let users override
200 - # the default values.
201 - # Keep passing LDFLAGS down via the LINKFLAGS variable.
202 - sed -e "s@\(CFLAGS += -g .*\)\$@\1 ${CFLAGS}@" \
203 - -e "s@LINKFLAGS += -g\$@LINKFLAGS += ${LDFLAGS}@" \
204 - -i src/runtime/GNUmakefile || die
205 -
206 - sed -e "s@SBCL_PREFIX=\"/usr/local\"@SBCL_PREFIX=\"${EPREFIX}/usr\"@" \
207 - -i make-config.sh || die
208 -
209 - # Use installed ASDF version
210 - cp "${EPREFIX}"/usr/share/common-lisp/source/asdf/build/asdf.lisp contrib/asdf/ || die
211 - # Avoid installation of ASDF info page. See bug #605752
212 - sed '/INFOFILES/s/asdf.info//' -i doc/manual/Makefile || die
213 -
214 - use source && sed 's%"$(BUILD_ROOT)%$(MODULE).lisp "$(BUILD_ROOT)%' -i contrib/vanilla-module.mk
215 -
216 - # Some shells(such as dash) don't have "time" as builtin
217 - # and we don't want to DEPEND on sys-process/time
218 - sed "s,^time ,," -i make.sh || die
219 - sed "s,/lib,/$(get_libdir),g" -i install.sh || die
220 - # #define SBCL_HOME ...
221 - sed "s,/usr/local/lib,${EPREFIX}/usr/$(get_libdir),g" -i src/runtime/runtime.c || die
222 - # change location of /etc/sbclrc ...
223 - sed "s,/etc/sbclrc,${EPREFIX}/etc/sbclrc,g" -i src/code/toplevel.lisp || die
224 -
225 - find . -type f -name .cvsignore -delete
226 -}
227 -
228 -src_configure() {
229 - # customizing SBCL version as per
230 - # http://sbcl.cvs.sourceforge.net/sbcl/sbcl/doc/PACKAGING-SBCL.txt?view=markup
231 - echo -e ";;; Auto-generated by Gentoo\n\"gentoo-${PR}\"" > branch-version.lisp-expr
232 -
233 - # applying customizations
234 - sbcl_apply_features
235 -}
236 -
237 -src_compile() {
238 - local bindir="${WORKDIR}"/sbcl-binary
239 -
240 - if use pax_kernel ; then
241 - # To disable PaX on hardened systems
242 - pax-mark -mr "${bindir}"/src/runtime/sbcl
243 -
244 - # Hack to disable PaX on second GENESIS stage
245 - sed -i -e '/^[ \t]*echo \/\/doing warm init - compilation phase$/a\ paxmark.sh -mr \.\/src\/runtime\/sbcl' \
246 - "${S}"/make-target-2.sh || die "Cannot disable PaX on second GENESIS runtime"
247 - fi
248 -
249 - # clear the environment to get rid of non-ASCII strings, see bug #174702
250 - # set HOME for paludis
251 - env - HOME="${T}" PATH="${PATH}" \
252 - CC="$(tc-getCC)" AS="$(tc-getAS)" LD="$(tc-getLD)" \
253 - CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}" ASFLAGS="${ASFLAGS}" LDFLAGS="${LDFLAGS}" \
254 - GNUMAKE=make ./make.sh \
255 - "sh ${bindir}/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger" \
256 - || die "make failed"
257 -
258 - # need to set HOME because libpango(used by graphviz) complains about it
259 - if use doc; then
260 - env - HOME="${T}" PATH="${PATH}" \
261 - CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
262 - ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
263 - make -C doc/manual info html || die "Cannot build manual"
264 - env - HOME="${T}" PATH="${PATH}" \
265 - CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
266 - ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
267 - make -C doc/internals info html || die "Cannot build internal docs"
268 - fi
269 -}
270 -
271 -src_test() {
272 - ewarn "Unfortunately, it is known that some tests fail eg."
273 - ewarn "run-program.impure.lisp. This is an issue of the upstream's"
274 - ewarn "development and not of Gentoo's side. Please, before filing"
275 - ewarn "any bug(s) search for older submissions. Thank you."
276 - time ( cd tests && sh run-tests.sh )
277 -}
278 -
279 -src_install() {
280 - # install system-wide initfile
281 - dodir /etc/
282 - sed 's/^X//' > "${ED}"/etc/sbclrc <<-EOF
283 - ;;; The following is required if you want source location functions to
284 - ;;; work in SLIME, for example.
285 - X
286 - (setf (logical-pathname-translations "SYS")
287 - X '(("SYS:SRC;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/src/**/*.*")
288 - X ("SYS:CONTRIB;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/**/*.*")))
289 - X
290 - ;;; Setup ASDF2
291 - (load "${EPREFIX}/etc/common-lisp/gentoo-init.lisp")
292 - EOF
293 -
294 - # Install documentation
295 - unset SBCL_HOME
296 - INSTALL_ROOT="${ED}/usr" LIB_DIR="${EPREFIX}/usr/$(get_libdir)" DOC_DIR="${ED}/usr/share/doc/${PF}" \
297 - sh install.sh || die "install.sh failed"
298 -
299 - # bug #517008
300 - pax-mark -mr "${D}"/usr/bin/sbcl
301 -
302 - # rm empty directories lest paludis complain about this
303 - find "${ED}" -empty -type d -exec rmdir -v {} +
304 -
305 - if use doc; then
306 - dodoc -r doc/internals/sbcl-internals
307 -
308 - doinfo doc/manual/*.info*
309 - doinfo doc/internals/sbcl-internals.info
310 -
311 - docinto internals-notes
312 - dodoc doc/internals-notes/*
313 - else
314 - rm -Rv "${ED}/usr/share/doc/${PF}" || die
315 - fi
316 -
317 - # install the SBCL source
318 - if use source; then
319 - ./clean.sh
320 - cp -av src "${ED}/usr/$(get_libdir)/sbcl/" || die
321 - fi
322 -
323 - # necessary for running newly-saved images
324 - echo "SBCL_HOME=${EPREFIX}/usr/$(get_libdir)/${PN}" > "${ENVD}"
325 - echo "SBCL_SOURCE_ROOT=${EPREFIX}/usr/$(get_libdir)/${PN}/src" >> "${ENVD}"
326 - doenvd "${ENVD}"
327 -}
328
329 diff --git a/dev-lisp/sbcl/sbcl-1.4.7.ebuild b/dev-lisp/sbcl/sbcl-1.4.7.ebuild
330 deleted file mode 100644
331 index 4f535174..00000000
332 --- a/dev-lisp/sbcl/sbcl-1.4.7.ebuild
333 +++ /dev/null
334 @@ -1,246 +0,0 @@
335 -# Copyright 1999-2018 Gentoo Foundation
336 -# Distributed under the terms of the GNU General Public License v2
337 -
338 -EAPI=6
339 -
340 -inherit multilib eutils flag-o-matic pax-utils
341 -
342 -#same order as http://www.sbcl.org/platform-table.html
343 -BV_X86=1.4.3
344 -BV_AMD64=1.4.7
345 -BV_PPC=1.2.7
346 -BV_SPARC=1.0.28
347 -BV_ALPHA=1.0.28
348 -BV_ARM=1.3.12
349 -BV_ARM64=1.4.2
350 -BV_X86_MACOS=1.1.6
351 -BV_X64_MACOS=1.2.11
352 -BV_PPC_MACOS=1.0.47
353 -BV_X86_SOLARIS=1.2.7
354 -BV_X64_SOLARIS=1.2.7
355 -BV_SPARC_SOLARIS=1.0.23
356 -
357 -DESCRIPTION="Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp"
358 -HOMEPAGE="http://sbcl.sourceforge.net/"
359 -SRC_URI="mirror://sourceforge/sbcl/${P}-source.tar.bz2
360 - x86? ( mirror://sourceforge/sbcl/${PN}-${BV_X86}-x86-linux-binary.tar.bz2 )
361 - amd64? ( mirror://sourceforge/sbcl/${PN}-${BV_AMD64}-x86-64-linux-binary.tar.bz2 )
362 - ppc? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC}-powerpc-linux-binary.tar.bz2 )
363 - sparc? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC}-sparc-linux-binary.tar.bz2 )
364 - alpha? ( mirror://sourceforge/sbcl/${PN}-${BV_ALPHA}-alpha-linux-binary.tar.bz2 )
365 - arm? ( mirror://sourceforge/sbcl/${PN}-${BV_ARM}-armhf-linux-binary.tar.bz2 )
366 - arm64? ( mirror://sourceforge/sbcl/${PN}-${BV_ARM64}-arm64-linux-binary.tar.bz2 )
367 - x86-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_MACOS}-x86-darwin-binary.tar.bz2 )
368 - x64-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_MACOS}-x86-64-darwin-binary.tar.bz2 )
369 - ppc-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC_MACOS}-powerpc-darwin-binary.tar.bz2 )
370 - x86-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_SOLARIS}-x86-solaris-binary.tar.bz2 )
371 - x64-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_SOLARIS}-x86-64-solaris-binary.tar.bz2 )
372 - sparc-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC_SOLARIS}-sparc-solaris-binary.tar.bz2 )"
373 -
374 -LICENSE="MIT"
375 -SLOT="0/${PV}"
376 -KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~x86-solaris"
377 -IUSE="debug doc source +threads +unicode pax_kernel zlib"
378 -
379 -CDEPEND=">=dev-lisp/asdf-3.1:="
380 -DEPEND="${CDEPEND}
381 - doc? ( sys-apps/texinfo >=media-gfx/graphviz-2.26.0 )
382 - pax_kernel? ( sys-apps/elfix )"
383 -RDEPEND="${CDEPEND}
384 - !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.6 ) )"
385 -
386 -# Disable warnings about executable stacks, as this won't be fixed soon by upstream
387 -QA_EXECSTACK="usr/bin/sbcl"
388 -
389 -CONFIG="${S}/customize-target-features.lisp"
390 -ENVD="${T}/50sbcl"
391 -
392 -# Prevent ASDF from using the system libraries
393 -CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)"
394 -ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)"
395 -
396 -usep() {
397 - use ${1} && echo "true" || echo "false"
398 -}
399 -
400 -sbcl_feature() {
401 - echo "$( [[ ${1} == "true" ]] && echo "(enable ${2})" || echo "(disable ${2})")" >> "${CONFIG}"
402 -}
403 -
404 -sbcl_apply_features() {
405 - sed 's/^X//' > "${CONFIG}" <<-'EOF'
406 - (lambda (list)
407 - X (flet ((enable (x) (pushnew x list))
408 - X (disable (x) (setf list (remove x list))))
409 - EOF
410 - if use x86 || use amd64; then
411 - sbcl_feature "$(usep threads)" ":sb-thread"
412 - fi
413 - sbcl_feature "true" ":sb-ldb"
414 - sbcl_feature "false" ":sb-test"
415 - sbcl_feature "$(usep unicode)" ":sb-unicode"
416 - sbcl_feature "$(usep zlib)" ":sb-core-compression"
417 - sbcl_feature "$(usep debug)" ":sb-xref-for-internals"
418 - sed 's/^X//' >> "${CONFIG}" <<-'EOF'
419 - X )
420 - X list)
421 - EOF
422 - cat "${CONFIG}"
423 -}
424 -
425 -src_unpack() {
426 - unpack ${A}
427 - mv sbcl-*-* sbcl-binary || die
428 - cd "${S}"
429 -}
430 -
431 -src_prepare() {
432 - # bug #468482
433 - eapply "${FILESDIR}"/concurrency-test-1.3.15.patch
434 - # bugs #486552, #527666, #517004
435 - eapply "${FILESDIR}"/${PN}-1.4.0-bsd-sockets-test.patch
436 - # bugs #560276, #561018
437 - eapply "${FILESDIR}"/sb-posix-test-1.2.15.patch
438 -
439 - eapply "${FILESDIR}"/${PN}-1.2.11-solaris.patch
440 - eapply "${FILESDIR}"/${PN}-1.4.0-verbose-build.patch
441 -
442 - eapply_user
443 -
444 - # Make sure the *FLAGS variables are sane.
445 - # sbcl needs symbols in resulting binaries, so building with the -s linker flag will fail.
446 - strip-unsupported-flags
447 - filter-flags -fomit-frame-pointer -Wl,-s
448 - filter-ldflags -s
449 -
450 - # original bugs #526194, #620532
451 - # this broke no-pie default builds, c.f. bug #632670
452 - # Pass CFLAGS down by appending our value, to let users override
453 - # the default values.
454 - # Keep passing LDFLAGS down via the LINKFLAGS variable.
455 - sed -e "s@\(CFLAGS += -g .*\)\$@\1 ${CFLAGS}@" \
456 - -e "s@LINKFLAGS += -g\$@LINKFLAGS += ${LDFLAGS}@" \
457 - -i src/runtime/GNUmakefile || die
458 -
459 - sed -e "s@SBCL_PREFIX=\"/usr/local\"@SBCL_PREFIX=\"${EPREFIX}/usr\"@" \
460 - -i make-config.sh || die
461 -
462 - # Use installed ASDF version
463 - cp "${EPREFIX}"/usr/share/common-lisp/source/asdf/build/asdf.lisp contrib/asdf/ || die
464 - # Avoid installation of ASDF info page. See bug #605752
465 - sed '/INFOFILES/s/asdf.info//' -i doc/manual/Makefile || die
466 -
467 - use source && sed 's%"$(BUILD_ROOT)%$(MODULE).lisp "$(BUILD_ROOT)%' -i contrib/vanilla-module.mk
468 -
469 - # Some shells(such as dash) don't have "time" as builtin
470 - # and we don't want to DEPEND on sys-process/time
471 - sed "s,^time ,," -i make.sh || die
472 - sed "s,/lib,/$(get_libdir),g" -i install.sh || die
473 - # #define SBCL_HOME ...
474 - sed "s,/usr/local/lib,${EPREFIX}/usr/$(get_libdir),g" -i src/runtime/runtime.c || die
475 - # change location of /etc/sbclrc ...
476 - sed "s,/etc/sbclrc,${EPREFIX}/etc/sbclrc,g" -i src/code/toplevel.lisp || die
477 -
478 - find . -type f -name .cvsignore -delete
479 -}
480 -
481 -src_configure() {
482 - # customizing SBCL version as per
483 - # http://sbcl.cvs.sourceforge.net/sbcl/sbcl/doc/PACKAGING-SBCL.txt?view=markup
484 - echo -e ";;; Auto-generated by Gentoo\n\"gentoo-${PR}\"" > branch-version.lisp-expr
485 -
486 - # applying customizations
487 - sbcl_apply_features
488 -}
489 -
490 -src_compile() {
491 - local bindir="${WORKDIR}"/sbcl-binary
492 -
493 - if use pax_kernel ; then
494 - # To disable PaX on hardened systems
495 - pax-mark -mr "${bindir}"/src/runtime/sbcl
496 -
497 - # Hack to disable PaX on second GENESIS stage
498 - sed -i -e '/^[ \t]*echo \/\/doing warm init - compilation phase$/a\ paxmark.sh -mr \.\/src\/runtime\/sbcl' \
499 - "${S}"/make-target-2.sh || die "Cannot disable PaX on second GENESIS runtime"
500 - fi
501 -
502 - # clear the environment to get rid of non-ASCII strings, see bug #174702
503 - # set HOME for paludis
504 - env - HOME="${T}" PATH="${PATH}" \
505 - CC="$(tc-getCC)" AS="$(tc-getAS)" LD="$(tc-getLD)" \
506 - CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}" ASFLAGS="${ASFLAGS}" LDFLAGS="${LDFLAGS}" \
507 - GNUMAKE=make ./make.sh \
508 - "sh ${bindir}/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger" \
509 - || die "make failed"
510 -
511 - # need to set HOME because libpango(used by graphviz) complains about it
512 - if use doc; then
513 - env - HOME="${T}" PATH="${PATH}" \
514 - CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
515 - ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
516 - make -C doc/manual info html || die "Cannot build manual"
517 - env - HOME="${T}" PATH="${PATH}" \
518 - CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
519 - ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
520 - make -C doc/internals info html || die "Cannot build internal docs"
521 - fi
522 -}
523 -
524 -src_test() {
525 - ewarn "Unfortunately, it is known that some tests fail eg."
526 - ewarn "run-program.impure.lisp. This is an issue of the upstream's"
527 - ewarn "development and not of Gentoo's side. Please, before filing"
528 - ewarn "any bug(s) search for older submissions. Thank you."
529 - time ( cd tests && sh run-tests.sh )
530 -}
531 -
532 -src_install() {
533 - # install system-wide initfile
534 - dodir /etc/
535 - sed 's/^X//' > "${ED}"/etc/sbclrc <<-EOF
536 - ;;; The following is required if you want source location functions to
537 - ;;; work in SLIME, for example.
538 - X
539 - (setf (logical-pathname-translations "SYS")
540 - X '(("SYS:SRC;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/src/**/*.*")
541 - X ("SYS:CONTRIB;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/**/*.*")))
542 - X
543 - ;;; Setup ASDF2
544 - (load "${EPREFIX}/etc/common-lisp/gentoo-init.lisp")
545 - EOF
546 -
547 - # Install documentation
548 - unset SBCL_HOME
549 - INSTALL_ROOT="${ED}/usr" LIB_DIR="${EPREFIX}/usr/$(get_libdir)" DOC_DIR="${ED}/usr/share/doc/${PF}" \
550 - sh install.sh || die "install.sh failed"
551 -
552 - # bug #517008
553 - pax-mark -mr "${D}"/usr/bin/sbcl
554 -
555 - # rm empty directories lest paludis complain about this
556 - find "${ED}" -empty -type d -exec rmdir -v {} +
557 -
558 - if use doc; then
559 - dodoc -r doc/internals/sbcl-internals
560 -
561 - doinfo doc/manual/*.info*
562 - doinfo doc/internals/sbcl-internals.info
563 -
564 - docinto internals-notes
565 - dodoc doc/internals-notes/*
566 - else
567 - rm -Rv "${ED}/usr/share/doc/${PF}" || die
568 - fi
569 -
570 - # install the SBCL source
571 - if use source; then
572 - ./clean.sh
573 - cp -av src "${ED}/usr/$(get_libdir)/sbcl/" || die
574 - fi
575 -
576 - # necessary for running newly-saved images
577 - echo "SBCL_HOME=${EPREFIX}/usr/$(get_libdir)/${PN}" > "${ENVD}"
578 - echo "SBCL_SOURCE_ROOT=${EPREFIX}/usr/$(get_libdir)/${PN}/src" >> "${ENVD}"
579 - doenvd "${ENVD}"
580 -}
581
582 diff --git a/dev-lisp/sbcl/sbcl-1.4.8.ebuild b/dev-lisp/sbcl/sbcl-1.4.8.ebuild
583 deleted file mode 100644
584 index f07d8939..00000000
585 --- a/dev-lisp/sbcl/sbcl-1.4.8.ebuild
586 +++ /dev/null
587 @@ -1,246 +0,0 @@
588 -# Copyright 1999-2018 Gentoo Foundation
589 -# Distributed under the terms of the GNU General Public License v2
590 -
591 -EAPI=6
592 -
593 -inherit multilib eutils flag-o-matic pax-utils
594 -
595 -#same order as http://www.sbcl.org/platform-table.html
596 -BV_X86=1.4.3
597 -BV_AMD64=1.4.8
598 -BV_PPC=1.2.7
599 -BV_SPARC=1.0.28
600 -BV_ALPHA=1.0.28
601 -BV_ARM=1.3.12
602 -BV_ARM64=1.4.2
603 -BV_X86_MACOS=1.1.6
604 -BV_X64_MACOS=1.2.11
605 -BV_PPC_MACOS=1.0.47
606 -BV_X86_SOLARIS=1.2.7
607 -BV_X64_SOLARIS=1.2.7
608 -BV_SPARC_SOLARIS=1.0.23
609 -
610 -DESCRIPTION="Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp"
611 -HOMEPAGE="http://sbcl.sourceforge.net/"
612 -SRC_URI="mirror://sourceforge/sbcl/${P}-source.tar.bz2
613 - x86? ( mirror://sourceforge/sbcl/${PN}-${BV_X86}-x86-linux-binary.tar.bz2 )
614 - amd64? ( mirror://sourceforge/sbcl/${PN}-${BV_AMD64}-x86-64-linux-binary.tar.bz2 )
615 - ppc? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC}-powerpc-linux-binary.tar.bz2 )
616 - sparc? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC}-sparc-linux-binary.tar.bz2 )
617 - alpha? ( mirror://sourceforge/sbcl/${PN}-${BV_ALPHA}-alpha-linux-binary.tar.bz2 )
618 - arm? ( mirror://sourceforge/sbcl/${PN}-${BV_ARM}-armhf-linux-binary.tar.bz2 )
619 - arm64? ( mirror://sourceforge/sbcl/${PN}-${BV_ARM64}-arm64-linux-binary.tar.bz2 )
620 - x86-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_MACOS}-x86-darwin-binary.tar.bz2 )
621 - x64-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_MACOS}-x86-64-darwin-binary.tar.bz2 )
622 - ppc-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC_MACOS}-powerpc-darwin-binary.tar.bz2 )
623 - x86-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_SOLARIS}-x86-solaris-binary.tar.bz2 )
624 - x64-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_SOLARIS}-x86-64-solaris-binary.tar.bz2 )
625 - sparc-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC_SOLARIS}-sparc-solaris-binary.tar.bz2 )"
626 -
627 -LICENSE="MIT"
628 -SLOT="0/${PV}"
629 -KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~x86-solaris"
630 -IUSE="debug doc source +threads +unicode pax_kernel zlib"
631 -
632 -CDEPEND=">=dev-lisp/asdf-3.1:="
633 -DEPEND="${CDEPEND}
634 - doc? ( sys-apps/texinfo >=media-gfx/graphviz-2.26.0 )
635 - pax_kernel? ( sys-apps/elfix )"
636 -RDEPEND="${CDEPEND}
637 - !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.6 ) )"
638 -
639 -# Disable warnings about executable stacks, as this won't be fixed soon by upstream
640 -QA_EXECSTACK="usr/bin/sbcl"
641 -
642 -CONFIG="${S}/customize-target-features.lisp"
643 -ENVD="${T}/50sbcl"
644 -
645 -# Prevent ASDF from using the system libraries
646 -CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)"
647 -ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)"
648 -
649 -usep() {
650 - use ${1} && echo "true" || echo "false"
651 -}
652 -
653 -sbcl_feature() {
654 - echo "$( [[ ${1} == "true" ]] && echo "(enable ${2})" || echo "(disable ${2})")" >> "${CONFIG}"
655 -}
656 -
657 -sbcl_apply_features() {
658 - sed 's/^X//' > "${CONFIG}" <<-'EOF'
659 - (lambda (list)
660 - X (flet ((enable (x) (pushnew x list))
661 - X (disable (x) (setf list (remove x list))))
662 - EOF
663 - if use x86 || use amd64; then
664 - sbcl_feature "$(usep threads)" ":sb-thread"
665 - fi
666 - sbcl_feature "true" ":sb-ldb"
667 - sbcl_feature "false" ":sb-test"
668 - sbcl_feature "$(usep unicode)" ":sb-unicode"
669 - sbcl_feature "$(usep zlib)" ":sb-core-compression"
670 - sbcl_feature "$(usep debug)" ":sb-xref-for-internals"
671 - sed 's/^X//' >> "${CONFIG}" <<-'EOF'
672 - X )
673 - X list)
674 - EOF
675 - cat "${CONFIG}"
676 -}
677 -
678 -src_unpack() {
679 - unpack ${A}
680 - mv sbcl-*-* sbcl-binary || die
681 - cd "${S}"
682 -}
683 -
684 -src_prepare() {
685 - # bug #468482
686 - eapply "${FILESDIR}"/concurrency-test-1.3.15.patch
687 - # bugs #486552, #527666, #517004
688 - eapply "${FILESDIR}"/${PN}-1.4.0-bsd-sockets-test.patch
689 - # bugs #560276, #561018
690 - eapply "${FILESDIR}"/sb-posix-test-1.2.15.patch
691 -
692 - eapply "${FILESDIR}"/${PN}-1.2.11-solaris.patch
693 - eapply "${FILESDIR}"/${PN}-1.4.0-verbose-build.patch
694 -
695 - eapply_user
696 -
697 - # Make sure the *FLAGS variables are sane.
698 - # sbcl needs symbols in resulting binaries, so building with the -s linker flag will fail.
699 - strip-unsupported-flags
700 - filter-flags -fomit-frame-pointer -Wl,-s
701 - filter-ldflags -s
702 -
703 - # original bugs #526194, #620532
704 - # this broke no-pie default builds, c.f. bug #632670
705 - # Pass CFLAGS down by appending our value, to let users override
706 - # the default values.
707 - # Keep passing LDFLAGS down via the LINKFLAGS variable.
708 - sed -e "s@\(CFLAGS += -g .*\)\$@\1 ${CFLAGS}@" \
709 - -e "s@LINKFLAGS += -g\$@LINKFLAGS += ${LDFLAGS}@" \
710 - -i src/runtime/GNUmakefile || die
711 -
712 - sed -e "s@SBCL_PREFIX=\"/usr/local\"@SBCL_PREFIX=\"${EPREFIX}/usr\"@" \
713 - -i make-config.sh || die
714 -
715 - # Use installed ASDF version
716 - cp "${EPREFIX}"/usr/share/common-lisp/source/asdf/build/asdf.lisp contrib/asdf/ || die
717 - # Avoid installation of ASDF info page. See bug #605752
718 - sed '/INFOFILES/s/asdf.info//' -i doc/manual/Makefile || die
719 -
720 - use source && sed 's%"$(BUILD_ROOT)%$(MODULE).lisp "$(BUILD_ROOT)%' -i contrib/vanilla-module.mk
721 -
722 - # Some shells(such as dash) don't have "time" as builtin
723 - # and we don't want to DEPEND on sys-process/time
724 - sed "s,^time ,," -i make.sh || die
725 - sed "s,/lib,/$(get_libdir),g" -i install.sh || die
726 - # #define SBCL_HOME ...
727 - sed "s,/usr/local/lib,${EPREFIX}/usr/$(get_libdir),g" -i src/runtime/runtime.c || die
728 - # change location of /etc/sbclrc ...
729 - sed "s,/etc/sbclrc,${EPREFIX}/etc/sbclrc,g" -i src/code/toplevel.lisp || die
730 -
731 - find . -type f -name .cvsignore -delete
732 -}
733 -
734 -src_configure() {
735 - # customizing SBCL version as per
736 - # http://sbcl.cvs.sourceforge.net/sbcl/sbcl/doc/PACKAGING-SBCL.txt?view=markup
737 - echo -e ";;; Auto-generated by Gentoo\n\"gentoo-${PR}\"" > branch-version.lisp-expr
738 -
739 - # applying customizations
740 - sbcl_apply_features
741 -}
742 -
743 -src_compile() {
744 - local bindir="${WORKDIR}"/sbcl-binary
745 -
746 - if use pax_kernel ; then
747 - # To disable PaX on hardened systems
748 - pax-mark -mr "${bindir}"/src/runtime/sbcl
749 -
750 - # Hack to disable PaX on second GENESIS stage
751 - sed -i -e '/^[ \t]*echo \/\/doing warm init - compilation phase$/a\ paxmark.sh -mr \.\/src\/runtime\/sbcl' \
752 - "${S}"/make-target-2.sh || die "Cannot disable PaX on second GENESIS runtime"
753 - fi
754 -
755 - # clear the environment to get rid of non-ASCII strings, see bug #174702
756 - # set HOME for paludis
757 - env - HOME="${T}" PATH="${PATH}" \
758 - CC="$(tc-getCC)" AS="$(tc-getAS)" LD="$(tc-getLD)" \
759 - CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}" ASFLAGS="${ASFLAGS}" LDFLAGS="${LDFLAGS}" \
760 - GNUMAKE=make ./make.sh \
761 - "sh ${bindir}/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger" \
762 - || die "make failed"
763 -
764 - # need to set HOME because libpango(used by graphviz) complains about it
765 - if use doc; then
766 - env - HOME="${T}" PATH="${PATH}" \
767 - CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
768 - ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
769 - make -C doc/manual info html || die "Cannot build manual"
770 - env - HOME="${T}" PATH="${PATH}" \
771 - CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
772 - ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
773 - make -C doc/internals info html || die "Cannot build internal docs"
774 - fi
775 -}
776 -
777 -src_test() {
778 - ewarn "Unfortunately, it is known that some tests fail eg."
779 - ewarn "run-program.impure.lisp. This is an issue of the upstream's"
780 - ewarn "development and not of Gentoo's side. Please, before filing"
781 - ewarn "any bug(s) search for older submissions. Thank you."
782 - time ( cd tests && sh run-tests.sh )
783 -}
784 -
785 -src_install() {
786 - # install system-wide initfile
787 - dodir /etc/
788 - sed 's/^X//' > "${ED}"/etc/sbclrc <<-EOF
789 - ;;; The following is required if you want source location functions to
790 - ;;; work in SLIME, for example.
791 - X
792 - (setf (logical-pathname-translations "SYS")
793 - X '(("SYS:SRC;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/src/**/*.*")
794 - X ("SYS:CONTRIB;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/**/*.*")))
795 - X
796 - ;;; Setup ASDF2
797 - (load "${EPREFIX}/etc/common-lisp/gentoo-init.lisp")
798 - EOF
799 -
800 - # Install documentation
801 - unset SBCL_HOME
802 - INSTALL_ROOT="${ED}/usr" LIB_DIR="${EPREFIX}/usr/$(get_libdir)" DOC_DIR="${ED}/usr/share/doc/${PF}" \
803 - sh install.sh || die "install.sh failed"
804 -
805 - # bug #517008
806 - pax-mark -mr "${D}"/usr/bin/sbcl
807 -
808 - # rm empty directories lest paludis complain about this
809 - find "${ED}" -empty -type d -exec rmdir -v {} +
810 -
811 - if use doc; then
812 - dodoc -r doc/internals/sbcl-internals
813 -
814 - doinfo doc/manual/*.info*
815 - doinfo doc/internals/sbcl-internals.info
816 -
817 - docinto internals-notes
818 - dodoc doc/internals-notes/*
819 - else
820 - rm -Rv "${ED}/usr/share/doc/${PF}" || die
821 - fi
822 -
823 - # install the SBCL source
824 - if use source; then
825 - ./clean.sh
826 - cp -av src "${ED}/usr/$(get_libdir)/sbcl/" || die
827 - fi
828 -
829 - # necessary for running newly-saved images
830 - echo "SBCL_HOME=${EPREFIX}/usr/$(get_libdir)/${PN}" > "${ENVD}"
831 - echo "SBCL_SOURCE_ROOT=${EPREFIX}/usr/$(get_libdir)/${PN}/src" >> "${ENVD}"
832 - doenvd "${ENVD}"
833 -}