summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2024-04-22 07:52:50 +0200
committerHans de Graaff <graaff@gentoo.org>2024-04-22 07:55:36 +0200
commit097e3f968dff8b5c8f551e00917be4c5e1e468a9 (patch)
treec8574bb09b86106153ab11b02dd29a262e210747 /dev-ruby
parentdev-ruby/libusb: add 0.7.1 (diff)
downloadgentoo-097e3f968dff8b5c8f551e00917be4c5e1e468a9.tar.gz
gentoo-097e3f968dff8b5c8f551e00917be4c5e1e468a9.tar.bz2
gentoo-097e3f968dff8b5c8f551e00917be4c5e1e468a9.zip
dev-ruby/console: add 1.24.0
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/console/Manifest1
-rw-r--r--dev-ruby/console/console-1.24.0.ebuild36
2 files changed, 37 insertions, 0 deletions
diff --git a/dev-ruby/console/Manifest b/dev-ruby/console/Manifest
index c48510f1f9e3..9bea0a66a0c6 100644
--- a/dev-ruby/console/Manifest
+++ b/dev-ruby/console/Manifest
@@ -3,3 +3,4 @@ DIST console-1.23.3.tar.gz 27768 BLAKE2B e421b6fd7ff0490dcdf9096843be9770b3a87e8
DIST console-1.23.5.tar.gz 27830 BLAKE2B fe90b745cc8db2e0b03589afd0c237ec5819547376384a86d5f06882148718cc0f7de2fcc1b72241e616d70feea3f2d8a4d675fb605986bf54224b374b2c116d SHA512 7425a226f6f8b9504ba58dcce5a7c879a320e4565277c0f70aec0d811db3b132be1e0e21c03e42321438602758f12a328258ebf7ad9719bf84572760f816989e
DIST console-1.23.6.tar.gz 27883 BLAKE2B e70ddeb8625fb4b8f700f7e1b60295dcf2ddbd1b7cc666975aa883fccbd1cf8e3c2f177938c536e696e95bb8fa3153ce61f70710cbf5dfda6058ce085ec18792 SHA512 0ae48383dedb176bdff5ead3db97a228cee498e5f6a6938e4d9882b3c363ea8b9286bb7089806f664df635d98039c9dca52c8d8afece505d38b12af5ee3aa41c
DIST console-1.23.7.tar.gz 27888 BLAKE2B bfbf447497b91d33248e5a502c6f4522467de3f49c4eb8f51c48f93b17fe12a15ba4352df4f5a3d9f6567fcad1edef05527aa288ef00175acc1868291e215416 SHA512 3057e8f29c8c9d8b6dd37cbf8d8daaea8d00429a623ca92161a2294feeae10f7d83cc418e008de258f84a53ee1464f091f5e7405ac347a2785f3b36d7924966f
+DIST console-1.24.0.tar.gz 28031 BLAKE2B 14126657e454739981e110c8df2ec68116ec1552a90f7c8f25032ca5901451721b69f52e6d3688c2c678a58f9414cc0f824081b8fc3a3bdc74d603e4f8c1f0d6 SHA512 4374276673b3a76f56350cd27e29a7af8158e5b53ed4c073502a84299d3d69ed395fa238999a271bb782a2292393c0cf39e64b5e6adb52abaa7c87d4e3b7097a
diff --git a/dev-ruby/console/console-1.24.0.ebuild b/dev-ruby/console/console-1.24.0.ebuild
new file mode 100644
index 000000000000..3ddf1603f2f0
--- /dev/null
+++ b/dev-ruby/console/console-1.24.0.ebuild
@@ -0,0 +1,36 @@
+# Copyright 2022-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby31 ruby32 ruby33"
+
+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
+ dev-ruby/json
+"
+
+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
+}