| 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/activesupport/activesupport-3.2.8.ebuild,v 1.1 2012/08/10 06:42:29 graaff Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
USE_RUBY="ruby18 ree18 ruby19"
|
| 8 |
|
| 9 |
RUBY_FAKEGEM_TASK_DOC=""
|
| 10 |
|
| 11 |
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.rdoc"
|
| 12 |
|
| 13 |
RUBY_FAKEGEM_GEMSPEC="activesupport.gemspec"
|
| 14 |
|
| 15 |
RUBY_FAKEGEM_BINWRAP=""
|
| 16 |
|
| 17 |
inherit ruby-fakegem versionator
|
| 18 |
|
| 19 |
DESCRIPTION="Utility Classes and Extension to the Standard Library"
|
| 20 |
HOMEPAGE="http://rubyforge.org/projects/activesupport/"
|
| 21 |
SRC_URI="https://github.com/rails/rails/tarball/v${PV} -> rails-${PV}.tgz"
|
| 22 |
|
| 23 |
LICENSE="MIT"
|
| 24 |
SLOT="$(get_version_component_range 1-2)"
|
| 25 |
KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
| 26 |
IUSE=""
|
| 27 |
|
| 28 |
RUBY_S="rails-rails-*/${PN}"
|
| 29 |
|
| 30 |
ruby_add_rdepend ">=dev-ruby/memcache-client-1.5.8
|
| 31 |
>=dev-ruby/multi_json-1.0
|
| 32 |
dev-ruby/i18n:0.6
|
| 33 |
!!<dev-ruby/activesupport-3.0.11-r1:3.0"
|
| 34 |
|
| 35 |
# libxml-ruby, nokogiri, and builder are not strictly needed, but there
|
| 36 |
# are tests using this code.
|
| 37 |
ruby_add_bdepend "test? (
|
| 38 |
>=dev-ruby/libxml-2.0.0
|
| 39 |
dev-ruby/nokogiri
|
| 40 |
dev-ruby/builder:0
|
| 41 |
)"
|
| 42 |
|
| 43 |
all_ruby_prepare() {
|
| 44 |
# Set test environment to our hand.
|
| 45 |
# rm "${S}/../Gemfile" || die "Unable to remove Gemfile"
|
| 46 |
sed -i -e '/load_paths/d' test/abstract_unit.rb || die "Unable to remove load paths"
|
| 47 |
}
|