summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2022-03-13 09:25:04 +0100
committerHans de Graaff <graaff@gentoo.org>2022-03-14 07:33:57 +0100
commit786eac2b4f4a19e4570e1d684fa392342e260f26 (patch)
tree9ae7ac867d732fae3d31ead4d0b284e0672b27eb /dev-ruby/metaclass
parentdev-ruby/sshkit: cleanup (diff)
downloadgentoo-786eac2b4f4a19e4570e1d684fa392342e260f26.tar.gz
gentoo-786eac2b4f4a19e4570e1d684fa392342e260f26.tar.bz2
gentoo-786eac2b4f4a19e4570e1d684fa392342e260f26.zip
dev-ruby/metaclass: add ruby31; EAPI 8
Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/metaclass')
-rw-r--r--dev-ruby/metaclass/metaclass-0.0.4-r2.ebuild25
1 files changed, 25 insertions, 0 deletions
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
+}