1 |
hkbst 09/08/31 13:51:07 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: sbcl-1.0.31.ebuild |
5 |
Log: |
6 |
bump |
7 |
(Portage version: 2.1.6.13/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.159 dev-lisp/sbcl/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lisp/sbcl/ChangeLog?rev=1.159&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lisp/sbcl/ChangeLog?rev=1.159&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lisp/sbcl/ChangeLog?r1=1.158&r2=1.159 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-lisp/sbcl/ChangeLog,v |
19 |
retrieving revision 1.158 |
20 |
retrieving revision 1.159 |
21 |
diff -u -r1.158 -r1.159 |
22 |
--- ChangeLog 4 May 2009 18:11:08 -0000 1.158 |
23 |
+++ ChangeLog 31 Aug 2009 13:51:07 -0000 1.159 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for dev-lisp/sbcl |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-lisp/sbcl/ChangeLog,v 1.158 2009/05/04 18:11:08 hkbst Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-lisp/sbcl/ChangeLog,v 1.159 2009/08/31 13:51:07 hkbst Exp $ |
29 |
+ |
30 |
+*sbcl-1.0.31 (31 Aug 2009) |
31 |
+ |
32 |
+ 31 Aug 2009; Marijn Schouten <hkBst@g.o> +sbcl-1.0.31.ebuild: |
33 |
+ bump |
34 |
|
35 |
*sbcl-1.0.28 (04 May 2009) |
36 |
|
37 |
|
38 |
|
39 |
|
40 |
1.1 dev-lisp/sbcl/sbcl-1.0.31.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lisp/sbcl/sbcl-1.0.31.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lisp/sbcl/sbcl-1.0.31.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: sbcl-1.0.31.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2009 Gentoo Foundation |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
# $Header: /var/cvsroot/gentoo-x86/dev-lisp/sbcl/sbcl-1.0.31.ebuild,v 1.1 2009/08/31 13:51:07 hkbst Exp $ |
50 |
|
51 |
EAPI=2 |
52 |
|
53 |
inherit common-lisp-common-3 eutils flag-o-matic |
54 |
|
55 |
#same order as http://www.sbcl.org/platform-table.html |
56 |
BV_X86=1.0.28 |
57 |
BV_AMD64=1.0.28 |
58 |
BV_PPC=1.0.28 |
59 |
BV_SPARC=1.0.28 |
60 |
BV_ALPHA=1.0.28 |
61 |
BV_MIPS=1.0.23 |
62 |
BV_MIPSEL=1.0.28 |
63 |
|
64 |
DESCRIPTION="Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp." |
65 |
HOMEPAGE="http://sbcl.sourceforge.net/" |
66 |
SRC_URI="mirror://sourceforge/sbcl/${P}-source.tar.bz2 |
67 |
x86? ( mirror://sourceforge/sbcl/${PN}-${BV_X86}-x86-linux-binary.tar.bz2 ) |
68 |
amd64? ( mirror://sourceforge/sbcl/${PN}-${BV_AMD64}-x86-64-linux-binary.tar.bz2 ) |
69 |
ppc? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC}-powerpc-linux-binary.tar.bz2 ) |
70 |
sparc? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC}-sparc-linux-binary.tar.bz2 ) |
71 |
alpha? ( mirror://sourceforge/sbcl/${PN}-${BV_ALPHA}-alpha-linux-binary.tar.bz2 ) |
72 |
mips? ( !cobalt? ( mirror://sourceforge/sbcl/${PN}-${BV_MIPS}-mips-linux-binary.tar.bz2 ) ) |
73 |
mips? ( cobalt? ( mirror://sourceforge/sbcl/${PN}-${BV_MIPSEL}-mipsel-linux-binary.tar.bz2 ) )" |
74 |
|
75 |
# SRC_URI is part of the metadata cache; it's evaluated contents must be independent of the system that creates the metadata cache. |
76 |
# ILLEGAL: mips? ( mirror://sourceforge/sbcl/${PN}-${BV_MIPS}-$([[$(tc-endian) = big]] && echo mips || echo mipsel)-linux-binary.tar.bz2 ) |
77 |
|
78 |
LICENSE="MIT" |
79 |
SLOT="0" |
80 |
KEYWORDS="-* ~amd64 ~ppc ~sparc ~x86" |
81 |
IUSE="ldb source +threads +unicode doc cobalt" |
82 |
|
83 |
DEPEND="doc? ( sys-apps/texinfo >=media-gfx/graphviz-2.20[png] )" |
84 |
RDEPEND="elibc_glibc? ( >=sys-libs/glibc-2.3 || ( <sys-libs/glibc-2.6[nptl] >=sys-libs/glibc-2.6 ) )" |
85 |
PDEPEND="dev-lisp/gentoo-init" |
86 |
|
87 |
PROVIDE="virtual/commonlisp" |
88 |
|
89 |
# Disable warnings about executable stacks, as this won't be fixed soon by upstream |
90 |
QA_EXECSTACK="usr/bin/sbcl usr/lib/sbcl/src/runtime/sbcl usr/lib/sbcl/src/runtime/*.o" |
91 |
|
92 |
pkg_setup() { |
93 |
if built_with_use sys-devel/gcc hardened && gcc-config -c | grep -qv vanilla; then |
94 |
eerror "So-called \"hardened\" compiler features are incompatible with SBCL. You" |
95 |
eerror "must use gcc-config to select a profile with non-hardened features" |
96 |
eerror "(the \"vanilla\" profile) and \"source /etc/profile\" before continuing." |
97 |
die |
98 |
fi |
99 |
} |
100 |
|
101 |
CONFIG="${S}/customize-target-features.lisp" |
102 |
ENVD="${T}/50sbcl" |
103 |
|
104 |
usep() { |
105 |
use ${1} && echo "true" || echo "false" |
106 |
} |
107 |
|
108 |
sbcl_feature() { |
109 |
echo "$( [[ ${1} == "true" ]] && echo "(enable ${2})" || echo "(disable ${2})")" >> "${CONFIG}" |
110 |
} |
111 |
|
112 |
sbcl_apply_features() { |
113 |
cat > "${CONFIG}" <<'EOF' |
114 |
(lambda (list) |
115 |
(flet ((enable (x) (pushnew x list)) |
116 |
(disable (x) (setf list (remove x list)))) |
117 |
EOF |
118 |
if use x86 || use amd64; then |
119 |
sbcl_feature "$(usep threads)" ":sb-thread" |
120 |
fi |
121 |
sbcl_feature "$(usep ldb)" ":sb-ldb" |
122 |
sbcl_feature "false" ":sb-test" |
123 |
sbcl_feature "$(usep unicode)" ":sb-unicode" |
124 |
cat >> "${CONFIG}" <<'EOF' |
125 |
) |
126 |
list) |
127 |
EOF |
128 |
cat "${CONFIG}" |
129 |
} |
130 |
|
131 |
src_unpack() { |
132 |
unpack ${A} |
133 |
mv sbcl-*-linux sbcl-binary |
134 |
cd "${S}" |
135 |
} |
136 |
|
137 |
src_prepare() { |
138 |
use source && sed 's%"$(BUILD_ROOT)%$(MODULE).lisp "$(BUILD_ROOT)%' -i contrib/vanilla-module.mk |
139 |
|
140 |
sed "s,/lib,/$(get_libdir),g" -i install.sh |
141 |
sed "s,/usr/local/lib,/usr/$(get_libdir),g" -i src/runtime/runtime.c # #define SBCL_HOME ... |
142 |
|
143 |
find . -type f -name .cvsignore -delete |
144 |
} |
145 |
|
146 |
src_configure() { |
147 |
# customizing SBCL version as per |
148 |
# http://sbcl.cvs.sourceforge.net/sbcl/sbcl/doc/PACKAGING-SBCL.txt?view=markup |
149 |
echo -e ";;; Auto-generated by Gentoo\n\"gentoo-${PR}\"" > branch-version.lisp-expr |
150 |
|
151 |
# applying customizations |
152 |
sbcl_apply_features |
153 |
} |
154 |
|
155 |
src_compile() { |
156 |
local bindir="${WORKDIR}"/sbcl-binary |
157 |
|
158 |
append-ldflags -Wl,--no-as-needed # see Bug #132992 |
159 |
|
160 |
# clear the environment to get rid of non-ASCII strings, see bug 174702 |
161 |
# set HOME for paludis |
162 |
env - HOME="${T}" \ |
163 |
PATH="${bindir}/src/runtime:${PATH}" SBCL_HOME="${bindir}/output" GNUMAKE=make ./make.sh \ |
164 |
"sbcl --no-sysinit --no-userinit --disable-debugger --core ${bindir}/output/sbcl.core" \ |
165 |
|| die "make failed" |
166 |
|
167 |
# need to set HOME because libpango(used by graphviz) complains about it |
168 |
if use doc; then |
169 |
env - HOME="${T}" make -C doc/manual info html || die "Cannot build manual" |
170 |
env - HOME="${T}" make -C doc/internals html || die "Cannot build internal docs" |
171 |
fi |
172 |
} |
173 |
|
174 |
src_test() { |
175 |
# FILES="exhaust.impure.lisp" |
176 |
cd tests |
177 |
sh run-tests.sh |
178 |
# sh run-tests.sh ${FILES} |
179 |
# sh run-tests.sh --break-on-failure ${FILES} |
180 |
} |
181 |
|
182 |
src_install() { |
183 |
# install system-wide initfile |
184 |
dodir /etc/ |
185 |
cat > "${D}"/etc/sbclrc <<EOF |
186 |
;;; The following is required if you want source location functions to |
187 |
;;; work in SLIME, for example. |
188 |
|
189 |
(setf (logical-pathname-translations "SYS") |
190 |
'(("SYS:SRC;**;*.*.*" #p"/usr/$(get_libdir)/sbcl/src/**/*.*") |
191 |
("SYS:CONTRIB;**;*.*.*" #p"/usr/$(get_libdir)/sbcl/**/*.*"))) |
192 |
|
193 |
;;; Setup ASDF |
194 |
(load "/etc/gentoo-init.lisp") |
195 |
EOF |
196 |
|
197 |
# Install documentation |
198 |
dodir /usr/share/man |
199 |
dodir /usr/share/doc/${PF} |
200 |
unset SBCL_HOME |
201 |
INSTALL_ROOT="${D}"/usr DOC_DIR="${D}"/usr/share/doc/${PF} sh install.sh || die "install.sh failed" |
202 |
|
203 |
# rm empty directories lest paludis complain about this |
204 |
rmdir "${D}"/usr/$(get_libdir)/sbcl/{site-systems,sb-posix/test-lab,sb-cover/test-output} 2>/dev/null |
205 |
|
206 |
doman doc/sbcl-asdf-install.1 |
207 |
|
208 |
dodoc BUGS CREDITS INSTALL NEWS OPTIMIZATIONS PRINCIPLES README STYLE TLA TODO |
209 |
|
210 |
if use doc; then |
211 |
dohtml doc/html/* |
212 |
doinfo doc/manual/*.info* |
213 |
dohtml -r doc/internals/sbcl-internals |
214 |
fi |
215 |
|
216 |
# install the SBCL source |
217 |
if use source; then |
218 |
./clean.sh |
219 |
# for BSD cp compat use -pPR instead of -a (may not be needed anymore) |
220 |
cp -pPR src "${D}"/usr/$(get_libdir)/sbcl/ |
221 |
fi |
222 |
|
223 |
# necessary for running newly-saved images |
224 |
echo "SBCL_HOME=/usr/$(get_libdir)/${PN}" > "${ENVD}" |
225 |
echo "SBCL_SOURCE_ROOT=/usr/$(get_libdir)/${PN}/src" >> "${ENVD}" |
226 |
doenvd "${ENVD}" |
227 |
|
228 |
impl-save-timestamp-hack sbcl || die |
229 |
} |
230 |
|
231 |
pkg_postinst() { |
232 |
standard-impl-postinst sbcl |
233 |
} |
234 |
|
235 |
pkg_postrm() { |
236 |
standard-impl-postrm sbcl /usr/bin/sbcl |
237 |
} |