From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8322015808B for ; Tue, 5 Apr 2022 19:34:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 91A45E09FD; Tue, 5 Apr 2022 19:34:44 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5AAD2E09FD for ; Tue, 5 Apr 2022 19:34:44 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BC63334126E for ; Tue, 5 Apr 2022 19:34:42 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F20A638C for ; Tue, 5 Apr 2022 19:34:40 +0000 (UTC) From: "Conrad Kostecki" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Conrad Kostecki" Message-ID: <1649187007.5020bb4baa48d621816e23726ab061037c3c6204.conikost@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/rrdtool-bindings/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/rrdtool-bindings/Manifest dev-ruby/rrdtool-bindings/rrdtool-bindings-1.8.0.ebuild X-VCS-Directories: dev-ruby/rrdtool-bindings/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: 5020bb4baa48d621816e23726ab061037c3c6204 X-VCS-Branch: master Date: Tue, 5 Apr 2022 19:34:40 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 7706e0ac-4aef-4d9e-9e3c-e16779ffe97a X-Archives-Hash: 9862b509c9d2de2560760e931e19dd73 commit: 5020bb4baa48d621816e23726ab061037c3c6204 Author: Conrad Kostecki gentoo org> AuthorDate: Tue Apr 5 19:30:07 2022 +0000 Commit: Conrad Kostecki gentoo org> CommitDate: Tue Apr 5 19:30:07 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5020bb4b dev-ruby/rrdtool-bindings: add 1.8.0 Signed-off-by: Conrad Kostecki gentoo.org> dev-ruby/rrdtool-bindings/Manifest | 1 + .../rrdtool-bindings/rrdtool-bindings-1.8.0.ebuild | 64 ++++++++++++++++++++++ 2 files changed, 65 insertions(+) diff --git a/dev-ruby/rrdtool-bindings/Manifest b/dev-ruby/rrdtool-bindings/Manifest index d0902d1b33b9..2fce6e694e1d 100644 --- a/dev-ruby/rrdtool-bindings/Manifest +++ b/dev-ruby/rrdtool-bindings/Manifest @@ -1 +1,2 @@ DIST rrdtool-1.7.2.tar.gz 2883737 BLAKE2B f3ff6cc4e325cdec42a6f9e67a1644f501c11edc47bc281df58c2e1d7be4c01767c35166f4301f68cf9c22dcd5c159bb51ee704a5e36776acdf166100122cebb SHA512 453230efc68aeb4a12842d20a9d246ba478a79c2f6bfd9693a91837c1c1136abe8af177be64fe29aa40bf84ccfce7f2f15296aefe095e89b8b62aef5a7623e29 +DIST rrdtool-1.8.0.tar.gz 2955398 BLAKE2B d821d662af432c53760bc0e9636b84d9209933a810fa71091fc4c2b44518c89c7ad509bde7955d952279ee41464c3bfa4f631662dde61b6fff46699bb382653f SHA512 8ae6f94d119e8d0e1ba7f2d0738f1ba008a4880d1022f1c0c5436f662d961fceec5c42e01c241493ece3d6f55c60fd7d1d264f93e678f3cf1251201dcde027c1 diff --git a/dev-ruby/rrdtool-bindings/rrdtool-bindings-1.8.0.ebuild b/dev-ruby/rrdtool-bindings/rrdtool-bindings-1.8.0.ebuild new file mode 100644 index 000000000000..cf69222e3f3a --- /dev/null +++ b/dev-ruby/rrdtool-bindings/rrdtool-bindings-1.8.0.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2022 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="ruby25 ruby26 ruby27 ruby30" +RUBY_FAKEGEM_TASK_DOC="" + +inherit ruby-ng + +DESCRIPTION="Ruby bindings for rrdtool" +HOMEPAGE="https://oss.oetiker.ch/rrdtool/" +SRC_URI="https://oss.oetiker.ch/rrdtool/pub/${MY_P}.tar.gz" +RUBY_S="$MY_P"/bindings/ruby + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-solaris" +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 +}