# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ # WANT_AUTOCONF="2.60" inherit eutils autotools DESCRIPTION="A tool for exporting C libraries into Scheme" HOMEPAGE="http://www.nongnu.org/g-wrap/" SRC_URI="http://download.savannah.gnu.org/releases/g-wrap/${P}.tar.gz" KEYWORDS="~amd64 ~x86" SLOT="0" LICENSE="GPL-2" IUSE="glib" DEPEND="dev-libs/libffi =dev-scheme/guile-1.6* glib? ( dev-libs/glib )" RDEPEND="${DEPEND}" src_unpack() { unpack ${A} cd "${S}" # epatch ${FILESDIR}/glib_automagic.patch eautoreconf } src_compile() { econf $(use_with glib) emake || die 'make failed' } src_install () { emake DESTDIR="${D}" install || die "make install failed" dodoc AUTHORS ChangeLog NEWS README THANKS }