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