1 |
commit: 0d9b2338f96f7316de557542622856734251332e |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Apr 21 07:45:50 2019 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 21 07:45:50 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d9b2338 |
7 |
|
8 |
dev-ruby/rrdtool-bindings: EAPI=6 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/677332 |
11 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
12 |
Package-Manager: Portage-2.3.62, Repoman-2.3.11 |
13 |
|
14 |
.../rrdtool-bindings-1.7.1-r1.ebuild | 60 ++++++++++++++++++++++ |
15 |
1 file changed, 60 insertions(+) |
16 |
|
17 |
diff --git a/dev-ruby/rrdtool-bindings/rrdtool-bindings-1.7.1-r1.ebuild b/dev-ruby/rrdtool-bindings/rrdtool-bindings-1.7.1-r1.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..f94871670af |
20 |
--- /dev/null |
21 |
+++ b/dev-ruby/rrdtool-bindings/rrdtool-bindings-1.7.1-r1.ebuild |
22 |
@@ -0,0 +1,60 @@ |
23 |
+# Copyright 1999-2019 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=6 |
27 |
+USE_RUBY="ruby24 ruby25 ruby26" |
28 |
+RUBY_FAKEGEM_TASK_DOC="" |
29 |
+inherit ruby-ng |
30 |
+ |
31 |
+MY_P=${P/-bindings} |
32 |
+MY_P=${MY_P/_/-} |
33 |
+ |
34 |
+DESCRIPTION="Ruby bindings for rrdtool" |
35 |
+HOMEPAGE="https://oss.oetiker.ch/rrdtool/" |
36 |
+SRC_URI="${HOMEPAGE}pub/${MY_P}.tar.gz" |
37 |
+RUBY_S="$MY_P"/bindings/ruby |
38 |
+ |
39 |
+LICENSE="GPL-2" |
40 |
+SLOT="0" |
41 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos ~x86-solaris" |
42 |
+IUSE="graph test" |
43 |
+REQUIRED_USE="test? ( graph )" |
44 |
+ |
45 |
+# Block on older versions of rrdtool that install the bindings themselves. |
46 |
+# requires rrd_xport which requires rrd_graph |
47 |
+RDEPEND=" |
48 |
+ ~net-analyzer/rrdtool-${PV}[graph=] |
49 |
+" |
50 |
+DEPEND=" |
51 |
+ test? ( ~net-analyzer/rrdtool-${PV}[graph] ) |
52 |
+" |
53 |
+ |
54 |
+all_ruby_prepare() { |
55 |
+ epatch "${FILESDIR}"/${PN}-1.4.8-graph-ruby.patch |
56 |
+} |
57 |
+ |
58 |
+each_ruby_configure() { |
59 |
+ rm ../../src/rrd_config.h || die |
60 |
+ touch ../../src/rrd_config.h || die |
61 |
+ |
62 |
+ ${RUBY} extconf.rb \ |
63 |
+ --with-cflags="${CFLAGS} $(usex graph -DHAVE_RRD_GRAPH -UHAVE_RRD_GRAPH)" || die |
64 |
+} |
65 |
+ |
66 |
+each_ruby_compile() { |
67 |
+ emake V=1 ABS_TOP_SRCDIR="${PWD}/../.." |
68 |
+} |
69 |
+ |
70 |
+each_ruby_test() { |
71 |
+ if use graph; then |
72 |
+ ${RUBY} -I. test.rb || die |
73 |
+ fi |
74 |
+} |
75 |
+ |
76 |
+all_ruby_install() { |
77 |
+ dodoc CHANGES README |
78 |
+} |
79 |
+ |
80 |
+each_ruby_install() { |
81 |
+ DESTDIR=${D} emake install |
82 |
+} |