| 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/actionmailer/actionmailer-3.0.16.ebuild,v 1.1 2012/07/28 08:19:07 graaff Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
USE_RUBY="ruby18 ree18"
|
| 7 |
|
| 8 |
RUBY_FAKEGEM_TASK_DOC=""
|
| 9 |
RUBY_FAKEGEM_EXTRADOC="CHANGELOG README.rdoc"
|
| 10 |
|
| 11 |
RUBY_FAKEGEM_GEMSPEC="actionmailer.gemspec"
|
| 12 |
|
| 13 |
inherit ruby-fakegem
|
| 14 |
|
| 15 |
DESCRIPTION="Framework for designing email-service layers"
|
| 16 |
HOMEPAGE="http://rubyforge.org/projects/actionmailer/"
|
| 17 |
SRC_URI="http://github.com/rails/rails/tarball/v${PV} -> rails-${PV}.tgz"
|
| 18 |
|
| 19 |
LICENSE="MIT"
|
| 20 |
SLOT="3.0"
|
| 21 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
| 22 |
IUSE=""
|
| 23 |
|
| 24 |
RUBY_S="rails-rails-*/actionmailer"
|
| 25 |
|
| 26 |
ruby_add_rdepend "~dev-ruby/actionpack-${PV}
|
| 27 |
>=dev-ruby/mail-2.2.19"
|
| 28 |
ruby_add_bdepend "test? (
|
| 29 |
>=dev-ruby/mocha-0.10.5
|
| 30 |
)"
|
| 31 |
|
| 32 |
all_ruby_prepare() {
|
| 33 |
# Set test environment to our hand.
|
| 34 |
rm "${S}/../Gemfile" || die "Unable to remove Gemfile"
|
| 35 |
sed -i -e '/\/load_paths/d' test/abstract_unit.rb || die "Unable to remove load paths"
|
| 36 |
|
| 37 |
sed -i -e '/dependency.*mail/s:~>:>=:' "${RUBY_FAKEGEM_GEMSPEC}" || die
|
| 38 |
|
| 39 |
# Rename private method to avoid conflict with the simple_format
|
| 40 |
# TextHelper. Already fixed in Rails 3.1.
|
| 41 |
sed -i -e 's/simple_format/format_paragraph/' lib/action_mailer/mail_helper.rb || die
|
| 42 |
}
|