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/oauth/oauth-0.4.7-r1.ebuild

37 lines
991 B

# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/oauth/oauth-0.4.7-r1.ebuild,v 1.3 2014/11/11 11:07:52 mrueg Exp $
EAPI=5
USE_RUBY="ruby19"
RUBY_FAKEGEM_TASK_DOC=""
RUBY_FAKEGEM_EXTRADOC="HISTORY README.rdoc TODO"
inherit ruby-fakegem
DESCRIPTION="A RubyGem for implementing both OAuth clients and servers"
HOMEPAGE="http://oauth.rubyforge.org/"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~x86-macos"
IUSE=""
ruby_add_bdepend "test? (
dev-ruby/test-unit:2
dev-ruby/mocha:0.12
dev-ruby/webmock )"
all_ruby_prepare() {
# Require a compatible version of mocha
sed -i -e '1igem "mocha", "~> 0.12.0"' test/test_helper.rb || die
# Ensure a consistent test order to avoid loading issues with e.g. rack
sed -i -e "s/.rb']/.rb'].sort/" Rakefile || die
# Remove tests that require Rails 2.3 since that is ruby18-only.
rm test/test_action_controller_request_proxy.rb || die
}