blob: 2a5e0349e139c8fa2a323bb31233e10fcb2a6ddc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-scheme/chicken/chicken-2.2.ebuild,v 1.1 2005/09/30 18:57:58 mkennedy Exp $
inherit multilib elisp-common
DESCRIPTION="Chicken is a Scheme interpreter and native Scheme to C compiler"
SRC_URI="http://www.call-with-current-continuation.org/${P}.tar.gz"
HOMEPAGE="http://www.call-with-current-continuation.org/"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="emacs"
DEPEND="dev-libs/libpcre
emacs? ( virtual/emacs )"
SITEFILE=50hen-gentoo.el
src_compile() {
./configure \
--host=${CHOST} \
--prefix=/usr \
--libdir=/usr/$(get_libdir) \
--infodir=/usr/share/info \
--mandir=/usr/share/man || die "./configure failed"
make || die
make check || die
use emacs && elisp-comp hen.el
}
src_install () {
make DESTDIR=${D} install || die
dodoc ChangeLog* README NEWS TASKS
dohtml chicken.html
rm -rf ${D}/usr/share/chicken/doc
if use emacs; then
elisp-install ${PN} *.{el,elc}
elisp-site-file-install ${FILESDIR}/${SITEFILE}
fi
}
pkg_postinst() {
use emacs && elisp-site-regen
}
pkg_postrm() {
use emacs && elisp-site-regen
}
|