summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2017-09-23 09:50:34 +0200
committerHans de Graaff <graaff@gentoo.org>2017-09-23 09:51:08 +0200
commit525e8a0e078f47d02f410d832ffcfd3442d9ad06 (patch)
tree42fd9998119106f0454d4b4ecd4a3d2a25ba5d9e /dev-ruby/hiera-eyaml
parentdev-ruby/hiera: add ruby23 (diff)
downloadgentoo-525e8a0e078f47d02f410d832ffcfd3442d9ad06.tar.gz
gentoo-525e8a0e078f47d02f410d832ffcfd3442d9ad06.tar.bz2
gentoo-525e8a0e078f47d02f410d832ffcfd3442d9ad06.zip
dev-ruby/hiera-eyaml: add ruby23 revision
Package-Manager: Portage-2.3.8, Repoman-2.3.2
Diffstat (limited to 'dev-ruby/hiera-eyaml')
-rw-r--r--dev-ruby/hiera-eyaml/hiera-eyaml-2.1.0-r1.ebuild47
1 files changed, 47 insertions, 0 deletions
diff --git a/dev-ruby/hiera-eyaml/hiera-eyaml-2.1.0-r1.ebuild b/dev-ruby/hiera-eyaml/hiera-eyaml-2.1.0-r1.ebuild
new file mode 100644
index 000000000000..3a1c363d721d
--- /dev/null
+++ b/dev-ruby/hiera-eyaml/hiera-eyaml-2.1.0-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+USE_RUBY="ruby22 ruby23"
+
+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"
+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_prepare() {
+ # Run tests with the correct ruby interpreter
+ sed -i -e 's:I run `eyaml:I run `'${RUBY}' '${S}'/bin/eyaml:' features/*.feature || die
+
+}
+
+each_ruby_test() {
+ ${RUBY} -S cucumber --format progress features || die
+}