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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Jan 17 22:22:13 2013 UTC (17 months, 3 weeks ago) by pchrist
Branch: MAIN
Bump. Thanks to proxy-maintainer Erik Falor (fadein) ewfalor at gmail dot com .

(Portage version: 2.1.11.40/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
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-cc.org/"
11 SRC_URI="http://code.call-cc.org/releases/${PV}/${P}.tar.gz"
12
13 LICENSE="BSD"
14 SLOT="0"
15 KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~x86"
16 IUSE="emacs parallel-build"
17
18 DEPEND="sys-apps/texinfo
19 emacs? ( virtual/emacs )"
20 RDEPEND="emacs? ( virtual/emacs app-emacs/scheme-complete )"
21
22 # chicken's testsuite is not runnable before install
23 # upstream has been notified of the issue
24 RESTRICT=test
25
26 src_prepare() {
27 if use "parallel-build"
28 then
29 epatch "${FILESDIR}"/${P}-parallel-build.patch
30 fi
31
32 #Because chicken's Upstream is in the habit of using variables that
33 #portage also uses :( eg. $ARCH and $A
34 sed 's,A\(\s?=\|)\),chicken&,' -i Makefile.cross-linux-mingw \
35 defaults.make rules.make \
36 || die "sed failed"
37
38 sed "s,ARCH,zARCH," -i Makefile.bsd Makefile.cross-linux-mingw \
39 Makefile.cygwin Makefile.haiku Makefile.linux Makefile.macosx \
40 Makefile.mingw Makefile.mingw-msys Makefile.solaris \
41 defaults.make rules.make \
42 || die "sed failed"
43
44 sed "s,\$(PREFIX)/lib,\$(PREFIX)/$(get_libdir)," -i defaults.make || die "sed failed"
45 sed "s,\$(DATADIR)/doc,\$(SHAREDIR)/doc/${P}," -i defaults.make || die "sed failed"
46 }
47
48 src_compile() {
49 OPTIONS="PLATFORM=linux PREFIX=/usr"
50 if use "parallel-build"
51 then
52 emake ${OPTIONS} C_COMPILER_OPTIMIZATION_OPTIONS="${CFLAGS}" \
53 LINKER_OPTIONS="${LDFLAGS}" \
54 HOSTSYSTEM="${CBUILD}" || die "emake failed"
55 else
56 emake -j1 ${OPTIONS} C_COMPILER_OPTIMIZATION_OPTIONS="${CFLAGS}" \
57 LINKER_OPTIONS="${LDFLAGS}" \
58 HOSTSYSTEM="${CBUILD}" || die "emake failed"
59 fi
60 }
61
62 src_install() {
63 # still can't run make in parallel for the install target
64 emake -j1 ${OPTIONS} DESTDIR="${D}" HOSTSYSTEM="${CBUILD}" \
65 LINKER_OPTIONS="${LDFLAGS}" \
66 install || die
67
68 rm "${D}"/usr/share/doc/${P}/LICENSE || die
69 dodoc NEWS || die
70 }

  ViewVC Help
Powered by ViewVC 1.1.20