# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-scheme/gauche/gauche-0.9.2.ebuild,v 1.1 2011/08/13 07:29:17 hattya Exp $ EAPI="4" inherit autotools eutils MY_P="${P/g/G}" DESCRIPTION="A Unix system friendly Scheme Interpreter" HOMEPAGE="http://practical-scheme.net/gauche/" SRC_URI="mirror://sourceforge/gauche/${MY_P}.tgz" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-macos" IUSE="ipv6" RDEPEND="sys-libs/gdbm" DEPEND="${RDEPEND}" S="${WORKDIR}/${MY_P}" src_prepare() { epatch "${FILESDIR}"/${PN}-rpath.diff epatch "${FILESDIR}"/${PN}-gauche.m4.diff epatch "${FILESDIR}"/${PN}-ext-ldflags.diff epatch "${FILESDIR}"/${PN}-xz-info.diff eautoconf } src_configure() { econf \ $(use_enable ipv6) \ --with-slib="${EPREFIX}"/usr/share/slib } src_compile() { emake -j1 } src_test() { emake -j1 -s check } src_install() { emake DESTDIR="${D}" install-pkg install-doc dodoc AUTHORS ChangeLog HACKING README }