blob: d6e968a683193b7bbc780c656c04a27c126a7af6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubymail/rubymail-1.0.0-r1.ebuild,v 1.10 2012/11/07 03:31:11 jer Exp $
EAPI=4
# ruby19 → test failures
USE_RUBY="ruby18 ree18 jruby"
inherit ruby-ng
DESCRIPTION="A mail handling library for Ruby"
HOMEPAGE="http://raa.ruby-lang.org/project/rubymail/"
SRC_URI="http://rubyforge.org/frs/download.php/30221/rmail-${PV}.tgz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 hppa ~mips ppc ppc64 x86"
IUSE="doc"
RUBY_S="rmail-${PV}"
ruby_add_bdepend "doc? ( dev-ruby/rake )"
all_ruby_prepare() {
sed -i -e '212 s:^:#:' test/testheader.rb || die
}
each_ruby_configure() {
${RUBY} install.rb config --prefix=/usr || die
}
each_ruby_compile() {
${RUBY} install.rb setup || die
}
all_ruby_compile() {
use doc && (rake rdoc || die)
}
each_ruby_test() {
${RUBY} -I. test/runtests.rb || die "runtests.rb failed."
}
each_ruby_install() {
${RUBY} install.rb config --prefix="${D}/usr" || die
${RUBY} install.rb install || die
}
all_ruby_install() {
dodoc NEWS NOTES README THANKS TODO || die
use doc && (dohtml -r html/* || die)
cp -r guide "${D}/usr/share/doc/${PF}" || die
}
|