/[gentoo-x86]/dev-scheme/ikarus/ikarus-0.0.3_p1870.ebuild
Gentoo

Contents of /dev-scheme/ikarus/ikarus-0.0.3_p1870.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Tue Apr 27 17:00:00 2010 UTC (4 years, 2 months ago) by chiiph
Branch: MAIN
CVS Tags: HEAD
Bump to upstream snapshot since the problems with 0.0.3 are solved in the live version of this ebuild in the lisp overlay. Ported to EAPI 3 and cleanup old version.
(Portage version: 2.2_rc67/cvs/Linux i686)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-scheme/ikarus/ikarus-0.0.3.ebuild,v 1.3 2008/06/01 18:03:13 pchrist Exp $
4
5 EAPI="3"
6
7 inherit eutils flag-o-matic autotools versionator
8
9 MY_PV=$(get_version_component_range 4-)
10 MY_PV=${MY_PV/p/}
11
12 MY_P=${PN}-scheme-r${MY_PV}
13
14 DESCRIPTION="A free optimizing incremental native-code compiler for R6RS Scheme"
15 HOMEPAGE="http://ikarus-scheme.org/"
16 SRC_URI="http://ikarus-scheme.org/ikarus.dev/${MY_P}.tgz"
17
18 LICENSE="GPL-3"
19 SLOT="0"
20
21 KEYWORDS="-* ~x86"
22 IUSE="sse2 doc"
23
24 RDEPEND=">=dev-libs/gmp-4.2.2"
25 DEPEND="${RDEPEND}"
26
27 S=${WORKDIR}/${MY_P}
28
29 src_prepare() {
30 sed -i -e 's/-O3//' configure.ac || die
31 epatch "${FILESDIR}/${P}-cpu_has_sse2.patch"
32 epatch "${FILESDIR}/${P}-ikarus-enter.patch"
33
34 eautoreconf
35 }
36
37 src_compile() {
38 if use !sse2; then \
39 eerror "You must have a processor who supports \
40 SSE2 instructions" && die
41 fi
42
43 append-flags "-std=gnu99"
44
45 emake || die "emake failed"
46 }
47
48 src_test() {
49 cd benchmarks
50 make benchall || die "Tests failed"
51 if [ -e timelog ]
52 then
53 cat timelog || die "stdout test logs failed."
54 fi
55 }
56
57 src_install() {
58 emake DESTDIR="${D}" install || die "emake install failed"
59 rm -Rf "${D}/usr/share"
60 dodoc README ACKNOWLEDGMENTS || die "dodoc failed"
61 if use doc; then
62 dodoc doc/*.pdf || die "dodoc failed"
63 fi
64 }

  ViewVC Help
Powered by ViewVC 1.1.20