dev-ruby/ruby_smb: update EAPI 6 -> 8, add ruby30, ruby31

Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
Hans de Graaff
2023-03-19 08:45:01 +01:00
parent 2e25021d57
commit ff63e217ed
@@ -0,0 +1,29 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
USE_RUBY="ruby27 ruby30 ruby31"
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
inherit ruby-fakegem
DESCRIPTION="pure Ruby implementation of the SMB Protocol Family"
HOMEPAGE="https://github.com/rapid7/ruby_smb"
LICENSE="BSD"
SLOT="1"
KEYWORDS="~amd64 ~arm ~x86"
IUSE=""
ruby_add_rdepend "dev-ruby/bindata:*
dev-ruby/rubyntlm
dev-ruby/windows_error"
all_ruby_prepare() {
sed -i -e '/simple[Cc]ov/d' -e '/coveralls/d' spec/spec_helper.rb
sed -i -e '/[Ss]imple[Cc]ov/,/end/d' \
-e '/[Cc]overalls/,/end/d' spec/spec_helper.rb
sed -i '/TRAVIS/d' spec/spec_helper.rb
sed -i -e '1irequire "rubyntlm"; require "time"' spec/spec_helper.rb
}