# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit flag-o-matic eutils autotools DESCRIPTION="Yet another Ruby VM" HOMEPAGE="http://www.atdot.net/yarv/" SRC_URI="http://www.atdot.net/yarv/${P}.tar.gz" LICENSE="Ruby" SLOT="0" KEYWORDS="~x86" IUSE="doc" DEPEND="dev-lang/ruby" RDEPEND="" S="${WORKDIR}/${P}" src_unpack() { unpack ${A} cd ${S} eautoreconf || die "autoconf failed." } src_compile() { cd ${S} sed -i -e s/\|#_\!\!_#\|//g configure econf --program-suffix=-yarv \ $(use_enable doc install-doc) \ || die "econf failed." emake || die "emake failed." } src_install() { cd ${S} make DESTDIR=${D} install || die "make install failed." if use doc; then make DESTDIR=${D} install-doc || die "make install failed." fi dodoc README ToDo ChangeLog }