commit:     5fffa87a81a35b44031b44fa158862e374defac3
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Wed Sep  6 05:18:39 2023 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Wed Sep  6 05:33:58 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5fffa87a

dev-ruby/web-console: add 4.2.1

Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/web-console/Manifest                 |  1 +
 dev-ruby/web-console/web-console-4.2.1.ebuild | 47 +++++++++++++++++++++++++++
 2 files changed, 48 insertions(+)

diff --git a/dev-ruby/web-console/Manifest b/dev-ruby/web-console/Manifest
index 8174fe796db9..e11e6ca37822 100644
--- a/dev-ruby/web-console/Manifest
+++ b/dev-ruby/web-console/Manifest
@@ -1 +1,2 @@
 DIST web-console-4.2.0.tar.gz 53991 BLAKE2B 
8145e5bf2e13230c7411a49af34129130fb99c8a65afc7b628d77572723cdfcb2afbdc9f3be63a9bad0d3d92013cc291882bbe228058e2b84595566a48b5cdba
 SHA512 
3a9fd5c7a184fd28961a4d8d0e4ad9850d8a4fe39a9c97f13cbd78b34a69be49a78ad94570fcd45e8af6ef523948ead3fb4350a4e49fbbe76855b4115a9afc61
+DIST web-console-4.2.1.tar.gz 54529 BLAKE2B 
71cda457da24db4f96205557a37afe46ffa0cf4beea79c8249135c31fa5ce01cf1484213bb935ac4ff6849c4f71d11c7545c1888df27f13c9e9bb417b92ecd23
 SHA512 
3800f89f430927eb7b77f3f613a223d666ae135958d38fc215139a77d74a21f87207c7002f364a916e021486063d2a67aed3a7d12210674add7608b89e9ff2e5

diff --git a/dev-ruby/web-console/web-console-4.2.1.ebuild 
b/dev-ruby/web-console/web-console-4.2.1.ebuild
new file mode 100644
index 000000000000..088894682e5a
--- /dev/null
+++ b/dev-ruby/web-console/web-console-4.2.1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby31 ruby32"
+
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.markdown README.markdown"
+
+RUBY_FAKEGEM_GEMSPEC="web-console.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="A debugging tool for your Ruby on Rails applications"
+HOMEPAGE="https://github.com/rails/web-console";
+SRC_URI="https://github.com/rails/web-console/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="$(ver_cut 1)"
+KEYWORDS="~amd64"
+IUSE=""
+
+ruby_add_rdepend "
+       >=dev-ruby/actionview-6.0:*
+       >=dev-ruby/activemodel-6.0:*
+       >=dev-ruby/bindex-0.4.0
+       >=dev-ruby/railties-6.0:*
+"
+
+ruby_add_bdepend "test? (
+       dev-ruby/bundler
+       >=dev-ruby/rails-6.0
+       dev-ruby/rack
+       dev-ruby/sqlite3
+       dev-ruby/mocha
+       www-servers/puma
+)"
+
+all_ruby_prepare() {
+       # Use an installed rails version rather than live source from github, 
and
+       # rack is now part of rails.
+       sed -e '/\(rack\|arel\|rails\|simplecov\)/ s/,/#/'  \
+               -e '/\(byebug\|simplecov\)/ s:^:#:' \
+               -e '/arel/ s:^:#:' \
+               -i Gemfile || die
+
+       sed -i -e '/simplecov/I s:^:#:' test/test_helper.rb || die
+}

Reply via email to