summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2023-04-21 08:39:17 +0200
committerHans de Graaff <graaff@gentoo.org>2023-04-21 08:39:26 +0200
commit1608c1c2db71f4ff4af8e65912c64d7d08dfa3d1 (patch)
tree8ed97fd887b67dc5321927a970d0d1f54c1e0d6f /dev-ruby
parentapp-editors/vim: Stabilize 9.0.1403 x86, #904728 (diff)
downloadgentoo-1608c1c2db71f4ff4af8e65912c64d7d08dfa3d1.tar.gz
gentoo-1608c1c2db71f4ff4af8e65912c64d7d08dfa3d1.tar.bz2
gentoo-1608c1c2db71f4ff4af8e65912c64d7d08dfa3d1.zip
dev-ruby/rackup: new package, add 2.1.0
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/rackup/Manifest1
-rw-r--r--dev-ruby/rackup/metadata.xml12
-rw-r--r--dev-ruby/rackup/rackup-2.1.0.ebuild39
3 files changed, 52 insertions, 0 deletions
diff --git a/dev-ruby/rackup/Manifest b/dev-ruby/rackup/Manifest
new file mode 100644
index 000000000000..912a9a7fbbc1
--- /dev/null
+++ b/dev-ruby/rackup/Manifest
@@ -0,0 +1 @@
+DIST rackup-2.1.0.tar.gz 25009 BLAKE2B 56de2ad40a1e4dbd0d7efb6583ceea6836eea4fa37b81c0f670dfe91b1c18e9cc4eed21c9057e027d8eb5b04a0cb148b6f5bd540ec3491e2381976902178aa24 SHA512 c470af246388243d2c48f244ccdc72aa8888539f5561fb1352c68ae3946713f14853820348b9a96f9507c316e0f619f111cd3cde077f6ee7f9dadc4bb2f2396d
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
+}