| 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/activeresource/activeresource-3.1.6.ebuild,v 1.1 2012/06/17 09:26:49 graaff Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
USE_RUBY="ruby18 ruby19 ree18"
|
| 8 |
|
| 9 |
RUBY_FAKEGEM_TASK_DOC=""
|
| 10 |
RUBY_FAKEGEM_DOCDIR="doc"
|
| 11 |
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.rdoc"
|
| 12 |
|
| 13 |
RUBY_FAKEGEM_GEMSPEC="activeresource.gemspec"
|
| 14 |
|
| 15 |
inherit ruby-fakegem
|
| 16 |
|
| 17 |
DESCRIPTION="Think Active Record for web resources.."
|
| 18 |
HOMEPAGE="http://rubyforge.org/projects/activeresource/"
|
| 19 |
SRC_URI="http://github.com/rails/rails/tarball/v${PV} -> rails-${PV}.tgz"
|
| 20 |
|
| 21 |
LICENSE="MIT"
|
| 22 |
SLOT="3.1"
|
| 23 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
| 24 |
IUSE=""
|
| 25 |
|
| 26 |
RUBY_S="rails-rails-*/activeresource"
|
| 27 |
|
| 28 |
ruby_add_rdepend "~dev-ruby/activesupport-${PV}
|
| 29 |
~dev-ruby/activemodel-${PV}"
|
| 30 |
ruby_add_bdepend "
|
| 31 |
test? (
|
| 32 |
>=dev-ruby/mocha-0.9.5
|
| 33 |
virtual/ruby-test-unit
|
| 34 |
)"
|
| 35 |
|
| 36 |
all_ruby_prepare() {
|
| 37 |
# Set test environment to our hand.
|
| 38 |
rm "${S}/../Gemfile" || die "Unable to remove Gemfile"
|
| 39 |
sed -i -e '/load_paths/d' test/abstract_unit.rb || die "Unable to remove load paths"
|
| 40 |
|
| 41 |
}
|