1 |
commit: 76ba29e5e2c8f244b1e240b3830b4108787820f5 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Nov 15 05:55:17 2019 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Nov 15 05:55:17 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=76ba29e5 |
7 |
|
8 |
dev-ruby/hiera-eyaml: add 3.1.1 |
9 |
|
10 |
Package-Manager: Portage-2.3.76, Repoman-2.3.16 |
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.1.1.ebuild | 48 +++++++++++++++++++++++++++ |
15 |
2 files changed, 49 insertions(+) |
16 |
|
17 |
diff --git a/dev-ruby/hiera-eyaml/Manifest b/dev-ruby/hiera-eyaml/Manifest |
18 |
index 62809d819fa..73f441d2b82 100644 |
19 |
--- a/dev-ruby/hiera-eyaml/Manifest |
20 |
+++ b/dev-ruby/hiera-eyaml/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST hiera-eyaml-3.0.0.tar.gz 54416 BLAKE2B 75587799b228562ae89ab4e46fdd5d4a256f66403df0a2c0761aadec17fb3fa95c1207aee5a4663bcbd843c7d6e0594ce2c0edf6973184b64522a987d628b549 SHA512 805496478d0fe142ea1661345d92e5ad2ad4c18c98bb83c8f799031b784a997e1aee2a11b46600a8ddbe0b147072ea0f83fbfa100df5b5fc534d7489850d9827 |
23 |
DIST hiera-eyaml-3.1.0.tar.gz 55857 BLAKE2B 6038798c86f6c7cfb56ed2519961bcdb7937d16e0376ba426c5ae4a892cef9863e6728368af8da31359abc956d78ab38d379bca5ba8cbf567c2c812ee33929fe SHA512 970aa0dd696acd77062ac5c289c9ac0e5992c58acc4df379500978904e58a2054801fa7c36fa3b156dd1b635ef19522cc9886bd91c83e8fda6d00058b18ab9d9 |
24 |
+DIST hiera-eyaml-3.1.1.tar.gz 54848 BLAKE2B 8daa4925bf1fb945ddb5ce7a485c3bf2bfca8747eb0cf00530eb91307d18d3f5c73699a30631b80e7825baac3a8b0c1695bd0313906bc8c7aba9c3c00d69b9cc SHA512 3bc93ca31af96383401f28644490f5540a70cf719e47d340794daf6c8bcc7fe9800d1d1e6ba99aba344831966f8d15f1a1fd9d1522696457f0bdec79dd45a108 |
25 |
|
26 |
diff --git a/dev-ruby/hiera-eyaml/hiera-eyaml-3.1.1.ebuild b/dev-ruby/hiera-eyaml/hiera-eyaml-3.1.1.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..863a4be4abb |
29 |
--- /dev/null |
30 |
+++ b/dev-ruby/hiera-eyaml/hiera-eyaml-3.1.1.ebuild |
31 |
@@ -0,0 +1,48 @@ |
32 |
+# Copyright 1999-2019 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+USE_RUBY="ruby24 ruby25 ruby26" |
37 |
+ |
38 |
+RUBY_FAKEGEM_TASK_DOC="" |
39 |
+RUBY_FAKEGEM_EXTRADOC="README.md CHANGELOG.md PLUGINS.md" |
40 |
+ |
41 |
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" |
42 |
+ |
43 |
+inherit ruby-fakegem |
44 |
+ |
45 |
+DESCRIPTION="Encrypted YAML backend for hiera" |
46 |
+HOMEPAGE="https://github.com/TomPoulton/hiera-eyaml" |
47 |
+SRC_URI="https://github.com/TomPoulton/hiera-eyaml/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
48 |
+ |
49 |
+LICENSE="MIT" |
50 |
+SLOT="3" |
51 |
+KEYWORDS="~amd64 ~x86" |
52 |
+IUSE="test" |
53 |
+ |
54 |
+ruby_add_rdepend ">=dev-ruby/highline-1.6.19:*" |
55 |
+ruby_add_rdepend "dev-ruby/optimist" |
56 |
+ruby_add_rdepend "!!dev-ruby/hiera-eyaml:0" # both install the /usr/bin/eyaml binary |
57 |
+ |
58 |
+ruby_add_bdepend "test? ( dev-util/cucumber ~dev-util/aruba-0.6.2 <app-admin/puppet-6 dev-ruby/hiera-eyaml-plaintext )" |
59 |
+ |
60 |
+all_ruby_prepare() { |
61 |
+ # Fix highline dependency to be compatible with more versions. |
62 |
+ sed -i -e '/highline/ s/~>/>=/' \ |
63 |
+ -e '/gem.files/d' ${RUBY_FAKEGEM_GEMSPEC} || die |
64 |
+ |
65 |
+ sed -i -e 's:/tmp:'${T}':' \ |
66 |
+ features/sandbox/puppet/environments/local/modules/test/manifests/run.pp \ |
67 |
+ features/sandbox/puppet-hiera-merge/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 |
+} |