2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
3 |
3 |
|
4 |
4 |
EAPI=8
|
5 |
|
USE_RUBY="ruby27 ruby30 ruby31"
|
|
5 |
USE_RUBY="ruby30 ruby31 ruby32"
|
6 |
6 |
RUBY_FAKEGEM_GEMSPEC="facter.gemspec"
|
7 |
|
#RUBY_FAKEGEM_RECIPE_TEST="rspec3"
|
|
7 |
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
|
8 |
8 |
RUBY_FAKEGEM_RECIPE_DOC="yard"
|
9 |
9 |
|
10 |
|
inherit ruby-ng ruby-fakegem
|
|
10 |
inherit ruby-fakegem
|
11 |
11 |
|
12 |
12 |
DESCRIPTION="A cross-platform ruby library for retrieving facts from operating systems"
|
13 |
13 |
HOMEPAGE="http://www.puppetlabs.com/puppet/related-projects/facter/"
|
... | ... | |
21 |
21 |
EGIT_BRANCH="master"
|
22 |
22 |
else
|
23 |
23 |
[[ "${PV}" = *_rc* ]] || \
|
24 |
|
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
|
24 |
KEYWORDS="~amd64 ~x86"
|
|
25 |
#KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
25 |
26 |
SRC_URI="https://github.com/puppetlabs/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
26 |
27 |
fi
|
27 |
28 |
|
28 |
29 |
#RESTRICT="!test? ( test )"
|
29 |
30 |
|
30 |
31 |
ruby_add_rdepend "dev-ruby/hocon <dev-ruby/thor-2.0 dev-ruby/ffi dev-ruby/sys-filesystem"
|
31 |
|
#ruby_add_bdepend "test? ( dev-ruby/simplecov dev-ruby/timecop dev-ruby/webmock )"
|
|
32 |
ruby_add_bdepend "test? ( dev-ruby/simplecov dev-ruby/timecop dev-ruby/webmock )"
|
|
33 |
|
|
34 |
PATCHES=(
|
|
35 |
"${FILESDIR}"/facter-4.4.3-rspec-gentoo-tweak.patch
|
|
36 |
)
|
32 |
37 |
|
33 |
38 |
src_unpack() {
|
34 |
39 |
if [[ ${PV} == 9999 ]] ; then
|
... | ... | |
43 |
48 |
-i ${RUBY_FAKEGEM_GEMSPEC} || die
|
44 |
49 |
# Breaks tests; handle deps ourselves
|
45 |
50 |
sed -e "/require 'bundler/d" -i spec/spec_helper.rb || die
|
|
51 |
# dev tasks not needed, but block tests
|
|
52 |
for f in tasks/rubocop.rake tasks/check.rake ; do
|
|
53 |
test -e ${f} && mv -f ${f}{,.DISABLE}
|
|
54 |
done
|
46 |
55 |
}
|