blob: 43d1ec726d144e24e9d23cfd2aaeeed62a19dbcd (
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
|
# Copyright 1999-2010 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.1 2010/07/05 18:39:21 graaff Exp $
EAPI=2
USE_RUBY="ruby18"
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="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
IUSE="doc"
S="${WORKDIR}/rmail-${PV}"
ruby_add_bdepend "doc? ( dev-ruby/rake )"
each_ruby_configure() {
${RUBY} install.rb config --prefix=/usr || die
}
each_ruby_compile() {
${RUBY} install.rb setup || die
}
all_ruby_compile() {
rake rdoc || die
}
each_ruby_test() {
${RUBY} 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
dohtml -r html/* || die
cp -r guide "${D}/usr/share/doc/${PF}" || die
}
|