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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Mon Sep 14 06:36:11 2009 UTC (5 years, 2 months ago) by araujo
Branch: MAIN
Changes since 1.5: +2 -1 lines
Version bumping
(Portage version: 2.2_rc40/cvs/Linux x86_64)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-scheme/chicken/chicken-3.3.0.ebuild,v 1.5 2009/04/18 13:11:47 maekke Exp $
4
5 inherit multilib elisp-common
6
7 DESCRIPTION="Chicken is a Scheme interpreter and native Scheme to C compiler"
8 SRC_URI="http://chicken.wiki.br/releases/${PV}/${P}.tar.gz"
9 HOMEPAGE="http://www.call-with-current-continuation.org/"
10
11 LICENSE="BSD"
12 SLOT="0"
13 KEYWORDS="alpha amd64 ppc ppc64 x86"
14 IUSE="emacs"
15
16 DEPEND=">=dev-libs/libpcre-7.6
17 sys-apps/texinfo
18 emacs? ( virtual/emacs )"
19 RDEPEND="${DEPEND}"
20
21 SITEFILE=50hen-gentoo.el
22
23 src_unpack() {
24 unpack ${A}; cd "${S}"
25 sed "s:/lib:/$(get_libdir):g" -i defaults.make
26 }
27
28 src_compile() {
29 # $A is used by the makefile so >_>
30 unset A
31
32 OPTIONS="PLATFORM=linux PREFIX=/usr USE_HOST_PCRE=1"
33 echo $OPTIONS
34 emake ${OPTIONS} C_COMPILER_OPTIMIZATION_OPTIONS="${CFLAGS}" || die
35
36 if use emacs; then
37 elisp-compile hen.el || die
38 fi
39 }
40
41 # chicken doesn't seem to honor CHICKEN_PREFIX CHICKEN_HOME or LD_LIBRARY_PATH=${S}/.libs/
42 RESTRICT=test
43 #src_test() {
44 # cd tests
45 # bash runtests.sh
46 #}
47
48 src_install() {
49 unset A
50
51 emake ${OPTIONS} DESTDIR="${D}" install || die
52 dodoc ChangeLog* NEWS
53 dohtml -r html/
54 rm -rf "${D}"/usr/share/chicken/doc
55
56 keepdir /usr/$(get_libdir)/chicken/3
57
58 if use emacs; then
59 elisp-install ${PN} hen.{el,elc} || die
60 elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die
61 fi
62 }
63
64 pkg_postinst() {
65 use emacs && elisp-site-regen
66 }
67
68 pkg_postrm() {
69 use emacs && elisp-site-regen
70 }

  ViewVC Help
Powered by ViewVC 1.1.20