Diff deluge-2.1.1-r8 with a deluge-9999

/usr/portage/net-p2p/deluge/deluge-9999.ebuild 2026-05-16 19:17:04.847729317 +0300
3 3

  
4 4
EAPI=8
5 5

  
6
PYTHON_COMPAT=( python3_{10..13} )
6
PYTHON_COMPAT=( python3_{11..14} )
7 7
DISTUTILS_USE_PEP517=setuptools
8 8
DISTUTILS_SINGLE_IMPL=1
9
inherit distutils-r1 systemd xdg
9
inherit distutils-r1 greadme systemd xdg
10 10

  
11 11
DESCRIPTION="BitTorrent client with a client/server model"
12 12
HOMEPAGE="https://deluge-torrent.org/"
......
16 16
	EGIT_REPO_URI="https://git.deluge-torrent.org/${PN}"
17 17
else
18 18
	SRC_URI="http://download.deluge-torrent.org/source/$(ver_cut 1-2)/${P}.tar.xz"
19
	KEYWORDS="amd64 ~arm ~arm64 ~riscv x86"
19
	KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
20 20
fi
21 21

  
22 22
LICENSE="GPL-2"
23 23
SLOT="0"
24
IUSE="console gui libnotify sound webinterface"
24
IUSE="appindicator console gui libnotify sound webinterface"
25 25
REQUIRED_USE="
26
	appindicator? ( gui )
26 27
	libnotify? ( gui )
27 28
	sound? ( gui )
28 29
"
......
38 39
	$(python_gen_cond_dep '
39 40
		gui? (
40 41
			sound? ( dev-python/pygame[${PYTHON_USEDEP}] )
41
			dev-python/pygobject:3[${PYTHON_USEDEP}]
42
			gnome-base/librsvg
43
			libnotify? ( x11-libs/libnotify )
42
			dev-python/pygobject:3[cairo,${PYTHON_USEDEP}]
44 43
		)
45 44
		dev-python/chardet[${PYTHON_USEDEP}]
46 45
		dev-python/distro[${PYTHON_USEDEP}]
......
55 54
		>=dev-python/zope-interface-4.4.2[${PYTHON_USEDEP}]
56 55
		dev-python/mako[${PYTHON_USEDEP}]
57 56
	')
57
	appindicator? ( dev-libs/libayatana-appindicator )
58
	gui? (
59
		gnome-base/librsvg:2
60
		libnotify? ( x11-libs/libnotify )
61
	)
58 62
"
59 63

  
60
PATCHES=(
61
	"${FILESDIR}/${P}-twisted-22.10.patch"
62
	# https://dev.deluge-torrent.org/ticket/3598
63
	"${FILESDIR}/${P}-ayatana.patch"
64
	# https://dev.deluge-torrent.org/ticket/3582
65
	"${FILESDIR}/${P}-consoleui-deferred.patch"
66
	"${FILESDIR}/${P}-email-module-replace.patch"
67
)
68

  
69 64
EPYTEST_PLUGINS=( pytest-twisted )
70 65
distutils_enable_tests pytest
71 66

  
......
86 81
		deluge/plugins/Stats/deluge_stats/tests/test_stats.py
87 82
		# Skipped upstream
88 83
		deluge/tests/test_security.py
84
		# Broken
85
		deluge/tests/test_ui_entry.py
86
		deluge/tests/test_webserver.py
89 87
	)
90 88
	local EPYTEST_DESELECT=(
91 89
		# Skipped upstream
......
127 125
		mkdir -p "${ED}/usr/share/applications/" || die
128 126
		cp "${WORKDIR}/${P}/deluge/ui/data/share/applications/deluge.desktop" "${ED}/usr/share/applications/" || die
129 127
		mkdir -p "${ED}/usr/share/metainfo" || die
130
		cp "${WORKDIR}/${P}/deluge/ui/data/share/appdata/deluge.appdata.xml" "${ED}/usr/share/metainfo/" || die
128
		cp "${WORKDIR}/${P}/deluge/ui/data/share/metainfo/deluge.metainfo.xml" "${ED}/usr/share/metainfo/" || die
131 129
	fi
132 130

  
133 131
	if use webinterface; then
......
147 145
	systemd_install_serviced "${FILESDIR}"/deluged.service.conf
148 146

  
149 147
	python_optimize
148

  
149
	greadme_stdin <<-EOF
150
	To start only the daemon either run 'deluged' as user or modify
151
	/etc/conf.d/deluged and run '/etc/init.d/deluged start' as root
152
	if you use OpenRC or 'systemctl start deluged.service' if you use systemd.
153

  
154
	Systemd unit files for deluged and deluge-web no longer source
155
	/etc/conf.d/deluge* files. Environment variable customization now happens in
156
	/etc/systemd/system/deluged.service.d/00gentoo.conf and
157
	/etc/systemd/system/deluge-web.service.d/00gentoo.conf
158

  
159
	For more information see https://deluge-torrent.org/faq/
160
EOF
161
}
162

  
163
pkg_preinst() {
164
	xdg_pkg_preinst
165
	greadme_pkg_preinst
150 166
}
151 167

  
152 168
pkg_postinst() {
153 169
	xdg_pkg_postinst
154

  
155
	elog
156
	elog "If, after upgrading, deluge doesn't work please back up and then"
157
	elog "remove your '~/.config/deluge' directory and try again"
158
	elog
159
	elog "To start the daemon either run 'deluged' as user"
160
	elog "or modify /etc/conf.d/deluged and run"
161
	elog "'/etc/init.d/deluged start' as root if you use OpenRC"
162
	elog "or"
163
	elog "'systemctl start deluged.service' as root if you use systemd"
164
	elog "You can still use deluge the old way"
165
	elog
166
	elog "Systemd unit files for deluged and deluge-web no longer source"
167
	elog "/etc/conf.d/deluge* files. Environment variable customization now"
168
	elog "happens in /etc/systemd/system/deluged.service.d/00gentoo.conf"
169
	elog "and /etc/systemd/system/deluge-web.service.d/00gentoo.conf"
170
	elog
171
	elog "For more information see https://dev.deluge-torrent.org/wiki/Faq"
172
	elog
170
	greadme_pkg_postinst
173 171
}
Thank you!