/[gentoo-x86]/dev-ruby/builder/builder-2.1.2-r3.ebuild
Gentoo

Contents of /dev-ruby/builder/builder-2.1.2-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Dec 24 11:53:35 2011 UTC (2 years, 8 months ago) by graaff
Branch: MAIN
Add ruby19 to builder 2.1.2 as well since that version is compatible with Rails. Avoid blankslate tests since these don't work.

(Portage version: 2.1.10.41/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/builder/builder-2.1.2-r2.ebuild,v 1.9 2011/07/24 17:32:21 armin76 Exp $
4
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 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 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 }

  ViewVC Help
Powered by ViewVC 1.1.20