summaryrefslogtreecommitdiff
path: root/dev-ruby/rrdtool-bindings
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-06-04 16:24:49 -0500
committerroot <root@alpha.trunkmasters.com>2026-06-04 16:24:49 -0500
commita3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7 (patch)
tree0c52bbae1c242fbc296bd650fcd1167685f81492 /dev-ruby/rrdtool-bindings
parentbfd9c39e4712ebdb442d4ca0673061faed1e70e1 (diff)
downloadbaldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.tar.gz
baldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.tar.xz
baldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.zip
Adding metadata
Diffstat (limited to 'dev-ruby/rrdtool-bindings')
-rw-r--r--dev-ruby/rrdtool-bindings/Manifest1
-rw-r--r--dev-ruby/rrdtool-bindings/files/rrdtool-bindings-1.4.8-graph-ruby.patch70
-rw-r--r--dev-ruby/rrdtool-bindings/files/rrdtool-bindings-1.4.8-no-graph-ruby-test.patch45
-rw-r--r--dev-ruby/rrdtool-bindings/metadata.xml18
-rw-r--r--dev-ruby/rrdtool-bindings/rrdtool-bindings-1.9.0-r1.ebuild57
5 files changed, 0 insertions, 191 deletions
diff --git a/dev-ruby/rrdtool-bindings/Manifest b/dev-ruby/rrdtool-bindings/Manifest
deleted file mode 100644
index 21761af01424..000000000000
--- a/dev-ruby/rrdtool-bindings/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST rrdtool-1.9.0.tar.gz 2972593 BLAKE2B a5633b1bcacf53823f95f7899872e67d9941faec235c56546de8b66faf15a958a7c0d6a86d569c078e11a478dc272b1fbe784c3d3d9d45e8c3de696f0d6e378a SHA512 ebeb1fd9e1eed8e01d4d08a4f07aa22c272cc95ac87852f81a892690e6f446b5398bf64689ea99622779cba490722d97b325bda2d2a6d4dfc0719929b2a4c041
diff --git a/dev-ruby/rrdtool-bindings/files/rrdtool-bindings-1.4.8-graph-ruby.patch b/dev-ruby/rrdtool-bindings/files/rrdtool-bindings-1.4.8-graph-ruby.patch
deleted file mode 100644
index 8c26ce48cfb3..000000000000
--- a/dev-ruby/rrdtool-bindings/files/rrdtool-bindings-1.4.8-graph-ruby.patch
+++ /dev/null
@@ -1,70 +0,0 @@
---- a/bindings/ruby/main.c
-+++ b/bindings/ruby/main.c
-@@ -216,13 +216,14 @@
- return rb_rrd_infocall(rrd_update_v, args);
- }
-
-+#ifdef HAVE_RRD_GRAPH
- VALUE rb_rrd_graphv(
- VALUE self,
- VALUE args)
- {
- return rb_rrd_infocall(rrd_graph_v, args);
- }
--
-+#endif /* HAVE_RRD_GRAPH */
-
- /* Other Calls */
-
-@@ -273,6 +274,7 @@
- return result;
- }
-
-+#ifdef HAVE_RRD_GRAPH
- VALUE rb_rrd_graph(
- VALUE self,
- VALUE args)
-@@ -302,7 +304,7 @@
- rb_ary_store(result, 2, INT2FIX(ysize));
- return result;
- }
--
-+#endif /* HAVE_RRD_GRAPH */
-
- VALUE rb_rrd_last(
- VALUE self,
-@@ -320,6 +322,7 @@
- return rb_funcall(rb_cTime, rb_intern("at"), 1, UINT2NUM(last));
- }
-
-+#ifdef HAVE_RRD_GRAPH
- VALUE rb_rrd_xport(
- VALUE self,
- VALUE args)
-@@ -367,6 +370,7 @@
- rb_ary_store(result, 5, rdata);
- return result;
- }
-+#endif /* HAVE_RRD_GRAPH */
-
- void Init_RRD(
- )
-@@ -377,7 +381,9 @@
- rb_define_module_function(mRRD, "create", rb_rrd_create, -2);
- rb_define_module_function(mRRD, "dump", rb_rrd_dump, -2);
- rb_define_module_function(mRRD, "fetch", rb_rrd_fetch, -2);
-+#ifdef HAVE_RRD_GRAPH
- rb_define_module_function(mRRD, "graph", rb_rrd_graph, -2);
-+#endif /* HAVE_RRD_GRAPH */
- rb_define_module_function(mRRD, "last", rb_rrd_last, -2);
- rb_define_module_function(mRRD, "resize", rb_rrd_resize, -2);
- rb_define_module_function(mRRD, "restore", rb_rrd_restore, -2);
-@@ -386,6 +392,8 @@
- rb_define_module_function(mRRD, "flushcached", rb_rrd_flushcached, -2);
- rb_define_module_function(mRRD, "info", rb_rrd_info, -2);
- rb_define_module_function(mRRD, "updatev", rb_rrd_updatev, -2);
-+#ifdef HAVE_RRD_GRAPH
- rb_define_module_function(mRRD, "graphv", rb_rrd_graphv, -2);
- rb_define_module_function(mRRD, "xport", rb_rrd_xport, -2);
-+#endif /* HAVE_RRD_GRAPH */
- }
diff --git a/dev-ruby/rrdtool-bindings/files/rrdtool-bindings-1.4.8-no-graph-ruby-test.patch b/dev-ruby/rrdtool-bindings/files/rrdtool-bindings-1.4.8-no-graph-ruby-test.patch
deleted file mode 100644
index e7e502b0934f..000000000000
--- a/dev-ruby/rrdtool-bindings/files/rrdtool-bindings-1.4.8-no-graph-ruby-test.patch
+++ /dev/null
@@ -1,45 +0,0 @@
---- a/bindings/ruby/test.rb
-+++ b/bindings/ruby/test.rb
-@@ -31,42 +31,3 @@ puts "fetching data from #{rrd}"
- (fstart, fend, data) = RRD.fetch(rrd, "--start", start_time.to_s, "--end", end_time.to_s, "AVERAGE")
- puts "got #{data.length} data points from #{fstart} to #{fend}"
- puts
--
--puts "generating graph #{name}.png"
--RRD.graph(
-- "#{name}.png",
-- "--title", " RubyRRD Demo",
-- "--start", "#{start_time+3600}",
-- "--end", "start + 1000 min",
-- "--interlaced",
-- "--imgformat", "PNG",
-- "--width=450",
-- "DEF:a=#{rrd}:a:AVERAGE",
-- "DEF:b=#{rrd}:b:AVERAGE",
-- "CDEF:line=TIME,2400,%,300,LT,a,UNKN,IF",
-- "AREA:b#00b6e4:beta",
-- "AREA:line#0022e9:alpha",
-- "LINE3:line#ff0000")
--puts
--
--# last method test
--if end_time != RRD.last("#{rrd}").to_i
-- puts "last method expects #{Time.at(end_time)}."
-- puts " But #{RRD.last("#{rrd}")} returns."
--end
--puts
--
--# xport method test
--puts "xporting data from #{rrd}"
--(fstart,fend,step,col,legend,data)=RRD.xport(
-- "--start", start_time.to_s,
-- "--end", (start_time + 300 * 300).to_s,
-- "--step", 10.to_s,
-- "DEF:A=#{rrd}:a:AVERAGE",
-- "DEF:B=#{rrd}:b:AVERAGE",
-- "XPORT:A:a",
-- "XPORT:B:b")
--puts "Xported #{col} columns(#{legend.join(", ")}) with #{data.length} rows from #{fstart} to #{fend} and step #{step}\n"
--
--print "This script has created #{name}.png in the current directory\n";
--print "This demonstrates the use of the TIME and % RPN operators\n";
diff --git a/dev-ruby/rrdtool-bindings/metadata.xml b/dev-ruby/rrdtool-bindings/metadata.xml
deleted file mode 100644
index 4f711c39bd4e..000000000000
--- a/dev-ruby/rrdtool-bindings/metadata.xml
+++ /dev/null
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="project">
- <email>ruby@gentoo.org</email>
- <name>Gentoo Ruby Project</name>
- </maintainer>
- <maintainer type="project">
- <email>netmon@gentoo.org</email>
- <name>Gentoo network monitoring and analysis project</name>
- </maintainer>
- <use>
- <flag name="graph">Enable support for graphing functions</flag>
- </use>
- <upstream>
- <remote-id type="github">oetiker/rrdtool-1.x</remote-id>
- </upstream>
-</pkgmetadata>
diff --git a/dev-ruby/rrdtool-bindings/rrdtool-bindings-1.9.0-r1.ebuild b/dev-ruby/rrdtool-bindings/rrdtool-bindings-1.9.0-r1.ebuild
deleted file mode 100644
index 91f8d90701b9..000000000000
--- a/dev-ruby/rrdtool-bindings/rrdtool-bindings-1.9.0-r1.ebuild
+++ /dev/null
@@ -1,57 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-MY_P="${P/-bindings}"
-MY_P="${MY_P/_/-}"
-
-USE_RUBY="ruby31 ruby32 ruby33 ruby34"
-RUBY_FAKEGEM_TASK_DOC=""
-
-inherit ruby-ng
-
-DESCRIPTION="Ruby bindings for rrdtool"
-HOMEPAGE="https://oss.oetiker.ch/rrdtool/"
-SRC_URI="https://github.com/oetiker/${PN/-bindings}-1.x/releases/download/v${PV}/${MY_P}.tar.gz"
-RUBY_S="${MY_P}/bindings/ruby"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~s390 ~sparc x86"
-IUSE="graph test"
-RESTRICT="!test? ( test )"
-
-RDEPEND="
- ~net-analyzer/rrdtool-${PV}
-"
-DEPEND="${RDEPEND}"
-
-all_ruby_prepare() {
- eapply -p3 "${FILESDIR}"/${PN}-1.4.8-graph-ruby.patch
- use !graph && eapply -p3 "${FILESDIR}"/${PN}-1.4.8-no-graph-ruby-test.patch
-}
-
-each_ruby_configure() {
- rm ../../src/rrd_config.h || die
- touch ../../src/rrd_config.h || die
-
- ${RUBY} extconf.rb \
- --with-cflags="${CFLAGS} $(usex graph -DHAVE_RRD_GRAPH -UHAVE_RRD_GRAPH)" || die
-}
-
-each_ruby_compile() {
- emake V=1 ABS_TOP_SRCDIR="${PWD}/../.."
-}
-
-each_ruby_test() {
- ${RUBY} -I. test.rb || die
-}
-
-all_ruby_install() {
- dodoc CHANGES README
-}
-
-each_ruby_install() {
- DESTDIR=${D} emake install
-}