summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2012-03-22 07:05:04 +0000
committerHans de Graaff <graaff@gentoo.org>2012-03-22 07:05:04 +0000
commit54431ea03845d177122b5d21292ac7d89945b15b (patch)
tree9c716341227fda94286a5c3871a9dc522157b309 /dev-ruby/mime-types
parentBump (diff)
downloadgentoo-2-54431ea03845d177122b5d21292ac7d89945b15b.tar.gz
gentoo-2-54431ea03845d177122b5d21292ac7d89945b15b.tar.bz2
gentoo-2-54431ea03845d177122b5d21292ac7d89945b15b.zip
Version bump with upstream patch to fix tests on Linux.
(Portage version: 2.1.10.49/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby/mime-types')
-rw-r--r--dev-ruby/mime-types/ChangeLog10
-rw-r--r--dev-ruby/mime-types/files/mime-types-1.18-linux-tests.patch161
-rw-r--r--dev-ruby/mime-types/mime-types-1.18.ebuild34
3 files changed, 203 insertions, 2 deletions
diff --git a/dev-ruby/mime-types/ChangeLog b/dev-ruby/mime-types/ChangeLog
index 42dc5793146c..3869191be7a7 100644
--- a/dev-ruby/mime-types/ChangeLog
+++ b/dev-ruby/mime-types/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-ruby/mime-types
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mime-types/ChangeLog,v 1.23 2011/12/31 20:12:33 grobian Exp $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mime-types/ChangeLog,v 1.24 2012/03/22 07:05:04 graaff Exp $
+
+*mime-types-1.18 (22 Mar 2012)
+
+ 22 Mar 2012; Hans de Graaff <graaff@gentoo.org> +mime-types-1.18.ebuild,
+ +files/mime-types-1.18-linux-tests.patch:
+ Version bump with upstream patch to fix tests on Linux.
31 Dec 2011; Fabian Groffen <grobian@gentoo.org> mime-types-1.16-r3.ebuild:
Add Prefix keywords, bug #396547
diff --git a/dev-ruby/mime-types/files/mime-types-1.18-linux-tests.patch b/dev-ruby/mime-types/files/mime-types-1.18-linux-tests.patch
new file mode 100644
index 000000000000..b2ccb0ecf61c
--- /dev/null
+++ b/dev-ruby/mime-types/files/mime-types-1.18-linux-tests.patch
@@ -0,0 +1,161 @@
+commit 134cab8ffdbd337bf0b8bb67b5097222f6f15769
+Author: Austin Ziegler <austin@surfeasy.com>
+Date: Wed Mar 21 20:30:31 2012 -0400
+
+ Fixing issue #8.
+
+ Apparently some people run the tests on Linux. Imagine that. :)
+
+diff --git a/History.rdoc b/History.rdoc
+index 82daed8..d1ad126 100644
+--- a/History.rdoc
++++ b/History.rdoc
+@@ -1,4 +1,8 @@
+-== MIME::Types 1.18 / 2012-03-20
++== 1.?? / ????-??-??
++* Resolve issue #8 (https://github.com/halostatue/mime-types/issues/8).
++ Apparently some people run the tests on Linux. Imagine that. :)
++
++== 1.18 / 2012-03-20
+ * New MIME Types:
+ * Types reported in Issue #6 (https://github.com/halostatue/mime-types/issues/6):
+ * CoffeeScript (text/x-coffeescript; .coffee; 8bit).
+@@ -13,11 +17,11 @@
+ * It was pointed out that Licence.txt was incorrectly named. Fixed by renaming to Licence.rdoc (from Issue/Pull Request #8, https://github.com/halostatue/mime-types/issues/8).
+ * It was pointed out that a plan to have the test output generated automatically never went through. Issue #10 (https://github.com/halostatue/mime-types/issues/10)
+
+-== MIME::Types 1.17.2 / 2011-10-25
++== 1.17.2 / 2011-10-25
+ * Bug Fixes:
+ * Fixed an issue with Ruby 1.9 and file encoding.
+
+-== MIME::Types 1.17.1 / 2011-10-23
++== 1.17.1 / 2011-10-23
+ * Minor Enhancements:
+ * Implemented modern 'hoe' semantics.
+ * Switched to minitest instead of test/unit.
+@@ -34,7 +38,7 @@
+ * Made it much easier to update MIME types from this point forward.
+ * Updated MIME types from IANA.
+
+-== MIME::Types 1.16
++== 1.16
+ * Made compatible with Ruby 1.8.6, 1.8.7, and 1.9.1.
+ * Switched to the 'hoe' gem system and added a lot of build-time tools.
+ * Updated the MIME types to the list based on the values in the Perl library
+@@ -44,7 +48,7 @@
+ starting soon on MIME::Types 2.x with richer data querying mechanisms
+ and support for external data sources.
+
+-== MIME::Types 1.15
++== 1.15
+ * Removed lib/mime/type.rb to form a single MIME::Types database source. It
+ is unlikely that one will ever need MIME::Type without MIME::Types.
+ * Re-synchronized the MIME type list with the sources, focusing primarily on
+@@ -58,7 +62,7 @@
+ priority as of this release. The data format and information has changed.
+ * Removed MIME::Types.by_suffix and MIME::Types.by_mediatype.
+
+-== MIME::Types 1.13.1
++== 1.13.1
+ * Fixed a problem with the installer running tests. This now works.
+ * Improved the implementation of MIME::Type.signature?
+ * Moved code around to use the class << self idiom instead of always
+@@ -72,7 +76,7 @@
+ version number to be updated separately from the Perl version while keeping
+ the MIME Type list version in sync.
+
+-== MIME::Types 1.13
++== 1.13
+ ! WARNING: This version changes the API of MIME::Types !
+ ! WARNING: This version is compatible with Ruby 1.8 and higher ONLY !
+ * Removed dependency on InstallPackage; offering 1.13 as either .tar.gz or
+@@ -111,22 +115,22 @@
+ exchange between the two projects.
+ * Added additional unit tests from Mark Overmeer's 1.12 version.
+
+-== MIME::Types 1.07
++== 1.07
+ * Changed version numbering to match Perl MIME::Types 1.07.
+ * Re-synchronized with Mark Overmeer's list in Perl PMIME::Types 1.07.
+ * [NN Poster] updated the attributes for the PGP types.
+
+-== MIME::Types 1.005
++== 1.005
+ * Changed to Phil Thomson's InstallPackage.
+ * Added several types from Perl MIME::Types 1.005.
+ * Cleaned up data format; some data formats will show up with proper data now.
+
+-== MIME::Types 1.004
++== 1.004
+ * Updated to match Perl MIME::Types 1.004, links credited to Dan Puro. Adds
+ new reference list to http://www.indiana.edu/cgi-bin-local/mimetypes
+ * Removed InvalidType and replaced with TypeError.
+ * Changed instances of #type to #class.
+ * Cleaned up how simplified versions are created.
+
+-== MIME::Types 1.003
++== 1.003
+ * Initial release based on Perl MIME::Types 1.003.
+diff --git a/test/test_mime_type.rb b/test/test_mime_type.rb
+index 4dfa3a4..8e84cc4 100644
+--- a/test/test_mime_type.rb
++++ b/test/test_mime_type.rb
+@@ -2,11 +2,10 @@ $LOAD_PATH.unshift("#{File.dirname(__FILE__)}/../lib") if __FILE__ == $0
+
+ require 'mime/types'
+ require 'minitest/autorun'
+-#require 'test/unit' unless defined? $ZENTEST and $ZENTEST
+
+ class TestMIME_Type < MiniTest::Unit::TestCase
+ def yaml_mime_type_from_array
+- MIME::Type.from_array('text/x-yaml', %w(yaml yml), '8bit', 'linux')
++ MIME::Type.from_array('text/x-yaml', %w(yaml yml), '8bit', 'd9d172f608')
+ end
+
+ def setup
+@@ -22,7 +21,7 @@ class TestMIME_Type < MiniTest::Unit::TestCase
+ def test_class_from_hash
+ yaml = MIME::Type.from_hash('Content-Type' => 'text/x-yaml',
+ 'Content-Transfer-Encoding' => '8bit',
+- 'System' => 'linux',
++ 'System' => 'd9d172f608',
+ 'Extensions' => %w(yaml yml))
+ assert_instance_of(MIME::Type, yaml)
+ assert_equal('text/yaml', yaml.simplified)
+@@ -247,7 +246,7 @@ class TestMIME_Type < MiniTest::Unit::TestCase
+
+ def test_system_equals
+ yaml = yaml_mime_type_from_array
+- assert_equal(yaml.system, %r{linux})
++ assert_equal(yaml.system, %r{d9d172f608})
+ yaml.system = /win32/
+ assert_equal(yaml.system, %r{win32})
+ yaml.system = nil
+@@ -264,7 +263,7 @@ class TestMIME_Type < MiniTest::Unit::TestCase
+ def test_to_a
+ yaml = yaml_mime_type_from_array
+ assert_equal(yaml.to_a, ['text/x-yaml', %w(yaml yml), '8bit',
+- /linux/, nil, nil, nil, false])
++ /d9d172f608/, nil, nil, nil, false])
+ end
+
+ def test_to_hash
+@@ -273,7 +272,7 @@ class TestMIME_Type < MiniTest::Unit::TestCase
+ { 'Content-Type' => 'text/x-yaml',
+ 'Content-Transfer-Encoding' => '8bit',
+ 'Extensions' => %w(yaml yml),
+- 'System' => /linux/,
++ 'System' => /d9d172f608/,
+ 'Registered' => false,
+ 'URL' => nil,
+ 'Obsolete' => nil,
+@@ -289,7 +288,7 @@ class TestMIME_Type < MiniTest::Unit::TestCase
+ yaml = MIME::Type.new('text/x-yaml') do |y|
+ y.extensions = %w(yaml yml)
+ y.encoding = '8bit'
+- y.system = 'linux'
++ y.system = 'd9d172f608'
+ end
+ assert_instance_of(MIME::Type, yaml)
+ assert_raises(MIME::InvalidContentType) { MIME::Type.new('apps') }
diff --git a/dev-ruby/mime-types/mime-types-1.18.ebuild b/dev-ruby/mime-types/mime-types-1.18.ebuild
new file mode 100644
index 000000000000..b1429d51b62f
--- /dev/null
+++ b/dev-ruby/mime-types/mime-types-1.18.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mime-types/mime-types-1.18.ebuild,v 1.1 2012/03/22 07:05:04 graaff Exp $
+
+EAPI=2
+
+USE_RUBY="ruby18 ruby19 jruby ree18"
+
+RUBY_FAKEGEM_TASK_DOC="docs"
+RUBY_FAKEGEM_DOCDIR="doc"
+RUBY_FAKEGEM_EXTRADOC="History.rdoc README.rdoc"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Provides a mailcap-like MIME Content-Type lookup for Ruby."
+HOMEPAGE="http://rubyforge.org/projects/mime-types"
+
+LICENSE="Ruby Artistic GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~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_add_bdepend "doc? ( dev-ruby/hoe )
+ test? ( dev-ruby/hoe virtual/ruby-test-unit )"
+
+all_ruby_prepare() {
+ # when rcov is installed, and a new enough Hoe is installed as
+ # well, the Rakefile will fail because Hoe::test_files is no
+ # longer defined. Since we don't use rcov for testing, we just
+ # disable the whole section unconditionally.
+ sed -i -e '/rcovtask/,/end/ s:^:#:' Rakefile || die "Rakefile fix failed"
+
+ epatch "${FILESDIR}/${P}-linux-tests.patch"
+}