--- bigloo-3.0c_p4.ebuild.orig 2010-03-12 21:58:17.000000000 +0100 +++ bigloo-3.0c_p4.ebuild 2010-03-13 00:31:26.000000000 +0100 @@ -1,4 +1,4 @@ -# Copyright 1999-2008 Gentoo Foundation +# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-scheme/bigloo/bigloo-3.0c_p4.ebuild,v 1.4 2008/08/28 17:49:25 ulm Exp $ @@ -12,9 +12,10 @@ 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="emacs java" DEPEND="emacs? ( virtual/emacs ) java? ( virtual/jdk )" @@ -23,8 +24,14 @@ SITEFILE="50bigloo-gentoo.el" -IUSE="emacs java" -# fullbee" +src_unpack() { + unpack ${A} + cd "${S}" + + sed -i -e 's/^cstrip="-s"/cstrip="no"/' \ + -e 's/STRIP=$strip/STRIP=true/' \ + configure || die +} src_compile() { if use emacs; then @@ -43,29 +50,23 @@ --benchmark=yes \ --sharedbde=no \ --sharedcompiler=no \ - --coflags="" || die "configure failed" + --coflags="" || die # --bee=$(if use fullbee; then echo full; else echo partial; fi) \ # parallel build is broken - emake -j1 || die "emake failed" + emake -j1 || die } src_install () { -# dodir /etc/env.d -# echo "LDPATH=/usr/$(get_libdir)/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 -j1 DESTDIR="${D}" install || die "install failed" + sed 's/ln -s $(DESTDIR)/ln -s /' -i Makefile.misc || die + emake -j1 DESTDIR="${D}" install || die if use emacs; then elisp-install ${PN} etc/*.{el,elc} || die "elisp-install failed" elisp-site-file-install "${FILESDIR}/${SITEFILE}" fi - -# einfo "Compiling bee..." -# emake compile-bee || die "compiling bee failed" } pkg_postinst() {