| 1 |
ago |
1.2 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
graaff |
1.1 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
ago |
1.2 |
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/builder/builder-2.1.2-r3.ebuild,v 1.1 2011/12/24 11:53:35 graaff Exp $
|
| 4 |
graaff |
1.1 |
|
| 5 |
|
|
EAPI=2
|
| 6 |
|
|
USE_RUBY="ruby18 ruby19 ree18 jruby"
|
| 7 |
|
|
|
| 8 |
|
|
RUBY_FAKEGEM_TASK_TEST="test_all"
|
| 9 |
|
|
|
| 10 |
|
|
RUBY_FAKEGEM_DOCDIR="doc"
|
| 11 |
|
|
RUBY_FAKEGEM_EXTRADOC="README CHANGES"
|
| 12 |
|
|
|
| 13 |
|
|
inherit ruby-fakegem eutils
|
| 14 |
|
|
|
| 15 |
|
|
DESCRIPTION="A builder to facilitate programatic generation of XML markup"
|
| 16 |
|
|
HOMEPAGE="http://rubyforge.org/projects/builder/"
|
| 17 |
|
|
SRC_URI="mirror://rubyforge/${PN}/${P}.tgz"
|
| 18 |
|
|
|
| 19 |
|
|
LICENSE="MIT"
|
| 20 |
|
|
SLOT="0"
|
| 21 |
ago |
1.2 |
KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
|
| 22 |
graaff |
1.1 |
IUSE=""
|
| 23 |
|
|
|
| 24 |
|
|
ruby_add_bdepend "test? ( virtual/ruby-test-unit )"
|
| 25 |
|
|
|
| 26 |
|
|
all_ruby_prepare() {
|
| 27 |
|
|
sed -i -e '/rdoc\.template .*jamis/d' Rakefile || die
|
| 28 |
|
|
|
| 29 |
|
|
epatch "${FILESDIR}"/${P}-activesupport.patch
|
| 30 |
|
|
epatch "${FILESDIR}"/${P}-fix-tests.patch
|
| 31 |
|
|
}
|
| 32 |
|
|
|
| 33 |
|
|
each_ruby_prepare() {
|
| 34 |
|
|
case ${RUBY} in
|
| 35 |
|
|
*ruby19)
|
| 36 |
|
|
rm test/testblankslate.rb || die
|
| 37 |
|
|
;;
|
| 38 |
|
|
*)
|
| 39 |
|
|
;;
|
| 40 |
|
|
esac
|
| 41 |
|
|
}
|
| 42 |
|
|
|
| 43 |
|
|
each_ruby_test() {
|
| 44 |
|
|
${RUBY} -Ilib:. -S testrb test/test*.rb || die
|
| 45 |
|
|
}
|