Add a patch to build with Ruby 1.8.7. Bump PKGREVISION.diff -r1.18 -r1.19 pkgsrc/comms/ruby-termios/Makefile
(taca)
@@ -1,18 +1,18 @@ | @@ -1,18 +1,18 @@ | |||
1 | # $NetBSD: Makefile,v 1.18 2008/04/04 15:30:00 jlam Exp $ | 1 | # $NetBSD: Makefile,v 1.19 2008/06/19 14:39:58 taca Exp $ | |
2 | 2 | |||
3 | DISTNAME= ruby-termios-0.9.5 | 3 | DISTNAME= ruby-termios-0.9.5 | |
4 | PKGNAME= ${RUBY_PKGPREFIX}-${GEM_NAME} | 4 | PKGNAME= ${RUBY_PKGPREFIX}-${GEM_NAME} | |
5 | PKGREVISION= 1 | 5 | PKGREVISION= 2 | |
6 | CATEGORIES= comms | 6 | CATEGORIES= comms | |
7 | MASTER_SITES= http://arika.org/archive/ | 7 | MASTER_SITES= http://arika.org/archive/ | |
8 | EXTRACT_SUFX= .tar.gz | 8 | EXTRACT_SUFX= .tar.gz | |
9 | 9 | |||
10 | MAINTAINER= taca@NetBSD.org | 10 | MAINTAINER= taca@NetBSD.org | |
11 | HOMEPAGE= http://arika.org/ruby/termios | 11 | HOMEPAGE= http://arika.org/ruby/termios | |
12 | COMMENT= Ruby extension to termios library | 12 | COMMENT= Ruby extension to termios library | |
13 | 13 | |||
14 | GEM_NAME= ${DISTNAME:S/ruby-//} | 14 | GEM_NAME= ${DISTNAME:S/ruby-//} | |
15 | GEM_BUILD= gemspec | 15 | GEM_BUILD= gemspec | |
16 | GEM_CLEANBUILD= Makefile *.o termios.${RUBY_DLEXT} mkmf.log | 16 | GEM_CLEANBUILD= Makefile *.o termios.${RUBY_DLEXT} mkmf.log | |
17 | 17 | |||
18 | post-extract: | 18 | post-extract: |
@@ -1,5 +1,6 @@ | @@ -1,5 +1,6 @@ | |||
1 | $NetBSD: distinfo,v 1.7 2007/08/18 14:26:59 taca Exp $ | 1 | $NetBSD: distinfo,v 1.8 2008/06/19 14:39:58 taca Exp $ | |
2 | 2 | |||
3 | SHA1 (ruby-termios-0.9.5.tar.gz) = e9689dd0d51f7305bee34e2ce3abc4d4f561466f | 3 | SHA1 (ruby-termios-0.9.5.tar.gz) = e9689dd0d51f7305bee34e2ce3abc4d4f561466f | |
4 | RMD160 (ruby-termios-0.9.5.tar.gz) = 923707f2afe4f2f9c853d51d0e7d94e511fa75df | 4 | RMD160 (ruby-termios-0.9.5.tar.gz) = 923707f2afe4f2f9c853d51d0e7d94e511fa75df | |
5 | Size (ruby-termios-0.9.5.tar.gz) = 10927 bytes | 5 | Size (ruby-termios-0.9.5.tar.gz) = 10927 bytes | |
6 | SHA1 (patch-aa) = 06db5dd1ce96af4c9d005ddc8970b00bad108708 |
$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);