blob: 8425da62ded8715e5d60ab9c5cc53903edbca01c (
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
79
80
81
82
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-scheme/bigloo/bigloo-2.7a_p2.ebuild,v 1.6 2008/08/28 17:49:25 ulm 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="amd64 x86"
IUSE="java emacs"
DEPEND=">=sys-apps/sed-4
emacs? ( virtual/emacs )
java? ( virtual/jdk app-arch/zip )"
S=${WORKDIR}/${MY_P}
SITEFILE="50bigloo-gentoo.el"
src_compile() {
local myconf="--dotnet=no --lispdir=/usr/share/emacs/site-lisp/bigloo --tmpdir=/tmp"
local myjava=`java-config --java`
local myjavac=`java-config --javac`
use java &&
myconf="$myconf --jvm=force --java=$myjava --javac=$myjavac" \
|| myconf="$myconf --jvm=no"
./configure \
--native=yes \
--cflags="${CFLAGS} -fno-reorder-blocks" \
--prefix=/usr \
--infodir=/usr/share/info \
--mandir=/usr/share/man/man1 \
--docdir=/usr/share/doc/${PF} \
--tmp=/tmp \
$myconf || die "./configure failed"
echo LD_LIBRARY_PATH=${S}/lib/${PV} >> Makefile.config
sed -i "s/JCFLAGS=-O/JCFLAGS=/" Makefile.config || die
sed -i "s/\$(BOOTBINDIR)\/afile jas/LD_LIBRARY_PATH=\$(LD_LIBRARY_PATH) \$(BOOTBINDIR)\/afile jas/" \
bde/Makefile || die
make || die
if use emacs; then
elisp-compile etc/*.el || die "elisp-compile failed"
fi
}
src_install () {
dodir /usr/bin
dodir /usr/share/doc/${PF}
dodir /usr/share/man/man1
dodir /usr/share/info
dodir /etc/env.d
echo "LDPATH=/usr/lib/bigloo/${PV}/" \
> ${D}/etc/env.d/25bigloo
make DESTDIR=${D} install || die
if use emacs; then
elisp-install bigloo etc/*.{el,elc}
elisp-site-file-install ${FILESDIR}/${SITEFILE}
fi
}
pkg_postinst() {
use emacs && elisp-site-regen
}
pkg_postrm() {
use emacs && elisp-site-regen
}
|