summaryrefslogtreecommitdiff
path: root/dev-ruby/console
diff options
context:
space:
mode:
Diffstat (limited to 'dev-ruby/console')
-rw-r--r--dev-ruby/console/Manifest1
-rw-r--r--dev-ruby/console/console-1.34.2.ebuild38
2 files changed, 39 insertions, 0 deletions
diff --git a/dev-ruby/console/Manifest b/dev-ruby/console/Manifest
index 47153296fabf..a82624794f50 100644
--- a/dev-ruby/console/Manifest
+++ b/dev-ruby/console/Manifest
@@ -1 +1,2 @@
DIST console-1.30.2.tar.gz 38173 BLAKE2B 30d1328bc5a8ec13c57a27fc6cf73a36486419588fec405de8f9daac31a823d6b8257285e1374a9fc8939d40324e8c4797a7a79f5b750dec7fcb75a738217d5c SHA512 f31917822f62fe203f9a9c6cc392e34c61e940c4fd54305b22d13803dc0f0cc42cd71f14d668c8bb1ee228f89ad7f0c4b0e90bcba07d443a7285d4a56b41c475
+DIST console-1.34.2.tar.gz 41701 BLAKE2B dd3819a348aa37660eed75c2b3318b82873d88b93cfcae6d20888c22f0be8220055d8c0a7f1958edff35b3609db6f463df1cdbd9b5f5b44ba26577008cf2ddae SHA512 8e73668c3465f11a3df30e6339e888e69eb2a7ef6498ae475a52ce2b0b3299e7dfb6b56d9c1ebaf22ccd406953fa0720ccbc8d11e30cac6a93aff5de62ec1b4f
diff --git a/dev-ruby/console/console-1.34.2.ebuild b/dev-ruby/console/console-1.34.2.ebuild
new file mode 100644
index 000000000000..03b3e8a030b9
--- /dev/null
+++ b/dev-ruby/console/console-1.34.2.ebuild
@@ -0,0 +1,38 @@
+# Copyright 2022-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby32 ruby33 ruby34"
+
+RUBY_FAKEGEM_EXTRADOC="readme.md"
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+RUBY_FAKEGEM_RECIPE_TEST="sus"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Beautiful logging for Ruby"
+HOMEPAGE="https://github.com/socketry/console"
+SRC_URI="https://github.com/socketry/console/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="$(ver_cut 1)"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+ruby_add_rdepend "
+ dev-ruby/fiber-annotation
+ >=dev-ruby/fiber-local-1.1:1
+ dev-ruby/json
+"
+
+ruby_add_depend "test? ( dev-ruby/sus-fixtures-console )"
+
+all_ruby_prepare() {
+ sed -i -E 's/require_relative "(.+)"/require File.expand_path("\1")/g' "${RUBY_FAKEGEM_GEMSPEC}" || die
+
+ # Avoid dependency on covered.
+ rm -f config/sus.rb || die
+
+ # Avoid sandbox violation during tests
+ sed -i -e 's:/tmp/:'"${TMPDIR}"'/:' test/console/output.rb || die
+}