pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/comms/ruby-termios Add a patch to build with Ruby 1.8.7.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f70b99db5635
branches:  trunk
changeset: 543477:f70b99db5635
user:      taca <taca%pkgsrc.org@localhost>
date:      Thu Jun 19 14:39:58 2008 +0000

description:
Add a patch to build with Ruby 1.8.7.

Bump PKGREVISION.

diffstat:

 comms/ruby-termios/Makefile         |   4 ++--
 comms/ruby-termios/distinfo         |   3 ++-
 comms/ruby-termios/patches/patch-aa |  27 +++++++++++++++++++++++++++
 3 files changed, 31 insertions(+), 3 deletions(-)

diffs (56 lines):

diff -r c7191b500eb3 -r f70b99db5635 comms/ruby-termios/Makefile
--- a/comms/ruby-termios/Makefile       Thu Jun 19 14:39:00 2008 +0000
+++ b/comms/ruby-termios/Makefile       Thu Jun 19 14:39:58 2008 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.18 2008/04/04 15:30:00 jlam Exp $
+# $NetBSD: Makefile,v 1.19 2008/06/19 14:39:58 taca Exp $
 
 DISTNAME=      ruby-termios-0.9.5
 PKGNAME=       ${RUBY_PKGPREFIX}-${GEM_NAME}
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    comms
 MASTER_SITES=  http://arika.org/archive/
 EXTRACT_SUFX=  .tar.gz
diff -r c7191b500eb3 -r f70b99db5635 comms/ruby-termios/distinfo
--- a/comms/ruby-termios/distinfo       Thu Jun 19 14:39:00 2008 +0000
+++ b/comms/ruby-termios/distinfo       Thu Jun 19 14:39:58 2008 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.7 2007/08/18 14:26:59 taca Exp $
+$NetBSD: distinfo,v 1.8 2008/06/19 14:39:58 taca Exp $
 
 SHA1 (ruby-termios-0.9.5.tar.gz) = e9689dd0d51f7305bee34e2ce3abc4d4f561466f
 RMD160 (ruby-termios-0.9.5.tar.gz) = 923707f2afe4f2f9c853d51d0e7d94e511fa75df
 Size (ruby-termios-0.9.5.tar.gz) = 10927 bytes
+SHA1 (patch-aa) = 06db5dd1ce96af4c9d005ddc8970b00bad108708
diff -r c7191b500eb3 -r f70b99db5635 comms/ruby-termios/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/ruby-termios/patches/patch-aa       Thu Jun 19 14:39:58 2008 +0000
@@ -0,0 +1,27 @@
+$NetBSD: patch-aa,v 1.1 2008/06/19 14:39:58 taca Exp $
+
+--- termios.c.orig     2007-05-30 04:09:04.000000000 +0000
++++ termios.c
+@@ -12,11 +12,11 @@
+ #include <unistd.h>
+ #include <string.h>
+ 
+-#ifdef HAVE_TYPE_RB_IO_T
++#if !defined(OpenFile) && defined(HAVE_TYPE_RB_IO_T)
+ typedef rb_io_t OpenFile;
+ #endif
+ 
+-#if defined(HAVE_TYPE_RB_IO_T) ||  defined(HAVE_ST_FD)
++#if (!defined(OpenFile) && defined(HAVE_TYPE_RB_IO_T)) ||  defined(HAVE_ST_FD)
+ # define FILENO(fptr) (fptr->fd)
+ #else
+ # define FILENO(fptr) fileno(fptr->f)
+@@ -229,7 +229,7 @@ termios_tcsetattr(io, opt, param)
+     Check_Type(io,  T_FILE);
+     Check_Type(opt, T_FIXNUM);
+     if (CLASS_OF(param) != cTermios) {
+-      char *type = rb_class2name(CLASS_OF(param));
++      const char *type = rb_class2name(CLASS_OF(param));
+       rb_raise(rb_eTypeError, 
+                "wrong argument type %s (expected Termios::Termios)", 
+                type);



Home | Main Index | Thread Index | Old Index