summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-ruby/rack/Manifest1
-rw-r--r--dev-ruby/rack/rack-3.0.9.1.ebuild45
2 files changed, 46 insertions, 0 deletions
diff --git a/dev-ruby/rack/Manifest b/dev-ruby/rack/Manifest
index aa24bda9f129..cefe671d7bac 100644
--- a/dev-ruby/rack/Manifest
+++ b/dev-ruby/rack/Manifest
@@ -1,4 +1,5 @@
DIST rack-2.2.8.1.tar.gz 279646 BLAKE2B 2e466bb3052266fa3cba5551af128d6723d9acd281962bbc84cb6c4c9a0aaaf018417c5549ae9cd8ae74df12726e1d62346b22cc1217248be488a63449cf870d SHA512 3dc99071ff5e68954824e6af57524222d4f0014e1cdf04dafc2131e5a2c208c6aa925a2ad053e2d26204383b20395ab499e8236a1d92c8c4e7d7959225bd5dc6
DIST rack-2.2.8.tar.gz 279555 BLAKE2B 798d6d1e0877a895c0b4d33c5dc20e6cfab88745abd4cb76166484df355b283a9e842791b0d874c53ffb8600258d169e24a4570850f4f0994b596c6ebf76937e SHA512 e3055483c8f6f7a9a6aeb5654865a004b02bef781dd95072b84402a98549c13c66b5591b25b1a35fb6915af4b39adf88aa716e3edef7d0e41dbebf2a2a79ffcb
DIST rack-3.0.8.tar.gz 788610 BLAKE2B 9a591242e37f10021a2779bc495ab0ef954eb6474efe279f2bc6417e4255d83a92f156a9bc52fe90c098dc23c26eddf802119fdcd739a05332bc398db1c12456 SHA512 045a1de846e984d2067ce647d0b3652c810a264fa4f84e9791a623ac5c5cfa5ab4b961c4cb0328b51a71f66082190741dbaac3f4dbafad7c5a8e97a71b169448
+DIST rack-3.0.9.1.tar.gz 789318 BLAKE2B 300be59512a1497b832fe553ae9d957e380c5399707c891b67a950db32682ee8e2539dab02e656fdc855a8c821d7a5d8674b9208d4cc701f534eb8f1a8767fcf SHA512 0aacf814463dc03a95aaa7ec979caf3464d9e19d5ab9c3842978c2c94b81e8b2ed040f3f4028fd046c73e0632ee7754755cd35afc81ca47e22d43d4882086dc0
DIST rack-3.0.9.tar.gz 789232 BLAKE2B b71eb67ff796a1389bba79c3132608bec30a65d44fa8dd302a5c4e40a42b30b0284aeea6b0b5a1c73ec823e134c25ce426375bfa8772242a8f6b05a4187ee36b SHA512 0a69f4755119aae5c6e0ab8b1541eade221a701a9cdba3b10afd2bbd2a37e8b0faa80aad92304cf29793b2536b05e8a5ae3c0e0e986b021af1566bda8d387353
diff --git a/dev-ruby/rack/rack-3.0.9.1.ebuild b/dev-ruby/rack/rack-3.0.9.1.ebuild
new file mode 100644
index 000000000000..34788801390b
--- /dev/null
+++ b/dev-ruby/rack/rack-3.0.9.1.ebuild
@@ -0,0 +1,45 @@
+# 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_DOCDIR="doc"
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md SECURITY.md SPEC.rdoc UPGRADE-GUIDE.md"
+
+RUBY_FAKEGEM_GEMSPEC="rack.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="A modular Ruby webserver interface"
+HOMEPAGE="https://github.com/rack/rack"
+SRC_URI="https://github.com/rack/rack/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="$(ver_cut 1-2)"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+IUSE="test"
+
+ruby_add_rdepend "virtual/ruby-ssl"
+
+ruby_add_bdepend "test? (
+ dev-ruby/minitest:5
+ dev-ruby/minitest-global_expectations
+ dev-ruby/webrick
+)"
+
+# The gem has automagic dependencies over mongrel, ruby-openid,
+# memcache-client, thin, mongrel and camping; not sure if we should
+# make them dependencies at all.
+
+all_ruby_prepare() {
+ # The build system tries to generate the ChangeLog from git. Create
+ # an empty file to avoid a needless dependency on git.
+ touch ChangeLog || die
+
+ sed -i -e "s:require_relative ':require './:" rack.gemspec || die
+}
+
+each_ruby_test() {
+ ${RUBY} -Ilib:test:. -e "require 'test/gemloader.rb'; Dir['test/spec_*.rb'].each{|f| require f}" || die
+}