/[gentoo-x86]/dev-ruby/facter/facter-2.4.4.ebuild
Gentoo

Contents of /dev-ruby/facter/facter-2.4.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu May 21 07:44:22 2015 UTC (3 years, 6 months ago) by prometheanfire
Branch: MAIN
CVS Tags: HEAD
bup

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0x33ED3FD25AFC78BA)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/facter/facter-2.4.3.ebuild,v 1.2 2015/04/10 17:21:41 graaff Exp $
4
5 EAPI=5
6
7 USE_RUBY="ruby19 ruby20 ruby21 ruby22"
8 RUBY_FAKEGEM_TASK_DOC=""
9 RUBY_FAKEGEM_RECIPE_TEST="rspec"
10 RUBY_FAKEGEM_EXTRADOC="README.md"
11 RUBY_FAKEGEM_BINWRAP="facter"
12
13 inherit ruby-fakegem
14
15 DESCRIPTION="A cross-platform Ruby library for retrieving facts from operating systems"
16 HOMEPAGE="http://www.puppetlabs.com/puppet/related-projects/facter/"
17
18 LICENSE="Apache-2.0"
19 SLOT="0"
20 IUSE="+dmi +pciutils +virt"
21 KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
22
23 CDEPEND="
24 app-emulation/virt-what
25 sys-apps/net-tools
26 sys-apps/lsb-release
27 dmi? ( sys-apps/dmidecode )
28 pciutils? ( sys-apps/pciutils )"
29
30 RDEPEND+=" ${CDEPEND}"
31 DEPEND+=" test? ( ${CDEPEND} )"
32
33 ruby_add_bdepend "test? ( dev-ruby/mocha:1.0 )"
34
35 all_ruby_prepare() {
36 # Provide explicit path since /sbin is not in the default PATH on
37 # Gentoo.
38 sed -i -e 's:arp -an:/sbin/arp -an:' lib/facter/util/ec2.rb spec/unit/util/ec2_spec.rb || die
39
40 # Ensure the correct version of mocha is used without using bundler.
41 sed -i -e '1igem "mocha", "~>1.0"' spec/spec_helper.rb || die
42
43 # Avoid because tests try to access outside stuff, e.g. /sys/block
44 sed -i -e '/should load facts on the facter search path only once/,/^ end/ s:^:#:' spec/unit/util/loader_spec.rb || die
45
46 # Allow specs to work with newer rspec 2.x versions.
47 sed -i -e '1irequire "rspec-expectations"' spec/puppetlabs_spec/matchers.rb || die
48
49 # Avoid specs specific to macosx requiring cfpropertylist which is
50 # not available anymore.
51 rm spec/unit/util/macosx_spec.rb || die
52 sed -i -e '/macosx/ s:^:#:' \
53 -e '/on Darwin/,/^ end/ s:^:#:' spec/unit/virtual_spec.rb || die
54 sed -i -e '/Facter::Processors::Darwin/,/^end/ s:^:#:' spec/unit/processors/os_spec.rb || die
55 }
56
57 all_ruby_install() {
58 all_fakegem_install
59
60 # Create the directory for custom facts.
61 keepdir /etc/facter/facts.d
62 }

  ViewVC Help
Powered by ViewVC 1.1.20