Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 381837 | Differences between
and this patch

Collapse All | Expand All

(-)a/net-p2p/deluge/deluge-1.3.12-r3.ebuild (-101 lines)
Lines 1-100 Link Here
1
# Copyright 1999-2016 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
3
# $Id$
4
5
EAPI="5"
6
7
PYTHON_COMPAT=( python2_7 )
8
DISTUTILS_SINGLE_IMPL=1
9
inherit distutils-r1 eutils systemd user
10
11
DESCRIPTION="BitTorrent client with a client/server model"
12
HOMEPAGE="http://deluge-torrent.org/"
13
14
if [[ ${PV} == 9999 ]]; then
15
	inherit git-2
16
	EGIT_REPO_URI="git://deluge-torrent.org/${PN}.git
17
		http://git.deluge-torrent.org/${PN}"
18
	SRC_URI=""
19
	KEYWORDS=""
20
else
21
	SRC_URI="http://download.deluge-torrent.org/source/${P}.tar.bz2"
22
	KEYWORDS="~amd64 ~arm ~ppc ~sparc ~x86"
23
fi
24
25
LICENSE="GPL-2"
26
SLOT="0"
27
IUSE="geoip gtk libnotify setproctitle sound webinterface"
28
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
29
30
DEPEND=">=net-libs/rb_libtorrent-0.14.9[python]
31
	dev-python/setuptools[${PYTHON_USEDEP}]
32
	dev-util/intltool"
33
RDEPEND=">=net-libs/rb_libtorrent-0.14.9[python]
34
	dev-python/chardet[${PYTHON_USEDEP}]
35
	dev-python/pyopenssl[${PYTHON_USEDEP}]
36
	dev-python/pyxdg[${PYTHON_USEDEP}]
37
	>=dev-python/twisted-core-8.1[${PYTHON_USEDEP}]
38
	>=dev-python/twisted-web-8.1[${PYTHON_USEDEP}]
39
	geoip? ( dev-libs/geoip )
40
	gtk? (
41
		sound? ( dev-python/pygame[${PYTHON_USEDEP}] )
42
		dev-python/pygobject:2[${PYTHON_USEDEP}]
43
		>=dev-python/pygtk-2.12[${PYTHON_USEDEP}]
44
		gnome-base/librsvg
45
		libnotify? ( dev-python/notify-python[${PYTHON_USEDEP}] )
46
	)
47
	setproctitle? ( dev-python/setproctitle[${PYTHON_USEDEP}] )
48
	webinterface? ( dev-python/mako[${PYTHON_USEDEP}] )"
49
50
python_prepare_all() {
51
	local PATCHES=(
52
		"${FILESDIR}"/${PN}-1.3.5-disable_libtorrent_internal_copy.patch
53
		"${FILESDIR}"/${PN}-1.3.12-fix_scheduler_plugin.patch
54
	)
55
56
	distutils-r1_python_prepare_all
57
}
58
59
esetup.py() {
60
	# bug 531370: deluge has its own plugin system. No need to relocate its egg info files.
61
	# Override this call from the distutils-r1 eclass.
62
	# This does not respect the distutils-r1 API. DONOT copy this example.
63
	set -- "${PYTHON}" setup.py "$@"
64
	echo "$@"
65
	"$@" || die
66
}
67
68
python_install_all() {
69
	distutils-r1_python_install_all
70
	newinitd "${FILESDIR}"/deluged.init-2 deluged
71
	newconfd "${FILESDIR}"/deluged.conf-2 deluged
72
	newinitd "${FILESDIR}"/deluge-web.init deluge-web
73
	newconfd "${FILESDIR}"/deluge-web.conf deluge-web
74
	systemd_newunit "${FILESDIR}"/deluged.service-2 deluged.service
75
	systemd_newunit "${FILESDIR}"/deluge-web.service-2 deluge-web.service
76
	systemd_install_serviced "${FILESDIR}"/deluged.service.conf
77
	systemd_install_serviced "${FILESDIR}"/deluge-web.service.conf
78
}
79
80
pkg_postinst() {
81
	enewgroup ${PN}
82
	enewuser ${PN} -1 -1 /var/lib/${PN} ${PN}
83
	elog
84
	elog "If after upgrading it doesn't work, please remove the"
85
	elog "'~/.config/deluge' directory and try again, but make a backup"
86
	elog "first!"
87
	elog
88
	elog "To start the daemon either run 'deluged' as user"
89
	elog "or modify /etc/conf.d/deluged and run"
90
	elog "/etc/init.d/deluged start as root"
91
	elog "You can still use deluge the old way"
92
	elog
93
	elog "Systemd unit files for deluged and deluge-web no longer source"
94
	elog "/etc/conf.d/deluge* files. Environment variable customization now"
95
	elog "happens in /etc/systemd/system/deluged.service.d/00gentoo.conf"
96
	elog "and /etc/systemd/system/deluge-web.service.d/00gentoo.conf"
97
	elog
98
	elog "For more information look at http://dev.deluge-torrent.org/wiki/Faq"
99
	elog
100
}
101
- 

Return to bug 381837