/[gentoo-x86]/dev-scheme/chicken/chicken-4.6.0.ebuild
Gentoo

Contents of /dev-scheme/chicken/chicken-4.6.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Oct 6 04:25:05 2010 UTC (3 years, 10 months ago) by chiiph
Branch: MAIN
Version bump

(Portage version: 2.2_rc86/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/chicken/chicken-4.5.0.ebuild,v 1.2 2010/06/07 19:21:59 pchrist Exp $
4
5 EAPI="3"
6
7 inherit eutils multilib
8
9 DESCRIPTION="Chicken is a Scheme interpreter and native Scheme to C compiler"
10 HOMEPAGE="http://www.call-with-current-continuation.org/"
11 SRC_URI="http://code.call-cc.org/releases/4.6.0/${P}.tar.gz"
12
13 LICENSE="BSD"
14 SLOT="0"
15 KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~x86"
16 IUSE="emacs"
17
18 DEPEND="sys-apps/texinfo
19 emacs? ( virtual/emacs )"
20 RDEPEND="emacs? ( virtual/emacs app-emacs/scheme-complete )"
21
22 src_prepare() {
23 #Because chicken's Upstream have a custom to use variables that also
24 #portage uses :( eg. $ARCH in this case
25 for f in defaults.make Makefile.bsd Makefile.cross-linux-mingw Makefile.cygwin \
26 Makefile.linux Makefile.macosx Makefile.mingw-msys Makefile.solaris \
27 rules.make
28 do
29 sed "s,ARCH,zARCH," -i ${f} || die "sed failed"
30 done
31
32 sed "s,\$(PREFIX)/lib,\$(PREFIX)/$(get_libdir)," -i defaults.make || die "sed failed"
33 sed "s,\$(DATADIR)/doc,\$(SHAREDIR)/doc/${P}," -i defaults.make || die "sed failed"
34 }
35
36 src_compile() {
37 OPTIONS="PLATFORM=linux PREFIX=/usr"
38 #upstream does not support parallel builds, bug 265881
39 emake -j1 ${OPTIONS} C_COMPILER_OPTIMIZATION_OPTIONS="${CFLAGS}" \
40 HOSTSYSTEM="${CBUILD}" || die "emake failed"
41 }
42
43 # chicken's testsuite is not runnable before install
44 # upstream has been notified of the issue
45 RESTRICT=test
46
47 src_install() {
48 # bug #283158
49 emake -j1 ${OPTIONS} DESTDIR="${D}" HOSTSYSTEM="${CBUILD}" install || die
50
51 rm "${D}"/usr/share/doc/${P}/LICENSE || die
52 dodoc NEWS || die
53 }

  ViewVC Help
Powered by ViewVC 1.1.20