1 |
grozin 15/06/29 10:54:23 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: sbcl-1.2.13.ebuild |
5 |
Log: |
6 |
Version bump |
7 |
|
8 |
(Portage version: 2.2.20/cvs/Linux i686, signed Manifest commit with key 0x3AFFCE974D34BD8C!) |
9 |
|
10 |
Revision Changes Path |
11 |
1.227 dev-lisp/sbcl/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lisp/sbcl/ChangeLog?rev=1.227&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lisp/sbcl/ChangeLog?rev=1.227&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lisp/sbcl/ChangeLog?r1=1.226&r2=1.227 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-lisp/sbcl/ChangeLog,v |
20 |
retrieving revision 1.226 |
21 |
retrieving revision 1.227 |
22 |
diff -u -r1.226 -r1.227 |
23 |
--- ChangeLog 9 Jun 2015 14:57:47 -0000 1.226 |
24 |
+++ ChangeLog 29 Jun 2015 10:54:23 -0000 1.227 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for dev-lisp/sbcl |
27 |
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-lisp/sbcl/ChangeLog,v 1.226 2015/06/09 14:57:47 jlec Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-lisp/sbcl/ChangeLog,v 1.227 2015/06/29 10:54:23 grozin Exp $ |
30 |
+ |
31 |
+*sbcl-1.2.13 (29 Jun 2015) |
32 |
+ |
33 |
+ 29 Jun 2015; Andrey Grozin <grozin@g.o> +sbcl-1.2.13.ebuild, |
34 |
+ +files/sbcl-1.2.13-verbose-build.patch: |
35 |
+ Version bump |
36 |
|
37 |
09 Jun 2015; Justin Lecher <jlec@g.o> metadata.xml: |
38 |
Updating remote-id in metadata.xml |
39 |
|
40 |
|
41 |
|
42 |
1.1 dev-lisp/sbcl/sbcl-1.2.13.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lisp/sbcl/sbcl-1.2.13.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lisp/sbcl/sbcl-1.2.13.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: sbcl-1.2.13.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2015 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/dev-lisp/sbcl/sbcl-1.2.13.ebuild,v 1.1 2015/06/29 10:54:23 grozin Exp $ |
52 |
|
53 |
EAPI=5 |
54 |
inherit multilib eutils flag-o-matic pax-utils |
55 |
|
56 |
#same order as http://www.sbcl.org/platform-table.html |
57 |
BV_X86=1.2.7 |
58 |
BV_AMD64=1.2.13 |
59 |
BV_PPC=1.2.7 |
60 |
BV_SPARC=1.0.28 |
61 |
BV_ALPHA=1.0.28 |
62 |
BV_ARM=1.2.7 |
63 |
BV_PPC_MACOS=1.0.47 |
64 |
BV_X86_MACOS=1.1.6 |
65 |
BV_X64_MACOS=1.1.8 |
66 |
BV_SPARC_SOLARIS=1.0.23 |
67 |
BV_X86_SOLARIS=1.2.7 |
68 |
BV_X64_SOLARIS=1.2.7 |
69 |
|
70 |
DESCRIPTION="Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp" |
71 |
HOMEPAGE="http://sbcl.sourceforge.net/" |
72 |
SRC_URI="mirror://sourceforge/sbcl/${P}-source.tar.bz2 |
73 |
x86? ( mirror://sourceforge/sbcl/${PN}-${BV_X86}-x86-linux-binary.tar.bz2 ) |
74 |
amd64? ( mirror://sourceforge/sbcl/${PN}-${BV_AMD64}-x86-64-linux-binary.tar.bz2 ) |
75 |
ppc? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC}-powerpc-linux-binary.tar.bz2 ) |
76 |
sparc? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC}-sparc-linux-binary.tar.bz2 ) |
77 |
alpha? ( mirror://sourceforge/sbcl/${PN}-${BV_ALPHA}-alpha-linux-binary.tar.bz2 ) |
78 |
arm? ( mirror://sourceforge/sbcl/${PN}-${BV_ARM}-armhf-linux-binary.tar.bz2 ) |
79 |
ppc-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC_MACOS}-powerpc-darwin-binary.tar.bz2 ) |
80 |
x86-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_MACOS}-x86-darwin-binary.tar.bz2 ) |
81 |
x64-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_MACOS}-x86-64-darwin-binary.tar.bz2 ) |
82 |
sparc-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC_SOLARIS}-sparc-solaris-binary.tar.bz2 ) |
83 |
x86-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_SOLARIS}-x86-solaris-binary.tar.bz2 ) |
84 |
x64-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_SOLARIS}-x86-64-solaris-binary.tar.bz2 )" |
85 |
|
86 |
LICENSE="MIT" |
87 |
SLOT="0/${PV}" |
88 |
KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~x86-solaris" |
89 |
IUSE="debug doc source +threads +unicode pax_kernel zlib" |
90 |
|
91 |
CDEPEND=">=dev-lisp/asdf-3.1:=" |
92 |
DEPEND="${CDEPEND} |
93 |
doc? ( sys-apps/texinfo >=media-gfx/graphviz-2.26.0 ) |
94 |
pax_kernel? ( sys-apps/paxctl sys-apps/elfix )" |
95 |
RDEPEND="${CDEPEND} |
96 |
!prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.6 ) )" |
97 |
|
98 |
# Disable warnings about executable stacks, as this won't be fixed soon by upstream |
99 |
QA_EXECSTACK="usr/bin/sbcl" |
100 |
|
101 |
CONFIG="${S}/customize-target-features.lisp" |
102 |
ENVD="${T}/50sbcl" |
103 |
|
104 |
# Prevent ASDF from using the system libraries |
105 |
CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" |
106 |
ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" |
107 |
|
108 |
usep() { |
109 |
use ${1} && echo "true" || echo "false" |
110 |
} |
111 |
|
112 |
sbcl_feature() { |
113 |
echo "$( [[ ${1} == "true" ]] && echo "(enable ${2})" || echo "(disable ${2})")" >> "${CONFIG}" |
114 |
} |
115 |
|
116 |
sbcl_apply_features() { |
117 |
sed 's/^X//' > "${CONFIG}" <<-'EOF' |
118 |
(lambda (list) |
119 |
X (flet ((enable (x) (pushnew x list)) |
120 |
X (disable (x) (setf list (remove x list)))) |
121 |
EOF |
122 |
if use x86 || use amd64; then |
123 |
sbcl_feature "$(usep threads)" ":sb-thread" |
124 |
fi |
125 |
sbcl_feature "true" ":sb-ldb" |
126 |
sbcl_feature "false" ":sb-test" |
127 |
sbcl_feature "$(usep unicode)" ":sb-unicode" |
128 |
sbcl_feature "$(usep zlib)" ":sb-core-compression" |
129 |
sbcl_feature "$(usep debug)" ":sb-xref-for-internals" |
130 |
sed 's/^X//' >> "${CONFIG}" <<-'EOF' |
131 |
X ) |
132 |
X list) |
133 |
EOF |
134 |
cat "${CONFIG}" |
135 |
} |
136 |
|
137 |
src_unpack() { |
138 |
unpack ${A} |
139 |
mv sbcl-*-* sbcl-binary || die |
140 |
cd "${S}" |
141 |
} |
142 |
|
143 |
src_prepare() { |
144 |
epatch "${FILESDIR}"/gentoo-fix_install_man.patch |
145 |
# bug #468482 |
146 |
epatch "${FILESDIR}"/concurrency-test-1.2.6.patch |
147 |
# bugs #486552, #527666, #517004 |
148 |
epatch "${FILESDIR}"/bsd-sockets-test-1.2.11.patch |
149 |
|
150 |
epatch "${FILESDIR}"/${PN}-1.2.11-solaris.patch |
151 |
epatch "${FILESDIR}"/${PN}-1.2.13-verbose-build.patch |
152 |
|
153 |
# To make the hardened compiler NOT compile with -fPIE -pie |
154 |
if gcc-specs-pie ; then |
155 |
einfo "Disabling PIE..." |
156 |
epatch "${FILESDIR}"/${PN}-1.1.17-gentoo-fix_nopie_for_hardened_toolchain.patch |
157 |
fi |
158 |
|
159 |
# bug #526194 |
160 |
sed -e "s@CFLAGS =.*\$@CFLAGS = ${CFLAGS} -g -Wall -Wsign-compare@" \ |
161 |
-e "s@LINKFLAGS =.*\$@LINKFLAGS = ${LDFLAGS} -g@" \ |
162 |
-i src/runtime/GNUmakefile || die |
163 |
|
164 |
sed -e "s@SBCL_PREFIX=\"/usr/local\"@SBCL_PREFIX=\"${EPREFIX}/usr\"@" \ |
165 |
-i make-config.sh || die |
166 |
|
167 |
cp "${EPREFIX}"/usr/share/common-lisp/source/asdf/build/asdf.lisp contrib/asdf/ || die |
168 |
|
169 |
use source && sed 's%"$(BUILD_ROOT)%$(MODULE).lisp "$(BUILD_ROOT)%' -i contrib/vanilla-module.mk |
170 |
|
171 |
# Some shells(such as dash) don't have "time" as builtin |
172 |
# and we don't want to DEPEND on sys-process/time |
173 |
sed "s,^time ,," -i make.sh || die |
174 |
sed "s,/lib,/$(get_libdir),g" -i install.sh || die |
175 |
# #define SBCL_HOME ... |
176 |
sed "s,/usr/local/lib,${EPREFIX}/usr/$(get_libdir),g" -i src/runtime/runtime.c || die |
177 |
# change location of /etc/sbclrc ... |
178 |
sed "s,/etc/sbclrc,${EPREFIX}/etc/sbclrc,g" -i src/code/toplevel.lisp || die |
179 |
|
180 |
find . -type f -name .cvsignore -delete |
181 |
} |
182 |
|
183 |
src_configure() { |
184 |
# customizing SBCL version as per |
185 |
# http://sbcl.cvs.sourceforge.net/sbcl/sbcl/doc/PACKAGING-SBCL.txt?view=markup |
186 |
echo -e ";;; Auto-generated by Gentoo\n\"gentoo-${PR}\"" > branch-version.lisp-expr |
187 |
|
188 |
# applying customizations |
189 |
sbcl_apply_features |
190 |
} |
191 |
|
192 |
src_compile() { |
193 |
local bindir="${WORKDIR}"/sbcl-binary |
194 |
|
195 |
strip-unsupported-flags ; filter-flags -fomit-frame-pointer |
196 |
|
197 |
if host-is-pax ; then |
198 |
# To disable PaX on hardened systems |
199 |
pax-mark -mr "${bindir}"/src/runtime/sbcl |
200 |
|
201 |
# Hack to disable PaX on second GENESIS stage |
202 |
sed -i -e '/^[ \t]*echo \/\/doing warm init - compilation phase$/a\ paxmark.sh -mr \.\/src\/runtime\/sbcl' \ |
203 |
"${S}"/make-target-2.sh || die "Cannot disable PaX on second GENESIS runtime" |
204 |
fi |
205 |
|
206 |
# clear the environment to get rid of non-ASCII strings, see bug 174702 |
207 |
# set HOME for paludis |
208 |
env - HOME="${T}" PATH="${PATH}" \ |
209 |
CC="$(tc-getCC)" AS="$(tc-getAS)" LD="$(tc-getLD)" \ |
210 |
CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}" ASFLAGS="${ASFLAGS}" LDFLAGS="${LDFLAGS}" \ |
211 |
GNUMAKE=make ./make.sh \ |
212 |
"sh ${bindir}/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger" \ |
213 |
|| die "make failed" |
214 |
|
215 |
# need to set HOME because libpango(used by graphviz) complains about it |
216 |
if use doc; then |
217 |
env - HOME="${T}" PATH="${PATH}" \ |
218 |
CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \ |
219 |
ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \ |
220 |
make -C doc/manual info html || die "Cannot build manual" |
221 |
env - HOME="${T}" PATH="${PATH}" \ |
222 |
CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \ |
223 |
ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \ |
224 |
make -C doc/internals info html || die "Cannot build internal docs" |
225 |
fi |
226 |
} |
227 |
|
228 |
src_test() { |
229 |
ewarn "Unfortunately, it is known that some tests fail eg." |
230 |
ewarn "run-program.impure.lisp. This is an issue of the upstream's" |
231 |
ewarn "development and not of Gentoo's side. Please, before filing" |
232 |
ewarn "any bug(s) search for older submissions. Thank you." |
233 |
time ( cd tests && sh run-tests.sh ) |
234 |
} |
235 |
|
236 |
src_install() { |
237 |
# install system-wide initfile |
238 |
dodir /etc/ |
239 |
sed 's/^X//' > "${ED}"/etc/sbclrc <<-EOF |
240 |
;;; The following is required if you want source location functions to |
241 |
;;; work in SLIME, for example. |
242 |
X |
243 |
(setf (logical-pathname-translations "SYS") |
244 |
X '(("SYS:SRC;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/src/**/*.*") |
245 |
X ("SYS:CONTRIB;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/**/*.*"))) |
246 |
X |
247 |
;;; Setup ASDF2 |
248 |
(load "${EPREFIX}/etc/common-lisp/gentoo-init.lisp") |
249 |
EOF |
250 |
|
251 |
# Install documentation |
252 |
unset SBCL_HOME |
253 |
INSTALL_ROOT="${ED}/usr" LIB_DIR="${EPREFIX}/usr/$(get_libdir)" DOC_DIR="${ED}/usr/share/doc/${PF}" \ |
254 |
sh install.sh || die "install.sh failed" |
255 |
|
256 |
# bug #517008 |
257 |
pax-mark -mr "${D}"/usr/bin/sbcl |
258 |
|
259 |
# rm empty directories lest paludis complain about this |
260 |
find "${ED}" -empty -type d -exec rmdir -v {} + |
261 |
|
262 |
if use doc; then |
263 |
dohtml -r doc/manual/ |
264 |
doinfo doc/manual/*.info* |
265 |
dohtml -r doc/internals/sbcl-internals |
266 |
doinfo doc/internals/sbcl-internals.info |
267 |
docinto internals-notes && dodoc doc/internals-notes/* |
268 |
else |
269 |
rm -Rv "${ED}/usr/share/doc/${PF}" || die |
270 |
fi |
271 |
|
272 |
dodoc BUGS CREDITS INSTALL NEWS OPTIMIZATIONS PRINCIPLES README TLA TODO |
273 |
|
274 |
# install the SBCL source |
275 |
if use source; then |
276 |
./clean.sh |
277 |
cp -av src "${ED}/usr/$(get_libdir)/sbcl/" || die |
278 |
fi |
279 |
|
280 |
# necessary for running newly-saved images |
281 |
echo "SBCL_HOME=${EPREFIX}/usr/$(get_libdir)/${PN}" > "${ENVD}" |
282 |
echo "SBCL_SOURCE_ROOT=${EPREFIX}/usr/$(get_libdir)/${PN}/src" >> "${ENVD}" |
283 |
doenvd "${ENVD}" |
284 |
} |