diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-ruby/rrdtool-bindings |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-ruby/rrdtool-bindings')
7 files changed, 329 insertions, 0 deletions
diff --git a/dev-ruby/rrdtool-bindings/Manifest b/dev-ruby/rrdtool-bindings/Manifest new file mode 100644 index 000000000000..e253af25d0b4 --- /dev/null +++ b/dev-ruby/rrdtool-bindings/Manifest @@ -0,0 +1,12 @@ +AUX rrdtool-bindings-1.4.8-graph-ruby.patch 1857 SHA256 1e3473fc5112387ae7ef15c7ca4ba6e7fc69467b8a03824d1c93b34e044581a4 SHA512 1803247c9949a6d28d7027242604b5d61bc9da38ff22ff9d6302ca69743e49328372b4e51554c868b19a459c4341fa6d1291d09d62ea6a414a81d4558a7ef66d WHIRLPOOL a8d6d6a28a99c1058db42dbe38dafdffcfe28ef98d4d9270cd3de371cfac0d727a85db42a464b34cdf44e97f79bf2136c7b11b00bedd04982961171039efb382 +DIST rrdtool-1.4.8.tar.gz 1379482 SHA256 de95b9f5aa488b0683600aad5a07c316f8d98cbe8d00aa0a1c87e2b2ef89f3d6 SHA512 c525978829508e1db393092c948d8db910554f42e1221acc4064a8f546ceac5d68943f603c6f0ef0e6510bbe5f606cfe6862672145ea1b630cd2b7fd07fa805b WHIRLPOOL f3926aed715a80c8d8287b057c39bbe614d81ebf9f24d1e285a9a438594d5c4c66b59934cc7c6be0550f0f729f319b01a46efc32ccf0b412563c43cf74a21564 +DIST rrdtool-1.5.5.tar.gz 2187685 SHA256 3a286d449c05d657e3fc3adcaa5cb4f0cfac8f465324b14f364a45d4ff8ca6f6 SHA512 07fb0edb5fbc0b491f8a40844d4a914f26c6269b2d07ab91f4d54fdcfeb7899348362044ac632223341f30fc10e6748a59863977496801530f5cdd2d61f0e88c WHIRLPOOL 527093b99044826b5faf5ab0a47d8a141defef3589173fb3b8bf72ed6f52032184e50f6054e0b82bf84cb73aa962ee50f8f1b319fbee519c8916c0d3a1852c26 +DIST rrdtool-1.6.0.tar.gz 2186538 SHA256 cd948e89cd2d8825fab4a6fb0323f810948d934af7d92c9ee8b5e9e1350e52d7 SHA512 45a8f16a2bda9d497c5f39de80236adb7a5bd054a14755c4d130f21cd6430bd0a76caef9632994be56fd1ea2364eb218687ea8ebf945a71ca411221c248f3ebd WHIRLPOOL ae831bfd6b397ca77d2a7b2e393d2dc542e740f1bfb9b45eada44781a7c9dd93b80279683cca1590477191bc3972f859097802387a12c8e3b40c97f1524428d6 +DIST rrdtool-1.7.0.tar.gz 2849994 SHA256 f97d348935b91780f2cd80399719e20c0b91f0a23537c0a85f9ff306d4c5526b SHA512 36d979561601135d74622eaf183701de15cba5e25118f7a308926a695ba84ecb33c3d16511bf4bc80cff055853e2eb85065bc4ed8aef19fc0277c6430ecd319f WHIRLPOOL afe313254d7ae7ac6a9a9c86f38b2f6873846d0b4419d186d4fbb14b1ff7b5b6f8d1494e6608f40daa0c2a0c24f24f3edb14cea1130c5f89bf38dddbd86c7577 +EBUILD rrdtool-bindings-1.4.8.ebuild 1033 SHA256 2f8db82ef971c6e561ad8f29b58a6427eb70a922a5fc17142d1fdf2efce7bb4b SHA512 4a1a6120fd3899484d950689465a0b81d82c703155dd09417b407dd5e1058688b5bdfe19926c5667d94c8fef4e56869bb5a51ac2d4a2c6c963f3d780749a35b4 WHIRLPOOL 1d33d0dd5cb8c9e15514ca7d62a512fe80d1d318649b92689a8ed10993387ccb363ea913ed1b1b22a5cb3a22bb50ee8a71190a3bebbd9c44ce987838767cde95 +EBUILD rrdtool-bindings-1.5.5.ebuild 1341 SHA256 4457122f1de126aef93d6736a509db34ff894cc9b63523c4a491e9fc07140056 SHA512 0bb6a5515d24991be5b6d2b98ebbe94a899b0391b8e6443733beab579f9afb8eeaad87ae047b1d7a45fa7a6b3c2534f309f97edcb07b1fca3bcbd3031d857888 WHIRLPOOL 2764fc0e3c52483d03e3f7411a35111b788229166154f95220c732a2930dd9fd7ee8f5f6b1172007f0b2d67a88e1065ad55972459e73c6a5caec3c6c8acc5ab1 +EBUILD rrdtool-bindings-1.6.0.ebuild 1344 SHA256 1dc422ca3433c7a0b8e7008d0f3c2a20cf0a5c5f4e8bde7e390f0fe9914c3b39 SHA512 0c57f46155ea2d2ddaa68bd1e00fc27cc5bb9a719a796f834caa9010ad1f49388e96d2210d1d969c04a3bc4a3576e3051b028b6ad726a96e07f73d8fb0527a97 WHIRLPOOL d158c4c290254b418b8abea2448b6f94c827bc04f92687459d129cba9921617a4cddecbae3ab58cf3da5f22c50d87d375cbac4d2579d6196a71c8d9f92a65f54 +EBUILD rrdtool-bindings-1.7.0.ebuild 1346 SHA256 080631bc585ac02eb5c1a23546e070eb6b807b4123a2dd9e2c4e22d2382b83c6 SHA512 8a1e7f84f3fbb08fb42454fd74d5df63f0977545689170a9036890e1ef6303e806dc6a5f37aedce24cf25ded1931cc45798163ab4c0958ee0e19bb4c37743d84 WHIRLPOOL 2b6d111e50e8072b244fe53a818dc42f615c0d0612fe43cac05379bc5308aa67e89566a11d7c4d71833e7b020430102b4aa6eb5940a5d0e2afc511b30c6f7ecf +MISC ChangeLog 5764 SHA256 23735628b85d15899c6dc2c2e76d67e0ca236a1109494fe885c20797c46135db SHA512 4615ef7e83397862b79d87e1cbc44b5553ae826b2846fe8135cf61dc3dbb06424f08df90ab5c59052043ff2daa74619b4d9a1b935ddba966e94664d8a8331d74 WHIRLPOOL 858ecd33337d99ff93db9841772248b239f8473884fbed4492bc7d82933c07e9f93b5f53ee144285ae4140d6638e976915bbe6260ce56bf4dad6eedc5ea85efe +MISC ChangeLog-2015 3517 SHA256 441cac2d4e4b9b48314fe2c963958fa796967cc5e322e13be0c046011daac66a SHA512 3dcc0ca58999afe60ea50cf7487f2c88169f51191bed534f625860752f6e86ce3edaaa41498df9361b5a2192dc0be78e9de01a966ec2f5c6163d38b12d56ca24 WHIRLPOOL e46994858588e064d92c9ad313dcb07d3098d3bb68dd40726eddacf1c92e65c69729bd8b2b5253652907270fb0d0eeaabfffcbe38053cba3c3eff043edc1e965 +MISC metadata.xml 463 SHA256 fc9f7f4441e25ee751d837eb9c8637c60152df866e15a17055d77772f550d982 SHA512 60732861cde4604b50875b6bbba205f232a52c4d91e6e21bce49a46bcef824bc542140e73b07ce4c18518a366ff8c9bd34569895741b0ac292124f43b0f02aa1 WHIRLPOOL cd90580681e10a9f0d5d393042dc7b77da35fc703f2593244f12ffcc76591d6af758800849f921cdc8ad9be19acb19dc741300fadc43558eb3876b39edcefd88 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 new file mode 100644 index 000000000000..8c26ce48cfb3 --- /dev/null +++ b/dev-ruby/rrdtool-bindings/files/rrdtool-bindings-1.4.8-graph-ruby.patch @@ -0,0 +1,70 @@ +--- 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/metadata.xml b/dev-ruby/rrdtool-bindings/metadata.xml new file mode 100644 index 000000000000..8a2c1bd406e6 --- /dev/null +++ b/dev-ruby/rrdtool-bindings/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://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> +</pkgmetadata> diff --git a/dev-ruby/rrdtool-bindings/rrdtool-bindings-1.4.8.ebuild b/dev-ruby/rrdtool-bindings/rrdtool-bindings-1.4.8.ebuild new file mode 100644 index 000000000000..47c535cbaf51 --- /dev/null +++ b/dev-ruby/rrdtool-bindings/rrdtool-bindings-1.4.8.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +USE_RUBY="ruby22 ruby23 ruby24" + +RUBY_FAKEGEM_TASK_DOC="" + +inherit ruby-ng + +MY_P=${P/-bindings} + +DESCRIPTION="Ruby bindings for rrdtool" +HOMEPAGE="http://oss.oetiker.ch/rrdtool/" +SRC_URI="http://oss.oetiker.ch/rrdtool/pub/${MY_P}.tar.gz" +RUBY_S="$MY_P"/bindings/ruby + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh ~sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos ~x86-solaris" + +# Block on older versions of rrdtool that install the bindings themselves. +# requires rrd_xport which requires rrd_graph +RDEPEND="${RDEPEND} net-analyzer/rrdtool[graph] !!<net-analyzer/rrdtool-1.4.8-r1" +DEPEND="${DEPEND} net-analyzer/rrdtool[graph]" + +each_ruby_configure() { + ${RUBY} extconf.rb || die +} + +each_ruby_compile() { + emake V=1 +} + +each_ruby_test() { + ${RUBY} -I. test.rb || die +} + +all_ruby_install() { + dodoc CHANGES README +} + +each_ruby_install() { + DESTDIR=${D} emake install +} diff --git a/dev-ruby/rrdtool-bindings/rrdtool-bindings-1.5.5.ebuild b/dev-ruby/rrdtool-bindings/rrdtool-bindings-1.5.5.ebuild new file mode 100644 index 000000000000..32fef450dc7f --- /dev/null +++ b/dev-ruby/rrdtool-bindings/rrdtool-bindings-1.5.5.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +USE_RUBY="ruby21 ruby22 ruby23 ruby24" + +RUBY_FAKEGEM_TASK_DOC="" + +inherit ruby-ng + +MY_P=${P/-bindings} +MY_P=${MY_P/_/-} + +DESCRIPTION="Ruby bindings for rrdtool" +HOMEPAGE="http://oss.oetiker.ch/rrdtool/" +SRC_URI="http://oss.oetiker.ch/rrdtool/pub/${MY_P}.tar.gz" +RUBY_S="$MY_P"/bindings/ruby + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 ~arm hppa ~mips ~ppc ppc64 ~s390 ~sh ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos ~x86-solaris" +IUSE="graph test" +REQUIRED_USE="test? ( graph )" + +# Block on older versions of rrdtool that install the bindings themselves. +# requires rrd_xport which requires rrd_graph +RDEPEND=" + ~net-analyzer/rrdtool-${PV}[graph=] +" +DEPEND=" + test? ( ~net-analyzer/rrdtool-${PV}[graph] ) +" + +RUBY_PATCHES=( + "${FILESDIR}"/${PN}-1.4.8-graph-ruby.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() { + if use graph; then + ${RUBY} -I. test.rb || die + fi +} + +all_ruby_install() { + dodoc CHANGES README +} + +each_ruby_install() { + DESTDIR=${D} emake install +} diff --git a/dev-ruby/rrdtool-bindings/rrdtool-bindings-1.6.0.ebuild b/dev-ruby/rrdtool-bindings/rrdtool-bindings-1.6.0.ebuild new file mode 100644 index 000000000000..f2dbb00a3fbe --- /dev/null +++ b/dev-ruby/rrdtool-bindings/rrdtool-bindings-1.6.0.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +USE_RUBY="ruby21 ruby22 ruby23 ruby24" + +RUBY_FAKEGEM_TASK_DOC="" + +inherit ruby-ng + +MY_P=${P/-bindings} +MY_P=${MY_P/_/-} + +DESCRIPTION="Ruby bindings for rrdtool" +HOMEPAGE="http://oss.oetiker.ch/rrdtool/" +SRC_URI="http://oss.oetiker.ch/rrdtool/pub/${MY_P}.tar.gz" +RUBY_S="$MY_P"/bindings/ruby + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha ~amd64 arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos ~x86-solaris" +IUSE="graph test" +REQUIRED_USE="test? ( graph )" + +# Block on older versions of rrdtool that install the bindings themselves. +# requires rrd_xport which requires rrd_graph +RDEPEND=" + ~net-analyzer/rrdtool-${PV}[graph=] +" +DEPEND=" + test? ( ~net-analyzer/rrdtool-${PV}[graph] ) +" + +RUBY_PATCHES=( + "${FILESDIR}"/${PN}-1.4.8-graph-ruby.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() { + if use graph; then + ${RUBY} -I. test.rb || die + fi +} + +all_ruby_install() { + dodoc CHANGES README +} + +each_ruby_install() { + DESTDIR=${D} emake install +} diff --git a/dev-ruby/rrdtool-bindings/rrdtool-bindings-1.7.0.ebuild b/dev-ruby/rrdtool-bindings/rrdtool-bindings-1.7.0.ebuild new file mode 100644 index 000000000000..757f39e2c9f5 --- /dev/null +++ b/dev-ruby/rrdtool-bindings/rrdtool-bindings-1.7.0.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +USE_RUBY="ruby21 ruby22 ruby23 ruby24" +RUBY_FAKEGEM_TASK_DOC="" +inherit ruby-ng + +MY_P=${P/-bindings} +MY_P=${MY_P/_/-} + +DESCRIPTION="Ruby bindings for rrdtool" +HOMEPAGE="http://oss.oetiker.ch/rrdtool/" +SRC_URI="http://oss.oetiker.ch/rrdtool/pub/${MY_P}.tar.gz" +RUBY_S="$MY_P"/bindings/ruby + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos ~x86-solaris" +IUSE="graph test" +REQUIRED_USE="test? ( graph )" + +# Block on older versions of rrdtool that install the bindings themselves. +# requires rrd_xport which requires rrd_graph +RDEPEND=" + ~net-analyzer/rrdtool-${PV}[graph=] +" +DEPEND=" + test? ( ~net-analyzer/rrdtool-${PV}[graph] ) +" + +RUBY_PATCHES=( + "${FILESDIR}"/${PN}-1.4.8-graph-ruby.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() { + if use graph; then + ${RUBY} -I. test.rb || die + fi +} + +all_ruby_install() { + dodoc CHANGES README +} + +each_ruby_install() { + DESTDIR=${D} emake install +} |