# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit flag-o-matic eutils DESCRIPTION="Yet another Ruby VM" HOMEPAGE="http://www.atdot.net/yarv/" SRC_URI="http://www.atdot.net/~ko1/archive/yarv-latest.tar.gz" LICENSE="Ruby" SLOT="0" KEYWORDS="~x86" IUSE="doc" DEPEND="dev-lang/ruby" RDEPEND="!=sys-devel/autoconf-wrapper-3.2-r2" S="${WORKDIR}/yarv-r*" src_unpack() { unpack ${A} cd ${S} autoconf || die "autconf failed." } src_compile() { cd ${S} 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 }