| 1 |
# Copyright 1999-2010 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-scheme/bigloo/bigloo-3.0c_p4.ebuild,v 1.6 2010/04/18 16:11:39 chiiph Exp $
|
| 4 |
|
| 5 |
EAPI="2"
|
| 6 |
|
| 7 |
inherit elisp-common multilib java-pkg-opt-2
|
| 8 |
|
| 9 |
MY_P=${PN}${PV/_p/-}
|
| 10 |
MY_P=${MY_P/_alpha/-alpha}
|
| 11 |
MY_P=${MY_P/_beta/-beta}
|
| 12 |
|
| 13 |
DESCRIPTION="Bigloo is a Scheme implementation."
|
| 14 |
HOMEPAGE="http://www-sop.inria.fr/mimosa/fp/Bigloo/bigloo.html"
|
| 15 |
SRC_URI="ftp://ftp-sop.inria.fr/mimosa/fp/Bigloo/${MY_P}.tar.gz"
|
| 16 |
|
| 17 |
SLOT="0"
|
| 18 |
LICENSE="GPL-2"
|
| 19 |
KEYWORDS="amd64 ppc x86"
|
| 20 |
|
| 21 |
DEPEND="emacs? ( virtual/emacs )
|
| 22 |
java? ( >=virtual/jdk-1.5 )"
|
| 23 |
|
| 24 |
RDEPEND="${DEPEND}
|
| 25 |
java? ( >=virtual/jre-1.5 )"
|
| 26 |
|
| 27 |
S=${WORKDIR}/${MY_P%-*}
|
| 28 |
|
| 29 |
SITEFILE="50bigloo-gentoo.el"
|
| 30 |
|
| 31 |
IUSE="emacs java"
|
| 32 |
# fullbee"
|
| 33 |
|
| 34 |
src_prepare() {
|
| 35 |
sed -i -e 's/^cstrip="-s"/cstrip="no"/' \
|
| 36 |
-e 's/STRIP=$strip/STRIP=true/' \
|
| 37 |
configure || die
|
| 38 |
}
|
| 39 |
|
| 40 |
src_configure() {
|
| 41 |
# Bigloo doesn't use autoconf and consequently a lot of options used by econf give errors
|
| 42 |
# Manuel Serrano says: "Please, dont talk to me about autoconf. I simply dont want to hear about it..."
|
| 43 |
./configure \
|
| 44 |
$(use java && echo "--jvm=yes --java=$(java-config --java) --javac=$(java-config --javac)") \
|
| 45 |
--prefix=/usr \
|
| 46 |
--mandir=/usr/share/man \
|
| 47 |
--infodir=/usr/share/info \
|
| 48 |
--libdir=/usr/$(get_libdir) \
|
| 49 |
--docdir=/usr/share/doc/${PF} \
|
| 50 |
--benchmark=yes \
|
| 51 |
--sharedbde=no \
|
| 52 |
--sharedcompiler=no \
|
| 53 |
--coflags="" || die "configure failed"
|
| 54 |
|
| 55 |
# --bee=$(if use fullbee; then echo full; else echo partial; fi) \
|
| 56 |
|
| 57 |
}
|
| 58 |
|
| 59 |
src_compile() {
|
| 60 |
if use emacs; then
|
| 61 |
elisp-compile etc/*.el || die "elisp-compile failed"
|
| 62 |
fi
|
| 63 |
|
| 64 |
# parallel build is broken
|
| 65 |
emake -j1 || die "emake failed"
|
| 66 |
}
|
| 67 |
|
| 68 |
src_install () {
|
| 69 |
# dodir /etc/env.d
|
| 70 |
# echo "LDPATH=/usr/$(get_libdir)/bigloo/${PV}/" > ${D}/etc/env.d/25bigloo
|
| 71 |
|
| 72 |
# make the links created not point to DESTDIR, since that is only a temporary home
|
| 73 |
sed 's/ln -s $(DESTDIR)/ln -s /' -i Makefile.misc
|
| 74 |
emake -j1 DESTDIR="${D}" install || die "install failed"
|
| 75 |
|
| 76 |
if use emacs; then
|
| 77 |
elisp-install ${PN} etc/*.{el,elc} || die "elisp-install failed"
|
| 78 |
elisp-site-file-install "${FILESDIR}/${SITEFILE}"
|
| 79 |
fi
|
| 80 |
|
| 81 |
# einfo "Compiling bee..."
|
| 82 |
# emake compile-bee || die "compiling bee failed"
|
| 83 |
}
|
| 84 |
|
| 85 |
pkg_postinst() {
|
| 86 |
use emacs && elisp-site-regen
|
| 87 |
}
|
| 88 |
|
| 89 |
pkg_postrm() {
|
| 90 |
use emacs && elisp-site-regen
|
| 91 |
}
|