diff options
author | taca <taca@pkgsrc.org> | 2013-07-21 02:48:12 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2013-07-21 02:48:12 +0000 |
commit | 12a63c71c4f5e57b45f4a72d24dc177bb292360c (patch) | |
tree | b7fde9aeda55eb7ed129fda1310759679fc76b04 /multimedia | |
parent | 2e1a4c31cd83a3e1cdf1c43f7456cdb96b4f18ae (diff) | |
download | pkgsrc-12a63c71c4f5e57b45f4a72d24dc177bb292360c.tar.gz |
Fix for ruby200.
It isn't very good practice to depend on parenthesis by CPP macro for
"if" statement of C language although CPP macro should be use parenthesis
after expanded.
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/ruby-ming/distinfo | 4 | ||||
-rw-r--r-- | multimedia/ruby-ming/patches/patch-ext_ming_mingc_swfcxform.c | 24 | ||||
-rw-r--r-- | multimedia/ruby-ming/patches/patch-ext_ming_mingc_swfdisplayitem.c | 24 |
3 files changed, 51 insertions, 1 deletions
diff --git a/multimedia/ruby-ming/distinfo b/multimedia/ruby-ming/distinfo index 1660490cc44..d803bce456b 100644 --- a/multimedia/ruby-ming/distinfo +++ b/multimedia/ruby-ming/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.8 2010/09/10 07:31:45 taca Exp $ +$NetBSD: distinfo,v 1.9 2013/07/21 02:48:12 taca Exp $ SHA1 (ming-ruby-0.2.1.tar.gz) = 942829a4085afb2645e6b098b72bd24badb8f0ef RMD160 (ming-ruby-0.2.1.tar.gz) = 7ddde8b9912bdd1608a7af8b23464a5fc63b9306 @@ -7,3 +7,5 @@ SHA1 (patch-aa) = 360988809e736eebe3f01f20c027783dcf64c507 SHA1 (patch-ab) = aacbeafe64930e88f4d49e08734312e46116aec0 SHA1 (patch-ac) = c6604cb8856ea42d1083894eae9f60c997bfa27a SHA1 (patch-ad) = 6a62e023b934f528f9247bae24c28829f35d1c25 +SHA1 (patch-ext_ming_mingc_swfcxform.c) = fae47d061d2088c27c056b66cec3ea45fc8bfe4b +SHA1 (patch-ext_ming_mingc_swfdisplayitem.c) = 134f713c96454b9dec4851ccdcd2310ef24cc540 diff --git a/multimedia/ruby-ming/patches/patch-ext_ming_mingc_swfcxform.c b/multimedia/ruby-ming/patches/patch-ext_ming_mingc_swfcxform.c new file mode 100644 index 00000000000..2edea62f81a --- /dev/null +++ b/multimedia/ruby-ming/patches/patch-ext_ming_mingc_swfcxform.c @@ -0,0 +1,24 @@ +$NetBSD: patch-ext_ming_mingc_swfcxform.c,v 1.1 2013/07/21 02:48:12 taca Exp $ + +* Don't depend on parenthesis by CPP macro. + +--- ext/ming/mingc/swfcxform.c.orig 2008-07-08 16:45:44.000000000 +0000 ++++ ext/ming/mingc/swfcxform.c +@@ -66,7 +66,7 @@ rb_SWFCXform_set_color_add(argc, argv, s + + rb_scan_args(argc, argv, "31", &r, &g, &b, &a); + Data_Get_Struct(self, struct RSWFCXform, cx); +- if NIL_P(a) ++ if (NIL_P(a)) + alpha = 0; + else + alpha = NUM2INT(a); +@@ -87,7 +87,7 @@ rb_SWFCXform_set_color_mult(argc, argv, + + rb_scan_args(argc, argv, "31", &r, &g, &b, &a); + Data_Get_Struct(self, struct RSWFCXform, cx); +- if NIL_P(a) ++ if (NIL_P(a)) + alpha = 1.0; + else + alpha = NUM2DBL(a); diff --git a/multimedia/ruby-ming/patches/patch-ext_ming_mingc_swfdisplayitem.c b/multimedia/ruby-ming/patches/patch-ext_ming_mingc_swfdisplayitem.c new file mode 100644 index 00000000000..b7b290ffc38 --- /dev/null +++ b/multimedia/ruby-ming/patches/patch-ext_ming_mingc_swfdisplayitem.c @@ -0,0 +1,24 @@ +$NetBSD: patch-ext_ming_mingc_swfdisplayitem.c,v 1.1 2013/07/21 02:48:12 taca Exp $ + +* Don't depend on parenthesis by CPP macro. + +--- ext/ming/mingc/swfdisplayitem.c.orig 2008-07-05 21:04:39.000000000 +0000 ++++ ext/ming/mingc/swfdisplayitem.c +@@ -386,7 +386,7 @@ rb_SWFDisplayItem_set_color_add(argc, ar + + rb_scan_args(argc, argv, "31", &r, &g, &b, &a); + Data_Get_Struct(self, struct RSWFDisplayItem, i); +- if NIL_P(a) ++ if (NIL_P(a)) + alpha = 0; + else + alpha = NUM2INT(a); +@@ -407,7 +407,7 @@ rb_SWFDisplayItem_set_color_mult(argc, a + + rb_scan_args(argc, argv, "31", &r, &g, &b, &a); + Data_Get_Struct(self, struct RSWFDisplayItem, i); +- if NIL_P(a) ++ if (NIL_P(a)) + alpha = 1.0; + else + alpha = NUM2DBL(a); |