commit: 786eac2b4f4a19e4570e1d684fa392342e260f26 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> AuthorDate: Sun Mar 13 08:25:04 2022 +0000 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> CommitDate: Mon Mar 14 06:33:57 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=786eac2b
dev-ruby/metaclass: add ruby31; EAPI 8 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> dev-ruby/metaclass/metaclass-0.0.4-r2.ebuild | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/dev-ruby/metaclass/metaclass-0.0.4-r2.ebuild b/dev-ruby/metaclass/metaclass-0.0.4-r2.ebuild new file mode 100644 index 000000000000..f426efc3f79b --- /dev/null +++ b/dev-ruby/metaclass/metaclass-0.0.4-r2.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby26 ruby27 ruby30 ruby31" + +RUBY_FAKEGEM_EXTRADOC="README.md" + +RUBY_FAKEGEM_GEMSPEC="metaclass.gemspec" + +inherit ruby-fakegem +SRC_URI="https://github.com/floehopper/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +DESCRIPTION="Adds a __metaclass__ method to all Ruby objects" +HOMEPAGE="https://github.com/floehopper/metaclass" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +all_ruby_prepare() { + sed -i -e '/bundler/ s:^:#:' Rakefile test/test_helper.rb || die + sed -i -e 's/git ls-files/find */' -e '/\(test_files\|executables\)/ s:^:#:' ${RUBY_FAKEGEM_GEMSPEC} || die +}