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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 170181581D3 for ; Sat, 25 May 2024 06:51:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4871FE2A34; Sat, 25 May 2024 06:51:42 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 28FD7E2A34 for ; Sat, 25 May 2024 06:51:42 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5925034068A for ; Sat, 25 May 2024 06:51:41 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E69B91AE0 for ; Sat, 25 May 2024 06:51:39 +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: <1716619888.936110d16cb268af2bafee5ab08243958b96bd46.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/Manifest dev-ruby/hiera-eyaml/hiera-eyaml-3.4.0-r1.ebuild dev-ruby/hiera-eyaml/hiera-eyaml-4.1.0.ebuild X-VCS-Directories: dev-ruby/hiera-eyaml/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: 936110d16cb268af2bafee5ab08243958b96bd46 X-VCS-Branch: master Date: Sat, 25 May 2024 06:51:39 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c9f61897-b743-4030-9bd3-3a3b2f053a6c X-Archives-Hash: 3d20de618d9a9515996b7bd8f82dde5d commit: 936110d16cb268af2bafee5ab08243958b96bd46 Author: Hans de Graaff gentoo org> AuthorDate: Sat May 25 06:50:57 2024 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Sat May 25 06:51:28 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=936110d1 dev-ruby/hiera-eyaml: add 4.1,0 Signed-off-by: Hans de Graaff gentoo.org> dev-ruby/hiera-eyaml/Manifest | 1 + dev-ruby/hiera-eyaml/hiera-eyaml-3.4.0-r1.ebuild | 57 ++++++++++++++++++++++++ dev-ruby/hiera-eyaml/hiera-eyaml-4.1.0.ebuild | 57 ++++++++++++++++++++++++ 3 files changed, 115 insertions(+) diff --git a/dev-ruby/hiera-eyaml/Manifest b/dev-ruby/hiera-eyaml/Manifest index 91598c9819d2..abcc3c18f0dd 100644 --- a/dev-ruby/hiera-eyaml/Manifest +++ b/dev-ruby/hiera-eyaml/Manifest @@ -1 +1,2 @@ DIST hiera-eyaml-3.4.0.tar.gz 60920 BLAKE2B 73a2a5c15d79b8084f226173667fc29875ea4614a09030171f81a1b2c632d45071e8952765afb9900c695643016117f9e1a28f9cefe7a19a9de67315ed4d139b SHA512 64443cc49e66dd95cb85d5a2e26a50b5c60ef78dc21354fb5a3760f4e1f0005936d46ff54232e2f2e1b250628a4844b79a8ca267c4d72ab53ef318cde10a074b +DIST hiera-eyaml-4.1.0.tar.gz 63484 BLAKE2B 0995bcb409cbb7fbb605475c5a61854b121e7051957592e0c3322528e37b325526931ec86f1e7f44d1d8a48e534e4fe071a80b4bb98e669470f27e8acab73671 SHA512 40bdc6d8e6929cfbd3c56282bb017763262aa22d58abc8483391632a2cd1bfa5b148ec165a946b5013276adc966d5a9e80f75d6e34cb136d7cc763b91e42f342 diff --git a/dev-ruby/hiera-eyaml/hiera-eyaml-3.4.0-r1.ebuild b/dev-ruby/hiera-eyaml/hiera-eyaml-3.4.0-r1.ebuild new file mode 100644 index 000000000000..a8c4b7082907 --- /dev/null +++ b/dev-ruby/hiera-eyaml/hiera-eyaml-3.4.0-r1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby30 ruby31" + +RUBY_FAKEGEM_BINWRAP="" +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_EXTRADOC="README.md CHANGELOG.md PLUGINS.md" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Encrypted YAML backend for hiera" +HOMEPAGE="https://github.com/voxpupuli/hiera-eyaml" +SRC_URI="https://github.com/voxpupuli/hiera-eyaml/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="3" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="test" + +ruby_add_rdepend " + >=dev-ruby/highline-1.6.19:* + dev-ruby/optimist +" + +ruby_add_bdepend "test? ( + dev-util/cucumber + ~dev-util/aruba-0.6.2 + dev-ruby/hiera-eyaml-plaintext +)" + +BDEPEND+=" test? ( || ( app-admin/puppet-agent app-admin/puppet ) dev-tcltk/expect )" + +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/run.pp \ + features/sandbox/puppet-hiera-merge/environments/local/modules/test/manifests/run.pp \ + features/sandbox/puppet-envvar/environments/local/modules/test/manifests/run.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() { + CUCUMBER_PUBLISH_QUIET=true ${RUBY} -S cucumber --format progress features || die +} diff --git a/dev-ruby/hiera-eyaml/hiera-eyaml-4.1.0.ebuild b/dev-ruby/hiera-eyaml/hiera-eyaml-4.1.0.ebuild new file mode 100644 index 000000000000..eed8e569adb1 --- /dev/null +++ b/dev-ruby/hiera-eyaml/hiera-eyaml-4.1.0.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby31 ruby32" + +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_EXTRADOC="README.md CHANGELOG.md PLUGINS.md" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Encrypted YAML backend for hiera" +HOMEPAGE="https://github.com/voxpupuli/hiera-eyaml" +SRC_URI="https://github.com/voxpupuli/hiera-eyaml/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="$(ver_cut 1)" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="test" + +ruby_add_rdepend " + >=dev-ruby/highline-2.1:2 + >=dev-ruby/optimist-3.1:3 + !=dev-util/cucumber-8 + dev-util/aruba:2 + dev-ruby/hiera-eyaml-plaintext +)" + +BDEPEND+=" test? ( || ( app-admin/puppet-agent app-admin/puppet ) dev-tcltk/expect )" + +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/run.pp \ + features/sandbox/puppet-hiera-merge/environments/local/modules/test/manifests/run.pp \ + features/sandbox/puppet-envvar/environments/local/modules/test/manifests/run.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() { + CUCUMBER_PUBLISH_QUIET=true ${RUBY} -S cucumber --format progress features || die +}