diff options
author | Hans de Graaff <graaff@gentoo.org> | 2017-12-24 10:58:25 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2017-12-24 10:59:42 +0100 |
commit | aa2a6471d6e1841118a4694b11192d486ac995b0 (patch) | |
tree | 8b692509c1a4414cad1d5295ae5581921df9fc7f /dev-ruby/facter | |
parent | media-libs/speex: stable 1.2.0-r1 for ia64, bug #641504 (diff) | |
download | gentoo-aa2a6471d6e1841118a4694b11192d486ac995b0.tar.gz gentoo-aa2a6471d6e1841118a4694b11192d486ac995b0.tar.bz2 gentoo-aa2a6471d6e1841118a4694b11192d486ac995b0.zip |
dev-ruby/facter: fix tests, bug 640362
Package-Manager: Portage-2.3.13, Repoman-2.3.3
Diffstat (limited to 'dev-ruby/facter')
-rw-r--r-- | dev-ruby/facter/facter-3.9.3.ebuild | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/dev-ruby/facter/facter-3.9.3.ebuild b/dev-ruby/facter/facter-3.9.3.ebuild index ab465a65a855..d15e9288ae66 100644 --- a/dev-ruby/facter/facter-3.9.3.ebuild +++ b/dev-ruby/facter/facter-3.9.3.ebuild @@ -30,6 +30,8 @@ CDEPEND=" >=dev-cpp/yaml-cpp-0.5.1 !<app-admin/puppet-4.0.0" +ruby_add_bdepend "test? ( dev-ruby/rake dev-ruby/rspec:2 dev-ruby/mocha:0.14 )" + RDEPEND="${CDEPEND}" DEPEND="${BDEPEND} ${CDEPEND}" @@ -43,6 +45,14 @@ src_prepare() { sed -i "s/lib\")/$(get_libdir)\")/g" CMakeLists.txt || die # make the require work sed -i 's/\${LIBFACTER_INSTALL_DESTINATION}\///g' lib/facter.rb.in || die + # be explicit about the version of rspec we test with and use the + # correct lib directory for tests + sed -i -e '/libfacter.*specs/ s/rspec/rspec-2/' \ + -e '/libfacter.*specs/ s/lib64/lib/' CMakeLists.txt || die + # be more lenient for software versions for tests + sed -i -e '/rake/ s/~> 10.1.0/>= 10/' \ + -e '/rspec/ s/2.11.0/2.11/' \ + -e '/mocha/ s/0.10.5/0.14.0/' lib/Gemfile || die # patches default cmake-utils_src_prepare |