diff options
author | Matthew Thode <prometheanfire@gentoo.org> | 2023-08-18 13:01:18 -0500 |
---|---|---|
committer | Matthew Thode <prometheanfire@gentoo.org> | 2023-08-18 13:02:39 -0500 |
commit | a6a4fa6aa7fb5c52a4928ae9b56bae3e5a0fb9dc (patch) | |
tree | 239f8d65b1d25a85b0dee716cbd866e84accc403 /dev-ruby/facter | |
parent | app-admin/ansible-core: stabilize 2.15.2 for amd64, arm64, x86 (diff) | |
download | gentoo-a6a4fa6aa7fb5c52a4928ae9b56bae3e5a0fb9dc.tar.gz gentoo-a6a4fa6aa7fb5c52a4928ae9b56bae3e5a0fb9dc.tar.bz2 gentoo-a6a4fa6aa7fb5c52a4928ae9b56bae3e5a0fb9dc.zip |
dev-ruby/facter: add 4.4.2
Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>
Diffstat (limited to 'dev-ruby/facter')
-rw-r--r-- | dev-ruby/facter/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/facter/facter-4.4.2.ebuild | 46 |
2 files changed, 47 insertions, 0 deletions
diff --git a/dev-ruby/facter/Manifest b/dev-ruby/facter/Manifest index 2ddcc4f1aa56..1fa1216cd4ca 100644 --- a/dev-ruby/facter/Manifest +++ b/dev-ruby/facter/Manifest @@ -1,2 +1,3 @@ DIST facter-3.14.24.tar.gz 410547 BLAKE2B 69d2fd3b1bf9f91456ca570f9fef44ddd6e7656a285c035ecb42df2553c461be137d06232fc1f96f239598143912928dcfaf0d9b3078f4335dfc83163eee5120 SHA512 88e47271f213570fb7819630f7b08076bd8b234612a2bb885de760acab48c37b588c1f214da11c5096f0db6b7df4a516b6e83abc56a1d95779b6f1353831e588 DIST facter-4.4.1.tar.gz 492785 BLAKE2B b8f173aee1e2c3a6e9b650e1962ee6a7f860cadb0ea09254f396cce60cb01d702feaf23e0e147a80ca95554bcf835bd23df59d4faa78404dc92fd86defb65472 SHA512 c9e148141b3348977c9d6209ed3d72ab1eaaff46e0ada2ce5c3452ee71c3cbc051605bf0d9aad77c249559639e52fbb423c6b3e0cb784f2c208ea206fb3f4fd8 +DIST facter-4.4.2.tar.gz 493658 BLAKE2B 162bb85f739c4c0c18c763323351a2d8a44799782b0ce89ccea3e1584a0cd587fb8c08bb9f7f2a7d234efe87e60a11e7e1ec709dae735d10c672b50016daf5a9 SHA512 035415253305eea67959cd4e41e426f842d9d0a1af2499f2cac8e0c651b30f314f50822ff48ad80d462bc56a92b88b7c021aa09558650f9ebdd26e55ef244829 diff --git a/dev-ruby/facter/facter-4.4.2.ebuild b/dev-ruby/facter/facter-4.4.2.ebuild new file mode 100644 index 000000000000..306c755078bc --- /dev/null +++ b/dev-ruby/facter/facter-4.4.2.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby27 ruby30 ruby31" +RUBY_FAKEGEM_GEMSPEC="facter.gemspec" +#RUBY_FAKEGEM_RECIPE_TEST="rspec3" +RUBY_FAKEGEM_RECIPE_DOC="yard" + +inherit ruby-ng ruby-fakegem + +DESCRIPTION="A cross-platform ruby library for retrieving facts from operating systems" +HOMEPAGE="http://www.puppetlabs.com/puppet/related-projects/facter/" + +LICENSE="Apache-2.0" +SLOT="0" +#IUSE="test" +if [[ ${PV} == 9999 ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/puppetlabs/facter.git" + EGIT_BRANCH="master" +else + [[ "${PV}" = *_rc* ]] || \ + KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86" + SRC_URI="https://github.com/puppetlabs/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" +fi + +#RESTRICT="!test? ( test )" + +ruby_add_rdepend "dev-ruby/hocon <dev-ruby/thor-2.0 dev-ruby/ffi" +#ruby_add_bdepend "test? ( dev-ruby/simplecov dev-ruby/timecop dev-ruby/webmock )" + +src_unpack() { + if [[ ${PV} == 9999 ]] ; then + git-r3_src_unpack + fi + ruby-ng_src_unpack +} + +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 +} |