dev-ruby/rrdtool-bindings - 1.10.3 (gentoo)

Search

Install

Install this version:

emerge -a =dev-ruby/rrdtool-bindings-1.10.3

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-ruby/rrdtool-bindings-1.10.3

Or alternatively:

emerge --autounmask-write -a =dev-ruby/rrdtool-bindings-1.10.3

Package Information

Description:
Ruby bindings for rrdtool
Homepage:
https://oss.oetiker.ch/rrdtool/
License:
GPL-2

Ebuild Details

Version EAPI Keywords Slot
1.10.3 8 ~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 0
View Raw Ebuild
# Copyright 1999-2026 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="ruby32 ruby33 ruby34 ruby40"
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

	export ABS_TOP_BUILDDIR="../.."

	${RUBY} extconf.rb \
		--with-cflags="${CFLAGS} $(usex graph -DHAVE_RRD_GRAPH -UHAVE_RRD_GRAPH)" || 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
}

USE Flags

Manage flags for this package: euse -i <flag> -p dev-ruby/rrdtool-bindings | euse -E <flag> -p dev-ruby/rrdtool-bindings | euse -D <flag> -p dev-ruby/rrdtool-bindings

Global/Standard Flags

Inherited Eclasses

Dependencies

DEPEND

	~net-analyzer/rrdtool-1.10.3:=

RDEPEND

	~net-analyzer/rrdtool-1.10.3:=