diff options
Diffstat (limited to 'dev-ruby/hiera-eyaml')
-rw-r--r-- | dev-ruby/hiera-eyaml/Manifest | 3 | ||||
-rw-r--r-- | dev-ruby/hiera-eyaml/hiera-eyaml-2.1.0-r2.ebuild | 47 | ||||
-rw-r--r-- | dev-ruby/hiera-eyaml/metadata.xml | 15 |
3 files changed, 65 insertions, 0 deletions
diff --git a/dev-ruby/hiera-eyaml/Manifest b/dev-ruby/hiera-eyaml/Manifest new file mode 100644 index 000000000000..1ab4d9ee5e40 --- /dev/null +++ b/dev-ruby/hiera-eyaml/Manifest @@ -0,0 +1,3 @@ +DIST hiera-eyaml-2.1.0.tar.gz 46179 BLAKE2B a25eaf1e013af4add5c4628dab168daedfeb8763038f4e003d5e48b5e51ddc25dbbb8b01d024836163089106d0786d27af43113b3db950ecb302c3ec5a82d7a8 SHA512 b85de0de0cb4f4a7b381ec7e406e5b3858b1e93b5475830df6991fc679d1391a88dd988c0d266942e70fb4705ba47cb656fd732bd923f8290dd90a5bf6e4a5fb +EBUILD hiera-eyaml-2.1.0-r2.ebuild 1379 BLAKE2B 549d02bf177ca7829527913a7ad6ddea1041e442f2bb28d6d8a49d4365bdc780b7fffee3171c0bc14ebe1b3e2c56d819abc75265bead9a6f44f43e5635f6d6a6 SHA512 10a4d2f4dc4586619f2a96250106982676476908d706581cb45fef0550b503886e8be40b4d0ffcbf29c8304dd7a0c0b270af22247a20a474610e158ca7491c74 +MISC metadata.xml 474 BLAKE2B d527c2a402f1ccb95a35c7a75baa9f71710dee53d9f37e424f28827182fe5500cdddb7af8297be14fab4805ac430d92efcc564419940065bcb0bedd3b7252b84 SHA512 af80beefd80dfb83c5c95f9d1707cda077ef7323004785e420ba56f6a4ccf42181247adaec2d023857d410ed003b82919a72af2a5e024c9d76a0ee696009361e 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 new file mode 100644 index 000000000000..007f7adf8e8e --- /dev/null +++ b/dev-ruby/hiera-eyaml/hiera-eyaml-2.1.0-r2.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 ruby24" + +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_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 +} diff --git a/dev-ruby/hiera-eyaml/metadata.xml b/dev-ruby/hiera-eyaml/metadata.xml new file mode 100644 index 000000000000..bf2e34747ae7 --- /dev/null +++ b/dev-ruby/hiera-eyaml/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>sysadmin@gentoo.org</email> + <name>Gentoo Sysadmin Project</name> + </maintainer> + <maintainer type="project"> + <email>ruby@gentoo.org</email> + <name>Gentoo Ruby Project</name> + </maintainer> + <upstream> + <remote-id type="github">TomPoulton/hiera-eyaml</remote-id> + </upstream> +</pkgmetadata> |