You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-ruby/mime-types/mime-types-1.16-r2.ebuild

33 lines
1.0 KiB

# 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.16-r2.ebuild,v 1.13 2012/05/01 18:24:19 armin76 Exp $
EAPI=2
USE_RUBY="ruby18 jruby ree18"
RUBY_FAKEGEM_TASK_DOC="docs"
RUBY_FAKEGEM_DOCDIR="doc"
RUBY_FAKEGEM_EXTRADOC="History.txt Install.txt README.txt"
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 ~ppc ppc64 ~x86 ~x86-macos ~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"
}