1 |
commit: 22f93ac5d1fbb5a500d13631a9abc7c8f3caf8cc |
2 |
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 28 00:31:55 2017 +0000 |
4 |
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 28 23:00:21 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=22f93ac5 |
7 |
|
8 |
dev-ruby/hiera-eyaml: bump for ruby targets |
9 |
|
10 |
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.16, Repoman-2.3.6 |
12 |
|
13 |
dev-ruby/hiera-eyaml/hiera-eyaml-2.1.0-r2.ebuild | 47 ++++++++++++++++++++++++ |
14 |
1 file changed, 47 insertions(+) |
15 |
|
16 |
diff --git a/dev-ruby/hiera-eyaml/hiera-eyaml-2.1.0-r2.ebuild b/dev-ruby/hiera-eyaml/hiera-eyaml-2.1.0-r2.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..007f7adf8e8 |
19 |
--- /dev/null |
20 |
+++ b/dev-ruby/hiera-eyaml/hiera-eyaml-2.1.0-r2.ebuild |
21 |
@@ -0,0 +1,47 @@ |
22 |
+# Copyright 1999-2017 Gentoo Foundation |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=6 |
26 |
+USE_RUBY="ruby22 ruby23 ruby24" |
27 |
+ |
28 |
+RUBY_FAKEGEM_TASK_DOC="" |
29 |
+RUBY_FAKEGEM_EXTRADOC="README.md CHANGES.md PLUGINS.md" |
30 |
+ |
31 |
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" |
32 |
+ |
33 |
+inherit ruby-fakegem |
34 |
+ |
35 |
+DESCRIPTION="Encrypted YAML backend for hiera" |
36 |
+HOMEPAGE="https://github.com/TomPoulton/hiera-eyaml" |
37 |
+SRC_URI="https://github.com/TomPoulton/hiera-eyaml/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
38 |
+ |
39 |
+LICENSE="MIT" |
40 |
+SLOT="0" |
41 |
+KEYWORDS="~amd64 ~x86" |
42 |
+IUSE="test" |
43 |
+ |
44 |
+ruby_add_rdepend ">=dev-ruby/highline-1.6.19" |
45 |
+ruby_add_rdepend "dev-ruby/trollop:2" |
46 |
+ |
47 |
+ruby_add_bdepend "test? ( dev-util/cucumber ~dev-util/aruba-0.6.2 app-admin/puppet dev-ruby/hiera-eyaml-plaintext )" |
48 |
+ |
49 |
+all_ruby_prepare() { |
50 |
+ # Fix highline dependency to be compatible with more versions. |
51 |
+ sed -i -e '/highline/ s/~>/>=/' \ |
52 |
+ -e '/gem.files/d' ${RUBY_FAKEGEM_GEMSPEC} || die |
53 |
+ |
54 |
+ sed -i -e 's:/tmp:'${T}':' \ |
55 |
+ features/sandbox/puppet/environments/local/modules/test/manifests/init.pp \ |
56 |
+ features/sandbox/puppet-hiera-merge/environments/local/modules/test/manifests/init.pp \ |
57 |
+ features/puppet.feature |
58 |
+} |
59 |
+ |
60 |
+each_ruby_prepare() { |
61 |
+ # Run tests with the correct ruby interpreter |
62 |
+ sed -i -e 's:I run `eyaml:I run `'${RUBY}' '${S}'/bin/eyaml:' features/*.feature || die |
63 |
+ |
64 |
+} |
65 |
+ |
66 |
+each_ruby_test() { |
67 |
+ ${RUBY} -S cucumber --format progress features || die |
68 |
+} |