# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/amrita/amrita-1.8.2-r1.ebuild,v 1.20 2008/03/26 03:34:01 ricmm Exp $ inherit ruby IUSE="doc examples" DESCRIPTION="A HTML/XHTML template library for Ruby" HOMEPAGE="http://www.brain-tokyo.jp/research/amrita/index.html" SRC_URI="http://www.brain-tokyo.jp/research/amrita/${P}.tar.gz" LICENSE="Ruby" SLOT="0" USE_RUBY="ruby18 ruby19" KEYWORDS="alpha hppa ia64 ~mips ppc ppc64 sparc x86" DEPEND=">=dev-lang/ruby-1.8.0" src_unpack(){ ruby_src_unpack } src_compile(){ ruby_econf } src_test(){ true } src_install(){ dodoc ChangeLog README README_ja RELEASENOTE MANIFEST || die "Installing documentation failed." if use doc; then dohtml -r docs/html/* || die "Installing html documentation failed." docinto "rd" dodoc docs/*.rd || die "Installing rd documentation failed." fi if use examples; then docinto "examples/bbs" dodoc sample/bbs/* docinto "examples/benchmark" dodoc sample/benchmark/* docinto "examples/cgi" dodoc sample/cgi/* docinto "examples/cgikit" dodoc sample/cgikit/* docinto "examples/hello" dodoc sample/hello/* docinto "examples/tour" dodoc sample/tour/* fi # removing processed docs rm -rf docs # removing useless index.html files rm lib/index.html lib/amrita/index.html ext/index.html bin/index.html # renaming bin's, see bug 47812 mv bin/ams bin/amrita-ams mv bin/amx bin/amrita-amx mv bin/amshandler bin/amrita-amshandler # letting install.rb take over now RUBY_ECONF="--prefix=${D}" ${RUBY} install.rb install ${RUBY_ECONF} }