| 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=""
|
| 12 |
RUBY_FAKEGEM_TASK_DOC=""
|
| 13 |
|
| 14 |
RUBY_FAKEGEM_DOCDIR="rdoc"
|
| 15 |
RUBY_FAKEGEM_EXTRADOC="THANKS BLURB README.markdown"
|
| 16 |
|
| 17 |
inherit ruby-fakegem versionator eutils
|
| 18 |
|
| 19 |
DESCRIPTION="A ruby code coverage analysis tool"
|
| 20 |
HOMEPAGE="http://eigenclass.org/hiki.rb?rcov"
|
| 21 |
#SRC_URI="http://github.com/relevance/${PN}/tarball/release_$(replace_all_version_separators _) -> ${P}.tgz"
|
| 22 |
SRC_URI="http://github.com/relevance/${PN}/tarball/e7c1821b50bef0f933ef857278bf82e9c24638e4 -> ${P}.tgz"
|
| 23 |
|
| 24 |
RUBY_S="relevance-${PN}-*"
|
| 25 |
|
| 26 |
LICENSE="GPL-2"
|
| 27 |
SLOT="0"
|
| 28 |
KEYWORDS="~amd64 ~ppc ~x86"
|
| 29 |
|
| 30 |
# TODO: both emacs and vim support are present in this package, they
|
| 31 |
# should probably be added to the ebuild as well.
|
| 32 |
IUSE=""
|
| 33 |
|
| 34 |
ruby_add_bdepend "doc? ( dev-ruby/rdoc )"
|
| 35 |
|
| 36 |
# upstream's Rakefile is braindead and just asking for rake -D causes
|
| 37 |
# the extension to be rebuilt, so do everything by hand.
|
| 38 |
|
| 39 |
each_ruby_configure() {
|
| 40 |
${RUBY} -C ext/rcovrt extconf.rb || die "extconf.rb failed"
|
| 41 |
}
|
| 42 |
|
| 43 |
each_ruby_compile() {
|
| 44 |
emake -C ext/rcovrt CFLAGS="${CFLAGS} -fPIC" archflag="${LDFLAGS}"
|
| 45 |
cp ext/rcovrt/*.so lib/ || die
|
| 46 |
}
|
| 47 |
|
| 48 |
all_ruby_compile() {
|
| 49 |
if use doc; then
|
| 50 |
rdoc --op rdoc || die
|
| 51 |
fi
|
| 52 |
}
|
| 53 |
|
| 54 |
each_ruby_test() {
|
| 55 |
${RUBY} -Ilib -S testrb test/*_test.rb
|
| 56 |
}
|