blob: b41caffc238d9a0be9d1e2e5f7ed6337c57d69c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/deprecated/deprecated-2.0.1.ebuild,v 1.5 2009/09/24 14:04:28 armin76 Exp $
EAPI="2"
inherit ruby
USE_RUBY="ruby18 ruby19"
DESCRIPTION="A Ruby library for handling deprecated code"
HOMEPAGE="http://rubyforge.org/projects/deprecated"
SRC_URI="mirror://rubyforge/deprecated/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~ia64 ~sparc ~x86"
IUSE="test"
DEPEND="test? ( dev-ruby/test-unit )
${RDEPEND}"
RDEPEND="dev-lang/ruby"
src_test() {
for rb in $USE_RUBY; do
[ -n "$(type -p ${rb})" ] || continue
ebegin "Testing for ${rb}"
${rb} setup.rb test || die "test failed"
eend $?
done
}
src_install() {
ruby setup.rb install --prefix="${D}" || die "setup.rb install failed"
}
|