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 628E61382C5 for ; Thu, 25 Feb 2021 05:28:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 58E97E08F7; Thu, 25 Feb 2021 05:28:03 +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 4505DE08F7 for ; Thu, 25 Feb 2021 05:28:03 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 C18BB340DFC for ; Thu, 25 Feb 2021 05:28:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 428F9B9 for ; Thu, 25 Feb 2021 05:28:00 +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: <1614230875.3aa4d50ede44982fc805dd94cb21feabc212250c.graaff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/ammeter/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/ammeter/Manifest dev-ruby/ammeter/ammeter-1.1.5.ebuild X-VCS-Directories: dev-ruby/ammeter/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: 3aa4d50ede44982fc805dd94cb21feabc212250c X-VCS-Branch: master Date: Thu, 25 Feb 2021 05:28:00 +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: 23fa62a7-92ee-41d2-a9d1-2089fd069ddf X-Archives-Hash: 415b19ea327f788c1e761d6fcf4481b8 commit: 3aa4d50ede44982fc805dd94cb21feabc212250c Author: Hans de Graaff gentoo org> AuthorDate: Thu Feb 25 05:23:28 2021 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Thu Feb 25 05:27:55 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3aa4d50e dev-ruby/ammeter: add 1.1.5 Package-Manager: Portage-3.0.13, Repoman-3.0.2 Signed-off-by: Hans de Graaff gentoo.org> dev-ruby/ammeter/Manifest | 1 + dev-ruby/ammeter/ammeter-1.1.5.ebuild | 65 +++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) diff --git a/dev-ruby/ammeter/Manifest b/dev-ruby/ammeter/Manifest index f491da29331..4530b53beab 100644 --- a/dev-ruby/ammeter/Manifest +++ b/dev-ruby/ammeter/Manifest @@ -1 +1,2 @@ DIST ammeter-1.1.4.gem 19968 BLAKE2B dbc773e4db83d820e5ef1c6ae3af2e65f87ff1a10a09759c66a4dad87cd175e5e8af857435b6df6cb93167869d31fb1f43dcf220e063db03d048aa8926c7daaf SHA512 57d24c67be85fe34ded8feda045771974be7cdd828780a82ff0b2f6b52d0b35b48c2eb7e59dae70700fba676242918ef6463448090d7729d49db0f05f04b0131 +DIST ammeter-1.1.5.gem 19968 BLAKE2B e4a7af65c8ee798b24f0c8a312315461779f5e1c31d97da1663d73b1a9cc65b99ed9f693259eed01a4152ab220d34ddb91ee4632657035fc1768897fae60d60e SHA512 35758fccaa51c9873747f24710168bdc0a0b25bd825d15e434cd17341d07f73a5078293d5045dcf88061765e92fe08f9b2470b4f206d859e82ec7befe64c1d93 diff --git a/dev-ruby/ammeter/ammeter-1.1.5.ebuild b/dev-ruby/ammeter/ammeter-1.1.5.ebuild new file mode 100644 index 00000000000..00f45c94f10 --- /dev/null +++ b/dev-ruby/ammeter/ammeter-1.1.5.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +USE_RUBY="ruby25 ruby26" + +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_RECIPE_TEST="rspec3" + +RUBY_FAKEGEM_EXTRADOC="README.md" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Write specs for your Rails 3+ generators" +HOMEPAGE="https://github.com/alexrothenberg/ammeter" +LICENSE="MIT" + +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" + +# Restrict tests since they now require the specific rspec version to be +# provided in an environment variable. +#RESTRICT="test" + +ruby_add_rdepend " + >=dev-ruby/activesupport-3.0:* + >=dev-ruby/railties-3.0:* + >=dev-ruby/rspec-rails-2.2:* +" + +ruby_add_bdepend " + test? ( + >=dev-ruby/rails-4.0 + >=dev-ruby/uglifier-1.3 + >=dev-ruby/rake-0.10 + >=dev-ruby/coffee-rails-4.0 + >=dev-ruby/sass-rails-4.0 + >=dev-ruby/jquery-rails-3.0 + dev-util/cucumber + dev-util/aruba + dev-ruby/sqlite3 + dev-ruby/bundler + )" + +all_ruby_prepare() { + # fix the gemspec; we remove the version dependencies from there, as + # it requires _older_ versions of its dependencies.. it doesn't + # really seem to be the case though. Also remove the references to + # git ls-files to avoid calling it. + sed -i \ + -e '/git ls-files/d' \ + -e '/\(cucumber\|aruba\)/s:,.*$::' \ + ${RUBY_FAKEGEM_GEMSPEC} || die + + # haml-rails is not packaged + sed -i -e '/haml-rails/d' ${RUBY_FAKEGEM_GEMSPEC} Gemfile || die + rm -f spec/ammeter/rspec/generator/matchers/have_correct_syntax_spec.rb || die +} + +each_ruby_test() { + ${RUBY} -S bundle exec ${RUBY} -S rspec-3 spec || die +}