summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Thode <prometheanfire@gentoo.org>2022-12-10 12:59:09 -0600
committerMatthew Thode <prometheanfire@gentoo.org>2022-12-10 12:59:09 -0600
commit2b8b5d364677f06a2af5bc0fb2274b5f03e6c0a5 (patch)
treecdf941345aa684d405679690372ddd2323abf354 /dev-ruby/facter
parentapp-crypt/certbot-nginx: stabilize 1.32.0 for amd64, x86 (diff)
downloadgentoo-2b8b5d364677f06a2af5bc0fb2274b5f03e6c0a5.tar.gz
gentoo-2b8b5d364677f06a2af5bc0fb2274b5f03e6c0a5.tar.bz2
gentoo-2b8b5d364677f06a2af5bc0fb2274b5f03e6c0a5.zip
dev-ruby/facter: add 4.2.14
Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>
Diffstat (limited to 'dev-ruby/facter')
-rw-r--r--dev-ruby/facter/Manifest1
-rw-r--r--dev-ruby/facter/facter-4.2.14.ebuild46
-rw-r--r--dev-ruby/facter/metadata.xml3
3 files changed, 50 insertions, 0 deletions
diff --git a/dev-ruby/facter/Manifest b/dev-ruby/facter/Manifest
index 134c21ca499e..d9453f336636 100644
--- a/dev-ruby/facter/Manifest
+++ b/dev-ruby/facter/Manifest
@@ -1 +1,2 @@
DIST facter-3.14.24.tar.gz 410547 BLAKE2B 69d2fd3b1bf9f91456ca570f9fef44ddd6e7656a285c035ecb42df2553c461be137d06232fc1f96f239598143912928dcfaf0d9b3078f4335dfc83163eee5120 SHA512 88e47271f213570fb7819630f7b08076bd8b234612a2bb885de760acab48c37b588c1f214da11c5096f0db6b7df4a516b6e83abc56a1d95779b6f1353831e588
+DIST facter-4.2.14.tar.gz 485039 BLAKE2B cc6862a3ed314af19ef38e5b1a000916cd8d7cd75f69c9ea38efda612ba82033127963c0230e0344e66cb90a9054d52a8882a8e49f90fc87b383b8dc69568656 SHA512 764af9e9e5957182d57e803b4519f6d831a12fdca4b9db77efa19c71edd1fc0af7f52b4953f54ba8881afe948db1fd93239e7de47be24a836587eace6420e038
diff --git a/dev-ruby/facter/facter-4.2.14.ebuild b/dev-ruby/facter/facter-4.2.14.ebuild
new file mode 100644
index 000000000000..3ce7a936459d
--- /dev/null
+++ b/dev-ruby/facter/facter-4.2.14.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2022 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 ~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
+}
diff --git a/dev-ruby/facter/metadata.xml b/dev-ruby/facter/metadata.xml
index 1f54ed29ba4d..5e85a8995a99 100644
--- a/dev-ruby/facter/metadata.xml
+++ b/dev-ruby/facter/metadata.xml
@@ -4,6 +4,9 @@
<maintainer type="person">
<email>prometheanfire@gentoo.org</email>
</maintainer>
+ <maintainer type="person">
+ <email>grknight@gentoo.org</email>
+ </maintainer>
<maintainer type="project">
<email>sysadmin@gentoo.org</email>
<name>Gentoo Sysadmin Project</name>