Created attachment 380814 [details, diff] rrdtool-bindings-1.4.8-graph.patch It should be nice to get the Ruby bindings built without rrd_graph/rrd_xport. The only problem is that the ebuild (probably the eclasses involved) completely ignore appending _DHAVE_RRD_GRAPH to CFLAGS/CPPFLAGS. How do I teach the ebuild to use that. Running the proper autotools-based configure script would surely help, I guess, because that would set up HAVE_CONFIG_H (and so on).
It looks like this will work best (with suitable stuff to enable/disable the flag): each_ruby_configure() { ${RUBY} extconf.rb --with-cflags="${CFLAGS} -DHAVE_RDD_GRAPH" || die } Does that help? Looking at the ruby bindings code I don't see how it would pick up the results from the autotools configure from a quick look at the source code or the generated Makefile. Also, it would need to be run for each ruby implementation in each_ruby_configure(), but then all dependencies are automagic and porting all USE flags from net-analyzer/rrdtool doesn't sound like fun.
(In reply to Hans de Graaff from comment #1) > It looks like this will work best (with suitable stuff to enable/disable the > flag): > > each_ruby_configure() { > ${RUBY} extconf.rb --with-cflags="${CFLAGS} -DHAVE_RDD_GRAPH" || die > } > > Does that help? I guess.
(In reply to Hans de Graaff from comment #1) > each_ruby_configure() { > ${RUBY} extconf.rb --with-cflags="${CFLAGS} -DHAVE_RDD_GRAPH" || die You'd want IUSE=graph and then $(usex -DHAVE_RDD_GRAPH '').
Fixed in -r2 and in 1.4.9.