Gentoo Archives: gentoo-commits

From: "José María Alonso" <nimiux@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/lisp:master commit in: dev-scheme/larceny/files/, dev-scheme/larceny-petit/files/, ...
Date: Thu, 30 Nov 2017 10:22:40
Message-Id: 1512037147.0e262ff19ebd33a8ce4b1e424067b88c64aeeb54.nimiux@gentoo
1 commit: 0e262ff19ebd33a8ce4b1e424067b88c64aeeb54
2 Author: Chema Alonso Josa <nimiux <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 30 10:19:07 2017 +0000
4 Commit: José María Alonso <nimiux <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 30 10:19:07 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/lisp.git/commit/?id=0e262ff1
7
8 dev-lisp/larceny*: Drops larceny packages
9
10 Closes: https://bugs.gentoo.org/630194
11
12 .../files/larceny-petit-0.97-stackfix.patch | 13 --
13 .../files/larceny-petit-0.97-textrelfix.patch | 76 --------
14 dev-scheme/larceny-petit/larceny-petit-0.97.ebuild | 207 ---------------------
15 .../larceny/files/larceny-0.961-stackfix.patch | 13 --
16 .../larceny/files/larceny-0.961-textrelfix.patch | 76 --------
17 dev-scheme/larceny/larceny-0.97.ebuild | 77 --------
18 dev-scheme/larceny/larceny-9999.ebuild | 78 --------
19 7 files changed, 540 deletions(-)
20
21 diff --git a/dev-scheme/larceny-petit/files/larceny-petit-0.97-stackfix.patch b/dev-scheme/larceny-petit/files/larceny-petit-0.97-stackfix.patch
22 deleted file mode 100644
23 index 8843aa66..00000000
24 --- a/dev-scheme/larceny-petit/files/larceny-petit-0.97-stackfix.patch
25 +++ /dev/null
26 @@ -1,13 +0,0 @@
27 ---- include/Shared/i386-machine.ah 2007-02-15 14:45:47.000000000 -0500
28 -+++ include/Shared/i386-machine.ah.new 2008-05-04 21:20:42.480292320 -0400
29 -@@ -33,6 +33,10 @@
30 - %ifndef I386_MACHINE_ASM
31 - %define I386_MACHINE_ASM
32 -
33 -+%ifidn __OUTPUT_FORMAT__,elf
34 -+section .note.GNU-stack noalloc noexec nowrite progbits
35 -+%endif
36 -+
37 - %define wordsize 4
38 - %define object_align 8
39 - %define code_align 4
40
41 diff --git a/dev-scheme/larceny-petit/files/larceny-petit-0.97-textrelfix.patch b/dev-scheme/larceny-petit/files/larceny-petit-0.97-textrelfix.patch
42 deleted file mode 100644
43 index 00cd365a..00000000
44 --- a/dev-scheme/larceny-petit/files/larceny-petit-0.97-textrelfix.patch
45 +++ /dev/null
46 @@ -1,76 +0,0 @@
47 ---- src/Asm/Standard-C/dumpheap-unix.sch 2006-08-25 11:57:03.000000000 -0400
48 -+++ src/Asm/Standard-C/dumpheap-unix.sch.new 2008-05-04 19:06:25.679214127 -0400
49 -@@ -75,7 +75,7 @@
50 - (execute
51 - (twobit-format
52 - #f
53 -- "gcc -falign-functions=4 -c ~a ~a -D__USE_FIXED_PROTOTYPES__ -Wpointer-arith -Wimplicit ~a -o ~a ~a"
54 -+ "gcc -fPIC -falign-functions=4 -c ~a ~a -D__USE_FIXED_PROTOTYPES__ -Wpointer-arith -Wimplicit ~a -o ~a ~a"
55 - (if (optimize-c-code) "" "-gstabs+")
56 - unix/petit-include-path
57 - (if (optimize-c-code) "-O3 -DNDEBUG" "")
58 -@@ -97,7 +97,7 @@
59 - (execute
60 - (twobit-format
61 - #f
62 -- "gcc ~a -rdynamic -o ~a ~a ~a"
63 -+ "gcc -fPIC ~a -rdynamic -o ~a ~a ~a"
64 - (if (optimize-c-code) "" "-gstabs+")
65 - output-name
66 - (apply string-append (insert-space object-files))
67 -@@ -107,7 +107,7 @@
68 - (execute
69 - (twobit-format
70 - #f
71 -- "gcc ~a -o ~a ~a ~a"
72 -+ "gcc -fPIC ~a -o ~a ~a ~a"
73 - (if (optimize-c-code) "" "-gstabs+")
74 - output-name
75 - (apply string-append (insert-space object-files))
76 -@@ -117,7 +117,7 @@
77 - (execute
78 - (twobit-format
79 - #f
80 -- "gcc ~a -Wl,-export-dynamic -o ~a ~a ~a"
81 -+ "gcc -fPIC ~a -Wl,-export-dynamic -o ~a ~a ~a"
82 - (if (optimize-c-code) "" "-gstabs+")
83 - output-name
84 - (apply string-append (insert-space object-files))
85 -@@ -127,7 +127,7 @@
86 - (execute
87 - (twobit-format
88 - #f
89 -- "gcc ~a -shared -o ~a ~a ~a"
90 -+ "gcc -fPIC ~a -shared -o ~a ~a ~a"
91 - (if (optimize-c-code) "" "-gstabs+")
92 - output-name
93 - (apply string-append (insert-space object-files))
94 -@@ -137,7 +137,7 @@
95 - (execute
96 - (twobit-format
97 - #f
98 -- "gcc ~a -shared -o ~a ~a ~a"
99 -+ "gcc -fPIC ~a -shared -o ~a ~a ~a"
100 - (if (optimize-c-code) "" "-gstabs+")
101 - output-name
102 - (apply string-append (insert-space object-files))
103 -@@ -149,7 +149,7 @@
104 - (execute
105 - (twobit-format
106 - #f
107 -- "gcc ~a -flat_namespace -bundle -undefined suppress -o ~a ~a ~a"
108 -+ "gcc -fPIC ~a -flat_namespace -bundle -undefined suppress -o ~a ~a ~a"
109 - (if (optimize-c-code) "" "-gstabs+")
110 - output-name
111 - (apply string-append (insert-space object-files))
112 ---- src/Rts/make-templates.sch 2007-11-07 15:30:25.000000000 -0500
113 -+++ src/Rts/make-templates.sch.new 2008-05-04 19:06:48.200246986 -0400
114 -@@ -138,7 +138,7 @@
115 - (define (template-common uncommon)
116 - (string-append
117 - "INC_ROOT = ../../include
118 --CFLAGS = -ISys -I$(INC_ROOT) -I$(INC_ROOT)/Sys -I$(INC_ROOT)/Shared $(DEBUGINFO) $(OPTIMIZE)
119 -+CFLAGS = -fPIC -ISys -I$(INC_ROOT) -I$(INC_ROOT)/Sys -I$(INC_ROOT)/Shared $(DEBUGINFO) $(OPTIMIZE)
120 - ASFLAGS = -I$(INC_ROOT)/ -I$(INC_ROOT)/Sys/ -I$(INC_ROOT)/Shared/
121 - " uncommon))
122 -
123
124 diff --git a/dev-scheme/larceny-petit/larceny-petit-0.97.ebuild b/dev-scheme/larceny-petit/larceny-petit-0.97.ebuild
125 deleted file mode 100644
126 index 952d5399..00000000
127 --- a/dev-scheme/larceny-petit/larceny-petit-0.97.ebuild
128 +++ /dev/null
129 @@ -1,207 +0,0 @@
130 -# Copyright 1999-2010 Gentoo Foundation
131 -# Distributed under the terms of the GNU General Public License v2
132 -# $Header: $
133 -
134 -inherit eutils
135 -
136 -DESCRIPTION="Larceny is a Scheme Interpreter and a Scheme to IA32 and C Compiler"
137 -LARCENY_SOURCE=larceny-${PV}-src
138 -LARCENY_X86_PETIT_BINARY=larceny-${PV}-bin-petit-stdc-linux86
139 -SRC_URI="!binary? ( http://www.ccs.neu.edu/home/will/Larceny/LarcenyReleases/${LARCENY_SOURCE}.tar.gz )
140 - x86? ( binary? ( http://www.ccs.neu.edu/home/will/Larceny/LarcenyReleases/${LARCENY_X86_PETIT_BINARY}.tar.gz ) )"
141 -
142 -HOMEPAGE="http://www.ccs.neu.edu/home/will/Larceny/"
143 -
144 -LICENSE="Larceny"
145 -SLOT="0"
146 -KEYWORDS="~x86 ~amd64"
147 -IUSE="binary doc examples"
148 -
149 -RDEPEND="!dev-scheme/larceny"
150 -DEPEND="${RDEPEND}
151 - dev-lang/nasm
152 - doc? ( app-text/asciidoc )"
153 -
154 -if ! use binary; then
155 - MY_P=${LARCENY_SOURCE}
156 -else
157 - MY_P=${LARCENY_X86_PETIT_BINARY}
158 -fi
159 -
160 -S="${WORKDIR}"/${MY_P}
161 -
162 -# BIG FAT HACK TAKE 2:
163 -# We need a customized version of the timestamp hack from
164 -# common-lisp-common-3.eclass for larceny.
165 -
166 -larceny-save-timestamp-hack() {
167 - tar cpjf "${D}"/usr/share/larceny-petit/portage-timestamp-compensate -C "${D}"/usr/share/larceny-petit lib || \
168 - die "Failed to create the timestamp hack"
169 -}
170 -
171 -larceny-restore-timestamp-hack() {
172 - tar xjpfo "${ROOT}"/usr/share/larceny-petit/portage-timestamp-compensate -C "${ROOT}"/usr/share/larceny-petit || \
173 - die "Failed to restore the timestamp hack"
174 -}
175 -
176 -larceny-remove-timestamp-hack() {
177 - [[ -d "${ROOT}"/usr/share/larceny-petit/lib ]] || return 0
178 - rm -rf "${ROOT}"/usr/share/larceny-petit/lib &>/dev/null || true
179 -}
180 -
181 -pkg_setup() {
182 - if ! use binary; then
183 - if [[ -n ${FORCE_IMPL} ]]; then
184 - einfo "Forcing on bootstrap with ${FORCE_IMPL}"
185 - LARCENY_BOOTSTRAP=${FORCE_IMPL}
186 - #elif has_version '>=dev-scheme/larceny-0.95'; then
187 - #einfo "Will bootstrap using installed larceny."
188 - #LARCENY_BOOTSTRAP=larceny
189 - elif has_version '>=dev-scheme/larceny-petit-0.95'; then
190 - einfo "Will bootstrap using installed larceny-petit."
191 - LARCENY_BOOTSTRAP=petite
192 - elif has_version '>=dev-scheme/drscheme-370'; then
193 - einfo "Will bootstrap using PLT mzscheme."
194 - LARCENY_BOOTSTRAP=mzscheme
195 - else
196 - eerror "You need >=larceny-petit-0.95 or >=drscheme-370"
197 - eerror "to compile larceny from source."
198 - die "please install larceny-petit binary or drscheme"
199 - fi
200 - fi
201 -}
202 -
203 -src_unpack() {
204 - unpack ${A}
205 - cd "${S}"
206 -
207 - if ! use binary; then
208 - # fix PIC / STACK problems
209 - epatch "${FILESDIR}"/${P}-textrelfix.patch
210 - epatch "${FILESDIR}"/${P}-stackfix.patch
211 - fi
212 -}
213 -
214 -src_compile() {
215 - if ! use binary; then
216 -
217 - # stays a little more readable like this, yea? :)
218 - cat > setupscript <<EOF
219 -(setup 'scheme: '${LARCENY_BOOTSTRAP}
220 - 'host: 'linux86)
221 -(build-config-files)
222 -(load-compiler)
223 -(build-heap)
224 -(build-runtime)
225 -(build-executable)
226 -(build-larceny-files)
227 -(build-twobit)
228 -(exit)
229 -EOF
230 -
231 - case ${LARCENY_BOOTSTRAP} in
232 - larceny|petite)
233 - cat setupscript | larceny -- setup.sch || \
234 - die "Compilation with native host failed"
235 - ;;
236 - mzscheme)
237 - cat setupscript | mzscheme -f setup.sch || \
238 - die "Compilation with mzscheme host failed"
239 - ;;
240 - esac
241 -
242 - echo "(exit)" | ./petit-larceny.bin -stopcopy -- src/Build/petit-larceny-heap.sch || \
243 - die "Compilation of petit larceny heap failed"
244 - echo "(exit)" | ./twobit.bin -stopcopy -- src/Build/petit-twobit-heap.sch || \
245 - die "Compilation of petit twobit heap failed"
246 -
247 - fi
248 -
249 - # for petit, R6RS runtime has to be built even with the binary.
250 - pushd lib/R6RS
251 - echo "(require 'r6rsmode)
252 - (larceny:compile-r6rs-runtime)
253 - (exit)" | ../../larceny || die "Compilation of R6RS libraries failed"
254 - popd
255 -
256 - if use doc; then
257 - pushd doc
258 - emake user-manual.chunked/index.html || die "Making user manual failed"
259 - emake larceny-notes.chunked/index.html || die "Making implementation notes failed"
260 - popd
261 - fi
262 -}
263 -
264 -src_install() {
265 - dodoc README-FIRST.txt doc/HOWTO-* || die "Installing docs failed"
266 -
267 - LARCENY_LOCATION="/usr/share/larceny-petit"
268 - dodir ${LARCENY_LOCATION}
269 - # use cp -a here to preserve the timestamps of the .fasl files in
270 - # this step of the installation.
271 - cp -af larceny \
272 - scheme-script \
273 - startup.sch \
274 - compile-stale \
275 - *.bin \
276 - *.heap \
277 - lib \
278 - include \
279 - "${D}"/${LARCENY_LOCATION} || \
280 - die "Installing larceny base files failed"
281 -
282 - # the binary sometimes has misterious mtime issues.
283 - if use binary; then
284 - find "${D}"/${LARCENY_LOCATION}/lib -name '*.so' -exec touch '{}' +
285 - fi
286 -
287 - # sed the scripts with the correct location so they can be symlinked
288 - dosed "s:# LARCENY_ROOT=/usr/local/lib/larceny:LARCENY_ROOT=${ROOT}/${LARCENY_LOCATION}:" \
289 - "${ROOT}"/${LARCENY_LOCATION}/larceny || die "dosed larceny failed"
290 - dosed "s:# LARCENY_ROOT=/usr/local/lib/larceny:LARCENY_ROOT=${ROOT}/${LARCENY_LOCATION}:" \
291 - "${ROOT}"/${LARCENY_LOCATION}/scheme-script || die "dosed scheme-script failed"
292 -
293 - LARCENY_SYMLINKS="gdb-larceny larceny larceny-np petit twobit"
294 -
295 - # now we can symlink them to /usr/bin
296 - dodir /usr/bin
297 - for link in ${LARCENY_SYMLINKS}; do
298 - dosym "${ROOT}"/${LARCENY_LOCATION}/larceny "${ROOT}"/usr/bin/${link} || \
299 - die "dosym larceny->${link} failed"
300 - done
301 -
302 - # this wil probably need to die when we get an eselect module for scheme-script
303 - dosym "${ROOT}"/${LARCENY_LOCATION}/scheme-script "${ROOT}"/usr/bin/scheme-script || \
304 - die "dosym for scheme-script->scheme-script failed"
305 -
306 - if use examples; then
307 - cp -af examples "${D}"/${LARCENY_LOCATION} || die "Installing examples failed."
308 - fi
309 -
310 - if use doc; then
311 - cd "${S}"/doc
312 - docinto LarcenyNotes
313 - dodoc ./LarcenyNotes/* || die "Installing doc/LarcenyNotes failed"
314 - docinto LarcenyNotes/html
315 - dodoc ./larceny-notes.chunked/* || die "Installing doc/LarcenyNotes/html failed"
316 - docinto UserManual
317 - dodoc ./UserManual/* || die "Installing doc/UserManual failed"
318 - docinto UserManual/html
319 - dodoc ./user-manual.chunked/* || die "Installing doc/UserManual/html failed"
320 - docinto DevManual
321 - dodoc ./DevManual/* || die "Installing doc/Devmanual failed"
322 - docinto OldDocs
323 - dodoc ./OldDocs/* || die "Installing doc/OldDocs failed"
324 - cd "${S}"
325 - fi
326 -
327 - larceny-save-timestamp-hack
328 -}
329 -
330 -pkg_postinst() {
331 - larceny-restore-timestamp-hack
332 -}
333 -
334 -pkg_prerm() {
335 - larceny-remove-timestamp-hack
336 -}
337
338 diff --git a/dev-scheme/larceny/files/larceny-0.961-stackfix.patch b/dev-scheme/larceny/files/larceny-0.961-stackfix.patch
339 deleted file mode 100644
340 index 8843aa66..00000000
341 --- a/dev-scheme/larceny/files/larceny-0.961-stackfix.patch
342 +++ /dev/null
343 @@ -1,13 +0,0 @@
344 ---- include/Shared/i386-machine.ah 2007-02-15 14:45:47.000000000 -0500
345 -+++ include/Shared/i386-machine.ah.new 2008-05-04 21:20:42.480292320 -0400
346 -@@ -33,6 +33,10 @@
347 - %ifndef I386_MACHINE_ASM
348 - %define I386_MACHINE_ASM
349 -
350 -+%ifidn __OUTPUT_FORMAT__,elf
351 -+section .note.GNU-stack noalloc noexec nowrite progbits
352 -+%endif
353 -+
354 - %define wordsize 4
355 - %define object_align 8
356 - %define code_align 4
357
358 diff --git a/dev-scheme/larceny/files/larceny-0.961-textrelfix.patch b/dev-scheme/larceny/files/larceny-0.961-textrelfix.patch
359 deleted file mode 100644
360 index 00cd365a..00000000
361 --- a/dev-scheme/larceny/files/larceny-0.961-textrelfix.patch
362 +++ /dev/null
363 @@ -1,76 +0,0 @@
364 ---- src/Asm/Standard-C/dumpheap-unix.sch 2006-08-25 11:57:03.000000000 -0400
365 -+++ src/Asm/Standard-C/dumpheap-unix.sch.new 2008-05-04 19:06:25.679214127 -0400
366 -@@ -75,7 +75,7 @@
367 - (execute
368 - (twobit-format
369 - #f
370 -- "gcc -falign-functions=4 -c ~a ~a -D__USE_FIXED_PROTOTYPES__ -Wpointer-arith -Wimplicit ~a -o ~a ~a"
371 -+ "gcc -fPIC -falign-functions=4 -c ~a ~a -D__USE_FIXED_PROTOTYPES__ -Wpointer-arith -Wimplicit ~a -o ~a ~a"
372 - (if (optimize-c-code) "" "-gstabs+")
373 - unix/petit-include-path
374 - (if (optimize-c-code) "-O3 -DNDEBUG" "")
375 -@@ -97,7 +97,7 @@
376 - (execute
377 - (twobit-format
378 - #f
379 -- "gcc ~a -rdynamic -o ~a ~a ~a"
380 -+ "gcc -fPIC ~a -rdynamic -o ~a ~a ~a"
381 - (if (optimize-c-code) "" "-gstabs+")
382 - output-name
383 - (apply string-append (insert-space object-files))
384 -@@ -107,7 +107,7 @@
385 - (execute
386 - (twobit-format
387 - #f
388 -- "gcc ~a -o ~a ~a ~a"
389 -+ "gcc -fPIC ~a -o ~a ~a ~a"
390 - (if (optimize-c-code) "" "-gstabs+")
391 - output-name
392 - (apply string-append (insert-space object-files))
393 -@@ -117,7 +117,7 @@
394 - (execute
395 - (twobit-format
396 - #f
397 -- "gcc ~a -Wl,-export-dynamic -o ~a ~a ~a"
398 -+ "gcc -fPIC ~a -Wl,-export-dynamic -o ~a ~a ~a"
399 - (if (optimize-c-code) "" "-gstabs+")
400 - output-name
401 - (apply string-append (insert-space object-files))
402 -@@ -127,7 +127,7 @@
403 - (execute
404 - (twobit-format
405 - #f
406 -- "gcc ~a -shared -o ~a ~a ~a"
407 -+ "gcc -fPIC ~a -shared -o ~a ~a ~a"
408 - (if (optimize-c-code) "" "-gstabs+")
409 - output-name
410 - (apply string-append (insert-space object-files))
411 -@@ -137,7 +137,7 @@
412 - (execute
413 - (twobit-format
414 - #f
415 -- "gcc ~a -shared -o ~a ~a ~a"
416 -+ "gcc -fPIC ~a -shared -o ~a ~a ~a"
417 - (if (optimize-c-code) "" "-gstabs+")
418 - output-name
419 - (apply string-append (insert-space object-files))
420 -@@ -149,7 +149,7 @@
421 - (execute
422 - (twobit-format
423 - #f
424 -- "gcc ~a -flat_namespace -bundle -undefined suppress -o ~a ~a ~a"
425 -+ "gcc -fPIC ~a -flat_namespace -bundle -undefined suppress -o ~a ~a ~a"
426 - (if (optimize-c-code) "" "-gstabs+")
427 - output-name
428 - (apply string-append (insert-space object-files))
429 ---- src/Rts/make-templates.sch 2007-11-07 15:30:25.000000000 -0500
430 -+++ src/Rts/make-templates.sch.new 2008-05-04 19:06:48.200246986 -0400
431 -@@ -138,7 +138,7 @@
432 - (define (template-common uncommon)
433 - (string-append
434 - "INC_ROOT = ../../include
435 --CFLAGS = -ISys -I$(INC_ROOT) -I$(INC_ROOT)/Sys -I$(INC_ROOT)/Shared $(DEBUGINFO) $(OPTIMIZE)
436 -+CFLAGS = -fPIC -ISys -I$(INC_ROOT) -I$(INC_ROOT)/Sys -I$(INC_ROOT)/Shared $(DEBUGINFO) $(OPTIMIZE)
437 - ASFLAGS = -I$(INC_ROOT)/ -I$(INC_ROOT)/Sys/ -I$(INC_ROOT)/Shared/
438 - " uncommon))
439 -
440
441 diff --git a/dev-scheme/larceny/larceny-0.97.ebuild b/dev-scheme/larceny/larceny-0.97.ebuild
442 deleted file mode 100644
443 index 5a0e44a8..00000000
444 --- a/dev-scheme/larceny/larceny-0.97.ebuild
445 +++ /dev/null
446 @@ -1,77 +0,0 @@
447 -# Copyright 1999-2012 Gentoo Foundation
448 -# Distributed under the terms of the GNU General Public License v2
449 -# $Header: $
450 -
451 -inherit eutils
452 -
453 -MY_PV=${PV/_beta/b}
454 -MY_P=${PN}-${MY_PV}
455 -
456 -DESCRIPTION="Larceny is a simple and efficient implementation of the Scheme programming language."
457 -SRC_URI="!binary? ( http://www.larcenists.org/LarcenyReleases/${MY_P}-src.tar.gz )
458 - binary? ( x86? ( http://www.larcenists.org/LarcenyReleases/${MY_P}-bin-native-ia32-linux86.tar.gz )
459 - amd64? ( http://www.larcenists.org/LarcenyReleases/${MY_P}-bin-native-ia32-linux86.tar.gz ) )"
460 -
461 -HOMEPAGE="http://www.larcenists.org/"
462 -
463 -LICENSE="LGPL-2.1" # or less restrictive
464 -SLOT="0"
465 -KEYWORDS="~amd64"
466 -IUSE="binary"
467 -
468 -DEPEND="!dev-scheme/larceny-petit
469 - dev-lang/nasm"
470 -RDEPEND=""
471 -
472 -S="${WORKDIR}"/${MY_P}-$(use binary && echo bin-native-ia32-linux86 || echo src)
473 -
474 -src_compile() {
475 - # see doc/HOWTO-BUILD
476 - if ! use binary; then
477 -
478 - cat > setupscript.gentoo <<EOF
479 -(load "setup.sch")
480 -(setup 'scheme: 'larceny
481 - 'host: 'linux86
482 - 'sassy) ;without this flag builds petite (C-backend) instead of native
483 -(build-config-files)
484 -(load-compiler)
485 -
486 -(build-heap)
487 -(build-runtime)
488 -(build-executable)
489 -
490 -(build-larceny-files)
491 -(exit)
492 -EOF
493 - cat setupscript.gentoo | larceny || die "first install a binary larceny"
494 -
495 - echo "(exit)" | ./larceny.bin -stopcopy -- src/Build/iasn-larceny-heap.fasl || die
496 - echo "(exit)" | ./larceny.bin -stopcopy -- src/Build/iasn-twobit-heap.fasl || die
497 - cp larceny twobit
498 -
499 - echo "(require 'r6rsmode) (larceny:compile-r6rs-runtime) (exit)" | ./larceny || die
500 - fi # ! use binary
501 -
502 - # if use doc; then
503 - # pushd doc
504 - # emake user-manual.chunked/index.html || die "Making user manual failed"
505 - # emake larceny-notes.chunked/index.html || die "Making implementation notes failed"
506 - # popd
507 - # fi
508 -}
509 -
510 -src_install() {
511 -# dodoc README-FIRST.txt doc/HOWTO-* || die "Installing docs failed"
512 -
513 - LARCENY_LOCATION="/usr/share/larceny"
514 - dodir "${LARCENY_LOCATION}"
515 - # -a for preserving timestamps of fasls
516 - cp -aR * "${D}"/"${LARCENY_LOCATION}" || die
517 -
518 - SCRIPTS="compile-stale larceny scheme-script twobit"
519 - for script in ${SCRIPTS}; do
520 - dobin ${script} # dosym "${LARCENY_LOCATION}"/${script} /usr/bin/${script}
521 - dosed "s,# LARCENY_ROOT=.*,LARCENY_ROOT=${LARCENY_LOCATION}," /usr/bin/${script}
522 - done
523 -}
524
525 diff --git a/dev-scheme/larceny/larceny-9999.ebuild b/dev-scheme/larceny/larceny-9999.ebuild
526 deleted file mode 100644
527 index 7bdd3f80..00000000
528 --- a/dev-scheme/larceny/larceny-9999.ebuild
529 +++ /dev/null
530 @@ -1,78 +0,0 @@
531 -# Copyright 1999-2010 Gentoo Foundation
532 -# Distributed under the terms of the GNU General Public License v2
533 -# $Header: $
534 -
535 -inherit subversion
536 -
537 -MY_PV=${PV/_beta/b}
538 -MY_P=${PN}-${MY_PV}
539 -
540 -DESCRIPTION="Larceny is a Scheme Interpreter and a Scheme to IA32 and C Compiler"
541 -#SRC_URI="!binary? ( http://www.larcenists.org/LarcenyReleases/${MY_P}-src.tar.gz )
542 -# binary? ( x86? ( http://www.larcenists.org/LarcenyReleases/${MY_P}-bin-native-ia32-linux86.tar.gz )
543 -# amd64? ( http://www.larcenists.org/LarcenyReleases/${MY_P}-bin-native-ia32-linux86.tar.gz ) )"
544 -ESVN_REPO_URI="https://www.larcenists.org/svn/larceny/trunk/larceny_src"
545 -
546 -HOMEPAGE="http://www.larcenists.org/"
547 -
548 -LICENSE="LGPL-2.1" # or less restrictive
549 -SLOT="0"
550 -KEYWORDS=""
551 -IUSE="binary"
552 -
553 -DEPEND="!dev-scheme/larceny-petit
554 - dev-lang/nasm"
555 -RDEPEND=""
556 -
557 -S="${WORKDIR}"/${MY_P}-$(use binary && echo bin-native-ia32-linux86 || echo src)
558 -
559 -src_compile() {
560 - # see doc/HOWTO-BUILD
561 - if ! use binary; then
562 -
563 - cat > setupscript.gentoo <<EOF
564 -(load "setup.sch")
565 -(setup 'scheme: 'larceny
566 - 'host: 'linux86
567 - 'sassy) ;without this flag builds petite (C-backend) instead of native
568 -(build-config-files)
569 -(load-compiler)
570 -
571 -(build-heap)
572 -(build-runtime)
573 -(build-executable)
574 -
575 -(build-larceny-files)
576 -(exit)
577 -EOF
578 - cat setupscript.gentoo | larceny || die "first install a binary larceny"
579 -
580 - echo "(exit)" | ./larceny.bin -stopcopy -- src/Build/iasn-larceny-heap.fasl || die
581 - echo "(exit)" | ./larceny.bin -stopcopy -- src/Build/iasn-twobit-heap.fasl || die
582 - cp larceny twobit
583 -
584 - echo "(require 'r6rsmode) (larceny:compile-r6rs-runtime) (exit)" | ./larceny || die
585 - fi # ! use binary
586 -
587 - # if use doc; then
588 - # pushd doc
589 - # emake user-manual.chunked/index.html || die "Making user manual failed"
590 - # emake larceny-notes.chunked/index.html || die "Making implementation notes failed"
591 - # popd
592 - # fi
593 -}
594 -
595 -src_install() {
596 -# dodoc README-FIRST.txt doc/HOWTO-* || die "Installing docs failed"
597 -
598 - LARCENY_LOCATION="/usr/share/larceny"
599 - dodir "${LARCENY_LOCATION}"
600 - # -a for preserving timestamps of fasls
601 - cp -aR * "${D}"/"${LARCENY_LOCATION}" || die
602 -
603 - SCRIPTS="compile-stale larceny scheme-script twobit"
604 - for script in ${SCRIPTS}; do
605 - dobin ${script} # dosym "${LARCENY_LOCATION}"/${script} /usr/bin/${script}
606 - dosed "s,# LARCENY_ROOT=.*,LARCENY_ROOT=${LARCENY_LOCATION}," /usr/bin/${script}
607 - done
608 -}