-
Notifications
You must be signed in to change notification settings - Fork 759
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mail/rubygem-mail: Fix dependency with Ruby 3.1
In Ruby 3.1 net/smtp is distributed as bundled gem. On the other hand, our ruby ports (lang/rubyXY) don't include bundled gems in their packages and it also applies to lang/ruby31. That means net/smtp isn't include in the package of Ruby 3.1. So add mail/rubygem-net-smtp to RUN_DEPENDS so this port works fine with Ruby 3.1. PR: 262088 Approved by: portmgr (blanket: dependency fix) MFH: 2022Q1 (dependency fix)
- Loading branch information
Yasuhiro Kimura
authored and
Yasuhiro Kimura
committed
Mar 19, 2022
1 parent
fd23195
commit da6b780
Showing
2 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- mail.gemspec.orig 2021-11-10 18:38:59 UTC | ||
+++ mail.gemspec | ||
@@ -24,6 +24,7 @@ Gem::Specification.new do |s| | ||
end | ||
|
||
if s.respond_to? :add_runtime_dependency then | ||
+ s.add_runtime_dependency(%q<net-smtp>.freeze, [">= 0"]) | ||
s.add_runtime_dependency(%q<mini_mime>.freeze, [">= 0.1.1"]) | ||
s.add_development_dependency(%q<bundler>.freeze, [">= 1.0.3"]) | ||
s.add_development_dependency(%q<rake>.freeze, ["> 0.8.7"]) | ||
@@ -31,6 +32,7 @@ Gem::Specification.new do |s| | ||
s.add_development_dependency(%q<rdoc>.freeze, [">= 0"]) | ||
s.add_development_dependency(%q<rufo>.freeze, [">= 0"]) | ||
else | ||
+ s.add_dependency(%q<net-smtp>.freeze, [">= 0"]) | ||
s.add_dependency(%q<mini_mime>.freeze, [">= 0.1.1"]) | ||
s.add_dependency(%q<bundler>.freeze, [">= 1.0.3"]) | ||
s.add_dependency(%q<rake>.freeze, ["> 0.8.7"]) |