1 |
hkbst 08/03/02 18:03:50 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: sbcl-1.0.15.ebuild |
5 |
Log: |
6 |
bump, will hang on tests :( |
7 |
(Portage version: 2.1.4.4) |
8 |
|
9 |
Revision Changes Path |
10 |
1.139 dev-lisp/sbcl/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lisp/sbcl/ChangeLog?rev=1.139&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lisp/sbcl/ChangeLog?rev=1.139&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lisp/sbcl/ChangeLog?r1=1.138&r2=1.139 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-lisp/sbcl/ChangeLog,v |
19 |
retrieving revision 1.138 |
20 |
retrieving revision 1.139 |
21 |
diff -u -r1.138 -r1.139 |
22 |
--- ChangeLog 28 Jan 2008 15:13:58 -0000 1.138 |
23 |
+++ ChangeLog 2 Mar 2008 18:03:50 -0000 1.139 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for dev-lisp/sbcl |
26 |
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-lisp/sbcl/ChangeLog,v 1.138 2008/01/28 15:13:58 hkbst Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-lisp/sbcl/ChangeLog,v 1.139 2008/03/02 18:03:50 hkbst Exp $ |
29 |
+ |
30 |
+*sbcl-1.0.15 (02 Mar 2008) |
31 |
+ |
32 |
+ 02 Mar 2008; Marijn Schouten <hkBst@g.o> +sbcl-1.0.15.ebuild: |
33 |
+ bump, will hang on tests :( |
34 |
|
35 |
*sbcl-1.0.14 (28 Jan 2008) |
36 |
|
37 |
|
38 |
|
39 |
|
40 |
1.1 dev-lisp/sbcl/sbcl-1.0.15.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lisp/sbcl/sbcl-1.0.15.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lisp/sbcl/sbcl-1.0.15.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: sbcl-1.0.15.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2008 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.15.ebuild,v 1.1 2008/03/02 18:03:50 hkbst Exp $ |
50 |
|
51 |
inherit common-lisp-common-3 eutils flag-o-matic |
52 |
|
53 |
#same order as http://www.sbcl.org/platform-table.html |
54 |
BV_X86=1.0.12 |
55 |
BV_AMD64=1.0.12 |
56 |
BV_PPC=1.0 |
57 |
BV_SPARC=0.9.17 |
58 |
BV_ALPHA=0.9.12 |
59 |
BV_MIPS=1.0.12 |
60 |
BV_MIPSEL=1.0.12 |
61 |
|
62 |
DESCRIPTION="Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp." |
63 |
HOMEPAGE="http://sbcl.sourceforge.net/" |
64 |
SRC_URI="mirror://sourceforge/sbcl/${P}-source.tar.bz2 |
65 |
x86? ( mirror://sourceforge/sbcl/${PN}-${BV_X86}-x86-linux-binary.tar.bz2 ) |
66 |
amd64? ( mirror://sourceforge/sbcl/${PN}-${BV_AMD64}-x86-64-linux-binary.tar.bz2 ) |
67 |
ppc? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC}-powerpc-linux-binary.tar.bz2 ) |
68 |
sparc? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC}-sparc-linux-binary.tar.bz2 ) |
69 |
alpha? ( mirror://sourceforge/sbcl/${PN}-${BV_ALPHA}-alpha-linux-binary.tar.bz2 ) |
70 |
mips? ( !cobalt? ( mirror://sourceforge/sbcl/${PN}-${BV_MIPS}-mips-linux-binary.tar.bz2 ) ) |
71 |
mips? ( cobalt? ( mirror://sourceforge/sbcl/${PN}-${BV_MIPSEL}-mipsel-linux-binary.tar.bz2 ) )" |
72 |
|
73 |
# SRC_URI is part of the metadata cache; it's evaluated contents must be independent of the system that creates the metadata cache. |
74 |
# ILLEGAL: mips? ( mirror://sourceforge/sbcl/${PN}-${BV_MIPS}-$([[$(tc-endian) = big]] && echo mips || echo mipsel)-linux-binary.tar.bz2 ) |
75 |
|
76 |
LICENSE="MIT" |
77 |
SLOT="0" |
78 |
|
79 |
KEYWORDS="-* ~amd64 ~ppc ~sparc ~x86" |
80 |
|
81 |
IUSE="ldb source threads unicode doc cobalt" |
82 |
|
83 |
DEPEND="dev-lisp/gentoo-init |
84 |
doc? ( sys-apps/texinfo media-gfx/graphviz )" |
85 |
|
86 |
PROVIDE="virtual/commonlisp" |
87 |
|
88 |
pkg_setup() { |
89 |
if built_with_use sys-devel/gcc hardened && gcc-config -c | grep -qv vanilla; then |
90 |
eerror "So-called \"hardened\" compiler features are incompatible with SBCL. You" |
91 |
eerror "must use gcc-config to select a profile with non-hardened features" |
92 |
eerror "(the \"vanilla\" profile) and \"source /etc/profile\" before continuing." |
93 |
die |
94 |
fi |
95 |
if (use x86 || use amd64) && has_version "<sys-libs/glibc-2.6" \ |
96 |
&& ! built_with_use sys-libs/glibc nptl; then |
97 |
eerror "Building SBCL without NPTL support on at least x86 and amd64" |
98 |
eerror "architectures is not a supported configuration in Gentoo. Please" |
99 |
eerror "refer to Bug #119016 for more information." |
100 |
die |
101 |
fi |
102 |
} |
103 |
|
104 |
CONFIG="${S}/customize-target-features.lisp" |
105 |
ENVD="${T}/50sbcl" |
106 |
|
107 |
usep() { |
108 |
use ${1} && echo "true" || echo "false" |
109 |
} |
110 |
|
111 |
sbcl_feature() { |
112 |
echo "$( [[ $1 == "true" ]] && echo "(enable $2)" || echo "(disable $2)")" >> "${CONFIG}" |
113 |
# if [[ $1 == "true" ]]; then echo "(enable $2)" >> "${CONFIG}"; fi |
114 |
# if [[ $1 == "false" ]]; then echo "(disable $2)" >> "${CONFIG}"; fi |
115 |
} |
116 |
|
117 |
sbcl_apply_features() { |
118 |
cat > "${CONFIG}" <<'EOF' |
119 |
(lambda (list) |
120 |
(flet ((enable (x) (pushnew x list)) |
121 |
(disable (x) (setf list (remove x list)))) |
122 |
EOF |
123 |
if use x86 || use amd64; then |
124 |
sbcl_feature "$(usep threads)" ":sb-thread" |
125 |
fi |
126 |
sbcl_feature "$(usep ldb)" ":sb-ldb" |
127 |
sbcl_feature "false" ":sb-test" |
128 |
sbcl_feature "$(usep unicode)" ":sb-unicode" |
129 |
cat >> "${CONFIG}" <<'EOF' |
130 |
) |
131 |
list) |
132 |
EOF |
133 |
cat "${CONFIG}" |
134 |
} |
135 |
|
136 |
src_unpack() { |
137 |
unpack ${A} |
138 |
mv sbcl-*-linux sbcl-binary |
139 |
cd "${S}" |
140 |
|
141 |
# epatch "${FILESDIR}/disable-tests-gentoo-${PV}.patch" |
142 |
use source && sed 's%"$(BUILD_ROOT)%$(MODULE).lisp "$(BUILD_ROOT)%' -i contrib/vanilla-module.mk |
143 |
|
144 |
sed "s,/lib,/$(get_libdir),g" -i "${S}/install.sh" |
145 |
sed "s,/usr/local/lib,/usr/$(get_libdir),g" -i "${S}/src/runtime/runtime.c" # #define SBCL_HOME ... |
146 |
|
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\"${PVR}-gentoo\"" > "${S}/version.lisp-expr" |
150 |
|
151 |
# applying customizations |
152 |
sbcl_apply_features |
153 |
|
154 |
find "${S}" -type f -name .cvsignore -print0 | xargs -0 rm -f |
155 |
find "${S}" -depth -type d -name CVS -or -name .git -print0 | xargs -0 rm -rf |
156 |
find "${S}" -type f -name \*.c -print0 | xargs -0 chmod 644 |
157 |
} |
158 |
|
159 |
src_compile() { |
160 |
local bindir="${WORKDIR}"/sbcl-binary |
161 |
|
162 |
filter-ldflags -Wl,--as-needed --as-needed # see Bug #132992 |
163 |
|
164 |
# clear the environment to get rid of non-ASCII strings, see bug 174702 |
165 |
# set HOME for paludis |
166 |
env - HOME="${T}" \ |
167 |
PATH="${bindir}/src/runtime:${PATH}" SBCL_HOME="${bindir}/output" GNUMAKE=make ./make.sh \ |
168 |
"sbcl --sysinit /dev/null --userinit /dev/null --disable-debugger --core ${bindir}/output/sbcl.core" \ |
169 |
|| die "make failed" |
170 |
|
171 |
# need to set HOME because libpango(used by graphviz) complains about it |
172 |
if use doc; then |
173 |
env - HOME="${T}" make -C doc/manual info html || die "Cannot build manual" |
174 |
env - HOME="${T}" make -C doc/internals html || die "Cannot build internal docs" |
175 |
fi |
176 |
} |
177 |
|
178 |
src_test() { |
179 |
# FILES="exhaust.impure.lisp" |
180 |
cd tests |
181 |
sh run-tests.sh |
182 |
# sh run-tests.sh ${FILES} |
183 |
# sh run-tests.sh --break-on-failure ${FILES} |
184 |
} |
185 |
|
186 |
src_install() { |
187 |
# install system-wide initfile |
188 |
dodir /etc/ |
189 |
cat > "${D}"/etc/sbclrc <<EOF |
190 |
;;; The following is required if you want source location functions to |
191 |
;;; work in SLIME, for example. |
192 |
|
193 |
(setf (logical-pathname-translations "SYS") |
194 |
'(("SYS:SRC;**;*.*.*" #p"/usr/$(get_libdir)/sbcl/src/**/*.*") |
195 |
("SYS:CONTRIB;**;*.*.*" #p"/usr/$(get_libdir)/sbcl/**/*.*"))) |
196 |
|
197 |
;;; Setup ASDF |
198 |
(load "/etc/gentoo-init.lisp") |
199 |
EOF |
200 |
|
201 |
# Install documentation |
202 |
dodir /usr/share/man |
203 |
dodir /usr/share/doc/${PF} |
204 |
unset SBCL_HOME |
205 |
INSTALL_ROOT="${D}"/usr DOC_DIR="${D}"/usr/share/doc/${PF} sh install.sh || die "install.sh failed" |
206 |
|
207 |
doman doc/sbcl-asdf-install.1 |
208 |
|
209 |
dodoc BUGS CREDITS INSTALL NEWS OPTIMIZATIONS PRINCIPLES README STYLE SUPPORT TLA TODO |
210 |
|
211 |
if use doc; then |
212 |
dohtml doc/html/* |
213 |
doinfo "${S}"/doc/manual/*.info* |
214 |
dohtml -r "${S}"/doc/internals/sbcl-internals |
215 |
fi |
216 |
|
217 |
# install the SBCL source |
218 |
if use source; then |
219 |
cp -pPR "${S}"/src "${D}/usr/$(get_libdir)"/sbcl |
220 |
find "${D}/usr/$(get_libdir)/sbcl/src" -type f -name '*.fasl' -print0 | xargs -0 rm -f |
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 |
229 |
} |
230 |
|
231 |
pkg_postinst() { |
232 |
standard-impl-postinst sbcl |
233 |
} |
234 |
|
235 |
pkg_postrm() { |
236 |
standard-impl-postrm sbcl /usr/bin/sbcl |
237 |
} |
238 |
|
239 |
|
240 |
|
241 |
-- |
242 |
gentoo-commits@l.g.o mailing list |