diff options
author | marino <marino> | 2012-05-20 17:32:34 +0000 |
---|---|---|
committer | marino <marino> | 2012-05-20 17:32:34 +0000 |
commit | 8fb930ba4f8b0ecb0f61d7143328aa293631d8cc (patch) | |
tree | 110f927ff67da0930b2910362e3cf8aa3bb935a2 /devel/ruby-ncurses | |
parent | f63707c2d0b271ffdbb100589f35bd99cab4602a (diff) | |
download | pkgsrc-8fb930ba4f8b0ecb0f61d7143328aa293631d8cc.tar.gz |
devel/ruby-ncurses: fix _tracef build error on DragonFly
Original error:
ncurses_wrap.c: In function 'rbncurs_tracef':
ncurses_wrap.c:2398: error: lvalue required as unary '&' operand
Diffstat (limited to 'devel/ruby-ncurses')
-rw-r--r-- | devel/ruby-ncurses/Makefile | 4 | ||||
-rw-r--r-- | devel/ruby-ncurses/distinfo | 4 | ||||
-rw-r--r-- | devel/ruby-ncurses/patches/patch-aa | 12 |
3 files changed, 11 insertions, 9 deletions
diff --git a/devel/ruby-ncurses/Makefile b/devel/ruby-ncurses/Makefile index 529c0ba4e64..0986ff2a16b 100644 --- a/devel/ruby-ncurses/Makefile +++ b/devel/ruby-ncurses/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.9 2011/02/21 16:01:14 taca Exp $ +# $NetBSD: Makefile,v 1.10 2012/05/20 17:32:34 marino Exp $ DISTNAME= ncurses-ruby-${VER} PKGNAME= ${RUBY_PKGPREFIX}-ncurses-${VER} -PKGREVISION= 1 +PKGREVISION= 2 CATEGORIES= devel MASTER_SITES= http://download.berlios.de/ncurses-ruby/ EXTRACT_SUFX= .tar.bz2 diff --git a/devel/ruby-ncurses/distinfo b/devel/ruby-ncurses/distinfo index 266fb35d402..cd67e7311af 100644 --- a/devel/ruby-ncurses/distinfo +++ b/devel/ruby-ncurses/distinfo @@ -1,8 +1,8 @@ -$NetBSD: distinfo,v 1.5 2010/09/10 06:03:19 taca Exp $ +$NetBSD: distinfo,v 1.6 2012/05/20 17:32:34 marino Exp $ SHA1 (ncurses-ruby-1.2.4.tar.bz2) = b34ff1cf1147ab551855a5b2c63d2a034119fee2 RMD160 (ncurses-ruby-1.2.4.tar.bz2) = 8f08b6c919abdcd6c86fc9d08e293ca3e79ec010 Size (ncurses-ruby-1.2.4.tar.bz2) = 50858 bytes -SHA1 (patch-aa) = e03d5f04364a24ebdbb7c1ae888ead7fb65e8e9b +SHA1 (patch-aa) = e5e00403d95a8460b08a86285d2c27dd7e610a75 SHA1 (patch-ab) = 53d40b6a1e2e12826249dba3c9d9c7c3d1d39afb SHA1 (patch-ac) = 89d744e62122cd6a8054f69f54e360aaa731e15e diff --git a/devel/ruby-ncurses/patches/patch-aa b/devel/ruby-ncurses/patches/patch-aa index d7f70dd9c81..3925dfced09 100644 --- a/devel/ruby-ncurses/patches/patch-aa +++ b/devel/ruby-ncurses/patches/patch-aa @@ -1,4 +1,4 @@ -$NetBSD: patch-aa,v 1.3 2010/09/10 06:02:58 taca Exp $ +$NetBSD: patch-aa,v 1.4 2012/05/20 17:32:34 marino Exp $ --- ncurses_wrap.c.orig 2009-07-31 10:52:36.000000000 +0000 +++ ncurses_wrap.c @@ -193,7 +193,7 @@ $NetBSD: patch-aa,v 1.3 2010/09/10 06:02:58 taca Exp $ int outfd = NUM2INT(rb_funcall(rb_outfd, rb_intern("to_i"), 0)); int infd = NUM2INT(rb_funcall(rb_infd, rb_intern("to_i"), 0)); VALUE rb_screen = -@@ -2277,7 +2277,7 @@ static VALUE rbncurs_wmouse_trafo(VALUE +@@ -2277,7 +2277,7 @@ static VALUE rbncurs_wmouse_trafo(VALUE #ifdef HAVE_MCPRINT static VALUE rbncurs_mcprint(VALUE dummy, VALUE data, VALUE len) { @@ -221,12 +221,14 @@ $NetBSD: patch-aa,v 1.3 2010/09/10 06:02:58 taca Exp $ return Qnil; } -@@ -2394,14 +2395,14 @@ static VALUE rbncurs_tracef(int argc, VA +@@ -2393,15 +2394,15 @@ static VALUE rbncurs_tracef(int argc, VA + rb_raise(rb_eArgError, "function needs at least 1 argument"); return Qnil; } - _tracef("%s", +- _tracef("%s", - STR2CSTR(funcall3(rb_mKernel, rb_intern("sprintf"), argc, argv))); -+ StringValuePtr(funcall3(rb_mKernel, rb_intern("sprintf"), argc, argv))); ++ VALUE tmp = funcall3(rb_mKernel, rb_intern("sprintf"), argc, argv); ++ _tracef("%s", StringValuePtr(tmp)); return Qnil; } #endif /* HAVE__TRACEF */ |