From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 763611396D0 for ; Sat, 23 Sep 2017 07:51:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 19F991FC1C6; Sat, 23 Sep 2017 07:51:21 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EF2831FC1C6 for ; Sat, 23 Sep 2017 07:51:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E0E7933C27B for ; Sat, 23 Sep 2017 07:51:19 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 96A32908F for ; Sat, 23 Sep 2017 07:51:16 +0000 (UTC) From: "Hans de Graaff" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Hans de Graaff" Message-ID: <1506153068.525e8a0e078f47d02f410d832ffcfd3442d9ad06.graaff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/hiera-eyaml/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/hiera-eyaml/hiera-eyaml-2.1.0-r1.ebuild X-VCS-Directories: dev-ruby/hiera-eyaml/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: 525e8a0e078f47d02f410d832ffcfd3442d9ad06 X-VCS-Branch: master Date: Sat, 23 Sep 2017 07:51:16 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: b99fde3a-b7f9-41d4-90f4-d4462cde6eb3 X-Archives-Hash: 3f771f9b1a4b96feb08c160c08079004 commit: 525e8a0e078f47d02f410d832ffcfd3442d9ad06 Author: Hans de Graaff gentoo org> AuthorDate: Sat Sep 23 07:50:34 2017 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Sat Sep 23 07:51:08 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=525e8a0e dev-ruby/hiera-eyaml: add ruby23 revision Package-Manager: Portage-2.3.8, Repoman-2.3.2 dev-ruby/hiera-eyaml/hiera-eyaml-2.1.0-r1.ebuild | 47 ++++++++++++++++++++++++ 1 file changed, 47 insertions(+) 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 00000000000..3a1c363d721 --- /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 +}