Gentoo Archives: gentoo-commits

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