blob: 38a44f9c2d37703fe4c566ef2cfef59a1329f7b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/net-dns/net-dns-0.8.0.ebuild,v 1.1 2013/05/09 06:58:03 graaff Exp $
EAPI=5
USE_RUBY="ruby18 ruby19 jruby"
RUBY_FAKEGEM_TASK_DOC="yardoc"
RUBY_FAKEGEM_DOCDIR="doc"
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md THANKS.rdoc"
inherit ruby-fakegem
DESCRIPTION="DNS resolver in pure Ruby"
HOMEPAGE="http://net-dns.rubyforge.org/"
LICENSE="Ruby"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc"
ruby_add_bdepend "doc? ( dev-ruby/yard )"
all_ruby_prepare() {
sed -i -e '/bundler/d' Rakefile || die
sed -i -e '/git ls-files/d' Rakefile || die
}
each_ruby_prepare() {
case ${RUBY} in
*jruby)
# Avoid failing test due to a jruby bug
# https://github.com/jruby/jruby/issues/310
sed -i -e '67 s:^:#:' test/rr/aaaa_test.rb || die
;;
*)
;;
esac
}
all_ruby_install() {
all_fakegem_install
docinto examples
dodoc demo/* || die
}
|