dev-ruby/openfact - 5.6.1 (gentoo)

Search

Install

Install this version:

emerge -a =dev-ruby/openfact-5.6.1

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-ruby/openfact-5.6.1

Or alternatively:

emerge --autounmask-write -a =dev-ruby/openfact-5.6.1

Package Information

Description:
OpenFact, a system inventory tool (community implementation of Facter)
Homepage:
https://github.com/OpenVoxProject/openfact
License:
Apache-2.0

Ebuild Details

Version EAPI Keywords Slot
5.6.1 8 ~amd64 ~arm64 ~ppc ~x86 0
View Raw Ebuild
# Copyright 2025-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

USE_RUBY="ruby32 ruby33 ruby34"
RUBY_FAKEGEM_GEMSPEC="openfact.gemspec"
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
RUBY_FAKEGEM_RECIPE_DOC="yard"

inherit ruby-fakegem

DESCRIPTION="OpenFact, a system inventory tool (community implementation of Facter)"
HOMEPAGE="https://github.com/OpenVoxProject/openfact"

LICENSE="Apache-2.0"
SLOT="0"
IUSE="test"

if [[ ${PV} == 9999 ]] ; then
	inherit git-r3
	EGIT_REPO_URI="https://github.com/OpenVoxProject/openfact.git"
	EGIT_BRANCH="main"
else
	[[ "${PV}" = *_rc* ]] || \
	KEYWORDS="~amd64 ~arm64 ~ppc ~x86"
	SRC_URI="https://github.com/OpenVoxProject/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
fi

ruby_add_rdepend "
	dev-ruby/ffi
	dev-ruby/hocon
	dev-ruby/sys-filesystem
	<dev-ruby/thor-2.0
"

ruby_add_bdepend "test? ( dev-ruby/webmock )"

RDEPEND+="
	!dev-ruby/facter
	!app-admin/puppet-agent
"

all_ruby_prepare() {
	sed -e 's/__dir__/"."/' \
		-e 's/__FILE__/"'${RUBY_FAKEGEM_GEMSPEC}'"/' \
		-i ${RUBY_FAKEGEM_GEMSPEC} || die

	# Breaks tests; handle deps ourselves
	sed -e "/require 'bundler/d" -i spec/spec_helper.rb || die

	# dev tasks not needed, but block tests
	local f
	for f in tasks/rubocop.rake tasks/check.rake ; do
		mv ${f}{,.DISABLE} || die
	done

	# Avoid dependency on simplecov
	sed -e '/simplecov/,/^end/ s:^:#:' \
		-e '/SimpleCov/ s:^:#:' \
		-i spec/spec_helper.rb || die
}

USE Flags

Manage flags for this package: euse -i <flag> -p dev-ruby/openfact | euse -E <flag> -p dev-ruby/openfact | euse -D <flag> -p dev-ruby/openfact

Global/Standard Flags

Inherited Eclasses

Dependencies

RDEPEND

	!dev-ruby/facter
	!app-admin/puppet-agent

Manifest for 5.6.1

Type File Size Source URLs
DIST openfact-5.6.1.tar.gz 498649 bytes https://github.com/OpenVoxProject/openfact/archive/5.6.1.tar.gz