| 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/ohai/ohai-0.6.12.ebuild,v 1.3 2012/08/13 21:33:55 flameeyes Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
USE_RUBY="ruby18 ruby19"
|
| 7 |
|
| 8 |
RUBY_FAKEGEM_TASK_DOC=""
|
| 9 |
RUBY_FAKEGEM_EXTRADOC="CHANGELOG README.rdoc"
|
| 10 |
|
| 11 |
RUBY_FAKEGEM_TASK_TEST="spec"
|
| 12 |
|
| 13 |
inherit ruby-fakegem
|
| 14 |
|
| 15 |
DESCRIPTION="Ohai profiles your system and emits JSON"
|
| 16 |
HOMEPAGE="http://wiki.opscode.com/display/chef/Ohai"
|
| 17 |
SRC_URI="https://github.com/opscode/${PN}/tarball/${PV} -> ${P}.tgz"
|
| 18 |
RUBY_S="opscode-${PN}-*"
|
| 19 |
|
| 20 |
LICENSE="Apache-2.0"
|
| 21 |
SLOT="0"
|
| 22 |
KEYWORDS="~amd64 ~x86"
|
| 23 |
IUSE=""
|
| 24 |
|
| 25 |
# specs have issues with multiple ruby versions
|
| 26 |
RESTRICT="test"
|
| 27 |
|
| 28 |
ruby_add_rdepend "
|
| 29 |
dev-ruby/ipaddress
|
| 30 |
dev-ruby/yajl-ruby
|
| 31 |
dev-ruby/mixlib-cli
|
| 32 |
dev-ruby/mixlib-config
|
| 33 |
dev-ruby/mixlib-log
|
| 34 |
>=dev-ruby/systemu-2.2.0"
|
| 35 |
|
| 36 |
all_ruby_prepare() {
|
| 37 |
rm Gemfile || die
|
| 38 |
# Be more lenient to work with versions of systemu that we have in
|
| 39 |
# the tree.
|
| 40 |
sed -i -e 's/~> 2.2.0/>= 2.2.0/' ohai.gemspec || die
|
| 41 |
}
|
| 42 |
|
| 43 |
all_ruby_install() {
|
| 44 |
all_fakegem_install
|
| 45 |
|
| 46 |
doman docs/man/man1/ohai.1
|
| 47 |
}
|