Line 0
Link Here
|
|
|
1 |
# Copyright 1999-2011 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: |
4 |
|
5 |
EAPI="2" |
6 |
|
7 |
USE_RUBY="ruby18 ree18 ruby19 jruby" |
8 |
|
9 |
RUBY_FAKEGEM_TASK_DOC="" |
10 |
RUBY_FAKEGEM_TASK_TEST="" |
11 |
|
12 |
RUBY_FAKEGEM_DOCDIR="doc" |
13 |
RUBY_FAKEGEM_EXTRADOC="CHANGES.txt README.txt" |
14 |
|
15 |
inherit ruby-fakegem |
16 |
|
17 |
DESCRIPTION="Erubis is an implementation of eRuby" |
18 |
HOMEPAGE="http://www.kuwata-lab.com/erubis/" |
19 |
|
20 |
LICENSE="MIT" |
21 |
SLOT="0" |
22 |
KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-solaris" |
23 |
IUSE="" |
24 |
|
25 |
ruby_add_bdepend "test? ( virtual/ruby-test-unit )" |
26 |
ruby_add_rdepend ">=dev-ruby/abstract-1.0.0" |
27 |
|
28 |
each_ruby_prepare() { |
29 |
# Fix case so that the associated test will work. Reported as http://rubyforge.org/tracker/index.php?func=detail&aid=27330&group_id=1320&atid=5201 |
30 |
mv test/data/users-guide/Example.ejava test/data/users-guide/example.ejava || die |
31 |
|
32 |
epatch ${FILESDIR}/${PN}-test-fixrubybin.patch |
33 |
|
34 |
# jruby seems to have a different ordering of variables. |
35 |
# http://rubyforge.org/tracker/?func=detail&aid=28555&group_id=1320&atid=5201 |
36 |
case ${RUBY} in |
37 |
*jruby) |
38 |
sed -i -e 's/"x", "_buf"/"_buf", "x"/' test/data/users-guide/main_program2.result |
39 |
;; |
40 |
*) |
41 |
;; |
42 |
esac |
43 |
} |
44 |
|
45 |
each_ruby_test() { |
46 |
epatch ${FILESDIR}/${PN}-test-fixrubybin2-fix.patch |
47 |
RUBYLIB="${S}/lib" RUBYBIN="${RUBY}" ${RUBY} "${S}/test/test.rb" || die |
48 |
epatch ${FILESDIR}/${PN}-test-fixrubybin2-recover.patch |
49 |
} |