1 |
hkbst 07/10/26 12:23:04 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: sbcl-1.0.11.ebuild |
5 |
Log: |
6 |
bump, add SBCL_SOURCE_ROOT, -* keyword |
7 |
(Portage version: 2.1.3.16) |
8 |
|
9 |
Revision Changes Path |
10 |
1.132 dev-lisp/sbcl/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lisp/sbcl/ChangeLog?rev=1.132&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lisp/sbcl/ChangeLog?rev=1.132&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lisp/sbcl/ChangeLog?r1=1.131&r2=1.132 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-lisp/sbcl/ChangeLog,v |
19 |
retrieving revision 1.131 |
20 |
retrieving revision 1.132 |
21 |
diff -u -r1.131 -r1.132 |
22 |
--- ChangeLog 18 Oct 2007 17:01:12 -0000 1.131 |
23 |
+++ ChangeLog 26 Oct 2007 12:23:03 -0000 1.132 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for dev-lisp/sbcl |
26 |
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-lisp/sbcl/ChangeLog,v 1.131 2007/10/18 17:01:12 hkbst Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-lisp/sbcl/ChangeLog,v 1.132 2007/10/26 12:23:03 hkbst Exp $ |
29 |
+ |
30 |
+*sbcl-1.0.11 (26 Oct 2007) |
31 |
+ |
32 |
+ 26 Oct 2007; Marijn Schouten <hkBst@g.o> +sbcl-1.0.11.ebuild: |
33 |
+ bump, add SBCL_SOURCE_ROOT, -* keyword |
34 |
|
35 |
18 Oct 2007; Marijn Schouten <hkBst@g.o> sbcl-1.0.10.ebuild: |
36 |
small fix for running your own dumped images |
37 |
|
38 |
|
39 |
|
40 |
1.1 dev-lisp/sbcl/sbcl-1.0.11.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lisp/sbcl/sbcl-1.0.11.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lisp/sbcl/sbcl-1.0.11.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: sbcl-1.0.11.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2007 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.11.ebuild,v 1.1 2007/10/26 12:23:03 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.10 |
55 |
BV_AMD64=1.0.10 |
56 |
BV_PPC=1.0 |
57 |
BV_SPARC=0.9.17 |
58 |
BV_ALPHA=0.9.12 |
59 |
BV_MIPS=0.9.12 |
60 |
BV_MIPSEL=0.9.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 |
|
77 |
LICENSE="MIT" |
78 |
SLOT="0" |
79 |
|
80 |
KEYWORDS="-* ~amd64 ~ppc ~sparc ~x86" |
81 |
|
82 |
IUSE="ldb source threads unicode doc" |
83 |
|
84 |
DEPEND="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 |
|
106 |
usep() { |
107 |
use $1 && echo "true" || echo "false" |
108 |
} |
109 |
|
110 |
sbcl_feature() { |
111 |
echo "$( [[ $1 == "true" ]] && echo "(enable $2)" || echo "(disable $2)")" >> "${CONFIG}" |
112 |
# if [[ $1 == "true" ]]; then echo "(enable $2)" >> "${CONFIG}"; fi |
113 |
# if [[ $1 == "false" ]]; then echo "(disable $2)" >> "${CONFIG}"; fi |
114 |
} |
115 |
|
116 |
sbcl_apply_features() { |
117 |
cat > "${CONFIG}" <<'EOF' |
118 |
(lambda (list) |
119 |
(flet ((enable (x) (pushnew x list)) |
120 |
(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 "$(usep ldb)" ":sb-ldb" |
126 |
sbcl_feature "false" ":sb-test" |
127 |
sbcl_feature "$(usep unicode)" ":sb-unicode" |
128 |
cat >> "${CONFIG}" <<'EOF' |
129 |
) |
130 |
list) |
131 |
EOF |
132 |
cat "${CONFIG}" |
133 |
} |
134 |
|
135 |
src_unpack() { |
136 |
unpack ${A} |
137 |
mv sbcl-*-linux sbcl-binary |
138 |
cd "${S}" |
139 |
|
140 |
# epatch "${FILESDIR}/disable-tests-gentoo-${PV}.patch" |
141 |
use source && sed 's%"$(BUILD_ROOT)%$(MODULE).lisp "$(BUILD_ROOT)%' -i contrib/vanilla-module.mk |
142 |
|
143 |
sed "s,/lib,/$(get_libdir),g" -i "${S}/install.sh" |
144 |
sed "s,/usr/local/lib,/usr/$(get_libdir),g" -i "${S}/src/runtime/runtime.c" # #define SBCL_HOME ... |
145 |
|
146 |
# customizing SBCL version as per |
147 |
# http://sbcl.cvs.sourceforge.net/sbcl/sbcl/doc/PACKAGING-SBCL.txt?view=markup |
148 |
echo -e ";;; Auto-generated by Gentoo\n\"${PVR}-gentoo\"" > "${S}/version.lisp-expr" |
149 |
|
150 |
# applying customizations |
151 |
sbcl_apply_features |
152 |
|
153 |
find "${S}" -type f -name .cvsignore -print0 | xargs -0 rm -f |
154 |
find "${S}" -depth -type d -name CVS -print0 | xargs -0 rm -rf |
155 |
find "${S}" -type f -name \*.c -print0 | xargs -0 chmod 644 |
156 |
} |
157 |
|
158 |
src_compile() { |
159 |
local bindir="${WORKDIR}/sbcl-binary" |
160 |
|
161 |
filter-ldflags -Wl,--as-needed --as-needed # see Bug #132992 |
162 |
|
163 |
# clear the environment to get rid of non-ASCII strings, see bug 174702 |
164 |
# set HOME for paludis |
165 |
env - HOME="${T}" \ |
166 |
PATH="${bindir}/src/runtime:${PATH}" SBCL_HOME="${bindir}/output" GNUMAKE=make ./make.sh \ |
167 |
"sbcl --sysinit /dev/null --userinit /dev/null --disable-debugger --core ${bindir}/output/sbcl.core" \ |
168 |
|| die "make failed" |
169 |
|
170 |
if use doc; then |
171 |
cd "${S}/doc/manual" |
172 |
make info html || die "make info html failed" |
173 |
cd "${S}/doc/internals" |
174 |
make html || die "make html failed" |
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 |
unset SBCL_HOME |
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 |
EOF |
197 |
dodir /usr/share/man |
198 |
dodir /usr/share/doc/${PF} |
199 |
INSTALL_ROOT="${D}/usr" DOC_DIR="${D}/usr/share/doc/${PF}" sh install.sh || die "install.sh failed" |
200 |
|
201 |
doman doc/sbcl-asdf-install.1 |
202 |
|
203 |
dodoc BUGS CREDITS INSTALL NEWS OPTIMIZATIONS PRINCIPLES README STYLE SUPPORT TLA TODO |
204 |
|
205 |
if use doc; then |
206 |
dohtml doc/html/* |
207 |
doinfo "${S}/doc/manual/"*.info* |
208 |
dohtml -r "${S}/doc/internals/sbcl-internals" |
209 |
fi |
210 |
|
211 |
if use source; then |
212 |
# install the SBCL source |
213 |
cp -pPR "${S}/src" "${D}/usr/$(get_libdir)/sbcl" |
214 |
find "${D}/usr/$(get_libdir)/sbcl/src" -type f -name \*.fasl -print0 | xargs -0 rm -f |
215 |
fi |
216 |
|
217 |
# necessary for running newly-saved images |
218 |
echo "SBCL_HOME=/usr/$(get_libdir)/sbcl" >> "${T}/50sbcl" |
219 |
echo "SBCL_SOURCE_ROOT=/usr/$(get_libdir)/${PN}/src" > "${T}/50sbcl" |
220 |
doenvd "${T}/50sbcl" |
221 |
|
222 |
impl-save-timestamp-hack sbcl |
223 |
} |
224 |
|
225 |
pkg_postinst() { |
226 |
standard-impl-postinst sbcl |
227 |
} |
228 |
|
229 |
pkg_postrm() { |
230 |
standard-impl-postrm sbcl /usr/bin/sbcl |
231 |
} |
232 |
|
233 |
|
234 |
|
235 |
-- |
236 |
gentoo-commits@g.o mailing list |