From 547caa904733bc2a3ac112415990a114ecbe8824 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 20 Oct 2023 09:50:23 +0100 Subject: gentoo auto-resync : 20:10:2023 - 09:50:23 --- dev-ruby/thor/Manifest | 4 ++- dev-ruby/thor/metadata.xml | 3 +- dev-ruby/thor/thor-1.3.0.ebuild | 72 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 77 insertions(+), 2 deletions(-) create mode 100644 dev-ruby/thor/thor-1.3.0.ebuild (limited to 'dev-ruby/thor') diff --git a/dev-ruby/thor/Manifest b/dev-ruby/thor/Manifest index e56e5dfcd8cf..2a18a8dcb61d 100644 --- a/dev-ruby/thor/Manifest +++ b/dev-ruby/thor/Manifest @@ -1,4 +1,6 @@ AUX thor-1.2.2-no-coverage.patch 752 BLAKE2B 936e3ef4ba494a8e1b221fbf2688c9487c127fbf5991ae53baf5c33e12033de17c48bfd6dbf0460f952b5db4d4a0139befe7ad683e3bffa8b9a978a0dda27825 SHA512 c8b8e833f8d133e3d2c8e507820b054245ae119a766ba7ef4009ca235d64d0f763733aac719b6c5df521b23a80c43068cfdb747659fdda514a74dcb3d330f347 DIST thor-git-1.2.2.tgz 98213 BLAKE2B e71ee51eb5c982c585cf9bd9dffda8933975c9d0df8096015d125eefd0597a653887db1acfc132ce1f5a2e8ce4ab71c790a6c0bf39edd7c5e4c85a75de963944 SHA512 2c8af5d59f33691af63e813ba8dfe3392c279593f3e3ccf0ab2d6eb2ccce4220d93b7cb3413ad853e4bba14f4e2182c54caaf4944627cbcbefa31cdc0fabefc7 +DIST thor-git-1.3.0.tgz 102884 BLAKE2B f3f5a27ccfdbe7de6bbec71e1ae36e522d49ceec223e1d86a028898403e4e56722703dc847b4a850c46301fdeea429e70e73b7888089c35138d455c094678c02 SHA512 f561f9d05264cf0d2cd836dfb689539b645fa02a39ea8d10923001bb3d510ad6b4bcbb6551739d453e7d9ac05562bc0f454b581926becbc784c0604c5449c27e EBUILD thor-1.2.2.ebuild 2157 BLAKE2B 18f1befd80e7fdc1647f72a0177db32b28831f5b95742a7aab052246ff00e7c85909c04890d0808af6182836acef0c6ef9bca2f95514e1c3445da9edb99a54ce SHA512 0ec3d98a34b9be07b5893400c42d2e511fa4dddcc75f28a27348cd2a8e0a8469b6cf2aa73cd9d7c15b078557d1501bec33e85da11a6f4d0689584b50fade37bf -MISC metadata.xml 681 BLAKE2B 18af48da65edba93d19a6a8541a5a79b63485d15108736b8b2c964a57006dd8e0bcc094261045a2598ab5537c3162cffc012e35dbff7c631e45f8de1657b5cd4 SHA512 ccc14bf0262a52707216bedfa51c46d5de83b04308d6768dd73e9d63a0e807ae5f069b9730b5e88311ddf51185aaec12144ffd8540044baf2b18d1208dee380a +EBUILD thor-1.3.0.ebuild 2047 BLAKE2B f1533fc7d4524e575ed895ed5f05cbdbf9424ecc8fd5833585153d5e5b9b34c1ca345dce11c4ba985cc7850e5e1c61477f877eb7b741f072d2363ef3ca59abee SHA512 484192889d4b37f64dce2861537ad69a27d44be9f58ba516b1820fa23ada3a1d8d96ce7f04155df25b0d32ed81419d069cf9c1a25658f3bbf373d3cdd74285af +MISC metadata.xml 724 BLAKE2B c522632e2e7c6c0ac4fdf46fdf23bb89eb255d4b2dd7bf64a80b583d77049e5d5e93f5a2088ebaaef942042ae72eb2b66b8e7c752c8edab40c463a39362eb5e5 SHA512 ae2816ffe775975562f166c4ac6d26192e60deaa317404ab74e300aaf8a715746433b27d554786a26d73141d6d68e473db437272b83851669c74598395c0ea40 diff --git a/dev-ruby/thor/metadata.xml b/dev-ruby/thor/metadata.xml index f5ad206d6531..c7f8669f3557 100644 --- a/dev-ruby/thor/metadata.xml +++ b/dev-ruby/thor/metadata.xml @@ -13,6 +13,7 @@ should be familiar to most Rake users. - erikhuda/thor + rails/thor + thor diff --git a/dev-ruby/thor/thor-1.3.0.ebuild b/dev-ruby/thor/thor-1.3.0.ebuild new file mode 100644 index 000000000000..2143223cbaa5 --- /dev/null +++ b/dev-ruby/thor/thor-1.3.0.ebuild @@ -0,0 +1,72 @@ +# Copyright 2000-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby31 ruby32" + +RUBY_FAKEGEM_RECIPE_TEST="rspec3" +RUBY_FAKEGEM_DOCDIR="rdoc" +RUBY_FAKEGEM_EXTRADOC="README.md" +RUBY_FAKEGEM_BINWRAP="thor" + +RUBY_FAKEGEM_GEMSPEC="thor.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Simple and efficient tool for building self-documenting command line utilities" +HOMEPAGE="http://whatisthor.com/" +SRC_URI="https://github.com/rails/${PN}/archive/v${PV}.tar.gz -> ${PN}-git-${PV}.tgz" + +LICENSE="MIT" +SLOT="$(ver_cut 1)" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux" +IUSE="doc" + +# For initial target porting (new rubies), we can make these test deps +# conditional with: +# 1. USE_RUBY="" ruby_add_bdepend ... +# 2. skip logic in each_ruby_test +USE_RUBY="ruby31 ruby32" ruby_add_bdepend " + test? ( + dev-ruby/childlabor + dev-ruby/webmock + )" + +all_ruby_prepare() { + # Remove rspec default options (as we might not have the last + # rspec). + rm .rspec || die + + # Remove Bundler + #rm Gemfile || die + sed -i -e '/[Bb]undler/d' Thorfile || die + + # Remove mandatory coverage collection using simplecov which is not + # packaged. + sed -i -e '/require "simplecov"/,/^end/ s:^:#:' spec/helper.rb || die + + # Avoid a spec that requires UTF-8 support, so LANG=C still works, + # bug 430402 + #sed -i -e '/uses maximum terminal width/,/end/ s:^:#:' spec/shell/basic_spec.rb || die + + # Avoid specs depending on git, bug 724058 + rm -f spec/quality_spec.rb || die + + # Avoid currently broken readline specs (already fixed upstream) + rm -f spec/line_editor/readline_spec.rb spec/line_editor_spec.rb || die + + # Avoid spec failing on whitespace difference in error message + sed -i -e '/raises an error for unknown switches/askip "whitespace differences"' spec/parser/options_spec.rb || die +} + +each_ruby_test() { + case ${RUBY} in + *ruby33) + einfo "Skipping tests due to circular dependencies" + ;; + *) + RSPEC_VERSION=3 ruby-ng_rspec spec || die + ;; + esac +} -- cgit v1.2.3