diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-04-28 20:02:04 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-04-28 20:02:04 +0100 |
commit | a4e2a46beb5e4858ef27bdedbb0ff6d2ced430ad (patch) | |
tree | 852c90a4bf354c30ea66504f70bfab5401fba18d /dev-ruby/fakeweb/fakeweb-1.3.0.20170806.ebuild | |
parent | 5e8702bcbbed438e6c6cce023e7ef0cc9baa3e02 (diff) |
gentoo resync : 28.04.2018
Diffstat (limited to 'dev-ruby/fakeweb/fakeweb-1.3.0.20170806.ebuild')
-rw-r--r-- | dev-ruby/fakeweb/fakeweb-1.3.0.20170806.ebuild | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/dev-ruby/fakeweb/fakeweb-1.3.0.20170806.ebuild b/dev-ruby/fakeweb/fakeweb-1.3.0.20170806.ebuild new file mode 100644 index 000000000000..8c53e00193b5 --- /dev/null +++ b/dev-ruby/fakeweb/fakeweb-1.3.0.20170806.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +USE_RUBY="ruby22 ruby23 ruby24 ruby25" + +RUBY_FAKEGEM_RECIPE_DOC="rdoc" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG README.rdoc" + +COMMIT=2b08c1ff2714ec13a12f3497d67fcefce95c2cbe + +inherit ruby-fakegem + +DESCRIPTION="Helper for faking web requests in Ruby" +HOMEPAGE="https://github.com/chrisk/fakeweb" +SRC_URI="https://github.com/chrisk/fakeweb/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" +RUBY_S="${PN}-${COMMIT}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86" +IUSE="" + +ruby_add_bdepend " + test? ( + dev-ruby/mocha + dev-ruby/test-unit + )" + +all_ruby_prepare() { + # The package bundles samuel and right_http_connection, remove + # them + rm -r test/vendor || die "failed to remove bundled gems" + + # We don't package sdoc and we don't have the direct template. + sed -i -e 's/sdoc/rdoc/' -e '/template/d' Rakefile || die + + # Use the test-unit gem to make jruby compatible with newer mocha. + sed -i -e '1igem "test-unit"' \ + -e '/bundler/I s:^:#:' \ + -e '/simplecov/ s:^:#:' test/test_helper.rb || die + + # Avoid test dependencies on unmaintained packages that no longer work + rm test/test_other_net_http_libraries.rb || die + + sed -i -e '/test:preflight/ s:^:#:' Rakefile || die +} |