diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-ruby/rack-mount | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-ruby/rack-mount')
-rw-r--r-- | dev-ruby/rack-mount/Manifest | 4 | ||||
-rw-r--r-- | dev-ruby/rack-mount/files/rack-mount-fix-ruby20.patch | 26 | ||||
-rw-r--r-- | dev-ruby/rack-mount/metadata.xml | 15 | ||||
-rw-r--r-- | dev-ruby/rack-mount/rack-mount-0.8.3-r2.ebuild | 29 |
4 files changed, 74 insertions, 0 deletions
diff --git a/dev-ruby/rack-mount/Manifest b/dev-ruby/rack-mount/Manifest new file mode 100644 index 000000000000..c167160b4451 --- /dev/null +++ b/dev-ruby/rack-mount/Manifest @@ -0,0 +1,4 @@ +AUX rack-mount-fix-ruby20.patch 860 BLAKE2B 171163cb59d5a3614243db5e1836d60fb78659ab7554cc4a6160581cf7b9096f5dcef182753f1d942be65ea1121ea87462e90fbdc8697f790d693cc0759d331f SHA512 79a8acc75d2a32c82ef088d1d25a3f868205dd7e0a17b443ddded432161685ca56d67ce013ffa9c05a32c5446adbb3563b5a09beb1f5c44311cd3033f794ad2e +DIST rack-mount-0.8.3.tgz 33944 BLAKE2B 7763b55aaff25168924c9e237b762231e346b757b56919e454db52485cfa015989a03c93b9d1f0ae0802ab35773d646d70bc87e5d02307052c3c2c9ffa295d60 SHA512 5f1d10b951c967bc4c36a81b5c7dae5c5ec8d5253ee804fa1e1b4446c962fa0882d4c59773bca9373d5eb37a18646aff0a2dff2b1636d3d9126cae0f1e10a638 +EBUILD rack-mount-0.8.3-r2.ebuild 880 BLAKE2B e0e17b889600998cef9657107c2cc10d846eaf309461c61fe557b65f30d3db2a581b00c76f2703f44ae507889cb1a9b4b05970ebc452bfa0f29e696c80d1738a SHA512 1d7cada4b17e06ecb0818d306c9d76838e9213722fbb8d472044d6d52358e7a42d184b58c389c58c58c3517aa4d2bac50ec2b3ef7d03901710dc34f2fb0cd7fb +MISC metadata.xml 484 BLAKE2B 59ae19bd6d0bbf43cf6f8f67c39ecf26b3962385c944dc87e10b7df97e93c0f80b1017af68d7a4917a23a42ba7fce008f1d30b322284c692e91d653b44ad0aaa SHA512 45803bfbd921dd5d026c0cc4989d0d6fad65525b005566a91ab954f49bdf5abb9097b3a475f9ae5186a9e813243a9e10cda018dcd55ee73926c9654ee18de87d diff --git a/dev-ruby/rack-mount/files/rack-mount-fix-ruby20.patch b/dev-ruby/rack-mount/files/rack-mount-fix-ruby20.patch new file mode 100644 index 000000000000..f1e37faa21d6 --- /dev/null +++ b/dev-ruby/rack-mount/files/rack-mount-fix-ruby20.patch @@ -0,0 +1,26 @@ +From 42e7ae47c2dac2d98272ac99239e40bd59398891 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <v.ondruch@tiscali.cz> +Date: Tue, 9 Apr 2013 11:12:02 +0300 +Subject: [PATCH] Fix Ruby 2.0.0 compatibility + +#respond_to? now exclude protected methods. +--- + lib/rack/mount/multimap.rb | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lib/rack/mount/multimap.rb b/lib/rack/mount/multimap.rb +index 6b773e2..b88630b 100644 +--- a/lib/rack/mount/multimap.rb ++++ b/lib/rack/mount/multimap.rb +@@ -125,7 +125,7 @@ def update_container(key) + end + + def iterate_over_container(container) +- if container.respond_to?(:each_container_with_default) ++ if container.respond_to?(:each_container_with_default, true) + container.each_container_with_default do |value| + yield value + end +-- +1.9.3 + diff --git a/dev-ruby/rack-mount/metadata.xml b/dev-ruby/rack-mount/metadata.xml new file mode 100644 index 000000000000..4179f349bdb5 --- /dev/null +++ b/dev-ruby/rack-mount/metadata.xml @@ -0,0 +1,15 @@ +<?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> + <upstream> + <remote-id type="github">josh/rack-mount</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-ruby/rack-mount/rack-mount-0.8.3-r2.ebuild b/dev-ruby/rack-mount/rack-mount-0.8.3-r2.ebuild new file mode 100644 index 000000000000..05164ae1815f --- /dev/null +++ b/dev-ruby/rack-mount/rack-mount-0.8.3-r2.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +USE_RUBY="ruby22 ruby23 ruby24" + +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_EXTRADOC="README.rdoc" + +inherit versionator ruby-fakegem + +DESCRIPTION="A stackable dynamic tree based Rack router" +HOMEPAGE="https://github.com/josh/rack-mount" +SRC_URI="https://github.com/josh/rack-mount/tarball/v${PV} -> ${P}.tgz" +RUBY_S="josh-${PN}-*" + +LICENSE="MIT" +SLOT="$(get_version_component_range 1-2)" +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +ruby_add_rdepend ">=dev-ruby/rack-1.0.0:*" + +RUBY_PATCHES=( ${PN}-fix-ruby20.patch ) + +all_ruby_prepare() { + # Avoid fragile test depending on hash ordering. + sed -i -e '/foo=1&bar=2/ s:^:#:' test/test_utils.rb || die +} |