# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-liquid/ruby-liquid-1.0.ebuild,v 1.1 2006/06/24 23:41:43 flameeyes Exp $ REL_P="30003" inherit ruby DESCRIPTION="Ruby Extensions Generator" HOMEPAGE="http://www.flameeyes.eu/projects#rust" SRC_URI="http://rubyforge.org/frs/download.php/${REL_P}/${P}.tar.bz2" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" IUSE="" USE_RUBY="any" src_compile() { if use doc; then emake doc || die "emake doc failed" fi } src_test() { cd "${S}/test" TMPDIR=${T} ruby testsuite.rb || die "tests failed" } src_install() { insinto /usr/include doins include/rust_conversions.hh local sitelibdir sitelibdir=`${RUBY} -rrbconfig -e 'puts Config::CONFIG["sitelibdir"]'` insinto $sitelibdir doins -r rust.rb rust use doc && dohtml -r rust-doc/* dodoc AUTHORS README }