1 |
jer 14/10/04 09:35:45 |
2 |
|
3 |
Added: rrdtool-bindings-1.4.8-graph-ruby.patch |
4 |
Log: |
5 |
Version bump. Add USE=graph (bug #517238). |
6 |
|
7 |
(Portage version: 2.2.14_rc1/cvs/Linux x86_64, signed Manifest commit with key A792A613) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 dev-ruby/rrdtool-bindings/files/rrdtool-bindings-1.4.8-graph-ruby.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rrdtool-bindings/files/rrdtool-bindings-1.4.8-graph-ruby.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rrdtool-bindings/files/rrdtool-bindings-1.4.8-graph-ruby.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: rrdtool-bindings-1.4.8-graph-ruby.patch |
16 |
=================================================================== |
17 |
--- a/bindings/ruby/main.c |
18 |
+++ b/bindings/ruby/main.c |
19 |
@@ -216,13 +216,14 @@ |
20 |
return rb_rrd_infocall(rrd_update_v, args); |
21 |
} |
22 |
|
23 |
+#ifdef HAVE_RRD_GRAPH |
24 |
VALUE rb_rrd_graphv( |
25 |
VALUE self, |
26 |
VALUE args) |
27 |
{ |
28 |
return rb_rrd_infocall(rrd_graph_v, args); |
29 |
} |
30 |
- |
31 |
+#endif /* HAVE_RRD_GRAPH */ |
32 |
|
33 |
/* Other Calls */ |
34 |
|
35 |
@@ -273,6 +274,7 @@ |
36 |
return result; |
37 |
} |
38 |
|
39 |
+#ifdef HAVE_RRD_GRAPH |
40 |
VALUE rb_rrd_graph( |
41 |
VALUE self, |
42 |
VALUE args) |
43 |
@@ -302,7 +304,7 @@ |
44 |
rb_ary_store(result, 2, INT2FIX(ysize)); |
45 |
return result; |
46 |
} |
47 |
- |
48 |
+#endif /* HAVE_RRD_GRAPH */ |
49 |
|
50 |
VALUE rb_rrd_last( |
51 |
VALUE self, |
52 |
@@ -320,6 +322,7 @@ |
53 |
return rb_funcall(rb_cTime, rb_intern("at"), 1, UINT2NUM(last)); |
54 |
} |
55 |
|
56 |
+#ifdef HAVE_RRD_GRAPH |
57 |
VALUE rb_rrd_xport( |
58 |
VALUE self, |
59 |
VALUE args) |
60 |
@@ -367,6 +370,7 @@ |
61 |
rb_ary_store(result, 5, rdata); |
62 |
return result; |
63 |
} |
64 |
+#endif /* HAVE_RRD_GRAPH */ |
65 |
|
66 |
void Init_RRD( |
67 |
) |
68 |
@@ -377,7 +381,9 @@ |
69 |
rb_define_module_function(mRRD, "create", rb_rrd_create, -2); |
70 |
rb_define_module_function(mRRD, "dump", rb_rrd_dump, -2); |
71 |
rb_define_module_function(mRRD, "fetch", rb_rrd_fetch, -2); |
72 |
+#ifdef HAVE_RRD_GRAPH |
73 |
rb_define_module_function(mRRD, "graph", rb_rrd_graph, -2); |
74 |
+#endif /* HAVE_RRD_GRAPH */ |
75 |
rb_define_module_function(mRRD, "last", rb_rrd_last, -2); |
76 |
rb_define_module_function(mRRD, "resize", rb_rrd_resize, -2); |
77 |
rb_define_module_function(mRRD, "restore", rb_rrd_restore, -2); |
78 |
@@ -386,6 +392,8 @@ |
79 |
rb_define_module_function(mRRD, "flushcached", rb_rrd_flushcached, -2); |
80 |
rb_define_module_function(mRRD, "info", rb_rrd_info, -2); |
81 |
rb_define_module_function(mRRD, "updatev", rb_rrd_updatev, -2); |
82 |
+#ifdef HAVE_RRD_GRAPH |
83 |
rb_define_module_function(mRRD, "graphv", rb_rrd_graphv, -2); |
84 |
rb_define_module_function(mRRD, "xport", rb_rrd_xport, -2); |
85 |
+#endif /* HAVE_RRD_GRAPH */ |
86 |
} |