summaryrefslogtreecommitdiff
path: root/comms/ruby-termios
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2008-06-19 14:39:58 +0000
committertaca <taca@pkgsrc.org>2008-06-19 14:39:58 +0000
commit83a0216707a7699bfa1a7f69e2dc34b87c50317a (patch)
tree0a840fc8cb5ad8afa1abbe8eeef86b0afc55f990 /comms/ruby-termios
parent629e0c32830ca2b05f1fc853e10fbca562ddef5a (diff)
downloadpkgsrc-83a0216707a7699bfa1a7f69e2dc34b87c50317a.tar.gz
Add a patch to build with Ruby 1.8.7.
Bump PKGREVISION.
Diffstat (limited to 'comms/ruby-termios')
-rw-r--r--comms/ruby-termios/Makefile4
-rw-r--r--comms/ruby-termios/distinfo3
-rw-r--r--comms/ruby-termios/patches/patch-aa27
3 files changed, 31 insertions, 3 deletions
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 <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);