diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-08-13 11:06:03 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-08-13 11:06:03 +0100 |
commit | be8708090362c01c6111c4b76f1e395c14d86e00 (patch) | |
tree | bb61ca73e867522450783849eb63c9e1f0ba1730 /dev-ruby/rrdtool-bindings | |
parent | e93a38d535f2c29b55a5756d2de99425986b0bf3 (diff) |
gentoo auto-resync : 13:08:2024 - 11:06:03
Diffstat (limited to 'dev-ruby/rrdtool-bindings')
-rw-r--r-- | dev-ruby/rrdtool-bindings/Manifest | 2 | ||||
-rw-r--r-- | dev-ruby/rrdtool-bindings/rrdtool-bindings-1.9.0.ebuild | 64 |
2 files changed, 66 insertions, 0 deletions
diff --git a/dev-ruby/rrdtool-bindings/Manifest b/dev-ruby/rrdtool-bindings/Manifest index 1bfc2f5ce433..5ff00c421581 100644 --- a/dev-ruby/rrdtool-bindings/Manifest +++ b/dev-ruby/rrdtool-bindings/Manifest @@ -1,4 +1,6 @@ AUX rrdtool-bindings-1.4.8-graph-ruby.patch 1857 BLAKE2B 4a36c4dee4e755bd39851c5c333fddacdddb53324017290f15345687b577caf9efb41d97ce55cc0bcd57554746e1a90d9a2d9fd92c0acd48b405eb02957e491c SHA512 1803247c9949a6d28d7027242604b5d61bc9da38ff22ff9d6302ca69743e49328372b4e51554c868b19a459c4341fa6d1291d09d62ea6a414a81d4558a7ef66d DIST rrdtool-1.8.0.tar.gz 2955398 BLAKE2B d821d662af432c53760bc0e9636b84d9209933a810fa71091fc4c2b44518c89c7ad509bde7955d952279ee41464c3bfa4f631662dde61b6fff46699bb382653f SHA512 8ae6f94d119e8d0e1ba7f2d0738f1ba008a4880d1022f1c0c5436f662d961fceec5c42e01c241493ece3d6f55c60fd7d1d264f93e678f3cf1251201dcde027c1 +DIST rrdtool-1.9.0.tar.gz 2972593 BLAKE2B a5633b1bcacf53823f95f7899872e67d9941faec235c56546de8b66faf15a958a7c0d6a86d569c078e11a478dc272b1fbe784c3d3d9d45e8c3de696f0d6e378a SHA512 ebeb1fd9e1eed8e01d4d08a4f07aa22c272cc95ac87852f81a892690e6f446b5398bf64689ea99622779cba490722d97b325bda2d2a6d4dfc0719929b2a4c041 EBUILD rrdtool-bindings-1.8.0.ebuild 1416 BLAKE2B 88f432af8fa0a320872d2d94b02def6ef2b59d0f1aa234eb40151c2a1f37f160c49ef9f9f636813bd9b5fa848631cb38fcf8e1e0b08155c4e6f74be18793fd9f SHA512 87041bbd943efcf8bc502a419d32f3f3010bca8ba4296ecdedc882a354835e101647abf858250b864a6c3b4b2d34617fa202a2942b7f237e624120e4c56722f8 +EBUILD rrdtool-bindings-1.9.0.ebuild 1423 BLAKE2B 637a05e2ddba209a8e5689410f18f135a6bbee907bd9598b54b37de8441ebcee5602f7d5f029108b06d9e095d5b4eb63a75269b0dd66258afe7a821bce291351 SHA512 be8f340f551576a12ace34a1d02db98b5bd2b807d7286ad738d0bf42aea03c5831e130fe1df35cd2027740bce8431b83681203bff73800650df38ab7455d2cdf MISC metadata.xml 558 BLAKE2B 7b4fea02de2bfa8a15f39d975f460ef26e94a2ce84bb727aa772e6e2ca2086c55f7ac1b937057b86f8bbdcff1052f04a27f756d2a296837bc1bc4d9b5930aa15 SHA512 b0d41ec3fa95eb9e15c5a9dadccb269fde07eca2c870e4c9df9a5c098da4719b57e70472d8f8c19533774a310d1fc19230ec2ec485f0703e88eda94c38fd264c diff --git a/dev-ruby/rrdtool-bindings/rrdtool-bindings-1.9.0.ebuild b/dev-ruby/rrdtool-bindings/rrdtool-bindings-1.9.0.ebuild new file mode 100644 index 000000000000..47736a0ab2d9 --- /dev/null +++ b/dev-ruby/rrdtool-bindings/rrdtool-bindings-1.9.0.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2024 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" +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 ~amd64-linux ~x86-linux" +IUSE="graph test" +RESTRICT="!test? ( 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=" + ${RDEPEND} + test? ( ~net-analyzer/rrdtool-${PV}[graph] ) +" + +all_ruby_prepare() { + eapply -p3 "${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 +} |