summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-ruby/hiera-eyaml/Manifest1
-rw-r--r--dev-ruby/hiera-eyaml/hiera-eyaml-2.1.0.ebuild42
2 files changed, 43 insertions, 0 deletions
diff --git a/dev-ruby/hiera-eyaml/Manifest b/dev-ruby/hiera-eyaml/Manifest
index 4aecc9af6338..1c5014798335 100644
--- a/dev-ruby/hiera-eyaml/Manifest
+++ b/dev-ruby/hiera-eyaml/Manifest
@@ -1 +1,2 @@
DIST hiera-eyaml-2.0.8.tar.gz 44914 SHA256 232257c4fce926cd814992ab8c369ee5748bf68a2499216917ac0fb77fa1573c SHA512 2b7b51f88de1d21f3773f29ed87eb4ea241805efd474340b6b33ed431625b57e118e2335b3f6617cbe8b27745a9f1615aa8d1dbfa1b34c0e9f663a26691938a9 WHIRLPOOL 093cee0ed76f93903adc9f88c8a657ecd3f3581e55508c583114312ac7e2b59810ab5f6fa26a9a943b451ef4e41623e4d3be329917b7e488fac10aa74017db69
+DIST hiera-eyaml-2.1.0.tar.gz 46179 SHA256 6a7878d02143c8114385b0232a8219c9df7beb4abd01c81a9cb0a45608a88e80 SHA512 b85de0de0cb4f4a7b381ec7e406e5b3858b1e93b5475830df6991fc679d1391a88dd988c0d266942e70fb4705ba47cb656fd732bd923f8290dd90a5bf6e4a5fb WHIRLPOOL 9d6f602bc63fd015cbfb130efd9e51f5a94ffafd2015d4183b13c1b4484f3fd235c73aa002f2157b28f28ae87aef6f67c32e8e9bafd5a326536967c3718fe799
diff --git a/dev-ruby/hiera-eyaml/hiera-eyaml-2.1.0.ebuild b/dev-ruby/hiera-eyaml/hiera-eyaml-2.1.0.ebuild
new file mode 100644
index 000000000000..e0bfa8e865bc
--- /dev/null
+++ b/dev-ruby/hiera-eyaml/hiera-eyaml-2.1.0.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+USE_RUBY="ruby20 ruby21"
+
+RUBY_FAKEGEM_TASK_DOC=""
+RUBY_FAKEGEM_EXTRADOC="README.md CHANGES.md PLUGINS.md"
+
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Encrypted YAML backend for hiera"
+HOMEPAGE="https://github.com/TomPoulton/hiera-eyaml"
+SRC_URI="https://github.com/TomPoulton/hiera-eyaml/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+ruby_add_rdepend ">=dev-ruby/highline-1.6.19"
+ruby_add_rdepend "dev-ruby/trollop:2"
+
+ruby_add_bdepend "test? ( dev-util/cucumber =dev-util/aruba-0.6.2 app-admin/puppet dev-ruby/hiera-eyaml-plaintext )"
+
+all_ruby_prepare() {
+ # Fix highline dependency to be compatible with more versions.
+ sed -i -e '/highline/ s/~>/>=/' \
+ -e '/gem.files/d' ${RUBY_FAKEGEM_GEMSPEC} || die
+
+ sed -i -e 's:/tmp:'${T}':' \
+ features/sandbox/puppet/environments/local/modules/test/manifests/init.pp \
+ features/sandbox/puppet-hiera-merge/environments/local/modules/test/manifests/init.pp \
+ features/puppet.feature
+}
+
+each_ruby_test() {
+ ${RUBY} -S cucumber --format progress features || die
+}