1 |
commit: 3edb367eddbd2292458d93e2265094b3e15c1966 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Nov 25 08:43:22 2021 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 25 09:09:52 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3edb367e |
7 |
|
8 |
dev-ruby/hiera-eyaml: add 3.2.2 |
9 |
|
10 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
11 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
12 |
|
13 |
dev-ruby/hiera-eyaml/Manifest | 1 + |
14 |
dev-ruby/hiera-eyaml/hiera-eyaml-3.2.2.ebuild | 49 +++++++++++++++++++++++++++ |
15 |
2 files changed, 50 insertions(+) |
16 |
|
17 |
diff --git a/dev-ruby/hiera-eyaml/Manifest b/dev-ruby/hiera-eyaml/Manifest |
18 |
index 6a445bbcdf7c..3c35e69a1085 100644 |
19 |
--- a/dev-ruby/hiera-eyaml/Manifest |
20 |
+++ b/dev-ruby/hiera-eyaml/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST hiera-eyaml-3.1.1.tar.gz 54848 BLAKE2B 8daa4925bf1fb945ddb5ce7a485c3bf2bfca8747eb0cf00530eb91307d18d3f5c73699a30631b80e7825baac3a8b0c1695bd0313906bc8c7aba9c3c00d69b9cc SHA512 3bc93ca31af96383401f28644490f5540a70cf719e47d340794daf6c8bcc7fe9800d1d1e6ba99aba344831966f8d15f1a1fd9d1522696457f0bdec79dd45a108 |
23 |
+DIST hiera-eyaml-3.2.2.tar.gz 59174 BLAKE2B 2e31d1d0807096757f338a3f112a2f853f9dc61d14f92720a06e8835ef5b2228cea1ef2db1d5d7a2758422158acca14e882e1fa88a3189fcc254573e15e32185 SHA512 ac7800d35cba9b11e1fcfd831419caa1fb32fc1747499f780a40005cf57a87be4562f52251b8f5482156ad98892d41fe5060e48f74a75a0d1657dd5c04b8ee92 |
24 |
|
25 |
diff --git a/dev-ruby/hiera-eyaml/hiera-eyaml-3.2.2.ebuild b/dev-ruby/hiera-eyaml/hiera-eyaml-3.2.2.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..076d16797b4c |
28 |
--- /dev/null |
29 |
+++ b/dev-ruby/hiera-eyaml/hiera-eyaml-3.2.2.ebuild |
30 |
@@ -0,0 +1,49 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+USE_RUBY="ruby26 ruby27" |
36 |
+ |
37 |
+RUBY_FAKEGEM_TASK_DOC="" |
38 |
+RUBY_FAKEGEM_EXTRADOC="README.md CHANGELOG.md PLUGINS.md" |
39 |
+ |
40 |
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" |
41 |
+ |
42 |
+inherit ruby-fakegem |
43 |
+ |
44 |
+DESCRIPTION="Encrypted YAML backend for hiera" |
45 |
+HOMEPAGE="https://github.com/TomPoulton/hiera-eyaml" |
46 |
+SRC_URI="https://github.com/TomPoulton/hiera-eyaml/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
47 |
+ |
48 |
+LICENSE="MIT" |
49 |
+SLOT="3" |
50 |
+KEYWORDS="~amd64 ~x86" |
51 |
+IUSE="test" |
52 |
+ |
53 |
+ruby_add_rdepend ">=dev-ruby/highline-1.6.19:*" |
54 |
+ruby_add_rdepend "dev-ruby/optimist" |
55 |
+ruby_add_rdepend "!!dev-ruby/hiera-eyaml:0" # both install the /usr/bin/eyaml binary |
56 |
+ |
57 |
+ruby_add_bdepend "test? ( dev-util/cucumber ~dev-util/aruba-0.6.2 <app-admin/puppet-6 dev-ruby/hiera-eyaml-plaintext )" |
58 |
+ |
59 |
+all_ruby_prepare() { |
60 |
+ # Fix highline dependency to be compatible with more versions. |
61 |
+ sed -i -e '/highline/ s/~>/>=/' \ |
62 |
+ -e '/gem.files/d' ${RUBY_FAKEGEM_GEMSPEC} || die |
63 |
+ |
64 |
+ sed -i -e 's:/tmp:'${T}':' \ |
65 |
+ features/sandbox/puppet/environments/local/modules/test/manifests/run.pp \ |
66 |
+ features/sandbox/puppet-hiera-merge/environments/local/modules/test/manifests/run.pp \ |
67 |
+ features/sandbox/puppet-envvar/environments/local/modules/test/manifests/run.pp \ |
68 |
+ features/puppet.feature |
69 |
+} |
70 |
+ |
71 |
+each_ruby_prepare() { |
72 |
+ # Run tests with the correct ruby interpreter |
73 |
+ sed -i -e 's:I run `eyaml:I run `'${RUBY}' '${S}'/bin/eyaml:' features/*.feature || die |
74 |
+ |
75 |
+} |
76 |
+ |
77 |
+each_ruby_test() { |
78 |
+ ${RUBY} -S cucumber --format progress features || die |
79 |
+} |