diff options
author | Matthew Thode <prometheanfire@gentoo.org> | 2024-04-10 11:21:48 -0500 |
---|---|---|
committer | Matthew Thode <prometheanfire@gentoo.org> | 2024-04-10 11:22:41 -0500 |
commit | d004d8acdbecad43a0f98a52b75fb4ab497349f6 (patch) | |
tree | fd43995c3d4737daa0ea68223ded5110c145685e /dev-ruby/facter | |
parent | sys-power/wluma: add 4.4.0 (diff) | |
download | gentoo-d004d8acdbecad43a0f98a52b75fb4ab497349f6.tar.gz gentoo-d004d8acdbecad43a0f98a52b75fb4ab497349f6.tar.bz2 gentoo-d004d8acdbecad43a0f98a52b75fb4ab497349f6.zip |
dev-ruby/facter: add 4.7.0
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.7.0.ebuild | 55 |
2 files changed, 56 insertions, 0 deletions
diff --git a/dev-ruby/facter/Manifest b/dev-ruby/facter/Manifest index 71b6ca875705..dec2bb3d1ff0 100644 --- a/dev-ruby/facter/Manifest +++ b/dev-ruby/facter/Manifest @@ -4,3 +4,4 @@ DIST facter-4.4.3.tar.gz 493663 BLAKE2B 19f670e503b5ccf3d78b7fa72b0f3d25cef827ea DIST facter-4.5.0.tar.gz 494255 BLAKE2B 7ec4edc85c83fd2a4ab198e0807d705cfba7c05ae5fd6dc1954c00a6e14ab6869926d315bc6fcaf553ec3ae632452a383c6a25e5da2d9a099f24c721fd14407c SHA512 025afb1a8ce2716253cfa94f2a4692558ab1c0021afeacfe4c8e6f482fdf91e8042d0f914da04716c4c50faca5b7e89cd6e741b10d431a71ed933943ca4e712f DIST facter-4.5.1.tar.gz 494725 BLAKE2B d77ef233c901f41e2bfeaaf5ecd0d3be885154f5027d9e51a02815eed928ddfa6911af396b5ccfb4a33bd7814ba1e8afd77cafec76e78f2baa57a2113dfd2e0a SHA512 f89dfda26fbde74a7425159cde6eb51755238b86b4e15e2237dbfe3997032130e88f7be3d80c5fe115c6dc41cc69ef8942b826aeeb1669d94fe7a1b7824c0167 DIST facter-4.5.2.tar.gz 465911 BLAKE2B c806d5abb14ed434a4453cbabc77edd5791788ed11eab6b6ea4c56fbfaee82c1ecbb3407b0953ea674b00b0893da1cdce4752c9ab299bdffc97aece61b14ad0b SHA512 1117845c730fa102b833deb2c1020dc82fd9a5fe3ef959e0e98b0b55b3beeb988bc9bc2dbbb04374e26a2c449815139763a107c799a075ad12f64bbf357ca9b8 +DIST facter-4.7.0.tar.gz 481862 BLAKE2B 5179a15616ca9bb2e494c77d407227b2ecb3c554e73433ff461bd19b28fa23bc89d3ce774810435efbcd80b9307340b5a18ccf5360652924f39e9da27446afa8 SHA512 cd0482bc8cd845fc1f0fa73aa3a7217ad45cced7578069317a0812daf9d1b363931edd99412777fa4db020f1407dd073c9adef425cc262755b2a0a236cd44677 diff --git a/dev-ruby/facter/facter-4.7.0.ebuild b/dev-ruby/facter/facter-4.7.0.ebuild new file mode 100644 index 000000000000..c2a4a652e567 --- /dev/null +++ b/dev-ruby/facter/facter-4.7.0.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby30 ruby31 ruby32" +RUBY_FAKEGEM_GEMSPEC="facter.gemspec" +RUBY_FAKEGEM_RECIPE_TEST="rspec3" +RUBY_FAKEGEM_RECIPE_DOC="yard" + +inherit 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 ~x86" + #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 dev-ruby/sys-filesystem" +ruby_add_bdepend "test? ( dev-ruby/simplecov dev-ruby/timecop dev-ruby/webmock )" + +PATCHES=( + "${FILESDIR}"/facter-4.4.3-rspec-gentoo-tweak.patch +) + +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 + # dev tasks not needed, but block tests + for f in tasks/rubocop.rake tasks/check.rake ; do + test -e ${f} && mv -f ${f}{,.DISABLE} + done +} |