pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/ruby21-base Allow duplicated dependencies in gems...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d6b652b6c96d
branches:  trunk
changeset: 632364:d6b652b6c96d
user:      taca <taca%pkgsrc.org@localhost>
date:      Wed Mar 26 13:22:44 2014 +0000

description:
Allow duplicated dependencies in gemspec since many existing rubygems have
wrong duplicated dependencies.

Bump PKGREVISION.

diffstat:

 lang/ruby21-base/Makefile                                    |   3 +-
 lang/ruby21-base/distinfo                                    |   4 +-
 lang/ruby21-base/patches/patch-lib_rubygems_specification.rb |  18 +++++++++--
 3 files changed, 18 insertions(+), 7 deletions(-)

diffs (68 lines):

diff -r f0965bcbb3bf -r d6b652b6c96d lang/ruby21-base/Makefile
--- a/lang/ruby21-base/Makefile Wed Mar 26 13:19:13 2014 +0000
+++ b/lang/ruby21-base/Makefile Wed Mar 26 13:22:44 2014 +0000
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.1 2014/03/14 19:40:47 taca Exp $
+# $NetBSD: Makefile,v 1.2 2014/03/26 13:22:44 taca Exp $
 #
 
 DISTNAME=      ${RUBY_DISTNAME}
 PKGNAME=       ${RUBY_PKGPREFIX}-base-${RUBY_VERSION_FULL}
+PKGREVISION=   1
 CATEGORIES=    lang ruby
 MASTER_SITES=  ${MASTER_SITE_RUBY}
 
diff -r f0965bcbb3bf -r d6b652b6c96d lang/ruby21-base/distinfo
--- a/lang/ruby21-base/distinfo Wed Mar 26 13:19:13 2014 +0000
+++ b/lang/ruby21-base/distinfo Wed Mar 26 13:22:44 2014 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.1 2014/03/14 19:40:47 taca Exp $
+$NetBSD: distinfo,v 1.2 2014/03/26 13:22:44 taca Exp $
 
 SHA1 (ruby-2.1.1.tar.bz2) = a7fd539f64864bc00fc64444d2d814df6c19fd4a
 RMD160 (ruby-2.1.1.tar.bz2) = b200bb8d1542f79306c5cd0760781ec9dc759998
@@ -16,7 +16,7 @@
 SHA1 (patch-lib_rubygems_install__update__options.rb) = 9a15d509928aa0440691bef8ad43bbfd2688542f
 SHA1 (patch-lib_rubygems_installer.rb) = b9f5f83db56e89e0996acd9677a090cf0856bf75
 SHA1 (patch-lib_rubygems_platform.rb) = 5150a27be7d637dc2ffa44c1d053a39d5f8c9059
-SHA1 (patch-lib_rubygems_specification.rb) = ee53b1982c665bef63e60eb72f3c2d0ec8f02bdc
+SHA1 (patch-lib_rubygems_specification.rb) = 034ad0404e8cdfed42def4cfb5c1f98a1597b0c0
 SHA1 (patch-lib_rubygems_uninstaller.rb) = 87fdddc435440aab57a6d44aba64abd0b2de6907
 SHA1 (patch-man_erb.1) = 1fe6ce4f4fe6418bfabb5e132a63596562030116
 SHA1 (patch-man_irb.1) = 2bf807b4c1b1c68d1f518caa054cfd900e0fedb7
diff -r f0965bcbb3bf -r d6b652b6c96d lang/ruby21-base/patches/patch-lib_rubygems_specification.rb
--- a/lang/ruby21-base/patches/patch-lib_rubygems_specification.rb      Wed Mar 26 13:19:13 2014 +0000
+++ b/lang/ruby21-base/patches/patch-lib_rubygems_specification.rb      Wed Mar 26 13:22:44 2014 +0000
@@ -1,14 +1,15 @@
-$NetBSD: patch-lib_rubygems_specification.rb,v 1.1 2014/03/14 19:40:47 taca Exp $
+$NetBSD: patch-lib_rubygems_specification.rb,v 1.2 2014/03/26 13:22:44 taca Exp $
 
 * Changes for pkgsrc environment:
 
-  -  Allow some attributes to nil.
-  -  Relax date/time format.
+  - Allow some attributes to nil.
+  - Relax date/time format.
+  - Allow duplicated dependencies for now.
 
 And allow multiple conditions for requirement from Ruby 2.0.0 and
 Rubygem 1.8.25.
 
---- lib/rubygems/specification.rb.orig 2013-12-19 22:09:19.000000000 +0000
+--- lib/rubygems/specification.rb.orig 2014-02-06 02:59:36.000000000 +0000
 +++ lib/rubygems/specification.rb
 @@ -178,6 +178,12 @@ class Gem::Specification < Gem::BasicSpe
      @@default_value[k].nil?
@@ -69,3 +70,12 @@
      end
  
      # Warnings
+@@ -2605,7 +2633,7 @@ http://opensource.org/licenses/alphabeti
+ 
+     dependencies.each do |dep|
+       if prev = seen[dep.name] then
+-        raise Gem::InvalidSpecificationException, <<-MESSAGE
++        warn <<-MESSAGE
+ duplicate dependency on #{dep}, (#{prev.requirement}) use:
+     add_runtime_dependency '#{dep.name}', '#{dep.requirement}', '#{prev.requirement}'
+         MESSAGE



Home | Main Index | Thread Index | Old Index