summaryrefslogtreecommitdiff
path: root/dev-ruby/rackup
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-04-21 12:02:15 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-04-21 12:02:15 +0100
commitd1f1f3bc630772e7197391e85311655e2b6e7fa2 (patch)
tree0566ad543bdf6d9d9e03d8ab618ccc744913985a /dev-ruby/rackup
parent0cdd46ad5d0cd7ede78815175764fdf76649d46e (diff)
gentoo auto-resync : 21:04:2023 - 12:02:15
Diffstat (limited to 'dev-ruby/rackup')
-rw-r--r--dev-ruby/rackup/Manifest3
-rw-r--r--dev-ruby/rackup/metadata.xml12
-rw-r--r--dev-ruby/rackup/rackup-2.1.0.ebuild39
3 files changed, 54 insertions, 0 deletions
diff --git a/dev-ruby/rackup/Manifest b/dev-ruby/rackup/Manifest
new file mode 100644
index 000000000000..a9afd359ec56
--- /dev/null
+++ b/dev-ruby/rackup/Manifest
@@ -0,0 +1,3 @@
+DIST rackup-2.1.0.tar.gz 25009 BLAKE2B 56de2ad40a1e4dbd0d7efb6583ceea6836eea4fa37b81c0f670dfe91b1c18e9cc4eed21c9057e027d8eb5b04a0cb148b6f5bd540ec3491e2381976902178aa24 SHA512 c470af246388243d2c48f244ccdc72aa8888539f5561fb1352c68ae3946713f14853820348b9a96f9507c316e0f619f111cd3cde077f6ee7f9dadc4bb2f2396d
+EBUILD rackup-2.1.0.ebuild 943 BLAKE2B 7f96531396d7f69cd553409424a2569a65f19658da3ba28c277ef6292f9cd4bcf7cc46de2e2cc170679e9ebd0631f54bf6a7b688eeede5b8d795510536f8c3ee SHA512 a75901b8976b07f144df3647d36e5c4f489e1a915fd10073b0fa7986fca844d71af7aac81a9c8d9ff3ef552786ebe97954a2cb93f7e0b5e6bdba0b74e5bce8f1
+MISC metadata.xml 388 BLAKE2B 91b54e0bb54c0eb80648ac887eedd5276a4dbbedf550c5707d5dd55847b63ebee20baa6019bf8aeae03de6cf8c7d314d0a8bfecaafb33fe78f95b02b41e7a13b SHA512 80ff7e014e68ae2599919b0bd00fcf5b5c9258c76519bda5e461afc959bc8082c2a5321071b649d72db9f7421980ac537b71c1cc58b6d6244ecd1b03500e402b
diff --git a/dev-ruby/rackup/metadata.xml b/dev-ruby/rackup/metadata.xml
new file mode 100644
index 000000000000..2b0a4ab4ca80
--- /dev/null
+++ b/dev-ruby/rackup/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>ruby@gentoo.org</email>
+ <name>Gentoo Ruby Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">rack/rackup</remote-id>
+ <remote-id type="rubygems">rackup</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-ruby/rackup/rackup-2.1.0.ebuild b/dev-ruby/rackup/rackup-2.1.0.ebuild
new file mode 100644
index 000000000000..07456d22a189
--- /dev/null
+++ b/dev-ruby/rackup/rackup-2.1.0.ebuild
@@ -0,0 +1,39 @@
+# 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_EXTRADOC="readme.md security.md"
+
+RUBY_FAKEGEM_GEMSPEC="rackup.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="A general server command for Rack applications"
+HOMEPAGE="https://github.com/rack/rackup"
+SRC_URI="https://github.com/rack/rackup/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="$(ver_cut 1)"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+IUSE=""
+
+ruby_add_rdepend "
+ dev-ruby/rack:3.0
+ >=dev-ruby/webrick-1.8:0
+ virtual/ruby-ssl
+"
+
+ruby_add_bdepend "test? (
+ dev-ruby/minitest:5
+ dev-ruby/minitest-global_expectations
+)"
+
+all_ruby_prepare() {
+ sed -i -e 's:_relative ": "./:' ${RUBY_FAKEGEM_GEMSPEC} || die
+}
+
+each_ruby_test() {
+ MT_NO_PLUGINS=true ${RUBY} -Ilib:test:. -e "Dir['test/spec_*.rb'].each{ require _1 }" || die
+}