blob: e70e04f4f096e5892241747e110c66796380e48d (
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-scheme/bigloo/bigloo-2.9a.ebuild,v 1.1 2007/02/15 14:28:44 hkbst Exp $
inherit elisp-common
MY_P=${PN}${PV/_p/-r}
DESCRIPTION="Bigloo is a Scheme implementation."
HOMEPAGE="http://www-sop.inria.fr/mimosa/fp/Bigloo/bigloo.html"
SRC_URI="ftp://ftp-sop.inria.fr/mimosa/fp/Bigloo/${MY_P}.tar.gz"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~x86 ~amd64"
DEPEND="emacs? ( virtual/emacs )"
S=${WORKDIR}/${MY_P}
SITEFILE="50bigloo-gentoo.el"
IUSE="emacs"
# fullbee"
src_compile() {
use emacs && elisp-comp etc/*.el
# Bigloo doesn't use autoconf and consequently a lot of options used by econf give errors
# Manuel Serrano says: "Please, dont talk to me about autoconf. I simply dont want to hear about it..."
./configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --libdir=/usr/lib \
--docdir=/usr/share/doc/${PF} \
--benchmark=yes \
--sharedbde=no \
--sharedcompiler=no \
--coflags="" || die "configure failed"
# --bee=$(if use fullbee; then echo full; else echo partial; fi) \
# parallel build is broken
emake -j1 || die "emake failed"
}
# make test does something weird so default src_test() in /usr/lib/portage/bin/ebuild.sh fails the following test
# elif emake -j1 test -n &> /dev/null; then
# so copy straight from default src_test() all the stuff which depends on that test passing
src_test() {
vecho ">>> Test phase [test]: ${CATEGORY}/${PF}"
if ! emake -j1 test; then
hasq test $FEATURES && die "Make test failed. See above for details."
hasq test $FEATURES || eerror "Make test failed. See above for details."
fi
}
src_install () {
# dodir /etc/env.d
# echo "LDPATH=/usr/lib/bigloo/${PV}/" > ${D}/etc/env.d/25bigloo
# make the links created not point to DESTDIR, since that is only a temporary home
sed 's/ln -s $(DESTDIR)/ln -s /' -i Makefile.misc
emake DESTDIR=${D} install || die "install failed"
if use emacs; then
elisp-install ${PN} etc/*.el
elisp-site-file-install "${FILESDIR}/${SITEFILE}"
fi
# einfo "Compiling bee..."
# emake compile-bee || die "compiling bee failed"
}
pkg_postinst() {
use emacs && elisp-site-regen
}
pkg_postrm() {
use emacs && elisp-site-regen
}
|