/[gentoo-x86]/dev-ruby/mail/mail-2.3.3.ebuild
Gentoo

Contents of /dev-ruby/mail/mail-2.3.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Aug 14 04:18:14 2012 UTC (23 months, 2 weeks ago) by flameeyes
Branch: MAIN
Changes since 1.2: +3 -4 lines
Use the new rspec recipe for testing; on 2.3.3 this also changes the test dep from rspec:0 to rspec:2, but keeps a rspec:2 dependency for documentation.

(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)

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/mail/mail-2.3.3.ebuild,v 1.2 2012/08/10 06:13:08 graaff Exp $
4
5 EAPI=4
6 USE_RUBY="ruby18 ruby19 ree18"
7
8 RUBY_FAKEGEM_RECIPE_TEST="rspec"
9
10 RUBY_FAKEGEM_DOCDIR="rdoc"
11 RUBY_FAKEGEM_EXTRADOC="CHANGELOG.rdoc README.rdoc TODO.rdoc"
12
13 RUBY_FAKEGEM_GEMSPEC="mail.gemspec"
14
15 inherit ruby-fakegem
16
17 GITHUB_USER="mikel"
18
19 DESCRIPTION="An email handling library"
20 HOMEPAGE="https://github.com/mikel/mail"
21 SRC_URI="https://github.com/${GITHUB_USER}/mail/tarball/${PV} -> ${P}-git.tar.gz"
22
23 LICENSE="MIT"
24 SLOT="2.3"
25 KEYWORDS="~amd64 ~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="${GITHUB_USER}-${PN}-*"
29
30 ruby_add_rdepend "
31 >=dev-ruby/activesupport-2.3.6
32 >=dev-ruby/i18n-0.4.0
33 >=dev-ruby/mime-types-1.16
34 >=dev-ruby/treetop-1.4.8"
35
36 ruby_add_bdepend "doc? ( dev-ruby/rspec:0 )"
37
38 all_ruby_prepare() {
39 sed -i -e '/[Bb]undle/d' -e '6d' Rakefile || die "Unable to remove Bundler code."
40
41 # Fix up dependencies to match our own.
42 sed -i -e 's/~>/>=/' mail.gemspec || die "Unable to fix up dependencies."
43 }
44
45 each_ruby_prepare() {
46 # Comment out failing specs on ruby19. Reported upstream:
47 # https://github.com/mikel/mail/issues/318
48 case ${RUBY} in
49 *ruby19)
50 sed -i -e '/should return itself on sort/,/end/ s:^:#:' spec/mail/parts_list_spec.rb || die
51 sed -i -e '/should encode a non us-ascii filename/,/^ end/ s:^:#:' spec/mail/fields/content_type_field_spec.rb || die
52 ;;
53 esac
54 }

  ViewVC Help
Powered by ViewVC 1.1.20