diff options
author | Hans de Graaff <graaff@gentoo.org> | 2023-06-26 06:26:58 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2023-06-26 06:27:09 +0200 |
commit | ddf4eca14bb02328d30c0f4805c2f3fe1ed09f5d (patch) | |
tree | 4b1fd5e2ca015d579750af5cf717c294dea93f58 /dev-ruby/console | |
parent | dev-ruby/acme-client: add 2.0.14 (diff) | |
download | gentoo-ddf4eca14bb02328d30c0f4805c2f3fe1ed09f5d.tar.gz gentoo-ddf4eca14bb02328d30c0f4805c2f3fe1ed09f5d.tar.bz2 gentoo-ddf4eca14bb02328d30c0f4805c2f3fe1ed09f5d.zip |
dev-ruby/console: add 1.17.2
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/console')
-rw-r--r-- | dev-ruby/console/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/console/console-1.17.2.ebuild | 36 |
2 files changed, 37 insertions, 0 deletions
diff --git a/dev-ruby/console/Manifest b/dev-ruby/console/Manifest index d6b5971685de..724c58663d02 100644 --- a/dev-ruby/console/Manifest +++ b/dev-ruby/console/Manifest @@ -1 +1,2 @@ DIST console-1.16.2.tar.gz 24609 BLAKE2B 470e6fb547e594d6e4add21c11bccca2d239d5430e148bdd99fe925d57058a3e7304b96c793c72a68ac3df3e285c1b7719b5a1e0db833350b0ef55ac17cca4f8 SHA512 fe32ea7b3ab11319fcefc098571e2a4fff2fec2a56c53880731ab15deca75e84c94cc30456fea264e6201996311dc705799814e5c1d7c32e7b7d786fcac9588e +DIST console-1.17.2.tar.gz 24861 BLAKE2B c738249eadafe43c4528ebf75d30b51aa1d015fb9fa6cefaa7302bce0d81ab431b4e84ed3d25b8c5376e64b5b1fb8154b91858e15ad72ce6cb746fd18818bb33 SHA512 1c734d335d3928ca580e274857df1d18c05ce254bfdf8401b7c40b391db7d134b6b6b0327e7bb29d5f7c37522335a33cb58a29cf53aabb36279fa601e581a891 diff --git a/dev-ruby/console/console-1.17.2.ebuild b/dev-ruby/console/console-1.17.2.ebuild new file mode 100644 index 000000000000..6a8c6a91b3c3 --- /dev/null +++ b/dev-ruby/console/console-1.17.2.ebuild @@ -0,0 +1,36 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby30 ruby31 ruby32" + +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" +IUSE="" + +ruby_add_rdepend " + dev-ruby/fiber-annotation + dev-ruby/fiber-local +" + +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 +} |