Gentoo Archives: gentoo-commits

From: "Sergey Popov (pinkbyte)" <pinkbyte@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-analyzer/rrdtool: ChangeLog rrdtool-1.4.7-r2.ebuild
Date: Wed, 06 Mar 2013 04:46:49
Message-Id: 20130306044644.6D64E2171D@flycatcher.gentoo.org
1 pinkbyte 13/03/06 04:46:44
2
3 Modified: ChangeLog
4 Added: rrdtool-1.4.7-r2.ebuild
5 Log:
6 Revision bump: EAPI 5, port to distutils-r1 eclass
7
8 (Portage version: 2.2.0_alpha165/cvs/Linux x86_64, signed Manifest commit with key 0x1F357D42)
9
10 Revision Changes Path
11 1.243 net-analyzer/rrdtool/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/rrdtool/ChangeLog?rev=1.243&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/rrdtool/ChangeLog?rev=1.243&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/rrdtool/ChangeLog?r1=1.242&r2=1.243
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-analyzer/rrdtool/ChangeLog,v
20 retrieving revision 1.242
21 retrieving revision 1.243
22 diff -u -r1.242 -r1.243
23 --- ChangeLog 13 Feb 2013 00:36:52 -0000 1.242
24 +++ ChangeLog 6 Mar 2013 04:46:44 -0000 1.243
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.242 2013/02/13 00:36:52 jer Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/rrdtool/ChangeLog,v 1.243 2013/03/06 04:46:44 pinkbyte Exp $
30 +
31 +*rrdtool-1.4.7-r2 (06 Mar 2013)
32 +
33 + 06 Mar 2013; Sergey Popov <pinkbyte@g.o> +rrdtool-1.4.7-r2.ebuild:
34 + Revision bump: EAPI 5, port to distutils-r1 eclass
35
36 13 Feb 2013; Jeroen Roovers <jer@g.o> rrdtool-1.4.7-r1.ebuild:
37 Fix building with USE=lua and dev-util/pkgconfig-0.28 (bug #456810 by Juergen
38
39
40
41 1.1 net-analyzer/rrdtool/rrdtool-1.4.7-r2.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/rrdtool/rrdtool-1.4.7-r2.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/rrdtool/rrdtool-1.4.7-r2.ebuild?rev=1.1&content-type=text/plain
45
46 Index: rrdtool-1.4.7-r2.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.7-r2.ebuild,v 1.1 2013/03/06 04:46:44 pinkbyte 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 lua perl python ruby rrdcgi tcl tcpd"
66
67 # This versions are minimal versions upstream tested with.
68 RDEPEND="
69 >=media-libs/libpng-1.5.10
70 >=dev-libs/libxml2-2.7.8
71 >=x11-libs/cairo-1.10.2[svg]
72 >=dev-libs/glib-2.28.7
73 >=x11-libs/pango-1.28
74 lua? ( dev-lang/lua[deprecated] )
75 perl? ( dev-lang/perl )
76 python? ( ${PYTHON_DEPS} )
77 ruby? ( >=dev-lang/ruby-1.8.6_p287-r13 )
78 tcl? ( dev-lang/tcl )
79 tcpd? ( sys-apps/tcp-wrappers )
80 dbi? ( dev-db/libdbi )"
81
82 DEPEND="${RDEPEND}
83 virtual/pkgconfig
84 virtual/awk"
85
86 python_compile() {
87 cd bindings/python || die 'can not enter to python bindings directory'
88 distutils-r1_python_compile
89 }
90
91 python_install() {
92 cd bindings/python || die 'can not enter to python bindings directory'
93 distutils-r1_python_install
94 }
95
96 src_prepare() {
97 epatch "${FILESDIR}"/0001_"${P}"-configure.ac.patch
98 epatch "${FILESDIR}/${PN}"-1.4.5-automake-1.11.2.patch
99
100 # bug 281694
101 # bug 456810
102 # no time to sleep
103 sed -i \
104 -e '/PERLLD/s:same as PERLCC:same-as-PERLCC:' \
105 -e 's|$LUA_CFLAGS|IGNORE_THIS_BAD_TEST|g' \
106 -e 's|^sleep 1$||g' \
107 configure.ac || die
108
109 # Python bindings are built/installed manually
110 sed -e "/^all-local:/s/ @COMP_PYTHON@//" -i bindings/Makefile.am || die
111
112 eautoreconf
113 }
114
115 src_configure() {
116 filter-flags -ffast-math
117
118 export RRDDOCDIR=${EPREFIX}/usr/share/doc/${PF}
119
120 # to solve bug #260380
121 [[ ${CHOST} == *-solaris* ]] && append-flags -D__EXTENSIONS__
122
123 # Stub configure.ac
124 local myconf=()
125 if ! use tcpd; then
126 myconf+=( "--disable-libwrap" )
127 fi
128 if ! use dbi; then
129 myconf+=( "--disable-libdbi" )
130 fi
131
132 econf \
133 --disable-static \
134 $(use_enable rrdcgi) \
135 $(use_enable lua) \
136 $(use_enable lua lua-site-install) \
137 $(use_enable ruby) \
138 $(use_enable ruby ruby-site-install) \
139 $(use_enable perl) \
140 $(use_enable perl perl-site-install) \
141 --with-perl-options=INSTALLDIRS=vendor \
142 $(use_enable tcl) \
143 $(use_with tcl tcllib "${EPREFIX}"/usr/$(get_libdir)) \
144 $(use_enable python) \
145 ${myconf[@]}
146 }
147
148 src_compile() {
149 default
150
151 use python && distutils-r1_src_compile
152 }
153
154 src_install() {
155 default
156
157 if ! use doc ; then
158 rm -rf "${ED}"usr/share/doc/${PF}/{html,txt}
159 fi
160
161 if use !rrdcgi ; then
162 # uses rrdcgi, causes invalid shebang error in Prefix, useless
163 # without rrdcgi installed
164 rm -f "${ED}"usr/share/${PN}/examples/cgi-demo.cgi
165 fi
166
167 if use perl ; then
168 perl_delete_localpod
169 perl_delete_packlist
170 fi
171
172 use python && distutils-r1_src_install
173
174 dodoc CHANGES CONTRIBUTORS NEWS README THREADS TODO
175
176 find "${ED}"usr -name '*.la' -exec rm -f {} +
177
178 keepdir /var/lib/rrdcached/journal/
179 keepdir /var/lib/rrdcached/db/
180
181 newconfd "${FILESDIR}"/rrdcached.confd rrdcached
182 newinitd "${FILESDIR}"/rrdcached.init rrdcached
183 }
184
185 pkg_postinst() {
186 ewarn "Since version 1.3, rrdtool dump emits completely legal xml. Basically this"
187 ewarn "means that it contains an xml header and a DOCTYPE definition. Unfortunately"
188 ewarn "this causes older versions of rrdtool restore to be unhappy."
189 ewarn
190 ewarn "To restore a new dump with an old rrdtool restore version, either remove"
191 ewarn "the xml header and the doctype by hand (both on the first line of the dump)"
192 ewarn "or use rrdtool dump --no-header."
193 ewarn
194 ewarn ">=net-analyzer/rrdtool-1.3 does not have any default font bundled. Thus if"
195 ewarn ">you've upgraded from rrdtool-1.2.x and don't have any font installed to make"
196 ewarn ">lables visible, please, install some font, e.g. media-fonts/dejavu."
197 }