--- bigloo-3.2b_p2.ebuild.orig 2010-03-13 00:43:43.000000000 +0100 +++ bigloo-3.2b_p2.ebuild.orig 2010-03-13 00:43:52.000000000 +0100 @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-scheme/bigloo/bigloo-3.2b_p2.ebuild,v 1.2 2010/01/31 19:46:55 tove Exp $ -inherit elisp-common multilib eutils +inherit elisp-common eutils multilib MY_P=${PN}${PV/_p/-} MY_P=${MY_P/_alpha/-alpha} @@ -12,22 +12,29 @@ 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" +SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" +IUSE="bee emacs java" # bug 254916 for >=dev-libs/boehm-gc-7.1 DEPEND=">=dev-libs/boehm-gc-7.1 emacs? ( virtual/emacs ) java? ( virtual/jdk app-arch/zip )" - RDEPEND="dev-libs/boehm-gc" -S=${WORKDIR}/${MY_P%-*} +S=${WORKDIR}/${PN}${PV/_*/} SITEFILE="50bigloo-gentoo.el" -IUSE="bee emacs java" +src_unpack() { + unpack ${A} + cd "${S}" + + sed -i -e 's/^cstrip="-s"/cstrip="no"/' \ + -e 's/STRIP=$strip/STRIP=true/' \ + configure || die +} src_compile() { # Bigloo doesn't use autoconf and consequently a lot of options used by econf give errors @@ -46,7 +53,8 @@ --coflags="" \ --bee=$(if use bee; then echo full; else echo partial; fi) - emake || die "emake failed" + #CL sed -i -e 's/^STRIP=.*/STRIP=true/' Makefile.config || die + emake || die if use bee; then einfo "Compiling bee..." @@ -65,7 +73,7 @@ } src_install() { - emake DESTDIR="${D}" install || die "install failed" + emake DESTDIR="${D}" install || die if use bee; then emake DESTDIR="${D}" install-bee || die