FreeBSD Bugzilla – Attachment 231982 Details for
Bug 262088
mail/rubygem-mail: Depend directly on mail/rubygem-net-smtp not packaged with Ruby 3.1
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch file
mail_rubygem-mail.patch (text/plain), 2.44 KB, created by
Yasuhiro Kimura
on 2022-02-21 07:58:08 UTC
(
hide
)
Description:
Patch file
Filename:
MIME Type:
Creator:
Yasuhiro Kimura
Created:
2022-02-21 07:58:08 UTC
Size:
2.44 KB
patch
obsolete
>From 64198db73b7185503325ad746d034911cb3b32d7 Mon Sep 17 00:00:00 2001 >From: Yasuhiro Kimura <yasu@FreeBSD.org> >Date: Thu, 11 Nov 2021 02:59:42 +0900 >Subject: [PATCH] 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. >--- > mail/rubygem-mail/Makefile | 4 +++- > mail/rubygem-mail/files/patch-mail.gemspec | 18 ++++++++++++++++++ > 2 files changed, 21 insertions(+), 1 deletion(-) > create mode 100644 mail/rubygem-mail/files/patch-mail.gemspec > >diff --git a/mail/rubygem-mail/Makefile b/mail/rubygem-mail/Makefile >index 6b12707478bd..0c4695ae0124 100644 >--- a/mail/rubygem-mail/Makefile >+++ b/mail/rubygem-mail/Makefile >@@ -2,6 +2,7 @@ > > PORTNAME= mail > PORTVERSION= 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 000000000000..5b1682def046 >--- /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<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"]) >-- >2.35.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 262088
: 231982