Gentoo Archives: gentoo-commits

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