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

Contents of /dev-scheme/chicken/chicken-4.7.3-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Dec 10 13:41:55 2011 UTC (2 years, 9 months ago) by maksbotan
Branch: MAIN
Fix bug #393561 with  variable. Delete some old versions. Thanks to Erik Falor <ewfalor@gmail.com>

(Portage version: 2.1.10.39/cvs/Linux x86_64)

1 # Copyright 1999-2011 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/dev-snapshots/2011/08/17/${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 src_prepare() {
23 if use "parallel-build"
24 then
25 epatch "${FILESDIR}"/${P}-parallel-build.patch
26 fi
27
28 #Because chicken's Upstream is in the habit of using variables that
29 #portage also uses :( eg. $ARCH and $A
30 for f in defaults.make Makefile.bsd Makefile.cross-linux-mingw Makefile.cygwin \
31 Makefile.linux Makefile.macosx Makefile.mingw-msys Makefile.solaris \
32 rules.make
33 do
34 sed "s,ARCH,zARCH," -i ${f} || die "sed failed"
35 # bug #393561: installs /usr/lib/libchickenchicken-4.7.3.tar.gz (portage pollutes ${A} variable)
36 sed 's,A\(\s?=\|)\),chicken&,p' -i ${f} || die "sed failed"
37 done
38
39 sed "s,\$(PREFIX)/lib,\$(PREFIX)/$(get_libdir)," -i defaults.make || die "sed failed"
40 sed "s,\$(DATADIR)/doc,\$(SHAREDIR)/doc/${P}," -i defaults.make || die "sed failed"
41 }
42
43 src_compile() {
44 OPTIONS="PLATFORM=linux PREFIX=/usr"
45 if use "parallel-build"
46 then
47 ewarn "You enabled parralel-build use flag. This feature is still"
48 ewarn "in testing, try without it before filing bugs"
49 emake ${OPTIONS} C_COMPILER_OPTIMIZATION_OPTIONS="${CFLAGS}" \
50 HOSTSYSTEM="${CBUILD}" || die "emake failed"
51 else
52 emake -j1 ${OPTIONS} C_COMPILER_OPTIMIZATION_OPTIONS="${CFLAGS}" \
53 HOSTSYSTEM="${CBUILD}" || die "emake failed"
54 fi
55 }
56
57 # chicken's testsuite is not runnable before install
58 # upstream has been notified of the issue
59 RESTRICT=test
60
61 src_install() {
62 # still can't run make in parallel for the install target
63 emake -j1 ${OPTIONS} DESTDIR="${D}" HOSTSYSTEM="${CBUILD}" install || die
64
65 rm "${D}"/usr/share/doc/${P}/LICENSE || die
66 dodoc NEWS || die
67 }

  ViewVC Help
Powered by ViewVC 1.1.20