From fae8e0f615b1dfcff35249a7a11ebfba7391bc56 Mon Sep 17 00:00:00 2001 From: Stanislav Sedov Date: Sun, 6 Apr 2008 08:58:21 +0000 Subject: - Add ruby 1.9 support - Implement new knobs for gems and rake (these are included in ruby 1.9 distribution already). Also move gem bits from ruby-gems/Makefile.common to bsd.ruby.mk[1]. Now to depend on gems or rake you should define USE_RUBYGEMS/USE_RAKE accordingly. Also RAKE_BIN variable is provided for pointing to the right rake executable. - Rewrite RUBY_SCHEBANG in awk to eliminate build dependency on ruby. Discussed with: Jonathan Weiss [1] (gems maintainer) Tested by: ports@ --- lang/ruby19/files/patch-io.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 lang/ruby19/files/patch-io.c (limited to 'lang/ruby19/files/patch-io.c') diff --git a/lang/ruby19/files/patch-io.c b/lang/ruby19/files/patch-io.c new file mode 100644 index 000000000000..8765d8119090 --- /dev/null +++ b/lang/ruby19/files/patch-io.c @@ -0,0 +1,20 @@ +--- io.c.orig 2007-12-28 02:17:32.000000000 +0300 ++++ io.c 2007-12-28 02:17:58.000000000 +0300 +@@ -5324,7 +5324,7 @@ + + #if !defined(MSDOS) && !defined(__human68k__) + static int +-io_cntl(int fd, int cmd, long narg, int io_p) ++io_cntl(int fd, unsigned long cmd, long narg, int io_p) + { + int retval; + +@@ -5352,7 +5352,7 @@ + rb_io_ctl(VALUE io, VALUE req, VALUE arg, int io_p) + { + #if !defined(MSDOS) && !defined(__human68k__) +- int cmd = NUM2ULONG(req); ++ unsigned long cmd = NUM2ULONG(req); + rb_io_t *fptr; + long len = 0; + long narg = 0; -- cgit v1.2.3