Change RUN_DEPENDS from rubygem-net-http-persistent2 to rubygem-net-http-persistent
- Bump PORTREVISION for dependency and package change
Obtained from: 292a6b283b
This commit is contained in:
parent
3d7991e557
commit
515e6e134f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=471415
@ -3,6 +3,7 @@
|
||||
|
||||
PORTNAME= rubygems-mirror
|
||||
PORTVERSION= 1.2.0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= devel rubygems
|
||||
MASTER_SITES= RG
|
||||
|
||||
@ -11,7 +12,7 @@ COMMENT= Mirror rubygems
|
||||
|
||||
LICENSE= MIT
|
||||
|
||||
RUN_DEPENDS= rubygem-net-http-persistent2>=2.9:www/rubygem-net-http-persistent2
|
||||
RUN_DEPENDS= rubygem-net-http-persistent>=2.9:www/rubygem-net-http-persistent
|
||||
|
||||
NO_ARCH= yes
|
||||
USE_RUBY= yes
|
||||
|
11
devel/rubygem-rubygems-mirror/files/patch-gemspec
Normal file
11
devel/rubygem-rubygems-mirror/files/patch-gemspec
Normal file
@ -0,0 +1,11 @@
|
||||
--- rubygems-mirror.gemspec.orig 2018-06-02 21:27:45 UTC
|
||||
+++ rubygems-mirror.gemspec
|
||||
@@ -23,7 +23,7 @@ Gem::Specification.new do |s|
|
||||
s.specification_version = 4
|
||||
|
||||
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
||||
- s.add_runtime_dependency(%q<net-http-persistent>.freeze, ["~> 2.9"])
|
||||
+ s.add_runtime_dependency(%q<net-http-persistent>.freeze, [">= 2.9"])
|
||||
s.add_development_dependency(%q<minitest>.freeze, ["~> 5.7"])
|
||||
s.add_development_dependency(%q<rdoc>.freeze, ["< 6", ">= 4.0"])
|
||||
s.add_development_dependency(%q<hoe>.freeze, ["~> 3.17"])
|
@ -0,0 +1,20 @@
|
||||
Obtained from: https://github.com/rubygems/rubygems-mirror/commit/292a6b283b5ea96c20ed30b27526def4b142a866
|
||||
|
||||
--- lib/rubygems/mirror/fetcher.rb.orig 2018-06-02 12:50:03 UTC
|
||||
+++ lib/rubygems/mirror/fetcher.rb
|
||||
@@ -6,7 +6,14 @@ class Gem::Mirror::Fetcher
|
||||
class Error < StandardError; end
|
||||
|
||||
def initialize(opts = {})
|
||||
- @http = Net::HTTP::Persistent.new(self.class.name, :ENV)
|
||||
+ @http =
|
||||
+ if defined?(Net::HTTP::Persistent::DEFAULT_POOL_SIZE)
|
||||
+ Net::HTTP::Persistent.new(name: self.class.name, proxy: :ENV)
|
||||
+ else
|
||||
+ # net-http-persistent < 3.0
|
||||
+ Net::HTTP::Persistent.new(self.class.name, :ENV)
|
||||
+ end
|
||||
+
|
||||
@opts = opts
|
||||
|
||||
# default opts
|
Loading…
Reference in New Issue
Block a user