summaryrefslogtreecommitdiff
path: root/dev-ruby/rack
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-ruby/rack
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-ruby/rack')
-rw-r--r--dev-ruby/rack/Manifest24
-rw-r--r--dev-ruby/rack/files/rack-1.2.1-gentoo.patch13
-rw-r--r--dev-ruby/rack/files/rack-1.4.5-fix-test-ruby20.patch25
-rw-r--r--dev-ruby/rack/files/rack-1.6-rewindable-ruby23.patch38
-rw-r--r--dev-ruby/rack/metadata.xml10
-rw-r--r--dev-ruby/rack/rack-1.4.7.ebuild42
-rw-r--r--dev-ruby/rack/rack-1.5.5.ebuild41
-rw-r--r--dev-ruby/rack/rack-1.6.4.ebuild45
-rw-r--r--dev-ruby/rack/rack-1.6.5.ebuild47
-rw-r--r--dev-ruby/rack/rack-1.6.6.ebuild47
-rw-r--r--dev-ruby/rack/rack-1.6.7.ebuild47
-rw-r--r--dev-ruby/rack/rack-2.0.1.ebuild44
-rw-r--r--dev-ruby/rack/rack-2.0.2.ebuild44
-rw-r--r--dev-ruby/rack/rack-2.0.3.ebuild44
14 files changed, 511 insertions, 0 deletions
diff --git a/dev-ruby/rack/Manifest b/dev-ruby/rack/Manifest
new file mode 100644
index 000000000000..0bd51c1c2b88
--- /dev/null
+++ b/dev-ruby/rack/Manifest
@@ -0,0 +1,24 @@
+AUX rack-1.2.1-gentoo.patch 410 SHA256 d3cbfe39aed870e43ae6c9a0b9f87ded69b1303d1a67929df3ad6516637d2b2e SHA512 03dba431bbdd77f87e0f26ccc6022248edbde20930254da1c55db6115dd49be5dd3f16919e15ee7baab40682b3f959b52692d5018b09ad79d4db3acb3adf6f43 WHIRLPOOL e72ca37a315bb44604162ad6960aca510efefb0ebbeac0c6671de332eb4d944829f15d335b9fe08c32932370290ffefc1e72119785de1dc57b913d6769fdecd2
+AUX rack-1.4.5-fix-test-ruby20.patch 1043 SHA256 80e1218053cbe6069161d5526218b9499f758184356bfb90627ecfc27ca92f3b SHA512 93d188a60d8c9aa0178319b08ea1723fec5cca9efbd308f56149e90964b9cc991f82cb9e3603962ff35dfa225b9da2a7d28949cab16ee8503a280dc12b59d9c8 WHIRLPOOL 7ff973d8dc6d6e0025eb5f7970d2a960710cfc34aabc6d628c7133754ca60342099958a396092f3cf60f4b6c9308971af42da5b96850e6d21baabbbec27a7eb7
+AUX rack-1.6-rewindable-ruby23.patch 1360 SHA256 a228f4c6cfc44242046803c526ae3985575fa78bac0930a6ba069b3c622cb3f5 SHA512 3cb110af584cc3f767a0d3976acb66f37423559865af0726109419728ce6fbe9f484ac2340b1816ae89c1a59ca64330c1bfe4be3910bf6a8ecb05784115a1cda WHIRLPOOL 138d261eaeb7265926a00b2249993c951a6b5f562c0c562801a453a7b4f8a2db107c0cc5f922dcb8e7559ab4119b9ec1548373e246c189bd5ace7dd25e092c7b
+DIST rack-1.4.7.gem 204800 SHA256 fa06e970605808834fc7e5a8b9babd4871d7d4c23a4d9d61cb94cbd4c15de5e6 SHA512 26391faec30b12981413eb1f433bfc9be5d124689bc3ae6e32de7d544917f2330fa4f9255c6879632f2edae5a05a4198454b8fe1310bcdb3d2e0b8b336a20359 WHIRLPOOL 3e20db05b829b8dadbcc9dbeff6e883cdf1a8b175bd0af0f9c511ab2dc1111036b5815abe8c342120b74a0727a79b18b5966ec90d073404489b2045b134c527a
+DIST rack-1.5.5.gem 216576 SHA256 4ae4a74f555008ecc541060515c37baa9e16f131538447a668c0bf52117c43b7 SHA512 7b8ea669c55fa94801aae20612076db702837194bc602c64bec1085836712806a081504b37e4c545bcccf0337e7afc0ad9dca3c1258260fde5f3ec505247056a WHIRLPOOL 3eed7d4befb678d1b89f2dd8f03b119ab23f6155c9fdc55d545a02a23fd718d436ca5ff880bec1a17ee7927183aed1d298cef97c1737cf88a315161a2f4ab37e
+DIST rack-1.6.4.gem 228864 SHA256 455ec4545a54b40dae9937bc5f61ee0e32134191cc1ef9a7959a19ec4b127a25 SHA512 304a6ae21bfd38008fd7d147f82c44397f3a1d2e689bd01de689aedc6ea0e8784605207fd314bc796974edc5dfcab81636664ea2becb0489302999f99501d41a WHIRLPOOL e99b545a783eaf09bc1c0cf3b4abfafa3341980cfebf1840e25ab25d5801d911da7dfbb232f70df291b7494cc8f8c089fe8a654502aa808850801c02b1e481c6
+DIST rack-1.6.5.gem 229376 SHA256 ff9d8fc9e89af3f59ba1708d5dec642e3ec421dbeca567bc460b5b8ba0efe48c SHA512 469711832b9a2a4a5816607712a0dfe4c59fae5c4cfa37819f0f2b695f477a56040bb71d48ef7c05bad32cd48c02b8c20402d59f84acd299d5266858ff9bbf04 WHIRLPOOL f2625c8861f822e668d16f8972157107149aad87e5e4205037aba50c9db1a6187538c99cb2e49b4e0a910c8b00eff5359af946a23539d438af679c2843b22817
+DIST rack-1.6.6.gem 229888 SHA256 5d098ff67ab8c44a9a9007a445fac67db7f53075d943bda0ec6439fc64366d1c SHA512 d44c48b75b36695373492bcb1f1830c5c5ff74092267863da8fd9dd0ab974f2e4be6d9e488c4afab1335699d3f2dc1359c44796255623dba3e024c0d78aa6732 WHIRLPOOL ef8e5a3f07e0609af848b784ad8499b5d78baae38be54d8f781d2a1d440e794a7224033fe25ba8d8c5972139070cf0aedc13223bc43febc67c4efadab60414bc
+DIST rack-1.6.7.gem 229888 SHA256 485c1bf52521ff354be7dd2a9f529423ee976a51ddec5aace4cf2eebc2ce9c59 SHA512 e1cc22d78a61998c034bbf9217cad5cc0e614697e787f58aed9cfb1c3a12f69b557c9e95a4b09fcc1509cb607332a8655a66159b2492ea6fdc2bda21f588a59e WHIRLPOOL 683a709dcd758e4f546ae84c217d59171cccecc35ed76724221a1661ddd7aa03120591c87a81901dd05a789284ab4581a7a443dd5eb21f9ddffc342d11ce8d72
+DIST rack-2.0.1.gem 253952 SHA256 61f78033bf5b1cd0221549ecce7c7b73205d4634b0e63c66e1f295dcf3c26b14 SHA512 6ad5060ce56e279eb01029a699e86ee3f3cd6fe15b282f4c38ecc095d8bdf359dee0ff3fbe699bcac0e4765da7758fa5161f3c939da71a77eaf3fe3bc79bea1d WHIRLPOOL 34c292aab8997f1a1d8ee0a8c228ecc0b517996d3c610ff4e07a1d535d065447af949d4f534cc94c746e976c4d5d4e9b1277306758d4a030450f6b68e37e4ea1
+DIST rack-2.0.2.gem 254464 SHA256 b9009b9acbefd85bea220ca13011e6f0f76630169289d9e433a0558dc73542d2 SHA512 c5ffe7fc83eab5f96cbf4b25869e8a0a2e2d8b60544a6186cd6eff9b2b645b36678bb0c9390f90b9cf316bfa0f27f1731c0bcf9560d654e3ce6b8c97855db2bc WHIRLPOOL 25bfc823117ebf7bf8f689742003c24281def10c618c084a2d8ceebe7428a8607ea9be51232d784ed8ee5396011cf055f794b020bfce86c7c2d4593ef4ef2b09
+DIST rack-2.0.3.gem 254464 SHA256 8c1c9bbafd74f11c78a29bd87c72a70e7b5b872712d1768ab83b33fec57d9fcd SHA512 c48e6681544c2f37797ee697f5c4f0d4de6008a3df2506665b52c248fca1ef7321a892dd28475e4d7b461a0b2d12112903a67e1bed7c7397742833fce85167e1 WHIRLPOOL 0134f345068739a3ba65b726f2146b33672a083f42601dd45ee85ffb33677d6e3282040c9df19d7a4f13925a032a4c68fa3885f5a0fd86d826780b17cad74deb
+EBUILD rack-1.4.7.ebuild 1557 SHA256 1c6142e7f6c286b04662771c88b91ba42dbe1b73d2561cc048e185ed1930150a SHA512 b239eb29871e63a8833c59f38d32703ca11463040f2606dadacf43b382b52cb706b0e1e9e223ed1c956d28470c51b8b038492304c657214e7fb8c7b45b61bf74 WHIRLPOOL 40017c0d06fcae3f968775bf50552f16524e0415f16373e0568e2c0877bb25e01fa86ccae4493eb4365056dc7bb2119c4a27adceb348fcba6f23555d533351f8
+EBUILD rack-1.5.5.ebuild 1390 SHA256 f11e2e00e69a4c576c77fc92151cbed9f296ffd8946aedb3ac6c46e016195f54 SHA512 e71a13d85c2bd8513a14fc805ed3ae4795be5de773e9cf9982e7ba3309695f97b221de9a84856ee9e2465c28de88509a1a48e0af5d33b209a0341ad5fcc62ca1 WHIRLPOOL b27f82c222d0f371bc27eaa4659383d14fe372159e237f106b9be659112f72bddfac34cfdec51a2f97b9c7ee48d0624ca083ee09172b294212616939d95983a3
+EBUILD rack-1.6.4.ebuild 1578 SHA256 d7edda7472ac958ad6491ac62c00cdddcf13b20d191f265b4344c11cf13001bd SHA512 f7daa34fa1b88935c1bc0c9643f25de06ebb2bd8eec906da6ea7a5b9728b4ff7df4f615b16aa356b67b6de7733cce3d5f10cb2ae7a385ec3ba6612c109bf8c3b WHIRLPOOL a005f366e527e691a48049475b88d3574c4f37963fa3fa2a25da89bf0fe82718dcd142043c466b6c2fbc0e73421016beee21036dd129883df448d1ac4e3b8d64
+EBUILD rack-1.6.5.ebuild 1652 SHA256 6365f8c1d2afe4443bcd4ff85eac982d93623e244e60f090091898dd2f597161 SHA512 d3e59cf01bced12641b8a31095ae4dc609a44582a0065a8237694d456ad3ce6623da186dbb7ee2f7a003a948fd62a7ffb586ba9520ec8ef75453971911b85433 WHIRLPOOL bf6dc5eddbdeee018fe4b47797d29fa08342ad64a6d3cdec36562de4fbab0720572496e258c8d794c9f0380f765eb2bd32433e8c7bf7fae07f895053543f6e0d
+EBUILD rack-1.6.6.ebuild 1652 SHA256 da1d84b7d9b9b544d8d4fcd8f3d4c39e47af658f13e8fc1f8d1581c09a096887 SHA512 0127bb448cf43c85eb4a14ed1f06c8fd6da8c23dcdb56b6500830702a41bf106ceec2bb9abefc15254e1bed165b06b19cc842674c55ef83b691ba3d56e9744ab WHIRLPOOL 2548fd7ccc8c717f816b108a281127b0773477907def59752f7b03aeaed2c25ae7a556a5af73a6bbb7fae08512e7c6b692ecf20b142cbadecca537534c4b221f
+EBUILD rack-1.6.7.ebuild 1659 SHA256 722fb21e920a7efb71b86cefdf867b956c84b25006bfee5f1b99cf43a2b57dd2 SHA512 b8a1ece47634a4a0bd7e708de3c8cdb00d4eaef279113e1daba16bd3dcacf35fd3e267a3fade66867222dbbec542eaae34e72c130bcd9565b2367848c3043fd1 WHIRLPOOL 054bc1950fe0ee872bba4c20d366e73d03fd2a6dfd74637a8c91fd331f3c136ec607d3f6a9507d46df1cf9edc668ec919f0a04182e8638ba11add05ad4ef5b43
+EBUILD rack-2.0.1.ebuild 1482 SHA256 dfd466f1d9a20e030c5b872fe442d7c1b167ccadf0235b33d1de089453e88d7c SHA512 1ecaf74aac256174a3449f6b1b1883d2672281a06b539204d94a71a4e133894858a65177c1dad07748124741414ad0e6a187f8d19f8e108e9792882754641cfb WHIRLPOOL 33166567f127ec8c14f56d149322b517fa7c2d9608a3928753c2119854cd12955ce784c09f331c15f826af456e53689893b38215dc0183f5bb4d9ae018708f4c
+EBUILD rack-2.0.2.ebuild 1489 SHA256 2e6a096925be8d17cd9114ac502af074653d19113e53033cc97a0f65d47861d8 SHA512 f5c0e7a38de66aa2b8da2db48bbe68b4a074c8626cfa00dc020dbf5d1b6230219b68aceb6434fa0ca764fcf52650276ad6439f95e9ee35e0ffd9c52392846f04 WHIRLPOOL 6a160074d9c4d7fc44c20e9f7818b7263d079b73d301bd450a544aa9195877e68900780d31caac69416a5c906791886c08e80c29f447014be6c38b30f892efc7
+EBUILD rack-2.0.3.ebuild 1502 SHA256 f274c18df17a0b8bbe1624005fef7a036e6c1b5c0ad7411f5d1d3bf8c774c58a SHA512 94f99de7510687caf3905d1ec27a357065cbb409e64ff03898c271ce0f3534508554fe5e0b3c06f5b9fe27012d6dfb8ba196ebfe81dc27fe005efd87728dbbee WHIRLPOOL e1612e7788ab86dfe4473518d319a2cfbdabc984a215ea5e48030aca1fc85bca11e02c9748bfbd62f5410919c659482a91ec5dddeabfca3d1d5c56f7d37c4ed5
+MISC ChangeLog 7935 SHA256 b5ba506e2ce2bd734a32d74ccc5672a0d346931e9518939f6e54ba5be0bbc904 SHA512 7af0866e82e41b4a9d8cced47e40c0b532192718c5507ea929755b0b9b63a98600a6c87199f66fcc1d408f68fc721ca317dc4d1dd6befaf4b553f3c18f321b8d WHIRLPOOL f0dc123fd346d58dcc165090e50bf8d55eb289ba238316649d7896de5d0a148b2f5caf53dc38ffe86e4d8f539b588662881a2a1f3c31c57a85963fe4f41a16c8
+MISC ChangeLog-2015 22215 SHA256 721b2dc9276c1d1150e680c0bdb32ee3d683554d5b8f4ea7b27ef693d834597f SHA512 f2df4c5ffe2847da8f02b444b41df0be07805d04cf719a3d442b8d74f39de148b68fa431ce800c3e0bd998200853fb1e3f3628a42e908ce51b5443e797555e78 WHIRLPOOL 28bfac28854575fe8fd5dd8b4aa8d3e4d80c7da07141301813ed85fd18aff862fef41a11df73fb95e9bf31de99522d377015726b1cdb621c4e99cedfb0b82594
+MISC metadata.xml 391 SHA256 71fd76c9083b836f09c7fcd99c372405f2872641c970ecb44cfcb8ec9d17aeb3 SHA512 7ffff4c4cc64855b0c95e2364fa9cfd1e3b06946155cc8244444f5f4e450abda8d8387aabddc224b94a55ff3d5e42391970e5541923e5aae24f408113a65a5c7 WHIRLPOOL 81b88ee44cd25ddb59af823494837f3b1a6f05bfc5620c580e4ca00eafdec21f8b24dca5291728d55b7e1723df9d96fe7c952b0b66ae66eb8dae282cae79087c
diff --git a/dev-ruby/rack/files/rack-1.2.1-gentoo.patch b/dev-ruby/rack/files/rack-1.2.1-gentoo.patch
new file mode 100644
index 000000000000..82ea127a8cb7
--- /dev/null
+++ b/dev-ruby/rack/files/rack-1.2.1-gentoo.patch
@@ -0,0 +1,13 @@
+diff --git a/lib/rack/rewindable_input.rb b/lib/rack/rewindable_input.rb
+index accd96b..d71fde6 100644
+--- a/lib/rack/rewindable_input.rb
++++ b/lib/rack/rewindable_input.rb
+@@ -94,7 +94,7 @@ module Rack
+ end
+
+ def filesystem_has_posix_semantics?
+- RUBY_PLATFORM !~ /(mswin|mingw|cygwin|java)/
++ RUBY_PLATFORM !~ /(mswin|mingw|cygwin|java)/ && RUBY_VERSION < '1.9.1'
+ end
+ end
+ end
diff --git a/dev-ruby/rack/files/rack-1.4.5-fix-test-ruby20.patch b/dev-ruby/rack/files/rack-1.4.5-fix-test-ruby20.patch
new file mode 100644
index 000000000000..7854b7e6e16a
--- /dev/null
+++ b/dev-ruby/rack/files/rack-1.4.5-fix-test-ruby20.patch
@@ -0,0 +1,25 @@
+From 0a74380d2e5157d94c7e9141242af33e5c0bf951 Mon Sep 17 00:00:00 2001
+From: Santiago Pastorino <santiago@wyeworks.com>
+Date: Sat, 29 Dec 2012 17:36:08 -0200
+Subject: [PATCH] Fix Ruby 2.0 build
+
+---
+ test/spec_chunked.rb | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/test/spec_chunked.rb b/test/spec_chunked.rb
+index c81409f..12f2158 100644
+--- a/test/spec_chunked.rb
++++ b/test/spec_chunked.rb
+@@ -41,7 +41,7 @@ def chunked(app)
+ response.headers.should.not.include 'Content-Length'
+ response.headers['Transfer-Encoding'].should.equal 'chunked'
+ response.body.encoding.to_s.should.equal "ASCII-8BIT"
+- response.body.should.equal "c\r\n\xFE\xFFH\x00e\x00l\x00l\x00o\x00\r\n2\r\n \x00\r\na\r\nW\x00o\x00r\x00l\x00d\x00\r\n0\r\n\r\n"
++ response.body.should.equal "c\r\n\xFE\xFFH\x00e\x00l\x00l\x00o\x00\r\n2\r\n \x00\r\na\r\nW\x00o\x00r\x00l\x00d\x00\r\n0\r\n\r\n".force_encoding("BINARY")
+ end if RUBY_VERSION >= "1.9"
+
+ should 'not modify response when Content-Length header present' do
+--
+1.9.1
+
diff --git a/dev-ruby/rack/files/rack-1.6-rewindable-ruby23.patch b/dev-ruby/rack/files/rack-1.6-rewindable-ruby23.patch
new file mode 100644
index 000000000000..9d36a7328e2c
--- /dev/null
+++ b/dev-ruby/rack/files/rack-1.6-rewindable-ruby23.patch
@@ -0,0 +1,38 @@
+From 11b5a15dd1c8a41d87eb73df7bb99a3affecd787 Mon Sep 17 00:00:00 2001
+From: deepj <deepjungle.maca@gmail.com>
+Date: Mon, 25 May 2015 22:41:31 +0200
+Subject: [PATCH] Clean up Rack::Rewindable
+
+---
+ lib/rack/rewindable_input.rb | 11 -----------
+ 1 file changed, 11 deletions(-)
+
+diff --git a/lib/rack/rewindable_input.rb b/lib/rack/rewindable_input.rb
+index 64efdda..dd6b784 100644
+--- a/lib/rack/rewindable_input.rb
++++ b/lib/rack/rewindable_input.rb
+@@ -57,15 +57,6 @@ def close
+
+ private
+
+- # Ruby's Tempfile class has a bug. Subclass it and fix it.
+- class Tempfile < ::Tempfile
+- def _close
+- @tmpfile.close if @tmpfile
+- @data[1] = nil if @data
+- @tmpfile = nil
+- end
+- end
+-
+ def make_rewindable
+ # Buffer all data into a tempfile. Since this tempfile is private to this
+ # RewindableInput object, we chmod it so that nobody else can read or write
+@@ -77,8 +68,6 @@ def make_rewindable
+ @rewindable_io.set_encoding(Encoding::BINARY) if @rewindable_io.respond_to?(:set_encoding)
+ @rewindable_io.binmode
+ if filesystem_has_posix_semantics?
+- # Use ::File.unlink as 1.9.1 Tempfile has a bug where unlink closes the file!
+- ::File.unlink @rewindable_io.path
+ raise 'Unlink failed. IO closed.' if @rewindable_io.closed?
+ @unlinked = true
+ end
diff --git a/dev-ruby/rack/metadata.xml b/dev-ruby/rack/metadata.xml
new file mode 100644
index 000000000000..a4972c900d78
--- /dev/null
+++ b/dev-ruby/rack/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>ruby@gentoo.org</email>
+ <name>Gentoo Ruby Project</name>
+ </maintainer>
+ <longdescription>Rack provides a common API for connecting web frameworks, web servers and layers
+of software inbetween.</longdescription>
+</pkgmetadata>
diff --git a/dev-ruby/rack/rack-1.4.7.ebuild b/dev-ruby/rack/rack-1.4.7.ebuild
new file mode 100644
index 000000000000..518e1116c544
--- /dev/null
+++ b/dev-ruby/rack/rack-1.4.7.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+USE_RUBY="ruby20 ruby21 ruby22"
+
+RUBY_FAKEGEM_DOCDIR="doc"
+RUBY_FAKEGEM_EXTRADOC="KNOWN-ISSUES README.rdoc SPEC"
+
+RUBY_FAKEGEM_BINWRAP=""
+
+inherit ruby-fakegem eutils versionator
+
+DESCRIPTION="A modular Ruby webserver interface"
+HOMEPAGE="https://rack.github.com/"
+
+LICENSE="MIT"
+SLOT="$(get_version_component_range 1-2)"
+KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 ~sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE=""
+
+RUBY_PATCHES=( ${PN}-1.2.1-gentoo.patch ${PN}-1.4.5-fix-test-ruby20.patch )
+
+ruby_add_rdepend "virtual/ruby-ssl"
+
+# 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. We do add the fcgi dependency because
+# that spec isn't optional.
+ruby_add_bdepend "test? ( dev-ruby/bacon dev-ruby/fcgi )"
+
+# Block against versions in older slots that also try to install a binary.
+RDEPEND="${RDEPEND} !<dev-ruby/rack-1.1.3-r1:0 !<dev-ruby/rack-1.2.5:1.2 !<dev-ruby/rack-1.3.6-r1:1.3"
+
+each_ruby_test() {
+ # Since the Rakefile calls specrb directly rather than loading it, we
+ # cannot use it to launch the tests or only the currently-selected
+ # RUBY interpreter will be tested.
+ ${RUBY} -S bacon -Ilib -w -a \
+ -q -t '^(?!Rack::Handler|Rack::Adapter|Rack::Session::Memcache|Rack::Server)' \
+ || die "test failed for ${RUBY}"
+}
diff --git a/dev-ruby/rack/rack-1.5.5.ebuild b/dev-ruby/rack/rack-1.5.5.ebuild
new file mode 100644
index 000000000000..7e90b68a6c6d
--- /dev/null
+++ b/dev-ruby/rack/rack-1.5.5.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+USE_RUBY="ruby20 ruby21 ruby22"
+
+RUBY_FAKEGEM_DOCDIR="doc"
+RUBY_FAKEGEM_EXTRADOC="KNOWN-ISSUES README.rdoc SPEC"
+
+RUBY_FAKEGEM_BINWRAP=""
+
+inherit ruby-fakegem eutils versionator
+
+DESCRIPTION="A modular Ruby webserver interface"
+HOMEPAGE="https://rack.github.com/"
+
+LICENSE="MIT"
+SLOT="$(get_version_component_range 1-2)"
+KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 ~sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE=""
+
+RUBY_PATCHES=( ${PN}-1.2.1-gentoo.patch )
+
+ruby_add_rdepend "virtual/ruby-ssl"
+
+# 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.
+ruby_add_bdepend "test? ( dev-ruby/bacon )"
+
+# Block against versions in older slots that also try to install a binary.
+RDEPEND="${RDEPEND} !<dev-ruby/rack-1.4.5-r1:1.4"
+
+each_ruby_test() {
+ # Since the Rakefile calls specrb directly rather than loading it, we
+ # cannot use it to launch the tests or only the currently-selected
+ # RUBY interpreter will be tested.
+ ${RUBY} -S bacon -Ilib -w -a \
+ -q -t '^(?!Rack::Handler|Rack::Adapter|Rack::Session::Memcache|Rack::Server)' \
+ || die "test failed for ${RUBY}"
+}
diff --git a/dev-ruby/rack/rack-1.6.4.ebuild b/dev-ruby/rack/rack-1.6.4.ebuild
new file mode 100644
index 000000000000..a427b5a133d8
--- /dev/null
+++ b/dev-ruby/rack/rack-1.6.4.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+USE_RUBY="ruby20 ruby21 ruby22"
+
+RUBY_FAKEGEM_DOCDIR="doc"
+RUBY_FAKEGEM_EXTRADOC="HISTORY.md KNOWN-ISSUES README.rdoc SPEC"
+
+inherit ruby-fakegem eutils versionator
+
+DESCRIPTION="A modular Ruby webserver interface"
+HOMEPAGE="https://rack.github.com/"
+
+LICENSE="MIT"
+SLOT="$(get_version_component_range 1-2)"
+KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 ~sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE=""
+
+RUBY_PATCHES=( ${PN}-1.2.1-gentoo.patch )
+
+ruby_add_rdepend "virtual/ruby-ssl"
+
+# 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.
+ruby_add_bdepend "test? ( dev-ruby/bacon )"
+
+# Block against versions in older slots that also try to install a binary.
+RDEPEND="${RDEPEND} !<dev-ruby/rack-1.4.5-r1:1.4 !<dev-ruby/rack-1.5.2-r4:1.5"
+
+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
+}
+
+each_ruby_test() {
+ # Since the Rakefile calls specrb directly rather than loading it, we
+ # cannot use it to launch the tests or only the currently-selected
+ # RUBY interpreter will be tested.
+ ${RUBY} -S bacon -Ilib -w -a \
+ -q -t '^(?!Rack::Handler|Rack::Adapter|Rack::Session::Memcache|Rack::Server)' \
+ || die "test failed for ${RUBY}"
+}
diff --git a/dev-ruby/rack/rack-1.6.5.ebuild b/dev-ruby/rack/rack-1.6.5.ebuild
new file mode 100644
index 000000000000..af79f5844328
--- /dev/null
+++ b/dev-ruby/rack/rack-1.6.5.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+USE_RUBY="ruby21 ruby22 ruby23 ruby24"
+
+RUBY_FAKEGEM_DOCDIR="doc"
+RUBY_FAKEGEM_EXTRADOC="HISTORY.md KNOWN-ISSUES README.rdoc SPEC"
+
+RUBY_FAKEGEM_BINWRAP=""
+
+inherit ruby-fakegem eutils versionator
+
+DESCRIPTION="A modular Ruby webserver interface"
+HOMEPAGE="https://rack.github.com/"
+
+LICENSE="MIT"
+SLOT="$(get_version_component_range 1-2)"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE=""
+
+RUBY_PATCHES=( ${PN}-1.2.1-gentoo.patch ${PN}-1.6-rewindable-ruby23.patch )
+
+ruby_add_rdepend "virtual/ruby-ssl"
+
+# 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.
+ruby_add_bdepend "test? ( dev-ruby/bacon )"
+
+# Block against versions in older slots that also try to install a binary.
+RDEPEND="${RDEPEND} !<dev-ruby/rack-1.4.5-r1:1.4 !<dev-ruby/rack-1.5.2-r4:1.5"
+
+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
+}
+
+each_ruby_test() {
+ # Since the Rakefile calls specrb directly rather than loading it, we
+ # cannot use it to launch the tests or only the currently-selected
+ # RUBY interpreter will be tested.
+ ${RUBY} -S bacon -Ilib -w -a \
+ -q -t '^(?!Rack::Handler|Rack::Adapter|Rack::Session::Memcache|Rack::Server)' \
+ || die "test failed for ${RUBY}"
+}
diff --git a/dev-ruby/rack/rack-1.6.6.ebuild b/dev-ruby/rack/rack-1.6.6.ebuild
new file mode 100644
index 000000000000..bce1580b6d5f
--- /dev/null
+++ b/dev-ruby/rack/rack-1.6.6.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+USE_RUBY="ruby21 ruby22 ruby23 ruby24"
+
+RUBY_FAKEGEM_DOCDIR="doc"
+RUBY_FAKEGEM_EXTRADOC="HISTORY.md KNOWN-ISSUES README.rdoc SPEC"
+
+RUBY_FAKEGEM_BINWRAP=""
+
+inherit ruby-fakegem eutils versionator
+
+DESCRIPTION="A modular Ruby webserver interface"
+HOMEPAGE="https://rack.github.com/"
+
+LICENSE="MIT"
+SLOT="$(get_version_component_range 1-2)"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE=""
+
+RUBY_PATCHES=( ${PN}-1.2.1-gentoo.patch ${PN}-1.6-rewindable-ruby23.patch )
+
+ruby_add_rdepend "virtual/ruby-ssl"
+
+# 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.
+ruby_add_bdepend "test? ( dev-ruby/bacon )"
+
+# Block against versions in older slots that also try to install a binary.
+RDEPEND="${RDEPEND} !<dev-ruby/rack-1.4.5-r1:1.4 !<dev-ruby/rack-1.5.2-r4:1.5"
+
+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
+}
+
+each_ruby_test() {
+ # Since the Rakefile calls specrb directly rather than loading it, we
+ # cannot use it to launch the tests or only the currently-selected
+ # RUBY interpreter will be tested.
+ ${RUBY} -S bacon -Ilib -w -a \
+ -q -t '^(?!Rack::Handler|Rack::Adapter|Rack::Session::Memcache|Rack::Server)' \
+ || die "test failed for ${RUBY}"
+}
diff --git a/dev-ruby/rack/rack-1.6.7.ebuild b/dev-ruby/rack/rack-1.6.7.ebuild
new file mode 100644
index 000000000000..c6b0b9e34de3
--- /dev/null
+++ b/dev-ruby/rack/rack-1.6.7.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+USE_RUBY="ruby21 ruby22 ruby23 ruby24"
+
+RUBY_FAKEGEM_DOCDIR="doc"
+RUBY_FAKEGEM_EXTRADOC="HISTORY.md KNOWN-ISSUES README.rdoc SPEC"
+
+RUBY_FAKEGEM_BINWRAP=""
+
+inherit ruby-fakegem eutils versionator
+
+DESCRIPTION="A modular Ruby webserver interface"
+HOMEPAGE="https://rack.github.com/"
+
+LICENSE="MIT"
+SLOT="$(get_version_component_range 1-2)"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE=""
+
+RUBY_PATCHES=( ${PN}-1.2.1-gentoo.patch ${PN}-1.6-rewindable-ruby23.patch )
+
+ruby_add_rdepend "virtual/ruby-ssl"
+
+# 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.
+ruby_add_bdepend "test? ( dev-ruby/bacon )"
+
+# Block against versions in older slots that also try to install a binary.
+RDEPEND="${RDEPEND} !<dev-ruby/rack-1.4.5-r1:1.4 !<dev-ruby/rack-1.5.2-r4:1.5"
+
+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
+}
+
+each_ruby_test() {
+ # Since the Rakefile calls specrb directly rather than loading it, we
+ # cannot use it to launch the tests or only the currently-selected
+ # RUBY interpreter will be tested.
+ ${RUBY} -S bacon -Ilib -w -a \
+ -q -t '^(?!Rack::Handler|Rack::Adapter|Rack::Session::Memcache|Rack::Server)' \
+ || die "test failed for ${RUBY}"
+}
diff --git a/dev-ruby/rack/rack-2.0.1.ebuild b/dev-ruby/rack/rack-2.0.1.ebuild
new file mode 100644
index 000000000000..6ec3b4817c64
--- /dev/null
+++ b/dev-ruby/rack/rack-2.0.1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+USE_RUBY="ruby21 ruby22 ruby23"
+
+RUBY_FAKEGEM_DOCDIR="doc"
+RUBY_FAKEGEM_EXTRADOC="HISTORY.md README.rdoc SPEC"
+
+inherit ruby-fakegem eutils versionator
+
+DESCRIPTION="A modular Ruby webserver interface"
+HOMEPAGE="https://rack.github.com/"
+
+LICENSE="MIT"
+SLOT="$(get_version_component_range 1-2)"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE=""
+
+RUBY_PATCHES=( ${PN}-1.2.1-gentoo.patch )
+
+ruby_add_rdepend "virtual/ruby-ssl"
+
+ruby_add_bdepend "test? ( dev-ruby/minitest:5 dev-ruby/concurrent-ruby )"
+
+# 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.
+
+# Block against versions in older slots that also try to install a binary.
+RDEPEND="${RDEPEND} !<dev-ruby/rack-1.4.5-r1:1.4 !<dev-ruby/rack-1.5.2-r4:1.5 !<dev-ruby/rack-1.6.4-r2:1.6"
+
+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:^:#:' rack.gemspec || die
+}
+
+each_ruby_test() {
+ ${RUBY} -Ilib:test:. -e "require 'test/gemloader.rb'; Dir['test/spec_*.rb'].each{|f| require f}" || die
+}
diff --git a/dev-ruby/rack/rack-2.0.2.ebuild b/dev-ruby/rack/rack-2.0.2.ebuild
new file mode 100644
index 000000000000..a941069667ac
--- /dev/null
+++ b/dev-ruby/rack/rack-2.0.2.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+USE_RUBY="ruby21 ruby22 ruby23 ruby24"
+
+RUBY_FAKEGEM_DOCDIR="doc"
+RUBY_FAKEGEM_EXTRADOC="HISTORY.md README.rdoc SPEC"
+
+inherit ruby-fakegem eutils versionator
+
+DESCRIPTION="A modular Ruby webserver interface"
+HOMEPAGE="https://rack.github.com/"
+
+LICENSE="MIT"
+SLOT="$(get_version_component_range 1-2)"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE=""
+
+RUBY_PATCHES=( ${PN}-1.2.1-gentoo.patch )
+
+ruby_add_rdepend "virtual/ruby-ssl"
+
+ruby_add_bdepend "test? ( dev-ruby/minitest:5 dev-ruby/concurrent-ruby )"
+
+# 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.
+
+# Block against versions in older slots that also try to install a binary.
+RDEPEND="${RDEPEND} !<dev-ruby/rack-1.4.5-r1:1.4 !<dev-ruby/rack-1.5.2-r4:1.5 !<dev-ruby/rack-1.6.4-r2:1.6"
+
+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:^:#:' rack.gemspec || die
+}
+
+each_ruby_test() {
+ ${RUBY} -Ilib:test:. -e "require 'test/gemloader.rb'; Dir['test/spec_*.rb'].each{|f| require f}" || die
+}
diff --git a/dev-ruby/rack/rack-2.0.3.ebuild b/dev-ruby/rack/rack-2.0.3.ebuild
new file mode 100644
index 000000000000..3e260d540cb1
--- /dev/null
+++ b/dev-ruby/rack/rack-2.0.3.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+USE_RUBY="ruby21 ruby22 ruby23 ruby24"
+
+RUBY_FAKEGEM_DOCDIR="doc"
+RUBY_FAKEGEM_EXTRADOC="HISTORY.md README.rdoc SPEC"
+
+inherit ruby-fakegem eutils versionator
+
+DESCRIPTION="A modular Ruby webserver interface"
+HOMEPAGE="https://rack.github.com/"
+
+LICENSE="MIT"
+SLOT="$(get_version_component_range 1-2)"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE=""
+
+RUBY_PATCHES=( ${PN}-1.2.1-gentoo.patch )
+
+ruby_add_rdepend "virtual/ruby-ssl"
+
+ruby_add_bdepend "test? ( dev-ruby/minitest:5 dev-ruby/concurrent-ruby )"
+
+# 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.
+
+# Block against versions in older slots that also try to install a binary.
+RDEPEND="${RDEPEND} !<dev-ruby/rack-1.4.5-r1:1.4 !<dev-ruby/rack-1.5.2-r4:1.5 !<dev-ruby/rack-1.6.4-r2:1.6"
+
+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:^:#:' rack.gemspec || die
+}
+
+each_ruby_test() {
+ ${RUBY} -Ilib:test:. -e "require 'test/gemloader.rb'; Dir['test/spec_*.rb'].each{|f| require f}" || die
+}