Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/carbon/files/, dev-python/carbon/
Date: Mon, 27 Jan 2020 10:14:03
Message-Id: 1580120027.80e0c2b03de04481d30491a15eb27f6a2ba64a5a.mgorny@gentoo
1 commit: 80e0c2b03de04481d30491a15eb27f6a2ba64a5a
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 27 09:56:35 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 27 10:13:47 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80e0c2b0
7
8 dev-python/carbon: Remove old (py2)
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/carbon/Manifest | 1 -
13 dev-python/carbon/carbon-0.9.13-r1.ebuild | 64 ----------------------
14 dev-python/carbon/carbon-0.9.13.ebuild | 64 ----------------------
15 .../carbon/files/carbon-0.9.12-no-data-files.patch | 24 --------
16 dev-python/carbon/files/no-data-files.patch | 26 ---------
17 5 files changed, 179 deletions(-)
18
19 diff --git a/dev-python/carbon/Manifest b/dev-python/carbon/Manifest
20 index fa40bf95a4d..d1f93f5e77a 100644
21 --- a/dev-python/carbon/Manifest
22 +++ b/dev-python/carbon/Manifest
23 @@ -1,3 +1,2 @@
24 -DIST carbon-0.9.13.tar.gz 47509 BLAKE2B 0f967d81846139164278b99aa31237c8065b7d60a13c9a6153cf3904dae52bf0e8e502d156a178f1dfdbe098236d97f8982fc10e6442351270d103adef2bd74e SHA512 89c843ac67ed4b68c28273459e5a96594851e5d2694fdefdfb71cebcdc6555d4aac8c45c1c6d2ca61a15405bac7ba3d27836470fe152d5d7a4936bb2d00e6776
25 DIST carbon-1.1.3.tar.gz 68824 BLAKE2B b5e532fa0d0d8dc8ab8c3c555dea6bb3b918cd5b516ea4c754f9b3cd37230f54b63d202cfead9ec4242ebf78031c2671050354dccccde2980c4101b9699b1393 SHA512 0cfa9260484de147660110b7d2cc7e41bcbd7751c80bd5c557534b2a52c2183fdba94d40f8654fe54f593b2ab34581b2480e96c8a6dde4d47de783153a2cbe65
26 DIST carbon-1.1.5.tar.gz 72365 BLAKE2B 304e515fd3cae806e141d0a76983d13967885a7e57c310d86c0c83560aa306a573676fb0135fceccf14cc7ed42d8a9dcb7869ab0d6ac3b2fc00c2fb088011873 SHA512 1b3a0a0d4005e2ec8d5bca062b41f0e18329c1bc4d3a4b3eca5e8f7c94c20387281392eefceaca90294e51860eabecca242c487068433119f1f249f8659ed560
27
28 diff --git a/dev-python/carbon/carbon-0.9.13-r1.ebuild b/dev-python/carbon/carbon-0.9.13-r1.ebuild
29 deleted file mode 100644
30 index 2cf0631d6fc..00000000000
31 --- a/dev-python/carbon/carbon-0.9.13-r1.ebuild
32 +++ /dev/null
33 @@ -1,64 +0,0 @@
34 -# Copyright 1999-2019 Gentoo Authors
35 -# Distributed under the terms of the GNU General Public License v2
36 -
37 -EAPI=5
38 -
39 -PYTHON_COMPAT=( python2_7 )
40 -
41 -inherit distutils-r1
42 -
43 -DESCRIPTION="Backend data caching and persistence daemon for Graphite"
44 -HOMEPAGE="https://graphiteapp.org/"
45 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
46 -
47 -SLOT="0"
48 -LICENSE="Apache-2.0"
49 -KEYWORDS="~amd64 ~x86"
50 -IUSE=""
51 -
52 -DEPEND=""
53 -RDEPEND="
54 - dev-python/twisted-core[${PYTHON_USEDEP}]
55 - dev-python/whisper[${PYTHON_USEDEP}]
56 - dev-python/txAMQP[${PYTHON_USEDEP}]"
57 -
58 -PATCHES=(
59 - # Do not install the configuration and data files. We install them
60 - # somewhere sensible by hand.
61 - "${FILESDIR}"/${PN}-0.9.12-no-data-files.patch
62 - )
63 -
64 -python_prepare_all() {
65 - # This sets prefix to /opt/graphite. We want FHS-style paths instead.
66 - rm setup.cfg || die
67 - distutils-r1_python_prepare_all
68 -}
69 -
70 -python_install_all() {
71 - distutils-r1_python_install_all
72 -
73 - insinto /etc/carbon
74 - doins conf/*
75 -
76 - dodir /var/log/carbon /var/lib/carbon/{whisper,lists,rrd}
77 -
78 - newinitd "${FILESDIR}"/carbon.initd2 carbon-cache
79 - newinitd "${FILESDIR}"/carbon.initd2 carbon-relay
80 - newinitd "${FILESDIR}"/carbon.initd2 carbon-aggregator
81 -
82 - newconfd "${FILESDIR}"/carbon.confd carbon-cache
83 - newconfd "${FILESDIR}"/carbon.confd carbon-relay
84 - newconfd "${FILESDIR}"/carbon.confd carbon-aggregator
85 -}
86 -
87 -pkg_postinst() {
88 - einfo 'This ebuild installs carbon into FHS-style paths.'
89 - einfo 'You will probably have to set GRAPHITE_CONF_DIR to /etc/carbon'
90 - einfo 'and GRAPHITE_STORAGE_DIR to /var/lib/carbon to make use of this'
91 - einfo '(see /etc/carbon/carbon.conf.example).'
92 - einfo ' '
93 - einfo 'OpenRC init script supports multiple instances !'
94 - einfo 'Example to run an instance b of carbon-cache :'
95 - einfo ' ln -s /etc/init.d/carbon-cache /etc/init.d/carbon-cache.b'
96 - einfo ' cp /etc/conf.d/carbon-cache /etc/conf.d/carbon-cache.b'
97 -}
98
99 diff --git a/dev-python/carbon/carbon-0.9.13.ebuild b/dev-python/carbon/carbon-0.9.13.ebuild
100 deleted file mode 100644
101 index 6bc41708af6..00000000000
102 --- a/dev-python/carbon/carbon-0.9.13.ebuild
103 +++ /dev/null
104 @@ -1,64 +0,0 @@
105 -# Copyright 1999-2019 Gentoo Authors
106 -# Distributed under the terms of the GNU General Public License v2
107 -
108 -EAPI=5
109 -
110 -PYTHON_COMPAT=( python2_7 )
111 -
112 -inherit distutils-r1
113 -
114 -DESCRIPTION="Backend data caching and persistence daemon for Graphite"
115 -HOMEPAGE="https://graphiteapp.org/"
116 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
117 -
118 -SLOT="0"
119 -LICENSE="Apache-2.0"
120 -KEYWORDS="amd64 x86"
121 -IUSE=""
122 -
123 -DEPEND=""
124 -RDEPEND="
125 - dev-python/twisted-core[${PYTHON_USEDEP}]
126 - dev-python/whisper[${PYTHON_USEDEP}]
127 - dev-python/txAMQP[${PYTHON_USEDEP}]"
128 -
129 -PATCHES=(
130 - # Do not install the configuration and data files. We install them
131 - # somewhere sensible by hand.
132 - "${FILESDIR}"/${PN}-0.9.12-no-data-files.patch
133 - )
134 -
135 -python_prepare_all() {
136 - # This sets prefix to /opt/graphite. We want FHS-style paths instead.
137 - rm setup.cfg || die
138 - distutils-r1_python_prepare_all
139 -}
140 -
141 -python_install_all() {
142 - distutils-r1_python_install_all
143 -
144 - insinto /etc/carbon
145 - doins conf/*
146 -
147 - dodir /var/log/carbon /var/lib/carbon/{whisper,lists,rrd}
148 -
149 - newinitd "${FILESDIR}"/carbon.initd carbon-cache
150 - newinitd "${FILESDIR}"/carbon.initd carbon-relay
151 - newinitd "${FILESDIR}"/carbon.initd carbon-aggregator
152 -
153 - newconfd "${FILESDIR}"/carbon.confd carbon-cache
154 - newconfd "${FILESDIR}"/carbon.confd carbon-relay
155 - newconfd "${FILESDIR}"/carbon.confd carbon-aggregator
156 -}
157 -
158 -pkg_postinst() {
159 - einfo 'This ebuild installs carbon into FHS-style paths.'
160 - einfo 'You will probably have to set GRAPHITE_CONF_DIR to /etc/carbon'
161 - einfo 'and GRAPHITE_STORAGE_DIR to /var/lib/carbon to make use of this'
162 - einfo '(see /etc/carbon/carbon.conf.example).'
163 - einfo ' '
164 - einfo 'OpenRC init script supports multiple instances !'
165 - einfo 'Example to run an instance b of carbon-cache :'
166 - einfo ' ln -s /etc/init.d/carbon-cache /etc/init.d/carbon-cache.b'
167 - einfo ' cp /etc/conf.d/carbon-cache /etc/conf.d/carbon-cache.b'
168 -}
169
170 diff --git a/dev-python/carbon/files/carbon-0.9.12-no-data-files.patch b/dev-python/carbon/files/carbon-0.9.12-no-data-files.patch
171 deleted file mode 100644
172 index 129c7189f3b..00000000000
173 --- a/dev-python/carbon/files/carbon-0.9.12-no-data-files.patch
174 +++ /dev/null
175 @@ -1,24 +0,0 @@
176 -diff -ur carbon-0.9.12.orig/setup.py carbon-0.9.12/setup.py
177 ---- /setup.py 2013-08-22 00:53:16.000000000 +0800
178 -+++ /setup.py 2014-01-26 11:20:59.705864697 +0800
179 -@@ -13,12 +13,6 @@
180 - setup_kwargs = dict()
181 -
182 -
183 --storage_dirs = [ ('storage/whisper',[]), ('storage/lists',[]),
184 -- ('storage/log',[]), ('storage/rrd',[]) ]
185 --conf_files = [ ('conf', glob('conf/*.example')) ]
186 --
187 --install_files = storage_dirs + conf_files
188 --
189 - # If we are building on RedHat, let's use the redhat init scripts.
190 - if platform.dist()[0] == 'redhat':
191 - init_scripts = [ ('/etc/init.d', ['distro/redhat/init.d/carbon-cache',
192 -@@ -39,7 +33,6 @@
193 - package_dir={'' : 'lib'},
194 - scripts=glob('bin/*'),
195 - package_data={ 'carbon' : ['*.xml'] },
196 -- data_files=install_files,
197 - install_requires=['twisted', 'txamqp'],
198 - **setup_kwargs
199 - )
200
201 diff --git a/dev-python/carbon/files/no-data-files.patch b/dev-python/carbon/files/no-data-files.patch
202 deleted file mode 100644
203 index 7b0c52f3948..00000000000
204 --- a/dev-python/carbon/files/no-data-files.patch
205 +++ /dev/null
206 @@ -1,26 +0,0 @@
207 -Do not install the empty storage dirs and config files to the wrong
208 -location (the ebuild installs them to the right location by hand).
209 -
210 -See Gentoo bug #417221.
211 -
212 ---- setup.py
213 -+++ setup.py
214 -@@ -12,9 +12,6 @@
215 - setup_kwargs = dict()
216 -
217 -
218 --storage_dirs = [ ('storage/whisper',[]), ('storage/lists',[]),
219 -- ('storage/log',[]), ('storage/rrd',[]) ]
220 --conf_files = [ ('conf', glob('conf/*.example')) ]
221 - #XXX Need a way to have these work for bdist_rpm but be left alone for everything else
222 - #init_scripts = [ ('/etc/init.d', ['distro/redhat/init.d/carbon-cache',
223 - # 'distro/redhat/init.d/carbon-relay',
224 -@@ -32,7 +29,6 @@
225 - package_dir={'' : 'lib'},
226 - scripts=glob('bin/*'),
227 - package_data={ 'carbon' : ['*.xml'] },
228 -- data_files=storage_dirs + conf_files, # + init_scripts,
229 - install_requires=['twisted', 'txamqp'],
230 - **setup_kwargs
231 - )
232 -