Gentoo Archives: gentoo-commits

From: "Robin H. Johnson" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/puppet-resource_api/
Date: Sun, 19 Mar 2023 19:20:47
Message-Id: 1679253637.3112229b867667dfa9c054ab5b38769f13400ecb.robbat2@gentoo
1 commit: 3112229b867667dfa9c054ab5b38769f13400ecb
2 Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 19 19:09:33 2023 +0000
4 Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 19 19:20:37 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3112229b
7
8 dev-ruby/puppet-resource_api: new package
9
10 Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
11
12 dev-ruby/puppet-resource_api/Manifest | 1 +
13 dev-ruby/puppet-resource_api/metadata.xml | 15 +++++++++
14 .../puppet-resource_api-1.8.16.ebuild | 38 ++++++++++++++++++++++
15 3 files changed, 54 insertions(+)
16
17 diff --git a/dev-ruby/puppet-resource_api/Manifest b/dev-ruby/puppet-resource_api/Manifest
18 new file mode 100644
19 index 000000000000..b8152ae5c105
20 --- /dev/null
21 +++ b/dev-ruby/puppet-resource_api/Manifest
22 @@ -0,0 +1 @@
23 +DIST puppet-resource_api-1.8.16.tar.gz 167691 BLAKE2B 58aad4a73ef76fbccab580c1500b4af6a472f9bc9b7b0b1c592626abb837af6b34697194b5da884f87ce306f00f23d6f17ff7926e88ca2df3b0cd5770c819e9c SHA512 b60575d0e4f87425d028429403dd5524e39cb5ffea338871f7c5296d7e632d4eebc6786bdb7005e5c1be5e962115903b11dc9645dacd4d040d3afa43606a3ea2
24
25 diff --git a/dev-ruby/puppet-resource_api/metadata.xml b/dev-ruby/puppet-resource_api/metadata.xml
26 new file mode 100644
27 index 000000000000..706558282ad9
28 --- /dev/null
29 +++ b/dev-ruby/puppet-resource_api/metadata.xml
30 @@ -0,0 +1,15 @@
31 +<?xml version="1.0" encoding="UTF-8"?>
32 +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
33 +<pkgmetadata>
34 + <maintainer type="person">
35 + <email>robbat2@g.o</email>
36 + <name>Robin H. Johnson</name>
37 + </maintainer>
38 + <maintainer type="project">
39 + <email>ruby@g.o</email>
40 + <name>Gentoo Ruby Project</name>
41 + </maintainer>
42 + <upstream>
43 + <remote-id type="github">puppetlabs/puppet-resource_api</remote-id>
44 + </upstream>
45 +</pkgmetadata>
46
47 diff --git a/dev-ruby/puppet-resource_api/puppet-resource_api-1.8.16.ebuild b/dev-ruby/puppet-resource_api/puppet-resource_api-1.8.16.ebuild
48 new file mode 100644
49 index 000000000000..a8e6f8540789
50 --- /dev/null
51 +++ b/dev-ruby/puppet-resource_api/puppet-resource_api-1.8.16.ebuild
52 @@ -0,0 +1,38 @@
53 +# Copyright 1999-2022 Gentoo Authors
54 +# Distributed under the terms of the GNU General Public License v2
55 +
56 +EAPI=8
57 +
58 +USE_RUBY="ruby27 ruby30 ruby31"
59 +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md CONTRIBUTING.md HISTORY.md README.md"
60 +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
61 +# rspec tests have dependencies not packaged in Gentoo at this time:
62 +# puppetlabs_spec_helper
63 +# CFPropertyList
64 +# simplecov-console
65 +# spec-puppet
66 +# rubocop
67 +# rubocop-rspec
68 +# license_finder
69 +RUBY_FAKEGEM_RECIPE_TEST="none"
70 +
71 +inherit ruby-fakegem
72 +
73 +DESCRIPTION="This library provides a simple way to write new native resources for puppet."
74 +HOMEPAGE="https://rubygems.org/gems/puppet-resource_api https://github.com/puppetlabs/puppet-resource_api"
75 +LICENSE="MIT"
76 +# 2023/03/19: .gem does not contain specfiles, and lags behind GitHub releases.
77 +SRC_URI="https://github.com/puppetlabs/puppet-resource_api/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
78 +
79 +SLOT="0"
80 +KEYWORDS="~amd64 ~arm ~x86"
81 +IUSE=""
82 +
83 +all_ruby_prepare() {
84 + # the gemspec tries to system(git ls-files) but has a meaningful fallback, so just make it not run git.
85 + sed -i -e '/git --help/s,git,false git,g' \
86 + "${RUBY_FAKEGEM_GEMSPEC}" \
87 + || die
88 +}
89 +
90 +ruby_add_rdepend ">=dev-ruby/hocon-1.0"