From 2949289e87c8ac3e14b330a01dc9ce0710c704a8 Mon Sep 17 00:00:00 2001 From: taca Date: Thu, 19 Jun 2008 14:39:58 +0000 Subject: Add a patch to build with Ruby 1.8.7. Bump PKGREVISION. --- comms/ruby-termios/Makefile | 4 ++-- comms/ruby-termios/distinfo | 3 ++- comms/ruby-termios/patches/patch-aa | 27 +++++++++++++++++++++++++++ 3 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 comms/ruby-termios/patches/patch-aa (limited to 'comms/ruby-termios') diff --git a/comms/ruby-termios/Makefile b/comms/ruby-termios/Makefile index 20e273b12af..63e98b7dfcf 100644 --- a/comms/ruby-termios/Makefile +++ b/comms/ruby-termios/Makefile @@ -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 --git a/comms/ruby-termios/distinfo b/comms/ruby-termios/distinfo index 6edfa9d46e2..c3c473506f9 100644 --- a/comms/ruby-termios/distinfo +++ b/comms/ruby-termios/distinfo @@ -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 --git a/comms/ruby-termios/patches/patch-aa b/comms/ruby-termios/patches/patch-aa new file mode 100644 index 00000000000..28341bd102d --- /dev/null +++ b/comms/ruby-termios/patches/patch-aa @@ -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 + #include + +-#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); -- cgit v1.2.3