| 1 |
# Copyright 1999-2012 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/loquacious/loquacious-1.9.1.ebuild,v 1.2 2012/02/02 22:02:19 tomka Exp $ |
| 4 |
|
| 5 |
EAPI=4 |
| 6 |
|
| 7 |
USE_RUBY="ruby18 ruby19 jruby ree18" |
| 8 |
|
| 9 |
RUBY_FAKEGEM_RECIPE_TEST="rspec" |
| 10 |
|
| 11 |
RUBY_FAKEGEM_TASK_DOC="" |
| 12 |
RUBY_FAKEGEM_DOCDIR="doc" |
| 13 |
|
| 14 |
RUBY_FAKEGEM_EXTRADOC="History.txt README.rdoc" |
| 15 |
|
| 16 |
inherit ruby-fakegem |
| 17 |
|
| 18 |
DESCRIPTION="Descriptive configuration files for Ruby written in Ruby" |
| 19 |
HOMEPAGE="http://github.com/TwP/${PN}" |
| 20 |
|
| 21 |
IUSE="" |
| 22 |
LICENSE="MIT" |
| 23 |
SLOT="0" |
| 24 |
KEYWORDS="~amd64 ~x86" |
| 25 |
|
| 26 |
all_ruby_prepare() { |
| 27 |
# Remove metadata because it confuses jruby. |
| 28 |
rm ../metadata || die |
| 29 |
} |
| 30 |
|
| 31 |
all_ruby_compile() { |
| 32 |
if use doc; then |
| 33 |
rdoc lib || die "Documentation generation failed." |
| 34 |
fi |
| 35 |
} |
| 36 |
|
| 37 |
all_ruby_install() { |
| 38 |
all_fakegem_install |
| 39 |
|
| 40 |
docinto examples |
| 41 |
dodoc examples/* |
| 42 |
} |