diff options
author | Hans de Graaff <graaff@gentoo.org> | 2023-08-12 08:50:39 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2023-08-12 09:21:26 +0200 |
commit | 5c2c5a4a752a02a399151e941d96e6ad2ede9f51 (patch) | |
tree | 321fd45d3b6b9188e055a21bfc0093886d92b70e /dev-ruby | |
parent | dev-ruby/rack-protection: add 3.1.0 (diff) | |
download | gentoo-5c2c5a4a752a02a399151e941d96e6ad2ede9f51.tar.gz gentoo-5c2c5a4a752a02a399151e941d96e6ad2ede9f51.tar.bz2 gentoo-5c2c5a4a752a02a399151e941d96e6ad2ede9f51.zip |
dev-ruby/sinatra: add 3.1.0
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/sinatra/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/sinatra/sinatra-3.1.0.ebuild | 48 |
2 files changed, 49 insertions, 0 deletions
diff --git a/dev-ruby/sinatra/Manifest b/dev-ruby/sinatra/Manifest index eea272e22c17..091ea4fbb4fc 100644 --- a/dev-ruby/sinatra/Manifest +++ b/dev-ruby/sinatra/Manifest @@ -1,3 +1,4 @@ DIST sinatra-2.2.3.tar.gz 513333 BLAKE2B 925b3188cb3f63d58a1078845bf58c6684e176527f29bdb0507e2185613b35930345ef1143319b3bd53170846cc67c8e8ce92b036e39ad03fee0f4f361a2aeaf SHA512 666b7a7fec67b4976ec10a704f1e98f9e815cad887ecaaf5bdee6cb0b5f4e29d99ef806865bc5b8e61d2aedea5b343c14f342d03515f0f6c68de3dc905fe77a1 DIST sinatra-3.0.5.tar.gz 266205 BLAKE2B 16e0631ed49e62610c7bc1e43f03f21f57ee968b0f3ac98b599748e9572cc0bfc9121dc8731a0dcc9dd1bce04837373f93f198bff56c0de9f50932711b4040e8 SHA512 9ec41c3f0c4e4faaa181fddb2fe3262796a29e93fc07349422ca20dc845632c127c3e82e67f16ca19d2b2bcd43ad48fdca918d70b6747d8a2088ce1c84fd8eb2 DIST sinatra-3.0.6.tar.gz 268815 BLAKE2B 2993a4c28ad4559e65e6e0dc4e5f9bc25f4118f1f0d5462e0469808e873197823a13f682abb4762426860322df4408faddde037f120d370d0e206abc2b1753ef SHA512 83643b634d2a992144ced65fc1466fded29bf6fae2e20f359b2d440c46013df26f4595f842cbed36319c5278beb77383eea6ac6eb4281f508501cee4e1c6e67a +DIST sinatra-3.1.0.tar.gz 272066 BLAKE2B 4bae4e3356adaec8f347dfc25ab9311f6740ff4f5c1486c7230269df0154e8127a4f61f6ebf47098f24848381a6e8e82429184c431cfb89c8beb9e4838135456 SHA512 b0b82a5319caf5768c830b2929f76a4fc9414adff4c32d6723a439747f756d2467c12b1391557a1afe31e5f8eab99872a51dadb59cf1cf8ace373e7a92dd5eb2 diff --git a/dev-ruby/sinatra/sinatra-3.1.0.ebuild b/dev-ruby/sinatra/sinatra-3.1.0.ebuild new file mode 100644 index 000000000000..685935e657d0 --- /dev/null +++ b/dev-ruby/sinatra/sinatra-3.1.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby30 ruby31 ruby32" + +RUBY_FAKEGEM_TASK_TEST="MT_NO_PLUGINS=true test:core" + +RUBY_FAKEGEM_EXTRADOC="README.md AUTHORS.md CHANGELOG.md" + +RUBY_FAKEGEM_GEMSPEC="sinatra.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="A DSL for quickly creating web applications in Ruby with minimal effort" +HOMEPAGE="https://sinatrarb.com/" +SRC_URI="https://github.com/sinatra/sinatra/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="$(ver_cut 1)" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="" + +ruby_add_rdepend " + dev-ruby/mustermann:3 + >=dev-ruby/rack-2.2.4:2.2 + ~dev-ruby/rack-protection-${PV} + dev-ruby/tilt:2" +ruby_add_bdepend " + test? ( + dev-ruby/builder + dev-ruby/erubi + dev-ruby/haml + >=dev-ruby/rack-test-0.5.6 + <dev-ruby/activesupport-7 + ) +" +ruby_add_bdepend "doc? ( dev-ruby/yard )" + +all_ruby_prepare() { + sed -i \ + -e "/require 'rack'/igem 'rack', '~> 2.2', '>= 2.2.4'" \ + -e '/active_support\/core_ext\/hash/igem "activesupport", "<7"' \ + test/test_helper.rb || die + + # Avoid spec broken by newer rack versions, already removed upstream. + sed -i -e 's/"bytes=IV-LXVI", //' test/static_test.rb || die +} |