summaryrefslogtreecommitdiff
path: root/dev-ruby/ammeter
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-12-17 14:57:38 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-12-17 14:57:38 +0000
commit5959c8510d12e770f9320c71e55b4419e49154ee (patch)
tree560c7460ed5e13f38e3e946871031d4caaebdd13 /dev-ruby/ammeter
parent7278fa233720d99bfac63a408deeed0143a61dcc (diff)
gentoo auto-resync : 17:12:2023 - 14:57:38
Diffstat (limited to 'dev-ruby/ammeter')
-rw-r--r--dev-ruby/ammeter/Manifest2
-rw-r--r--dev-ruby/ammeter/ammeter-1.1.6.ebuild59
2 files changed, 61 insertions, 0 deletions
diff --git a/dev-ruby/ammeter/Manifest b/dev-ruby/ammeter/Manifest
index ccdb98a62c36..2983e4932593 100644
--- a/dev-ruby/ammeter/Manifest
+++ b/dev-ruby/ammeter/Manifest
@@ -1,3 +1,5 @@
DIST ammeter-1.1.5.gem 19968 BLAKE2B e4a7af65c8ee798b24f0c8a312315461779f5e1c31d97da1663d73b1a9cc65b99ed9f693259eed01a4152ab220d34ddb91ee4632657035fc1768897fae60d60e SHA512 35758fccaa51c9873747f24710168bdc0a0b25bd825d15e434cd17341d07f73a5078293d5045dcf88061765e92fe08f9b2470b4f206d859e82ec7befe64c1d93
+DIST ammeter-1.1.6.gem 19968 BLAKE2B 875da6f9be200b6df789f75b98224e30d0223a501fb54b94b9ef1c32a2c3c78cfe54c77e926ba0d17bc64faa42a357861818448889c6c25c698101deba05460d SHA512 13883aae0258c0354d5fec17f86d4851251e2a8138830113c94c20162294852c892f580e14df6407c88b6c64dbe87f241e392a1849d126d12d556462edcda147
EBUILD ammeter-1.1.5-r1.ebuild 1506 BLAKE2B 00231b646f08f626626d7196e74c2823d3f831b7e5946f6299b41309df2373d27f684bea19177d74b16937669730ae000be56f88642b3992ed6f1fe47c97372a SHA512 8f358366cdd40dfd6c258b6f4f1577c70c433db9fe28a464b16e93d3abc3399b8e48e13953cc022381f5228a803edbedab9430983ab1832dfe140b7588acb8a1
+EBUILD ammeter-1.1.6.ebuild 1499 BLAKE2B 2e398aa4bff80858f1492a90692499cff8cd9eb624563a7dc49a145a83da59bc41488a328b789b53c27ed61b54c2b2ca90e5531cafa46873b4f5030b5cfaa795 SHA512 599ac877522789ee8965f622e0d2604617d0bca60a401cf1c1151570cc965cc2d85bb3af13431d1bfb03e352ea546cbaeafc4f69ac3771cbb524190a7fd75fe7
MISC metadata.xml 349 BLAKE2B f63971308267e22a747000a625bd7ced372e06a7599054445fc99e8e6157e02e9d95582d7006c14f232158f0bd401e6e78bad557ff8b5e2e0e9d85a833ce7c12 SHA512 732175dba3196bb0de8b66c2ae96010de71c49ab7080e4eb5e25d05fbd447ffe61d31ca68a83e918acd9cde0fcc000fb54c1488ed36363792a2bda68332332d6
diff --git a/dev-ruby/ammeter/ammeter-1.1.6.ebuild b/dev-ruby/ammeter/ammeter-1.1.6.ebuild
new file mode 100644
index 000000000000..30ef5951988d
--- /dev/null
+++ b/dev-ruby/ammeter/ammeter-1.1.6.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2023 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_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"
+
+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/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, coffee-rails and sass-rails are no longer maintained
+ sed -i -e '/\(coffee\|haml\|sass\)-rails/ s:^:#:' ${RUBY_FAKEGEM_GEMSPEC} Gemfile || die
+ rm -f spec/ammeter/rspec/generator/matchers/have_correct_syntax_spec.rb || die
+}
+
+each_ruby_test() {
+ RSPEC_VERSION=">=4" ${RUBY} -S bundle exec ${RUBY} -S rspec-3 spec || die
+}