summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2024-03-21 07:39:03 +0100
committerHans de Graaff <graaff@gentoo.org>2024-03-21 07:42:05 +0100
commitf78b8933b0b27d4c94ac2d3f48e8d26196056f86 (patch)
tree74aebe4bbfac9aad0e18ff6be2fbe0ced32e1952 /dev-ruby
parentdev-ruby/rdoc: add 6.6.3.1 (diff)
downloadgentoo-f78b8933b0b27d4c94ac2d3f48e8d26196056f86.tar.gz
gentoo-f78b8933b0b27d4c94ac2d3f48e8d26196056f86.tar.bz2
gentoo-f78b8933b0b27d4c94ac2d3f48e8d26196056f86.zip
dev-ruby/rack: add 2.2.9, 3.0.10
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/rack/Manifest2
-rw-r--r--dev-ruby/rack/rack-2.2.9.ebuild57
-rw-r--r--dev-ruby/rack/rack-3.0.10.ebuild45
3 files changed, 104 insertions, 0 deletions
diff --git a/dev-ruby/rack/Manifest b/dev-ruby/rack/Manifest
index cefe671d7bac..cfbd893f1d2c 100644
--- a/dev-ruby/rack/Manifest
+++ b/dev-ruby/rack/Manifest
@@ -1,5 +1,7 @@
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-2.2.9.tar.gz 280594 BLAKE2B 669eb4b979183a23474600003f18580e8f3ccfe9677db0c5e93a86f1f6c00cfdecf1e0481249199470dbb1ae3423c2e883cd8149d7fc65c5e8be88a83473aa32 SHA512 a9d6fdeb5603217a0208d383875613b86072da44e14b0e6ce0811ec55b80a0abd7448bd8f0c94bfef900fcd632e85228d74094efd88c829ebd6c565076ff47f8
+DIST rack-3.0.10.tar.gz 789469 BLAKE2B 2c9781301034f30524243727ada5450f613d474210f4f0edbafec994fd6705b8e777295e3066b4a5f698065ffa57c0d0a2bd75450c07047fd6313b5df70e4fad SHA512 9f165fb81c648cdcf973ad0e03a8ffcf0785dbdaf063f11b0b8c3a124af5765b9dfde57f728d1e13b50c3f9efa375fe7e0b7b0f2c044e7a074ab96d577021c98
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-2.2.9.ebuild b/dev-ruby/rack/rack-2.2.9.ebuild
new file mode 100644
index 000000000000..6877ce8eef40
--- /dev/null
+++ b/dev-ruby/rack/rack-2.2.9.ebuild
@@ -0,0 +1,57 @@
+# 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.rdoc SPEC.rdoc"
+
+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/psych:5 dev-ruby/psych:0 )
+ 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
+
+ # Avoid development dependency
+ sed -i -e '/minitest-sprint/ s:^:#:' -e "s:require_relative ':require './:" rack.gemspec || die
+
+ # Rename rackup command and force gem version to allow rack 2.x applications to work
+ mv bin/rackup bin/rackup-2 || die
+ sed -i -e '4igem "rack", "~> 2.2.0"' bin/rackup-2
+}
+
+each_ruby_test() {
+ ${RUBY} -Ilib:test:. -e "require 'test/gemloader.rb'; Dir['test/spec_*.rb'].each{|f| require f}" || die
+}
+
+all_ruby_install() {
+ all_fakegem_install
+
+ einfo "The rackup command is installed as 'rackup-2' to allow parallel installation with rack 3"
+}
diff --git a/dev-ruby/rack/rack-3.0.10.ebuild b/dev-ruby/rack/rack-3.0.10.ebuild
new file mode 100644
index 000000000000..34788801390b
--- /dev/null
+++ b/dev-ruby/rack/rack-3.0.10.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
+}