1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 USE_RUBY="ruby24 ruby25 ruby26"
7 RUBY_FAKEGEM_RECIPE_TEST="rspec3"
9 RUBY_FAKEGEM_EXTRADOC="README.md CHANGELOG.md"
11 RUBY_FAKEGEM_EXTRAINSTALL="data"
15 DESCRIPTION="A replacement for the URI implementation that is part of Ruby's standard library"
16 HOMEPAGE="https://rubygems.org/gems/addressable https://github.com/sporkmonger/addressable"
21 KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
24 ruby_add_rdepend "|| ( dev-ruby/public_suffix:4 dev-ruby/public_suffix:3 )"
26 ruby_add_bdepend "test? ( dev-ruby/rspec-its )"
29 # Remove spec-related tasks so that we don't need to require rspec
30 # just to build the documentation, bug 383611.
31 sed -i -e '/spectask/d' Rakefile || die
32 rm -f tasks/rspec.rake || die
33 sed -i -e '/bundler/ s:^:#:' \
34 -e '/^begin/,/^end/ s:^:#:' \
35 spec/spec_helper.rb || die
37 # Remove specs requiring network connectivity
38 rm -f spec/addressable/net_http_compat_spec.rb || die
40 # Remove spec that tests against an unreleased github fork
41 rm -f spec/addressable/rack_mount_compat_spec.rb || die