Gentoo Archives: gentoo-commits

From: "Marijn Schouten (hkbst)" <hkbst@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lisp/sbcl: ChangeLog sbcl-1.0.13.ebuild
Date: Tue, 01 Jan 2008 23:58:43
Message-Id: E1J9r0C-00086X-8I@stork.gentoo.org
1 hkbst 08/01/01 23:58:32
2
3 Modified: ChangeLog
4 Added: sbcl-1.0.13.ebuild
5 Log:
6 bump
7 (Portage version: 2.1.4_rc14)
8
9 Revision Changes Path
10 1.137 dev-lisp/sbcl/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lisp/sbcl/ChangeLog?rev=1.137&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lisp/sbcl/ChangeLog?rev=1.137&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lisp/sbcl/ChangeLog?r1=1.136&r2=1.137
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-lisp/sbcl/ChangeLog,v
19 retrieving revision 1.136
20 retrieving revision 1.137
21 diff -u -r1.136 -r1.137
22 --- ChangeLog 19 Dec 2007 02:54:06 -0000 1.136
23 +++ ChangeLog 1 Jan 2008 23:58:31 -0000 1.137
24 @@ -1,6 +1,53 @@
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.136 2007/12/19 02:54:06 halcy0n Exp $
28 +# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/dev-lisp/sbcl/ChangeLog,v 1.137 2008/01/01 23:58:31 hkbst Exp $
30 +
31 +*sbcl-1.0.13 (01 Jan 2008)
32 +
33 + 01 Jan 2008; Marijn Schouten <hkBst@g.o> +sbcl-1.0.13.ebuild:
34 + bump:
35 +changes in sbcl-1.0.13 relative to sbcl-1.0.12:
36 + * minor incompatible change: RUN-PROGRAM now uses execvp(3) to find
37 + an executable in the search path, and does so in the child
38 + process's PATH. The function FIND-EXECUTABLE-IN-SEARCH-PATH has
39 + been removed; it can be found in the CVS history, for somebody who
40 + needs that search behavior (see the manual).
41 + * minor incompatible change: compiler policy re. weakening type
42 + checks has changed: now type checks are weakened on if SAFETY < 2
43 + and SAFETY < SPEED.
44 + * SB-EXT:NATIVE-NAMESTRING takes a new keyword AS-FILE, forcing
45 + unparsing of directory pathnames as files. Analogously,
46 + SB-EXT:PARSE-NATIVE-NAMESTRING takes an AS-DIRECTORY, forcing a
47 + filename to parse into a directory pathname.
48 + * enhancement: implicit generic function creation now signals a
49 + specific style-warning IMPLICIT-GENERIC-FUNCTION-WARNING, which
50 + users can bind handlers for and muffle around calls to LOAD.
51 + * enhancement: RUN-PROGRAM allows unicode arguments and environments
52 + to be used (using the default stream external format), and allows
53 + non-simple strings to be used. (thanks to Harald Hanche-Olsen)
54 + * optimization: COPY-SEQ, FILL, and SUBSEQ are 30-80% faster for
55 + strings and vectors whose element-type or simplicity is not fully
56 + known at compile-time.
57 + * optimization: STRING-TRIM and related functions no longer allocate
58 + a new string when no trimming needs to be performed. These functions
59 + are also faster than before when the input string has been declared
60 + as a simple-string.
61 + * optimization: READ-SEQUENCE on simple-strings is up to 80% faster.
62 + * optimization: READ-LINE is significantly faster for files containing
63 + long lines.
64 + * optimization: non-open coded uses of character comparison operators
65 + (e.g. char=) no longer cons when called with more than one parameter
66 + on platforms supporting dynamic-extent allocation.
67 + * bug fix: READ-SEQUENCE on composite stream wrapping a Gray stream
68 + with STREAM-ELEMENT-TYPE (UNSIGNED-BYTE 8) signalled an error.
69 + * bug fix: COPY-SEQ on lists did not signal a type-error on improper
70 + lists in safe code.
71 + * bug fix: some sequence functions elided bounds checking when
72 + SPEED > SAFETY.
73 + * bug fix: too liberal weakening of union-type checks when SPEED >
74 + SAFETY.
75 + * bug fix: more bogus fixnum declarations in ROOM implementation
76 + have been fixed.
77
78 19 Dec 2007; Mark Loeser <halcy0n@g.o> sbcl-1.0.9.ebuild,
79 sbcl-1.0.10.ebuild, sbcl-1.0.11-r1.ebuild, sbcl-1.0.12.ebuild:
80
81
82
83 1.1 dev-lisp/sbcl/sbcl-1.0.13.ebuild
84
85 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lisp/sbcl/sbcl-1.0.13.ebuild?rev=1.1&view=markup
86 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lisp/sbcl/sbcl-1.0.13.ebuild?rev=1.1&content-type=text/plain
87
88 Index: sbcl-1.0.13.ebuild
89 ===================================================================
90 # Copyright 1999-2008 Gentoo Foundation
91 # Distributed under the terms of the GNU General Public License v2
92 # $Header: /var/cvsroot/gentoo-x86/dev-lisp/sbcl/sbcl-1.0.13.ebuild,v 1.1 2008/01/01 23:58:31 hkbst Exp $
93
94 inherit common-lisp-common-3 eutils flag-o-matic
95
96 #same order as http://www.sbcl.org/platform-table.html
97 BV_X86=1.0.12
98 BV_AMD64=1.0.12
99 BV_PPC=1.0
100 BV_SPARC=0.9.17
101 BV_ALPHA=0.9.12
102 BV_MIPS=1.0.12
103 BV_MIPSEL=1.0.12
104
105 DESCRIPTION="Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp."
106 HOMEPAGE="http://sbcl.sourceforge.net/"
107 SRC_URI="mirror://sourceforge/sbcl/${P}-source.tar.bz2
108 x86? ( mirror://sourceforge/sbcl/${PN}-${BV_X86}-x86-linux-binary.tar.bz2 )
109 amd64? ( mirror://sourceforge/sbcl/${PN}-${BV_AMD64}-x86-64-linux-binary.tar.bz2 )
110 ppc? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC}-powerpc-linux-binary.tar.bz2 )
111 sparc? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC}-sparc-linux-binary.tar.bz2 )
112 alpha? ( mirror://sourceforge/sbcl/${PN}-${BV_ALPHA}-alpha-linux-binary.tar.bz2 )
113 mips? ( !cobalt? ( mirror://sourceforge/sbcl/${PN}-${BV_MIPS}-mips-linux-binary.tar.bz2 ) )
114 mips? ( cobalt? ( mirror://sourceforge/sbcl/${PN}-${BV_MIPSEL}-mipsel-linux-binary.tar.bz2 ) )"
115
116 # SRC_URI is part of the metadata cache; it's evaluated contents must be independent of the system that creates the metadata cache.
117 # ILLEGAL: mips? ( mirror://sourceforge/sbcl/${PN}-${BV_MIPS}-$([[$(tc-endian) = big]] && echo mips || echo mipsel)-linux-binary.tar.bz2 )
118
119 LICENSE="MIT"
120 SLOT="0"
121
122 KEYWORDS="-* ~amd64 ~ppc ~sparc ~x86"
123
124 IUSE="ldb source threads unicode doc cobalt"
125
126 DEPEND="dev-lisp/gentoo-init
127 doc? ( sys-apps/texinfo media-gfx/graphviz )"
128
129 PROVIDE="virtual/commonlisp"
130
131 pkg_setup() {
132 if built_with_use sys-devel/gcc hardened && gcc-config -c | grep -qv vanilla; then
133 eerror "So-called \"hardened\" compiler features are incompatible with SBCL. You"
134 eerror "must use gcc-config to select a profile with non-hardened features"
135 eerror "(the \"vanilla\" profile) and \"source /etc/profile\" before continuing."
136 die
137 fi
138 if (use x86 || use amd64) && has_version "<sys-libs/glibc-2.6" \
139 && ! built_with_use sys-libs/glibc nptl; then
140 eerror "Building SBCL without NPTL support on at least x86 and amd64"
141 eerror "architectures is not a supported configuration in Gentoo. Please"
142 eerror "refer to Bug #119016 for more information."
143 die
144 fi
145 }
146
147 CONFIG="${S}/customize-target-features.lisp"
148 ENVD="${T}/50sbcl"
149
150 usep() {
151 use ${1} && echo "true" || echo "false"
152 }
153
154 sbcl_feature() {
155 echo "$( [[ $1 == "true" ]] && echo "(enable $2)" || echo "(disable $2)")" >> "${CONFIG}"
156 # if [[ $1 == "true" ]]; then echo "(enable $2)" >> "${CONFIG}"; fi
157 # if [[ $1 == "false" ]]; then echo "(disable $2)" >> "${CONFIG}"; fi
158 }
159
160 sbcl_apply_features() {
161 cat > "${CONFIG}" <<'EOF'
162 (lambda (list)
163 (flet ((enable (x) (pushnew x list))
164 (disable (x) (setf list (remove x list))))
165 EOF
166 if use x86 || use amd64; then
167 sbcl_feature "$(usep threads)" ":sb-thread"
168 fi
169 sbcl_feature "$(usep ldb)" ":sb-ldb"
170 sbcl_feature "false" ":sb-test"
171 sbcl_feature "$(usep unicode)" ":sb-unicode"
172 cat >> "${CONFIG}" <<'EOF'
173 )
174 list)
175 EOF
176 cat "${CONFIG}"
177 }
178
179 src_unpack() {
180 unpack ${A}
181 mv sbcl-*-linux sbcl-binary
182 cd "${S}"
183
184 # epatch "${FILESDIR}/disable-tests-gentoo-${PV}.patch"
185 use source && sed 's%"$(BUILD_ROOT)%$(MODULE).lisp "$(BUILD_ROOT)%' -i contrib/vanilla-module.mk
186
187 sed "s,/lib,/$(get_libdir),g" -i "${S}/install.sh"
188 sed "s,/usr/local/lib,/usr/$(get_libdir),g" -i "${S}/src/runtime/runtime.c" # #define SBCL_HOME ...
189
190 # customizing SBCL version as per
191 # http://sbcl.cvs.sourceforge.net/sbcl/sbcl/doc/PACKAGING-SBCL.txt?view=markup
192 echo -e ";;; Auto-generated by Gentoo\n\"${PVR}-gentoo\"" > "${S}/version.lisp-expr"
193
194 # applying customizations
195 sbcl_apply_features
196
197 find "${S}" -type f -name .cvsignore -print0 | xargs -0 rm -f
198 find "${S}" -depth -type d -name CVS -or -name .git -print0 | xargs -0 rm -rf
199 find "${S}" -type f -name \*.c -print0 | xargs -0 chmod 644
200 }
201
202 src_compile() {
203 local bindir="${WORKDIR}"/sbcl-binary
204
205 filter-ldflags -Wl,--as-needed --as-needed # see Bug #132992
206
207 # clear the environment to get rid of non-ASCII strings, see bug 174702
208 # set HOME for paludis
209 env - HOME="${T}" \
210 PATH="${bindir}/src/runtime:${PATH}" SBCL_HOME="${bindir}/output" GNUMAKE=make ./make.sh \
211 "sbcl --sysinit /dev/null --userinit /dev/null --disable-debugger --core ${bindir}/output/sbcl.core" \
212 || die "make failed"
213
214 # need to set HOME because libpango(used by graphviz) complains about it
215 if use doc; then
216 env - HOME="${T}" make -C doc/manual info html || die "Cannot build manual"
217 env - HOME="${T}" make -C doc/internals html || die "Cannot build internal docs"
218 fi
219 }
220
221 src_test() {
222 # FILES="exhaust.impure.lisp"
223 cd tests
224 sh run-tests.sh
225 # sh run-tests.sh ${FILES}
226 # sh run-tests.sh --break-on-failure ${FILES}
227 }
228
229 src_install() {
230 # install system-wide initfile
231 dodir /etc/
232 cat > "${D}"/etc/sbclrc <<EOF
233 ;;; The following is required if you want source location functions to
234 ;;; work in SLIME, for example.
235
236 (setf (logical-pathname-translations "SYS")
237 '(("SYS:SRC;**;*.*.*" #p"/usr/$(get_libdir)/sbcl/src/**/*.*")
238 ("SYS:CONTRIB;**;*.*.*" #p"/usr/$(get_libdir)/sbcl/**/*.*")))
239
240 ;;; Setup ASDF
241 (load "/etc/gentoo-init.lisp")
242 EOF
243
244 # Install documentation
245 dodir /usr/share/man
246 dodir /usr/share/doc/${PF}
247 unset SBCL_HOME
248 INSTALL_ROOT="${D}"/usr DOC_DIR="${D}"/usr/share/doc/${PF} sh install.sh || die "install.sh failed"
249
250 doman doc/sbcl-asdf-install.1
251
252 dodoc BUGS CREDITS INSTALL NEWS OPTIMIZATIONS PRINCIPLES README STYLE SUPPORT TLA TODO
253
254 if use doc; then
255 dohtml doc/html/*
256 doinfo "${S}"/doc/manual/*.info*
257 dohtml -r "${S}"/doc/internals/sbcl-internals
258 fi
259
260 # install the SBCL source
261 if use source; then
262 cp -pPR "${S}"/src "${D}/usr/$(get_libdir)"/sbcl
263 find "${D}/usr/$(get_libdir)/sbcl/src" -type f -name '*.fasl' -print0 | xargs -0 rm -f
264 fi
265
266 # necessary for running newly-saved images
267 echo "SBCL_HOME=/usr/$(get_libdir)/${PN}" > "${ENVD}"
268 echo "SBCL_SOURCE_ROOT=/usr/$(get_libdir)/${PN}/src" >> "${ENVD}"
269 doenvd "${ENVD}"
270
271 impl-save-timestamp-hack sbcl
272 }
273
274 pkg_postinst() {
275 standard-impl-postinst sbcl
276 }
277
278 pkg_postrm() {
279 standard-impl-postrm sbcl /usr/bin/sbcl
280 }
281
282
283
284 --
285 gentoo-commits@g.o mailing list