/[gentoo-x86]/dev-ruby/rcov/rcov-0.9.11.ebuild
Gentoo

Contents of /dev-ruby/rcov/rcov-0.9.11.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Feb 14 13:41:27 2012 UTC (2 years, 6 months ago) by flameeyes
Branch: MAIN
Changes since 1.1: +3 -3 lines
Version bump; drop jruby support as it doesn't build with current JRuby and upstream is not very friendly.

(Portage version: 2.2.0_alpha86/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/rcov/rcov-0.9.11.ebuild,v 1.1 2011/10/10 19:49:09 graaff Exp $
4
5 EAPI=4
6
7 # The documenttion indicates that rcov does not work with (reliably)
8 # with ruby 1.9. Use ruby 1.9's built in coverage or simplecov instead.
9 USE_RUBY="ruby18 "
10
11 RUBY_FAKEGEM_TASK_TEST="test_rcovrt"
12
13 RUBY_FAKEGEM_DOCDIR="rdoc"
14 RUBY_FAKEGEM_EXTRADOC="THANKS BLURB"
15
16 inherit ruby-fakegem versionator eutils
17
18 DESCRIPTION="A ruby code coverage analysis tool"
19 HOMEPAGE="http://eigenclass.org/hiki.rb?rcov"
20 #SRC_URI="http://github.com/relevance/${PN}/tarball/release_$(replace_all_version_separators _) -> ${P}.tgz"
21 SRC_URI="http://github.com/relevance/${PN}/tarball/b5513cae5ea3348d97c21a3c324d8e8a7768e814 -> ${P}.tgz"
22
23 RUBY_S="relevance-${PN}-*"
24
25 LICENSE="GPL-2"
26 SLOT="0"
27 KEYWORDS="~amd64 ~ppc ~x86"
28
29 # TODO: both emacs and vim support are present in this package, they
30 # should probably be added to the ebuild as well.
31 IUSE=""
32
33 all_ruby_prepare() {
34 epatch "${FILESDIR}"/${PN}-0.9.7.1-jruby.patch
35
36 # Without this change, testing will always cause the extension to
37 # be rebuilt, and we don't want that.
38 sed -i -e '/:test_rcovrt =>/s| => \[.*\]||' Rakefile || die "Rakefile fix failed"
39
40 # remove pre-packaged jar file (d'oh!)
41 rm lib/rcovrt.jar || die
42
43 # Remove test suite with failing tests that upstream believes to
44 # work correctly so that we can run the remainder of tests.
45 # https://github.com/relevance/rcov/issues/40
46 rm test/code_coverage_analyzer_test.rb || die
47
48 }
49
50 each_ruby_compile() {
51 if [[ $(basename ${RUBY}) = "jruby" ]]; then
52 ${RUBY} -S rake lib/rcovrt.jar || die "build failed"
53 else
54 ${RUBY} -S rake ext/rcovrt/rcovrt.so || die "build failed"
55 cp ext/rcovrt/rcovrt.so lib/ || die
56 fi
57 }

  ViewVC Help
Powered by ViewVC 1.1.20