From 7ee3d5351162a4bd58970402a12a89552b8271be Mon Sep 17 00:00:00 2001 From: Yasuhiro Kimura Date: Thu, 11 Nov 2021 02:59:42 +0900 Subject: [PATCH] mail/rubygem-mail: Fix dependency with upcoming 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 bandled gems in thier packages and it also applies to upcoming lang/ruby31. That means net/smtp isn't include in lang/ruby31 package. So add mail/rubygem-net-smtp to RUN_DEPENDS so this port works fine with Ruby 3.1. Note that this depends on bug #258108. --- mail/rubygem-mail/Makefile | 6 ++++-- mail/rubygem-mail/files/patch-mail.gemspec | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 mail/rubygem-mail/files/patch-mail.gemspec diff --git a/mail/rubygem-mail/Makefile b/mail/rubygem-mail/Makefile index 6b12707478bd2..4a406681165d8 100644 --- a/mail/rubygem-mail/Makefile +++ b/mail/rubygem-mail/Makefile @@ -1,7 +1,8 @@ # Created by: Eric Freeman PORTNAME= mail -PORTVERSION= 2.7.1 +DISTVERSION= 2.7.1 +PORTREVISION= 1 PORTEPOCH= 2 CATEGORIES= mail rubygems MASTER_SITES= RG @@ -12,7 +13,8 @@ COMMENT= Ruby email handler LICENSE= MIT LICENSE_FILE= ${WRKSRC}/MIT-LICENSE -RUN_DEPENDS= rubygem-mini_mime>=0.1.1:mail/rubygem-mini_mime +RUN_DEPENDS= rubygem-mini_mime>=0.1.1:mail/rubygem-mini_mime \ + rubygem-net-smtp>0:mail/rubygem-net-smtp USES= cpe gem CPE_VENDOR= ${PORTNAME}_project diff --git a/mail/rubygem-mail/files/patch-mail.gemspec b/mail/rubygem-mail/files/patch-mail.gemspec new file mode 100644 index 0000000000000..5b1682def0467 --- /dev/null +++ b/mail/rubygem-mail/files/patch-mail.gemspec @@ -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.freeze, [">= 0"]) + s.add_runtime_dependency(%q.freeze, [">= 0.1.1"]) + s.add_development_dependency(%q.freeze, [">= 1.0.3"]) + s.add_development_dependency(%q.freeze, ["> 0.8.7"]) +@@ -31,6 +32,7 @@ Gem::Specification.new do |s| + s.add_development_dependency(%q.freeze, [">= 0"]) + s.add_development_dependency(%q.freeze, [">= 0"]) + else ++ s.add_dependency(%q.freeze, [">= 0"]) + s.add_dependency(%q.freeze, [">= 0.1.1"]) + s.add_dependency(%q.freeze, [">= 1.0.3"]) + s.add_dependency(%q.freeze, ["> 0.8.7"])