blob: fa65133f7a380f9b514a9f476ab5ad764d13b7cc (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/eventmachine/eventmachine-0.12.10-r1.ebuild,v 1.1 2009/12/27 19:49:50 a3li Exp $
EAPI="2"
USE_RUBY="ruby18 ruby19"
RUBY_FAKEGEM_DOCDIR="rdoc"
RUBY_FAKEGEM_EXTRADOC="docs/ChangeLog README"
inherit ruby-fakegem
DESCRIPTION="EventMachine is a fast, simple event-processing library for Ruby programs."
HOMEPAGE="http://rubyeventmachine.com"
LICENSE="|| ( GPL-2 Ruby )"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
IUSE="examples"
ruby_add_bdepend 'dev-ruby/rake'
all_ruby_prepare() {
# This test only works on BSD, and error handling fails on 1.8
rm tests/test_process_watch.rb || die "rm failed"
}
each_ruby_compile() {
${RUBY} /usr/bin/rake build || die "rake build failed"
}
all_ruby_install() {
all_fakegem_install
use examples || return
insinto /usr/share/doc/${PF}/
doins -r examples || die "Failed to install examples"
}
|