51 lines
1.2 KiB
Bash
51 lines
1.2 KiB
Bash
# 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
|
|
}
|