summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2016-07-14 07:45:52 +0200
committerHans de Graaff <graaff@gentoo.org>2016-07-14 07:52:51 +0200
commit415df809864457c93a3d36191ff3d43cde450abb (patch)
tree07a8acedc2c9826d7b16d5d783c34411dd4d400f /dev-ruby
parentdev-ruby/minitest-hooks: initial import (diff)
downloadgentoo-415df809864457c93a3d36191ff3d43cde450abb.tar.gz
gentoo-415df809864457c93a3d36191ff3d43cde450abb.tar.bz2
gentoo-415df809864457c93a3d36191ff3d43cde450abb.zip
dev-ruby/mime-types: add 3.1
Drop alpha, arm and prefix keywords due to a new test dependency on dev-ruby/minitest-hooks, bug 588796 Package-Manager: portage-2.2.28
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/mime-types/Manifest1
-rw-r--r--dev-ruby/mime-types/mime-types-3.1.ebuild34
2 files changed, 35 insertions, 0 deletions
diff --git a/dev-ruby/mime-types/Manifest b/dev-ruby/mime-types/Manifest
index c1bfa8b16d29..a7ebd0de4071 100644
--- a/dev-ruby/mime-types/Manifest
+++ b/dev-ruby/mime-types/Manifest
@@ -1,3 +1,4 @@
DIST mime-types-1.25.1.gem 61440 SHA256 88ef3c596481678710ffd4018fa40f1999b02d97babea39682ba7d5badd21f56 SHA512 50a79bc0378bb9bf694656b15ac69446447fc863a5a6556e68ad736768627c9f43e59c68b0ed141cee5dbd81a8ccca1a33a61aa01af7d0a5949b00d6edb6525e WHIRLPOOL 65da6addc3f1f4b6c730eadbeabf285a0a85452d90ff036820d3cb1940311248cdcf12a21e836c4b3d03af8ea73f33f642d071f2bb8fdf9556b05cdf974b16d4
DIST mime-types-2.6.2.gem 190976 SHA256 b595583540f1228dd24978c0f87cf1918e4f2c709fe5d517fb6706cbb35ede8c SHA512 a083d865ba39e1b0e468c26823e82472d6bcb501e7dda047f1206b538e2f018d51d8bb31fd6734ba706a8352ade42bb40c52df1837402c3cb4fa01778772485c WHIRLPOOL 63fd4a3a2ed82a479be3bc6883c3a14b7592269609d8f6a97292eb8435f449189c1b7961ab477ca66ae1048b453e1e8edcb2f5c235e319c7af3f80704d7e8cf9
DIST mime-types-3.0.gem 44032 SHA256 2a7f8a73648ee1de0e97eb9692e8ca3761bf420c8df64024f21befa4d060d2ea SHA512 762ad862714f31cf68c9f872f23efc9c85ab0ab4f451553dd4a7ec30ac5bfce804037a413ae05bad253f4a4f82ba6578e3f3e87aa11b5e525d3f237fdf547850 WHIRLPOOL d195d9bdbfbdc786875cedf5ee7d1b08fb4fc3efd33dce11a4dc3329b40ba969ad9ecfeb600ac843096b55ed72f302ae4c12cffe8b61d968259fd1e90261b587
+DIST mime-types-3.1.gem 42496 SHA256 75949321c3f55e6618d0596016059841c26168342ec1ee4e641053bb66fa0701 SHA512 1923ff7032aabbf83569497e0016ea0ff183a13751b0ba0a5b09a132e7c18154bbb19e7d3877adc2e1d21cdff612713201a465f954309794fa1d9b330975a112 WHIRLPOOL 452223e9ab6653b86892f225eceaef9c3f3f5cb86151d96378d1b931d79f1e4b229cff40ec84f988d8ffb951ca7a98dc57def4b3e936a10ed53184fba0508266
diff --git a/dev-ruby/mime-types/mime-types-3.1.ebuild b/dev-ruby/mime-types/mime-types-3.1.ebuild
new file mode 100644
index 000000000000..f5af06c45328
--- /dev/null
+++ b/dev-ruby/mime-types/mime-types-3.1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+USE_RUBY="ruby20 ruby21 ruby22 ruby23"
+
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+RUBY_FAKEGEM_EXTRADOC="History.rdoc README.rdoc"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Provides a mailcap-like MIME Content-Type lookup for Ruby"
+HOMEPAGE="https://github.com/mime-types/ruby-mime-types"
+
+LICENSE="MIT"
+SLOT="3"
+KEYWORDS="~amd64"
+IUSE=""
+
+ruby_add_bdepend "test? ( dev-ruby/minitest:5 dev-ruby/minitest-bonus-assertions:2 dev-ruby/minitest-hooks:1 )"
+
+ruby_add_rdepend ">=dev-ruby/mime-types-data-3.2015:3"
+
+all_ruby_prepare() {
+ # Avoid unneeded developer-only dependencies.
+ sed -i -e '/\(focus\|rg\)/ s:^:#:' \
+ -e 's:fivemat/::' test/minitest_helper.rb || die
+}
+
+each_ruby_test() {
+ ${RUBY} -Ilib:test:. -e 'Dir["test/test_*.rb"].each{|f| require f}' || die
+}