pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/ruby-priority-queue devel/ruby-priority-queue: f...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1f72eeba881c
branches:  trunk
changeset: 446934:1f72eeba881c
user:      taca <taca%pkgsrc.org@localhost>
date:      Sun Feb 14 14:58:20 2021 +0000

description:
devel/ruby-priority-queue: fix build problem with Ruby 3.0

diffstat:

 devel/ruby-priority-queue/distinfo                                                   |   4 +-
 devel/ruby-priority-queue/patches/patch-ext_priority__queue_priority__queue.c        |  23 ++++++++
 devel/ruby-priority-queue/patches/patch-lib_priority__queue_ruby__priority__queue.rb |  28 ++++++++++
 3 files changed, 54 insertions(+), 1 deletions(-)

diffs (72 lines):

diff -r 4eb722fed4c9 -r 1f72eeba881c devel/ruby-priority-queue/distinfo
--- a/devel/ruby-priority-queue/distinfo        Sun Feb 14 14:57:34 2021 +0000
+++ b/devel/ruby-priority-queue/distinfo        Sun Feb 14 14:58:20 2021 +0000
@@ -1,6 +1,8 @@
-$NetBSD: distinfo,v 1.4 2015/11/03 03:29:26 agc Exp $
+$NetBSD: distinfo,v 1.5 2021/02/14 14:58:20 taca Exp $
 
 SHA1 (PriorityQueue-0.1.2.gem) = 37b3eb7424b056a9ebb94d882f9ce0059303dc3e
 RMD160 (PriorityQueue-0.1.2.gem) = db7e836b0f22b923c374045417e97ad78ab53888
 SHA512 (PriorityQueue-0.1.2.gem) = 67ae4507882e7635bef387b0df63ac7724b285cda5e23a06572477de71c98fd10b7718d966f2d5dba1f8cad29df112929d6b0ca30c042c843d364e5c8abccf23
 Size (PriorityQueue-0.1.2.gem) = 59392 bytes
+SHA1 (patch-ext_priority__queue_priority__queue.c) = ed8e1e9b248d99911526192eed589e8174025ba7
+SHA1 (patch-lib_priority__queue_ruby__priority__queue.rb) = d7a94bfa1bb91875748f67ca4c65b63612729358
diff -r 4eb722fed4c9 -r 1f72eeba881c devel/ruby-priority-queue/patches/patch-ext_priority__queue_priority__queue.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby-priority-queue/patches/patch-ext_priority__queue_priority__queue.c     Sun Feb 14 14:58:20 2021 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-ext_priority__queue_priority__queue.c,v 1.1 2021/02/14 14:58:20 taca Exp $
+
+Do not declar/define bool, false, true if already defined.
+
+--- ext/priority_queue/priority_queue.c.orig   2021-01-11 07:17:11.301968825 +0000
++++ ext/priority_queue/priority_queue.c
+@@ -24,10 +24,16 @@
+ #include "ruby.h"
+ #include <math.h>
+ 
++#ifndef bool
+ typedef _Bool bool;
++#endif
+ 
++#ifndef false
+ #define false 0;
++#endif
++#ifndef true
+ #define true 1;
++#endif
+ 
+ // Node Structure
+ typedef struct struct_priority_node {
diff -r 4eb722fed4c9 -r 1f72eeba881c devel/ruby-priority-queue/patches/patch-lib_priority__queue_ruby__priority__queue.rb
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby-priority-queue/patches/patch-lib_priority__queue_ruby__priority__queue.rb      Sun Feb 14 14:58:20 2021 +0000
@@ -0,0 +1,28 @@
+$NetBSD: patch-lib_priority__queue_ruby__priority__queue.rb,v 1.1 2021/02/14 14:58:20 taca Exp $
+
+Convert to UTF-8.
+
+--- lib/priority_queue/ruby_priority_queue.rb.orig     2021-01-11 07:17:11.306557525 +0000
++++ lib/priority_queue/ruby_priority_queue.rb
+@@ -458,7 +458,7 @@ class RubyPriorityQueue
+         n = n.right;
+       end while n != min.child
+ 
+-      # Kinder einfügen
++      # Kinder einfügen
+       if @rootlist
+         l1 = @rootlist.left
+         l2 = n.left
+@@ -472,10 +472,10 @@ class RubyPriorityQueue
+       end
+       end
+ 
+-      # Größe anpassen
++      # Grö�e anpassen
+       @length -= 1
+ 
+-      # Wieder aufhübschen
++      # Wieder aufhübschen
+       consolidate
+     end
+ 



Home | Main Index | Thread Index | Old Index