summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2024-11-23 11:30:47 +0100
committerHans de Graaff <graaff@gentoo.org>2024-11-23 11:31:17 +0100
commit470077f1887bf6a5f8822809cab501efc87d3ac5 (patch)
tree69d85e2ecf974ea3dc9cff3e8345cf72e1c94eca /dev-ruby/sinatra
parentdev-ruby/rack-protection: add 4.1.1 (diff)
downloadgentoo-470077f1887bf6a5f8822809cab501efc87d3ac5.tar.gz
gentoo-470077f1887bf6a5f8822809cab501efc87d3ac5.tar.bz2
gentoo-470077f1887bf6a5f8822809cab501efc87d3ac5.zip
dev-ruby/sinatra: add 4.1.1
Bug: https://bugs.gentoo.org/944713 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/sinatra')
-rw-r--r--dev-ruby/sinatra/Manifest1
-rw-r--r--dev-ruby/sinatra/sinatra-4.1.1.ebuild50
2 files changed, 51 insertions, 0 deletions
diff --git a/dev-ruby/sinatra/Manifest b/dev-ruby/sinatra/Manifest
index 6b1228720fbd..18edcf277955 100644
--- a/dev-ruby/sinatra/Manifest
+++ b/dev-ruby/sinatra/Manifest
@@ -1,2 +1,3 @@
DIST sinatra-3.2.0.tar.gz 273145 BLAKE2B 5d995e3deec3ff9dfe577a7ee816b69321dbc6848e69688c2b0781fbe6440f72eb7a589e0a5609f0f747200bf634e8472006587867e47d30779eb9bdbd4e4cde SHA512 7fa684a1f7f39ad764ae1c6ad304df9020187817d9e6982c1670cb23e7ff03df1968608cfedac13442b59e13032b567e5b46ea7168015f9ff1b40d3b3d3ebd68
DIST sinatra-4.0.0.tar.gz 266936 BLAKE2B dc9c0cad00f5ffd2554acfe0dd830517c4982e836226f0bf5ac0809653d1c0868ea27de4f459565e2dca16f84e5cf017cc48bd4f86f0a3e3eedb656982a9171a SHA512 23e7ecbe75d80ff242bb06ddf28c8193a6d8f9d7d03f4885bc6c03887d3d7e4cef9d8e61ecd6b6411e863721670978ba79e257579e1f5528071fc7990d135335
+DIST sinatra-4.1.1.tar.gz 271795 BLAKE2B 6d42ccbc40a3c4df6902a5be78749136ac4dd84149d3d4a748fbe71f8cf882785645a98b735cb899833145f967282b57f0e295e4f35c516daa212175e3f31325 SHA512 d9022acc28048f6424f077216bfc620000887afdc5fb34152610d3f0a5139cea367a165cb6caa1e0b1f02fb8328b563d6993f16419d798bde50e45450b558f2d
diff --git a/dev-ruby/sinatra/sinatra-4.1.1.ebuild b/dev-ruby/sinatra/sinatra-4.1.1.ebuild
new file mode 100644
index 000000000000..43474d8fc991
--- /dev/null
+++ b/dev-ruby/sinatra/sinatra-4.1.1.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby31 ruby32 ruby33"
+
+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="doc test"
+
+ruby_add_rdepend "
+ >=dev-ruby/logger-1.6.0
+ dev-ruby/mustermann:3
+ || ( dev-ruby/rack:3.1 dev-ruby/rack:3.0 )
+ ~dev-ruby/rack-protection-${PV}
+ dev-ruby/rack-session:2
+ dev-ruby/tilt:2"
+
+# dev-ruby/haml is an optional test dependency, but it will lead to
+# circular dependencies so we don't require it for tests.
+ruby_add_bdepend "
+ test? (
+ dev-ruby/builder
+ dev-ruby/erubi
+ >=dev-ruby/rack-test-0.5.6
+ dev-ruby/rackup
+ dev-ruby/activesupport
+ www-servers/puma
+ )
+"
+ruby_add_bdepend "doc? ( dev-ruby/yard )"
+
+all_ruby_prepare() {
+ sed -i \
+ -e "/require 'rack'/igem 'rack', '~> 3.0.0'" \
+ test/test_helper.rb || die
+}