diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-08-26 09:56:45 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-08-26 09:56:45 +0100 |
commit | f3471ff11210507b38c09f0e57df1bd601f629a5 (patch) | |
tree | 9931bc74efae95f78cd0270fde107c779d2dd482 /dev-ruby/excon/excon-0.102.0.ebuild | |
parent | 5e5fb5c6d1e0af4b12dbee7de7d095df902ce2b6 (diff) |
gentoo auto-resync : 26:08:2023 - 09:56:44
Diffstat (limited to 'dev-ruby/excon/excon-0.102.0.ebuild')
-rw-r--r-- | dev-ruby/excon/excon-0.102.0.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/dev-ruby/excon/excon-0.102.0.ebuild b/dev-ruby/excon/excon-0.102.0.ebuild new file mode 100644 index 000000000000..8e36cea062a2 --- /dev/null +++ b/dev-ruby/excon/excon-0.102.0.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby31 ruby32" + +RUBY_FAKEGEM_EXTRADOC="changelog.txt README.md" +RUBY_FAKEGEM_GEMSPEC="excon.gemspec" +RUBY_FAKEGEM_RECIPE_TEST="rspec3" + +inherit ruby-fakegem + +DESCRIPTION="EXtended http(s) CONnections" +HOMEPAGE="https://github.com/excon/excon" +SRC_URI="https://github.com/excon/excon/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64" +IUSE="test" +RESTRICT="!test? ( test )" + +ruby_add_bdepend " + dev-ruby/rake + test? ( + dev-ruby/activesupport + >=dev-ruby/json-1.8.5 + dev-ruby/open4 + >=dev-ruby/rack-2.2.7-r1:2.2 + dev-ruby/rdoc + dev-ruby/sinatra + dev-ruby/webrick + ) +" +all_ruby_prepare() { + sed -i -e 's/git ls-files --/find */' ${RUBY_FAKEGEM_GEMSPEC} || die + + # test that need network + rm -f spec/excon/test/server_spec.rb || die + + # tests that depend on eventmachine which is broken and no longer maintained + rm -f tests/{bad,error,pipeline,response,request}_tests.rb \ + tests/{batch-requests,complete_responses}.rb \ + tests/middlewares/{decompress,mock}_tests.rb || die + rm -f spec/requests/eof_requests_spec.rb spec/excon/error_spec.rb || die + + # Use a rackup version compatible with sinatra + sed -i -e '/launch_process/ s/"rackup"/"rackup-2"/' tests/test_helper.rb || die + sed -i -e '/open_process/ s/rackup/rackup-2/' lib/excon/test/plugin/server/webrick.rb || die +} |