diff options
Diffstat (limited to 'dev-ruby/ruby_smb')
-rw-r--r-- | dev-ruby/ruby_smb/Manifest | 3 | ||||
-rw-r--r-- | dev-ruby/ruby_smb/files/ruby_smb-3.2.5-import-pathname-no-simplecov.patch | 21 | ||||
-rw-r--r-- | dev-ruby/ruby_smb/ruby_smb-3.2.5.ebuild | 46 |
3 files changed, 70 insertions, 0 deletions
diff --git a/dev-ruby/ruby_smb/Manifest b/dev-ruby/ruby_smb/Manifest index e2ce3fa65a16..c16d7f9d680a 100644 --- a/dev-ruby/ruby_smb/Manifest +++ b/dev-ruby/ruby_smb/Manifest @@ -1,4 +1,7 @@ +AUX ruby_smb-3.2.5-import-pathname-no-simplecov.patch 814 BLAKE2B a4f0bc39b010d0466f1a8e5de6cc80f948eadf58e46f16f928de3829650cb13037f7368bd8d43858f38074437b944344ffcc08c13e2f7f6e4891b5ea992aca48 SHA512 64d571a05de2143091d41bced2b5214675926d4271bc5213cc840a0444bf4f5c729d32b6d4a75e393d56132a80bb3ba3ce4b57ab1cee4a2b7ecbaba2c0bc3e2c DIST ruby_smb-1.1.0.gem 175104 BLAKE2B ffa4a7b3666f736fd721c8d561c28724709c7db6a2a4075e183a0a931e5df0c8047e428a2537a747eda9482d9023c2ed8fd8157d1b40244615b3818dc0c0bc37 SHA512 038ca625b580ac32455d08c675a5d7319e320944fe3aef6ed7272872fdc6affbbf2bda325897369cb23d4d62e24923a74b13fe392017854c6c5b9889c5e003f6 +DIST ruby_smb-3.2.5.tar.gz 371107 BLAKE2B 452e93b2623f5354d257588a5b80803285a5b90c97b7f7318971986a9a0c3c18c80b00a0d1a32fba24447ceda73279656a76bc36ee38ea758a274db7cfe43d2c SHA512 15122587f7aa6ee85bcbd4a328b85e6db250b344754d1f059693d2710a8cce2b5ecdf034bd680bd9f2b0f752cf3378fbef9736b81448ac1436505f8aac98ae14 EBUILD ruby_smb-1.1.0-r1.ebuild 746 BLAKE2B 55a9c6e3da44cfdb99115e4f13c21c1ce385bf208877d804942ecce6c507379c1756a8032461415208314fed60c53b40168b3cdfb4522d9754422deafa21a266 SHA512 8be21f92ecaf39b0a748d28ba19f7ae8acc8db68ab986cebd6234a9f62d8a59a643d50ebfb01eecf523353a6f9f02424e8b5c2925935c78652dde07a668286ac EBUILD ruby_smb-1.1.0.ebuild 777 BLAKE2B ae329db9a65cd8aaead79010a7e03bd91a26d04e49aaed0a755e4702dfcf0535b46032d447cdbf5d39b435b2f496cbe42c73785132d09914c3dac3e47bb0e65f SHA512 e34d0a72c9346d186cf94b328bb23a8acc4c029c3c8f1d6bf90644e89cac0d491f09aaae0b2959c9ebf7c495ff24f3cb3ec0ac0efac2dc8671a5c036d9f35f15 +EBUILD ruby_smb-3.2.5.ebuild 980 BLAKE2B a90faebb5c6c40db5c791bcc4032e769a89e4511f6ebbf0a7e8a7a0b8a47432cc7a3585341ac090e50ad0c2d8f524c6ce5bcbe45572bb8a277ebd5eed2ffe104 SHA512 4e13f602c7dcbc87ef68cc78c333c4f5528c7f2bfec12098019c3503139889857ab5f362cc863e1df6cc354bbb016c312a5432fbca8ab1dc8b140517bcd66196 MISC metadata.xml 328 BLAKE2B 859f25af7113c3e93d2625543da46ef59ffc1912cfe8f9b754b5cfe60e619afb250c8cdbd556f5a337e7dbc020b4afcad0285c7cca319f4cfbbb616dd86b401f SHA512 46e97bedd55ea80b80976c20ee7194324fad332c5c8a5090835a038155e1b3c5314acb1a14e7e2594cd30bd05b95d7d478f7ca49685acd8f12d4821bdbf7dce9 diff --git a/dev-ruby/ruby_smb/files/ruby_smb-3.2.5-import-pathname-no-simplecov.patch b/dev-ruby/ruby_smb/files/ruby_smb-3.2.5-import-pathname-no-simplecov.patch new file mode 100644 index 000000000000..074c5a70b343 --- /dev/null +++ b/dev-ruby/ruby_smb/files/ruby_smb-3.2.5-import-pathname-no-simplecov.patch @@ -0,0 +1,21 @@ +https://github.com/rapid7/ruby_smb/pull/250 + +From a786565241b721e971ec60697d91516695cecb0a Mon Sep 17 00:00:00 2001 +From: Sam James <sam@gentoo.org> +Date: Wed, 22 Mar 2023 07:22:14 +0000 +Subject: [PATCH] virtual_disk: Add 'pathname' require + +Needed for join()'s call to Pathname.new(). Only comes up if disabling +simplecov because of a transitive-require. +--- a/lib/ruby_smb/server/share/provider/virtual_disk/virtual_pathname.rb ++++ b/lib/ruby_smb/server/share/provider/virtual_disk/virtual_pathname.rb +@@ -3,6 +3,8 @@ class Server + module Share + module Provider + class VirtualDisk < Disk ++ require 'pathname' ++ + # This object emulates Ruby's builtin Pathname object but uses a virtual file system instead of the real local + # one. + class VirtualPathname + diff --git a/dev-ruby/ruby_smb/ruby_smb-3.2.5.ebuild b/dev-ruby/ruby_smb/ruby_smb-3.2.5.ebuild new file mode 100644 index 000000000000..74f82135e43e --- /dev/null +++ b/dev-ruby/ruby_smb/ruby_smb-3.2.5.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby27 ruby30 ruby31 ruby32" +RUBY_FAKEGEM_TASK_TEST="spec" +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" +inherit ruby-fakegem + +DESCRIPTION="Pure Ruby implementation of the SMB Protocol Family" +HOMEPAGE="https://github.com/rapid7/ruby_smb" +SRC_URI="https://github.com/rapid7/ruby_smb/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="1" +KEYWORDS="~amd64 ~arm ~x86" + +ruby_add_rdepend " + dev-ruby/bindata:* + dev-ruby/rubyntlm + dev-ruby/windows_error +" + +PATCHES=( + "${FILESDIR}"/${PN}-3.2.5-import-pathname-no-simplecov.patch +) + +all_ruby_prepare() { + sed -i \ + -e '/simplecov/Id' \ + -e '/coveralls/d' \ + -e '/TRAVIS/d' \ + -e '1irequire "rubyntlm"; require "time"' \ + spec/spec_helper.rb || die + + sed -i \ + -e '/fivemat/d' \ + ${PN}.gemspec || die + + sed -i \ + -e '/pry-byebug/d' \ + -e '/pry-rescue/d' \ + -e '/coveralls/d' \ + Gemfile || die +} |