[DRE-commits] [ruby-gd] 01/03: Port to Ruby 2.1 (Closes: #743982)

Antonio Terceiro terceiro at moszumanska.debian.org
Wed Apr 16 00:03:45 UTC 2014


This is an automated email from the git hooks/post-receive script.

terceiro pushed a commit to branch master
in repository ruby-gd.

commit 0e7a9b4563c5235bdedb748c8f52ef257205b4ec
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Tue Apr 15 19:43:24 2014 -0300

    Port to Ruby 2.1 (Closes: #743982)
---
 debian/changelog                     |  7 +++++++
 debian/patches/port-to-ruby2.1.patch | 26 ++++++++++++++++++++++++++
 debian/patches/series                |  1 +
 3 files changed, 34 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 4db3dee..d4b511f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+ruby-gd (0.8.0-7) unstable; urgency=medium
+
+  * Team upload.
+  * Port to Ruby 2.1 (Closes: #743982)
+
+ -- Antonio Terceiro <terceiro at debian.org>  Tue, 15 Apr 2014 19:55:07 -0300
+
 ruby-gd (0.8.0-6) unstable; urgency=medium
 
   * Team upload.
diff --git a/debian/patches/port-to-ruby2.1.patch b/debian/patches/port-to-ruby2.1.patch
new file mode 100644
index 0000000..9585a61
--- /dev/null
+++ b/debian/patches/port-to-ruby2.1.patch
@@ -0,0 +1,26 @@
+Description: Port to Ruby 2.1
+Author: Antonio Terceiro <terceiro at debian.org>
+
+--- a/GD.c
++++ b/GD.c
+@@ -1711,13 +1711,20 @@ img_wbmp(img, fg, out)
+  *
+  */
+ 
++#include <ruby/version.h>
++
+ static VALUE
+ ply_new(klass)
+     VALUE klass;
+ {
+     VALUE self = rb_ary_new();
+ 
++    #if (RUBY_API_VERSION_MAJOR >= 2) && (RUBY_API_VERSION_MINOR >= 1)
++    rb_obj_reveal(self, klass);
++    #else
+     RBASIC(self)->klass = klass;
++    #endif
++
+     return self;
+ }
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 221b0c4..baafc25 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@ fix-compilation-with-ruby19.patch
 restore-ruby18-support.patch
 fix-memory-leak.patch
 compatibility-with-ruby192.patch
+port-to-ruby2.1.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-gd.git



More information about the Pkg-ruby-extras-commits mailing list