commit: aedc7f1dd0e586c778f43866bfc36abce41a5849 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> AuthorDate: Wed Jul 17 05:57:24 2024 +0000 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> CommitDate: Wed Jul 17 05:57:41 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aedc7f1d
dev-ruby/highline: add 3.1.0 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> dev-ruby/highline/Manifest | 1 + dev-ruby/highline/highline-3.1.0.ebuild | 38 +++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/dev-ruby/highline/Manifest b/dev-ruby/highline/Manifest index fca406f8bd8f..66e01b3c4d30 100644 --- a/dev-ruby/highline/Manifest +++ b/dev-ruby/highline/Manifest @@ -1,2 +1,3 @@ DIST highline-2.1.0.tar.gz 234116 BLAKE2B e1e899093de7e162e83f4d2e694e5841cedc336063a4410cab392702241136d5eec258b53065ffcded567f0af163d04a25bbdfd0767211b059980e9e5effe7c9 SHA512 b763428d67b1eb77762b54b8e2dd39bda720589e7030db8694e793bb432fa94caa2848b23358e7eaea0ccb22d8a93e0a64aeef3865f7e9fec348bbebee19d713 DIST highline-3.0.1.tar.gz 236149 BLAKE2B 0aaa40ca678dc88934f55d5df9b970d8cd61e507bb4e967c72de10c5bcce94dfc5d6e4085d753124a62d46a285a096302ad127214f2aea28fa0397f40d3c6902 SHA512 e19724a473756faf57d989944b1e5cd86b97049a16ae0c33f25462f6f3d7f9948064f8e08d0b51d3a6f978acaf93c62b4965be5af829d3c07b123c96490a28b2 +DIST highline-3.1.0.tar.gz 236286 BLAKE2B 18a8250f180fbf5da73888c399b9b5aa80c216eb22f472a7e9924fa14886f82331e48557da974549a4dc61d7df7dcf023e8a9eb89994b3b100d8c35a9d73f545 SHA512 5346947a865ae21c6b3c97400c144f62197ed2f2802c81e7f3cfa276ec36f96cdffad9decc1f8a28f6108543b5ba0067fd09d8ec5daaacdf403f28df9c25d723 diff --git a/dev-ruby/highline/highline-3.1.0.ebuild b/dev-ruby/highline/highline-3.1.0.ebuild new file mode 100644 index 000000000000..bebd14051c3f --- /dev/null +++ b/dev-ruby/highline/highline-3.1.0.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby31 ruby32 ruby33" + +RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md TODO" + +RUBY_FAKEGEM_GEMSPEC="highline.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Highline is a high-level command-line IO library for ruby" +HOMEPAGE="https://github.com/JEG2/highline" +SRC_URI="https://github.com/JEG2/highline/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +IUSE="test" +LICENSE="|| ( GPL-2 Ruby-BSD )" +SLOT="$(ver_cut 1)" +KEYWORDS="~amd64 ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86" + +ruby_add_rdepend "dev-ruby/reline" + +ruby_add_bdepend "test? ( dev-ruby/dry-types )" + +all_ruby_prepare() { + # fix up gemspec file not to call git + sed -i -e 's/git ls-files -z/find * -print0/' highline.gemspec || die + + # Avoid unneeded dependencies + sed -i -e '/\(bundler\|code_statistics\)/ s:^:#:' \ + -e '/PackageTask/,/end/ s:^:#:' Rakefile || die + sed -i -e '/simplecov/ s:^:#:' test/test_helper.rb || die + + # Remove almost empty doc directory to allow rdoc recipe to work + rm -rf doc || die +}