1 |
commit: c4d9d954e1c9bad782f1e319cc052d121126bf3e |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 30 09:23:34 2016 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 30 09:24:34 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4d9d954 |
7 |
|
8 |
net-analyzer/rrdtool: Fix test failures (bug #573210 by Paolo Pedroni). |
9 |
|
10 |
Package-Manager: portage-2.2.27 |
11 |
|
12 |
.../rrdtool/files/rrdtool-1.5.5-rpn1.output | 3 + |
13 |
net-analyzer/rrdtool/rrdtool-1.5.5-r1.ebuild | 186 +++++++++++++++++++++ |
14 |
2 files changed, 189 insertions(+) |
15 |
|
16 |
diff --git a/net-analyzer/rrdtool/files/rrdtool-1.5.5-rpn1.output b/net-analyzer/rrdtool/files/rrdtool-1.5.5-rpn1.output |
17 |
new file mode 100644 |
18 |
index 0000000..4a7696d |
19 |
--- /dev/null |
20 |
+++ b/net-analyzer/rrdtool/files/rrdtool-1.5.5-rpn1.output |
21 |
@@ -0,0 +1,3 @@ |
22 |
+print[0] = "30.769231" |
23 |
+print[1] = "72.000000" |
24 |
+print[2] = "0.000000" |
25 |
|
26 |
diff --git a/net-analyzer/rrdtool/rrdtool-1.5.5-r1.ebuild b/net-analyzer/rrdtool/rrdtool-1.5.5-r1.ebuild |
27 |
new file mode 100644 |
28 |
index 0000000..df6ea73 |
29 |
--- /dev/null |
30 |
+++ b/net-analyzer/rrdtool/rrdtool-1.5.5-r1.ebuild |
31 |
@@ -0,0 +1,186 @@ |
32 |
+# Copyright 1999-2015 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+# $Id$ |
35 |
+ |
36 |
+EAPI="5" |
37 |
+ |
38 |
+DISTUTILS_OPTIONAL=true |
39 |
+DISTUTILS_SINGLE_IMPL=true |
40 |
+GENTOO_DEPEND_ON_PERL=no |
41 |
+PYTHON_COMPAT=( python2_7 ) |
42 |
+inherit autotools eutils perl-module distutils-r1 flag-o-matic multilib |
43 |
+ |
44 |
+DESCRIPTION="A system to store and display time-series data" |
45 |
+HOMEPAGE="http://oss.oetiker.ch/rrdtool/" |
46 |
+SRC_URI="http://oss.oetiker.ch/rrdtool/pub/${P/_/-}.tar.gz" |
47 |
+ |
48 |
+LICENSE="GPL-2" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~s390 ~sh ~x86 ~x86-fbsd ~amd64-linux ~ia64-linux ~x86-linux ~x86-macos ~x86-solaris" |
51 |
+IUSE="dbi doc graph lua perl python rados rrdcgi ruby static-libs tcl tcpd" |
52 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
53 |
+ |
54 |
+CDEPEND=" |
55 |
+ >=dev-libs/glib-2.28.7:2[static-libs(+)?] |
56 |
+ >=dev-libs/libxml2-2.7.8:2[static-libs(+)?] |
57 |
+ dbi? ( dev-db/libdbi[static-libs(+)?] ) |
58 |
+ graph? ( |
59 |
+ >=media-libs/libpng-1.5.10:0=[static-libs(+)?] |
60 |
+ >=x11-libs/cairo-1.10.2[svg,static-libs(+)?] |
61 |
+ >=x11-libs/pango-1.28 |
62 |
+ ) |
63 |
+ lua? ( dev-lang/lua:*[deprecated] ) |
64 |
+ perl? ( dev-lang/perl:= ) |
65 |
+ python? ( ${PYTHON_DEPS} ) |
66 |
+ rados? ( sys-cluster/ceph ) |
67 |
+ tcl? ( dev-lang/tcl:0= ) |
68 |
+ tcpd? ( sys-apps/tcp-wrappers ) |
69 |
+" |
70 |
+ |
71 |
+DEPEND=" |
72 |
+ ${CDEPEND} |
73 |
+ sys-apps/groff |
74 |
+ virtual/pkgconfig |
75 |
+ virtual/awk |
76 |
+" |
77 |
+RDEPEND=" |
78 |
+ ${CDEPEND} |
79 |
+" |
80 |
+PDEPEND=" |
81 |
+ ruby? ( ~dev-ruby/rrdtool-bindings-${PV} ) |
82 |
+" |
83 |
+ |
84 |
+S=${WORKDIR}/${P/_/-} |
85 |
+ |
86 |
+python_compile() { |
87 |
+ cd bindings/python || die |
88 |
+ distutils-r1_python_compile |
89 |
+} |
90 |
+ |
91 |
+python_install() { |
92 |
+ cd bindings/python || die |
93 |
+ distutils-r1_python_install |
94 |
+} |
95 |
+ |
96 |
+pkg_setup() { |
97 |
+ use python && python-single-r1_pkg_setup |
98 |
+} |
99 |
+ |
100 |
+src_prepare() { |
101 |
+ # At the next version bump, please see if you actually still need this |
102 |
+ # before adding versions |
103 |
+ cp "${FILESDIR}"/${P}-rpn1.output tests/rpn1.output || die |
104 |
+ cp "${FILESDIR}"/${P}-rrdrados.pod doc/rrdrados.pod || die |
105 |
+ |
106 |
+ epatch \ |
107 |
+ "${FILESDIR}"/${PN}-1.4.7-configure.ac.patch \ |
108 |
+ "${FILESDIR}"/${PN}-1.4.9-disable-rrd_graph-cgi.patch \ |
109 |
+ "${FILESDIR}"/${PN}-1.4.9-disable-rrd_graph-perl.patch \ |
110 |
+ "${FILESDIR}"/${PN}-1.5.0_rc1-disable-rrd_graph-lua.patch \ |
111 |
+ "${FILESDIR}"/${PN}-1.5.0_rc1-disable-rrd_graph-python.patch |
112 |
+ |
113 |
+ # bug 456810 |
114 |
+ # no time to sleep |
115 |
+ sed -i \ |
116 |
+ -e 's|$LUA_CFLAGS|IGNORE_THIS_BAD_TEST|g' \ |
117 |
+ -e 's|^sleep 1$||g' \ |
118 |
+ -e '/^dnl.*png/s|^dnl||g' \ |
119 |
+ configure.ac || die |
120 |
+ |
121 |
+ # Python bindings are built/installed manually |
122 |
+ sed -i \ |
123 |
+ -e '/^all-local:/s| @COMP_PYTHON@||' \ |
124 |
+ bindings/Makefile.am || die |
125 |
+ |
126 |
+ if ! use graph; then |
127 |
+ sed -i \ |
128 |
+ -e '2s:rpn1::; 2s:rpn2::; 6s:create-with-source-4::;' \ |
129 |
+ -e '7s:xport1::; 7s:dcounter1::; 7s:vformatter1::' \ |
130 |
+ tests/Makefile.am || die |
131 |
+ fi |
132 |
+ |
133 |
+ echo ${PV/_rc*/} >> VERSION || die |
134 |
+ |
135 |
+ export rd_cv_gcc_flag__Werror=no |
136 |
+ |
137 |
+ eautoreconf |
138 |
+} |
139 |
+ |
140 |
+src_configure() { |
141 |
+ filter-flags -ffast-math |
142 |
+ |
143 |
+ export RRDDOCDIR=${EPREFIX}/usr/share/doc/${PF} |
144 |
+ |
145 |
+ # to solve bug #260380 |
146 |
+ [[ ${CHOST} == *-solaris* ]] && append-flags -D__EXTENSIONS__ |
147 |
+ |
148 |
+ # Stub configure.ac |
149 |
+ local myconf=() |
150 |
+ if ! use tcpd; then |
151 |
+ myconf+=( "--disable-libwrap" ) |
152 |
+ fi |
153 |
+ if ! use dbi; then |
154 |
+ myconf+=( "--disable-libdbi" ) |
155 |
+ fi |
156 |
+ if ! use rados; then |
157 |
+ myconf+=( "--disable-librados" ) |
158 |
+ fi |
159 |
+ |
160 |
+ econf \ |
161 |
+ $(use_enable graph rrd_graph) \ |
162 |
+ $(use_enable lua lua-site-install) \ |
163 |
+ $(use_enable lua) \ |
164 |
+ $(use_enable perl perl-site-install) \ |
165 |
+ $(use_enable perl) \ |
166 |
+ $(use_enable python) \ |
167 |
+ $(use_enable rrdcgi) \ |
168 |
+ $(use_enable static-libs static) \ |
169 |
+ $(use_enable tcl) \ |
170 |
+ $(use_with tcl tcllib "${EPREFIX}"/usr/$(get_libdir)) \ |
171 |
+ --with-perl-options=INSTALLDIRS=vendor \ |
172 |
+ --disable-ruby-site-install \ |
173 |
+ --disable-ruby \ |
174 |
+ ${myconf[@]} |
175 |
+} |
176 |
+ |
177 |
+src_compile() { |
178 |
+ default |
179 |
+ |
180 |
+ use python && distutils-r1_src_compile |
181 |
+} |
182 |
+ |
183 |
+src_test() { |
184 |
+ export LC_ALL=C |
185 |
+ default |
186 |
+} |
187 |
+ |
188 |
+src_install() { |
189 |
+ default |
190 |
+ |
191 |
+ if ! use doc ; then |
192 |
+ rm -rf "${ED}"usr/share/doc/${PF}/{html,txt} |
193 |
+ fi |
194 |
+ |
195 |
+ if use !rrdcgi ; then |
196 |
+ # uses rrdcgi, causes invalid shebang error in Prefix, useless |
197 |
+ # without rrdcgi installed |
198 |
+ rm -f "${ED}"usr/share/${PN}/examples/cgi-demo.cgi |
199 |
+ fi |
200 |
+ |
201 |
+ if use perl ; then |
202 |
+ perl_delete_localpod |
203 |
+ perl_delete_packlist |
204 |
+ fi |
205 |
+ |
206 |
+ dodoc CHANGES CONTRIBUTORS NEWS THREADS TODO |
207 |
+ |
208 |
+ find "${ED}"usr -name '*.la' -exec rm -f {} + |
209 |
+ |
210 |
+ keepdir /var/lib/rrdcached/journal/ |
211 |
+ keepdir /var/lib/rrdcached/db/ |
212 |
+ |
213 |
+ newconfd "${FILESDIR}"/rrdcached.confd rrdcached |
214 |
+ newinitd "${FILESDIR}"/rrdcached.init rrdcached |
215 |
+ |
216 |
+ use python && distutils-r1_src_install |
217 |
+} |