summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-ruby/mime-types/Manifest1
-rw-r--r--dev-ruby/mime-types/mime-types-3.3.ebuild32
2 files changed, 33 insertions, 0 deletions
diff --git a/dev-ruby/mime-types/Manifest b/dev-ruby/mime-types/Manifest
index ce2051116e38..65985243c21a 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 BLAKE2B ba28c605e910c41840645780ff42d2eea032fd9baaa5d758085ece8ae43dd33582e21c57fff791783424d3c4d666bc48b6f77a0312754bfbcb185e22b1d53f5f SHA512 50a79bc0378bb9bf694656b15ac69446447fc863a5a6556e68ad736768627c9f43e59c68b0ed141cee5dbd81a8ccca1a33a61aa01af7d0a5949b00d6edb6525e
DIST mime-types-2.99.2.gem 149504 BLAKE2B d2088d606b0210a8607d351ce7b7e3b7f25c3d518eaa3cb32ccfbf56a16eea104c908614f315317cece175003261d240f43bbf203619b54da35702abb94be8ce SHA512 46b3add451c3a6879f0f5df5f1e09c41d78d5a5b3872c2fcae7c8b097008cb04a9f5606360af9cc9880d7d659fe2dad19a118e6dfca1774ec3f5a5b852e31720
DIST mime-types-3.2.2.gem 35840 BLAKE2B dd77473793d68007a3f096971366b5c2120391f3bdd5c758d8e4fac2c1df509a9e367766ac8f1dd292e9b000beb6346d22f2e21c599d2d9117cee84ae7fee864 SHA512 e098df6001ddb53225cf2f48df4e13f2cb9c5e86f64dfaebfba82ed9f1d60149b05069800ea14d1d76554d760169f3c3cb506cc3c789c74da7e1c8df61d67b7c
+DIST mime-types-3.3.gem 36352 BLAKE2B 3e774ecd832865c339e1c53e8def710f9b39e9711bc3ac4a7b55a4f500d6daf4f7ec7607ad7a30de5b9a8e717100cd96999e2c6d72baf5e1196ee8bd0897c178 SHA512 288f5f2dbb3ea970703e3b0d84a89246db410f8ccab5da3cc8fa9113ebb44a46144bb48f2216d37fd293b3ae156d596aff234721ec62e10c6b024f1eef2c9fb8
diff --git a/dev-ruby/mime-types/mime-types-3.3.ebuild b/dev-ruby/mime-types/mime-types-3.3.ebuild
new file mode 100644
index 000000000000..a4d6fa696343
--- /dev/null
+++ b/dev-ruby/mime-types/mime-types-3.3.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+USE_RUBY="ruby24 ruby25 ruby26"
+
+RUBY_FAKEGEM_EXTRADOC="History.md 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="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~x86"
+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
+}