Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/deluge/
Date: Thu, 22 Feb 2018 21:49:06
Message-Id: 1519336121.9e850e04d10a67f0ecffc425f6cd040132b4551b.asturm@gentoo
1 commit: 9e850e04d10a67f0ecffc425f6cd040132b4551b
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 22 21:44:26 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 22 21:48:41 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9e850e04
7
8 net-p2p/deluge: Drop old
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 net-p2p/deluge/deluge-1.3.15-r1.ebuild | 143 ---------------------------------
13 net-p2p/deluge/deluge-1.3.15.ebuild | 142 --------------------------------
14 2 files changed, 285 deletions(-)
15
16 diff --git a/net-p2p/deluge/deluge-1.3.15-r1.ebuild b/net-p2p/deluge/deluge-1.3.15-r1.ebuild
17 deleted file mode 100644
18 index 1f182af8f3e..00000000000
19 --- a/net-p2p/deluge/deluge-1.3.15-r1.ebuild
20 +++ /dev/null
21 @@ -1,143 +0,0 @@
22 -# Copyright 1999-2018 Gentoo Foundation
23 -# Distributed under the terms of the GNU General Public License v2
24 -
25 -EAPI="6"
26 -
27 -PYTHON_COMPAT=( python2_7 )
28 -DISTUTILS_SINGLE_IMPL=1
29 -PLOCALES="af ar ast be bg bn bs ca cs cy da de el en_AU en_CA en_GB eo es et eu fa fi fo fr fy ga gl he hi hr hu id is it iu ja ka kk km kn ko ku ky la lb lt lv mk ml ms nap nb nds nl nn oc pl pms pt pt_BR ro ru si sk sl sr sv ta te th tl tlh tr uk ur vi zh_CN zh_HK zh_TW"
30 -inherit distutils-r1 eutils systemd user l10n
31 -
32 -DESCRIPTION="BitTorrent client with a client/server model"
33 -HOMEPAGE="http://deluge-torrent.org/"
34 -
35 -if [[ ${PV} == 9999 ]]; then
36 - inherit git-r3
37 - EGIT_REPO_URI="git://deluge-torrent.org/${PN}.git
38 - http://git.deluge-torrent.org/${PN}"
39 - SRC_URI=""
40 -else
41 - SRC_URI="http://download.deluge-torrent.org/source/${P}.tar.bz2"
42 - KEYWORDS="~amd64 ~ppc ~sparc ~x86"
43 -fi
44 -
45 -LICENSE="GPL-2"
46 -SLOT="0"
47 -IUSE="console geoip gtk libnotify sound webinterface"
48 -REQUIRED_USE="
49 - ${PYTHON_REQUIRED_USE}
50 - sound? ( gtk )
51 - libnotify? ( gtk )
52 -"
53 -PATCHES=(
54 - "${FILESDIR}/${PN}-1.3.5-disable_libtorrent_internal_copy.patch"
55 - "${FILESDIR}/${PN}-1.3.15-r1-fix-preferences-ui.patch"
56 -)
57 -
58 -CDEPEND="<net-libs/libtorrent-rasterbar-1.1[python,${PYTHON_USEDEP}]"
59 -DEPEND="${CDEPEND}
60 - dev-python/setuptools[${PYTHON_USEDEP}]
61 - dev-util/intltool"
62 -RDEPEND="${CDEPEND}
63 - dev-python/chardet[${PYTHON_USEDEP}]
64 - dev-python/pyopenssl[${PYTHON_USEDEP}]
65 - dev-python/pyxdg[${PYTHON_USEDEP}]
66 - dev-python/setproctitle[${PYTHON_USEDEP}]
67 - || ( >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}]
68 - (
69 - >=dev-python/twisted-core-13.0[${PYTHON_USEDEP}]
70 - >=dev-python/twisted-web-13.0[${PYTHON_USEDEP}]
71 - )
72 - )
73 - geoip? ( dev-libs/geoip )
74 - gtk? (
75 - sound? ( dev-python/pygame[${PYTHON_USEDEP}] )
76 - dev-python/pygobject:2[${PYTHON_USEDEP}]
77 - >=dev-python/pygtk-2.12[${PYTHON_USEDEP}]
78 - gnome-base/librsvg
79 - libnotify? ( dev-python/notify-python[${PYTHON_USEDEP}] )
80 - )
81 - webinterface? ( dev-python/mako[${PYTHON_USEDEP}] )"
82 -
83 -python_prepare_all() {
84 - local args=(
85 - -e "/Compiling po file/a \\\tuptoDate = False"
86 - )
87 - sed -i "${args[@]}" -- 'setup.py' || die
88 - args=(
89 - -e 's|"new_release_check": True|"new_release_check": False|'
90 - -e 's|"check_new_releases": True|"check_new_releases": False|'
91 - -e 's|"show_new_releases": True|"show_new_releases": False|'
92 - )
93 - sed -i "${args[@]}" -- 'deluge/core/preferencesmanager.py' || die
94 -
95 - local loc_dir="${S}/deluge/i18n"
96 - l10n_find_plocales_changes "${loc_dir}" "" ".po"
97 - rm_loc() {
98 - rm -vf "${loc_dir}/${1}.po" || die
99 - }
100 - l10n_for_each_disabled_locale_do rm_loc
101 -
102 - distutils-r1_python_prepare_all
103 -}
104 -
105 -esetup.py() {
106 - # bug 531370: deluge has its own plugin system. No need to relocate its egg info files.
107 - # Override this call from the distutils-r1 eclass.
108 - # This does not respect the distutils-r1 API. DONOT copy this example.
109 - set -- "${PYTHON}" setup.py "$@"
110 - echo "$@"
111 - "$@" || die
112 -}
113 -
114 -python_install_all() {
115 - distutils-r1_python_install_all
116 - if ! use console ; then
117 - rm -rf "${D}/usr/$(get_libdir)/python2.7/site-packages/deluge/ui/console/" || die
118 - rm -f "${D}/usr/bin/deluge-console" || die
119 - rm -f "${D}/usr/share/man/man1/deluge-console.1" ||die
120 - fi
121 - if ! use gtk ; then
122 - rm -rf "${D}/usr/$(get_libdir)/python2.7/site-packages/deluge/ui/gtkui/" || die
123 - rm -rf "${D}/usr/share/icons/" || die
124 - rm -f "${D}/usr/bin/deluge-gtk" || die
125 - rm -f "${D}/usr/share/man/man1/deluge-gtk.1" || die
126 - rm -f "${D}/usr/share/applications/deluge.desktop" || die
127 - fi
128 - if use webinterface; then
129 - newinitd "${FILESDIR}/deluge-web.init" deluge-web
130 - newconfd "${FILESDIR}/deluge-web.conf" deluge-web
131 - systemd_newunit "${FILESDIR}/deluge-web.service-2" deluge-web.service
132 - systemd_install_serviced "${FILESDIR}/deluge-web.service.conf"
133 - else
134 - rm -rf "${D}/usr/$(get_libdir)/python2.7/site-packages/deluge/ui/web/" || die
135 - rm -f "${D}/usr/bin/deluge-web" || die
136 - rm -f "${D}/usr/share/man/man1/deluge-web.1" || die
137 - fi
138 - newinitd "${FILESDIR}"/deluged.init-2 deluged
139 - newconfd "${FILESDIR}"/deluged.conf-2 deluged
140 - systemd_newunit "${FILESDIR}"/deluged.service-2 deluged.service
141 - systemd_install_serviced "${FILESDIR}"/deluged.service.conf
142 -}
143 -
144 -pkg_postinst() {
145 - enewgroup ${PN}
146 - enewuser ${PN} -1 -1 /var/lib/${PN} ${PN}
147 - elog
148 - elog "If, after upgrading, deluge doesn't work, please remove the"
149 - elog "'~/.config/deluge' directory and try again, but make a backup"
150 - elog "first!"
151 - elog
152 - elog "To start the daemon either run 'deluged' as user"
153 - elog "or modify /etc/conf.d/deluged and run"
154 - elog "/etc/init.d/deluged start as root"
155 - elog "You can still use deluge the old way"
156 - elog
157 - elog "Systemd unit files for deluged and deluge-web no longer source"
158 - elog "/etc/conf.d/deluge* files. Environment variable customization now"
159 - elog "happens in /etc/systemd/system/deluged.service.d/00gentoo.conf"
160 - elog "and /etc/systemd/system/deluge-web.service.d/00gentoo.conf"
161 - elog
162 - elog "For more information look at http://dev.deluge-torrent.org/wiki/Faq"
163 - elog
164 -}
165
166 diff --git a/net-p2p/deluge/deluge-1.3.15.ebuild b/net-p2p/deluge/deluge-1.3.15.ebuild
167 deleted file mode 100644
168 index 24f0bebb7fe..00000000000
169 --- a/net-p2p/deluge/deluge-1.3.15.ebuild
170 +++ /dev/null
171 @@ -1,142 +0,0 @@
172 -# Copyright 1999-2018 Gentoo Foundation
173 -# Distributed under the terms of the GNU General Public License v2
174 -
175 -EAPI="6"
176 -
177 -PYTHON_COMPAT=( python2_7 )
178 -DISTUTILS_SINGLE_IMPL=1
179 -PLOCALES="af ar ast be bg bn bs ca cs cy da de el en_AU en_CA en_GB eo es et eu fa fi fo fr fy ga gl he hi hr hu id is it iu ja ka kk km kn ko ku ky la lb lt lv mk ml ms nap nb nds nl nn oc pl pms pt pt_BR ro ru si sk sl sr sv ta te th tl tlh tr uk ur vi zh_CN zh_HK zh_TW"
180 -inherit distutils-r1 eutils systemd user l10n
181 -
182 -DESCRIPTION="BitTorrent client with a client/server model"
183 -HOMEPAGE="http://deluge-torrent.org/"
184 -
185 -if [[ ${PV} == 9999 ]]; then
186 - inherit git-r3
187 - EGIT_REPO_URI="git://deluge-torrent.org/${PN}.git
188 - http://git.deluge-torrent.org/${PN}"
189 - SRC_URI=""
190 -else
191 - SRC_URI="http://download.deluge-torrent.org/source/${P}.tar.bz2"
192 - KEYWORDS="amd64 ~ppc ~sparc x86"
193 -fi
194 -
195 -LICENSE="GPL-2"
196 -SLOT="0"
197 -IUSE="console geoip gtk libnotify sound webinterface"
198 -REQUIRED_USE="
199 - ${PYTHON_REQUIRED_USE}
200 - sound? ( gtk )
201 - libnotify? ( gtk )
202 -"
203 -PATCHES=(
204 - "${FILESDIR}/${PN}-1.3.5-disable_libtorrent_internal_copy.patch"
205 -)
206 -
207 -CDEPEND="<net-libs/libtorrent-rasterbar-1.1[python,${PYTHON_USEDEP}]"
208 -DEPEND="${CDEPEND}
209 - dev-python/setuptools[${PYTHON_USEDEP}]
210 - dev-util/intltool"
211 -RDEPEND="${CDEPEND}
212 - dev-python/chardet[${PYTHON_USEDEP}]
213 - dev-python/pyopenssl[${PYTHON_USEDEP}]
214 - dev-python/pyxdg[${PYTHON_USEDEP}]
215 - dev-python/setproctitle[${PYTHON_USEDEP}]
216 - || ( >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}]
217 - (
218 - >=dev-python/twisted-core-13.0[${PYTHON_USEDEP}]
219 - >=dev-python/twisted-web-13.0[${PYTHON_USEDEP}]
220 - )
221 - )
222 - geoip? ( dev-libs/geoip )
223 - gtk? (
224 - sound? ( dev-python/pygame[${PYTHON_USEDEP}] )
225 - dev-python/pygobject:2[${PYTHON_USEDEP}]
226 - >=dev-python/pygtk-2.12[${PYTHON_USEDEP}]
227 - gnome-base/librsvg
228 - libnotify? ( dev-python/notify-python[${PYTHON_USEDEP}] )
229 - )
230 - webinterface? ( dev-python/mako[${PYTHON_USEDEP}] )"
231 -
232 -python_prepare_all() {
233 - local args=(
234 - -e "/Compiling po file/a \\\tuptoDate = False"
235 - )
236 - sed -i "${args[@]}" -- 'setup.py' || die
237 - args=(
238 - -e 's|"new_release_check": True|"new_release_check": False|'
239 - -e 's|"check_new_releases": True|"check_new_releases": False|'
240 - -e 's|"show_new_releases": True|"show_new_releases": False|'
241 - )
242 - sed -i "${args[@]}" -- 'deluge/core/preferencesmanager.py' || die
243 -
244 - local loc_dir="${S}/deluge/i18n"
245 - l10n_find_plocales_changes "${loc_dir}" "" ".po"
246 - rm_loc() {
247 - rm -vf "${loc_dir}/${1}.po" || die
248 - }
249 - l10n_for_each_disabled_locale_do rm_loc
250 -
251 - distutils-r1_python_prepare_all
252 -}
253 -
254 -esetup.py() {
255 - # bug 531370: deluge has its own plugin system. No need to relocate its egg info files.
256 - # Override this call from the distutils-r1 eclass.
257 - # This does not respect the distutils-r1 API. DONOT copy this example.
258 - set -- "${PYTHON}" setup.py "$@"
259 - echo "$@"
260 - "$@" || die
261 -}
262 -
263 -python_install_all() {
264 - distutils-r1_python_install_all
265 - if ! use console ; then
266 - rm -rf "${D}/usr/$(get_libdir)/python2.7/site-packages/deluge/ui/console/" || die
267 - rm -f "${D}/usr/bin/deluge-console" || die
268 - rm -f "${D}/usr/share/man/man1/deluge-console.1" ||die
269 - fi
270 - if ! use gtk ; then
271 - rm -rf "${D}/usr/$(get_libdir)/python2.7/site-packages/deluge/ui/gtkui/" || die
272 - rm -rf "${D}/usr/share/icons/" || die
273 - rm -f "${D}/usr/bin/deluge-gtk" || die
274 - rm -f "${D}/usr/share/man/man1/deluge-gtk.1" || die
275 - rm -f "${D}/usr/share/applications/deluge.desktop" || die
276 - fi
277 - if use webinterface; then
278 - newinitd "${FILESDIR}/deluge-web.init" deluge-web
279 - newconfd "${FILESDIR}/deluge-web.conf" deluge-web
280 - systemd_newunit "${FILESDIR}/deluge-web.service-2" deluge-web.service
281 - systemd_install_serviced "${FILESDIR}/deluge-web.service.conf"
282 - else
283 - rm -rf "${D}/usr/$(get_libdir)/python2.7/site-packages/deluge/ui/web/" || die
284 - rm -f "${D}/usr/bin/deluge-web" || die
285 - rm -f "${D}/usr/share/man/man1/deluge-web.1" || die
286 - fi
287 - newinitd "${FILESDIR}"/deluged.init-2 deluged
288 - newconfd "${FILESDIR}"/deluged.conf-2 deluged
289 - systemd_newunit "${FILESDIR}"/deluged.service-2 deluged.service
290 - systemd_install_serviced "${FILESDIR}"/deluged.service.conf
291 -}
292 -
293 -pkg_postinst() {
294 - enewgroup ${PN}
295 - enewuser ${PN} -1 -1 /var/lib/${PN} ${PN}
296 - elog
297 - elog "If, after upgrading, deluge doesn't work, please remove the"
298 - elog "'~/.config/deluge' directory and try again, but make a backup"
299 - elog "first!"
300 - elog
301 - elog "To start the daemon either run 'deluged' as user"
302 - elog "or modify /etc/conf.d/deluged and run"
303 - elog "/etc/init.d/deluged start as root"
304 - elog "You can still use deluge the old way"
305 - elog
306 - elog "Systemd unit files for deluged and deluge-web no longer source"
307 - elog "/etc/conf.d/deluge* files. Environment variable customization now"
308 - elog "happens in /etc/systemd/system/deluged.service.d/00gentoo.conf"
309 - elog "and /etc/systemd/system/deluge-web.service.d/00gentoo.conf"
310 - elog
311 - elog "For more information look at http://dev.deluge-torrent.org/wiki/Faq"
312 - elog
313 -}