Gentoo Archives: gentoo-commits

From: "Jeroen Roovers (jer)" <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-analyzer/rrdtool: rrdtool-1.4.9.ebuild ChangeLog
Date: Sat, 04 Oct 2014 09:35:07
Message-Id: 20141004093502.D54EE6EC7@oystercatcher.gentoo.org
1 jer 14/10/04 09:35:02
2
3 Modified: ChangeLog
4 Added: rrdtool-1.4.9.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.14_rc1/cvs/Linux x86_64, signed Manifest commit with key A792A613)
9
10 Revision Changes Path
11 1.279 net-analyzer/rrdtool/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/rrdtool/ChangeLog?rev=1.279&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/rrdtool/ChangeLog?rev=1.279&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/rrdtool/ChangeLog?r1=1.278&r2=1.279
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-analyzer/rrdtool/ChangeLog,v
20 retrieving revision 1.278
21 retrieving revision 1.279
22 diff -u -r1.278 -r1.279
23 --- ChangeLog 21 Sep 2014 00:03:39 -0000 1.278
24 +++ ChangeLog 4 Oct 2014 09:35:02 -0000 1.279
25 @@ -1,6 +1,15 @@
26 # ChangeLog for net-analyzer/rrdtool
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/rrdtool/ChangeLog,v 1.278 2014/09/21 00:03:39 jer Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/rrdtool/ChangeLog,v 1.279 2014/10/04 09:35:02 jer Exp $
30 +
31 +*rrdtool-1.4.9 (04 Oct 2014)
32 +
33 + 04 Oct 2014; Jeroen Roovers <jer@g.o> +rrdtool-1.4.9.ebuild,
34 + +files/rrdtool-1.4.9-disable-rrd_graph-cgi.patch,
35 + +files/rrdtool-1.4.9-disable-rrd_graph-lua.patch,
36 + +files/rrdtool-1.4.9-disable-rrd_graph-perl.patch,
37 + +files/rrdtool-1.4.9-disable-rrd_graph-python.patch:
38 + Version bump.
39
40 21 Sep 2014; Jeroen Roovers <jer@g.o> -rrdtool-1.4.8.ebuild,
41 files/rrdtool-1.4.7-configure.ac.patch:
42
43
44
45 1.1 net-analyzer/rrdtool/rrdtool-1.4.9.ebuild
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/rrdtool/rrdtool-1.4.9.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/rrdtool/rrdtool-1.4.9.ebuild?rev=1.1&content-type=text/plain
49
50 Index: rrdtool-1.4.9.ebuild
51 ===================================================================
52 # Copyright 1999-2014 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/rrdtool/rrdtool-1.4.9.ebuild,v 1.1 2014/10/04 09:35:02 jer Exp $
55
56 EAPI="5"
57
58 DISTUTILS_OPTIONAL="true"
59 GENTOO_DEPEND_ON_PERL="no"
60 PYTHON_COMPAT=( python2_7 )
61 inherit eutils distutils-r1 flag-o-matic multilib perl-module autotools
62
63 DESCRIPTION="A system to store and display time-series data"
64 HOMEPAGE="http://oss.oetiker.ch/rrdtool/"
65 SRC_URI="http://oss.oetiker.ch/rrdtool/pub/${P}.tar.gz"
66
67 LICENSE="GPL-2"
68 SLOT="0"
69 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~ia64-linux ~x86-linux ~x86-macos ~x86-solaris"
70 IUSE="dbi doc graph lua perl python rrdcgi ruby static-libs tcl tcpd"
71
72 CDEPEND="
73 >=dev-libs/glib-2.28.7[static-libs(+)?]
74 >=dev-libs/libxml2-2.7.8[static-libs(+)?]
75 dbi? ( dev-db/libdbi[static-libs(+)?] )
76 graph? (
77 >=media-libs/libpng-1.5.10[static-libs(+)?]
78 >=x11-libs/cairo-1.10.2[svg,static-libs(+)?]
79 >=x11-libs/pango-1.28
80 )
81 lua? ( dev-lang/lua[deprecated] )
82 perl? ( dev-lang/perl )
83 python? ( ${PYTHON_DEPS} )
84 tcl? ( dev-lang/tcl )
85 tcpd? ( sys-apps/tcp-wrappers )
86 "
87
88 DEPEND="
89 ${CDEPEND}
90 sys-apps/groff
91 virtual/pkgconfig
92 virtual/awk
93 "
94 RDEPEND="
95 ${CDEPEND}
96 "
97 PDEPEND="
98 ruby? ( dev-ruby/rrdtool-bindings )
99 "
100
101 python_compile() {
102 cd bindings/python || die 'can not enter to python bindings directory'
103 distutils-r1_python_compile
104 }
105
106 python_install() {
107 cd bindings/python || die 'can not enter to python bindings directory'
108 distutils-r1_python_install
109 }
110
111 src_prepare() {
112 epatch \
113 "${FILESDIR}"/${PN}-1.4.7-configure.ac.patch \
114 "${FILESDIR}"/${PN}-1.4.9-disable-rrd_graph-cgi.patch \
115 "${FILESDIR}"/${PN}-1.4.9-disable-rrd_graph-perl.patch \
116 "${FILESDIR}"/${PN}-1.4.9-disable-rrd_graph-lua.patch \
117 "${FILESDIR}"/${PN}-1.4.9-disable-rrd_graph-python.patch
118
119 # bug 456810
120 # no time to sleep
121 sed -i \
122 -e 's|$LUA_CFLAGS|IGNORE_THIS_BAD_TEST|g' \
123 -e 's|^sleep 1$||g' \
124 configure.ac || die
125
126 # Python bindings are built/installed manually
127 sed -i \
128 -e '/^all-local:/s| @COMP_PYTHON@||' \
129 bindings/Makefile.am || die
130
131 eautoreconf
132 }
133
134 src_configure() {
135 filter-flags -ffast-math
136
137 export RRDDOCDIR=${EPREFIX}/usr/share/doc/${PF}
138
139 # to solve bug #260380
140 [[ ${CHOST} == *-solaris* ]] && append-flags -D__EXTENSIONS__
141
142 # Stub configure.ac
143 local myconf=()
144 if ! use tcpd; then
145 myconf+=( "--disable-libwrap" )
146 fi
147 if ! use dbi; then
148 myconf+=( "--disable-libdbi" )
149 fi
150
151 econf \
152 $(use_enable graph rrd_graph) \
153 $(use_enable lua lua-site-install) \
154 $(use_enable lua) \
155 $(use_enable perl perl-site-install) \
156 $(use_enable perl) \
157 $(use_enable python) \
158 $(use_enable rrdcgi) \
159 $(use_enable static-libs static) \
160 $(use_enable tcl) \
161 $(use_with tcl tcllib "${EPREFIX}"/usr/$(get_libdir)) \
162 --with-perl-options=INSTALLDIRS=vendor \
163 --disable-ruby-site-install \
164 --disable-ruby \
165 ${myconf[@]}
166 }
167
168 src_compile() {
169 default
170
171 use python && distutils-r1_src_compile
172 }
173
174 src_install() {
175 default
176
177 if ! use doc ; then
178 rm -rf "${ED}"usr/share/doc/${PF}/{html,txt}
179 fi
180
181 if use !rrdcgi ; then
182 # uses rrdcgi, causes invalid shebang error in Prefix, useless
183 # without rrdcgi installed
184 rm -f "${ED}"usr/share/${PN}/examples/cgi-demo.cgi
185 fi
186
187 if use perl ; then
188 perl_delete_localpod
189 perl_delete_packlist
190 fi
191
192 use python && distutils-r1_src_install
193
194 dodoc CHANGES CONTRIBUTORS NEWS README THREADS TODO
195
196 find "${ED}"usr -name '*.la' -exec rm -f {} +
197
198 keepdir /var/lib/rrdcached/journal/
199 keepdir /var/lib/rrdcached/db/
200
201 newconfd "${FILESDIR}"/rrdcached.confd rrdcached
202 newinitd "${FILESDIR}"/rrdcached.init rrdcached
203 }
204
205 pkg_postinst() {
206 ewarn "Since version 1.3, rrdtool dump emits completely legal xml. Basically this"
207 ewarn "means that it contains an xml header and a DOCTYPE definition. Unfortunately"
208 ewarn "this causes older versions of rrdtool restore to be unhappy."
209 ewarn
210 ewarn "To restore a new dump with an old rrdtool restore version, either remove"
211 ewarn "the xml header and the doctype by hand (both on the first line of the dump)"
212 ewarn "or use rrdtool dump --no-header."
213 ewarn
214 ewarn ">=net-analyzer/rrdtool-1.3 does not have any default font bundled. Thus if"
215 ewarn ">you've upgraded from rrdtool-1.2.x and don't have any font installed to make"
216 ewarn ">lables visible, please, install some font, e.g. media-fonts/dejavu."
217 }