| 1 |
graaff |
1.1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
|
|
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
|
|
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/bundler/bundler-1.0.22.ebuild,v 1.2 2012/03/07 18:06:58 naota Exp $
|
| 4 |
|
|
|
| 5 |
|
|
EAPI=2
|
| 6 |
|
|
|
| 7 |
|
|
# jruby → needs to be tested because jruby-1.5.1 fails in multiple
|
| 8 |
|
|
# ways unrelated to this package.
|
| 9 |
|
|
USE_RUBY="ruby18 ruby19 ree18"
|
| 10 |
|
|
|
| 11 |
|
|
RUBY_FAKEGEM_RECIPE_TEST="rspec"
|
| 12 |
|
|
|
| 13 |
|
|
# No documentation task
|
| 14 |
|
|
RUBY_FAKEGEM_TASK_DOC=""
|
| 15 |
|
|
RUBY_FAKEGEM_EXTRADOC="README.md CHANGELOG.md ISSUES.md UPGRADING.md"
|
| 16 |
|
|
|
| 17 |
|
|
inherit ruby-fakegem
|
| 18 |
|
|
|
| 19 |
|
|
DESCRIPTION="An easy way to vendor gem dependencies"
|
| 20 |
|
|
HOMEPAGE="http://github.com/carlhuda/bundler"
|
| 21 |
|
|
|
| 22 |
|
|
LICENSE="MIT"
|
| 23 |
|
|
SLOT="0"
|
| 24 |
|
|
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
| 25 |
|
|
IUSE=""
|
| 26 |
|
|
|
| 27 |
|
|
ruby_add_rdepend virtual/rubygems
|
| 28 |
|
|
|
| 29 |
|
|
ruby_add_bdepend "test? ( app-text/ronn )"
|
| 30 |
|
|
|
| 31 |
|
|
RDEPEND="${RDEPEND}
|
| 32 |
|
|
dev-vcs/git"
|
| 33 |
|
|
DEPEND="${DEPEND}
|
| 34 |
|
|
test? ( dev-vcs/git )"
|
| 35 |
|
|
|
| 36 |
|
|
all_ruby_prepare() {
|
| 37 |
|
|
# Bundler only supports running the specs from git:
|
| 38 |
|
|
# http://github.com/carlhuda/bundler/issues/issue/738
|
| 39 |
|
|
sed -i -e '751s/should/should_not/' spec/runtime/setup_spec.rb || die
|
| 40 |
|
|
|
| 41 |
|
|
# Fails randomly and no clear cause can be found. Might be related
|
| 42 |
|
|
# to bug 346357. This was broken in previous releases without a
|
| 43 |
|
|
# failing spec, so patch out this spec for now since it is not a
|
| 44 |
|
|
# regression.
|
| 45 |
|
|
sed -i -e '/works when you bundle exec bundle/,/^ end/ s:^:#:' spec/install/deploy_spec.rb || die
|
| 46 |
|
|
}
|
| 47 |
|
|
|
| 48 |
|
|
each_ruby_prepare() {
|
| 49 |
|
|
case ${RUBY} in
|
| 50 |
|
|
*ruby19)
|
| 51 |
|
|
# Account for different wording in ruby 1.9.3.
|
| 52 |
|
|
# sed -i -e 's/no such file to load/cannot load such file/' spec/runtime/require_spec.rb spec/install/gems/groups_spec.rb || die
|
| 53 |
|
|
;;
|
| 54 |
|
|
*)
|
| 55 |
|
|
;;
|
| 56 |
|
|
esac
|
| 57 |
|
|
}
|