[gentoo-commits] repo/gentoo:master commit in: net-p2p/deluge/files/, net-p2p/deluge/
commit: 0550e8561811e86aa2d433918a7911e5a6bfcb93 Author: Pacho Ramos gentoo org> AuthorDate: Thu Apr 27 14:39:30 2023 + Commit: Pacho Ramos gentoo org> CommitDate: Thu Apr 27 14:40:49 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0550e856 net-p2p/deluge: Fix ayatana indicators detection Patch already accepted by upstream: https://dev.deluge-torrent.org/ticket/3598 https://dev.deluge-torrent.org/changeset/dbedf7f63 Closes: https://bugs.gentoo.org/904663 Signed-off-by: Pacho Ramos gentoo.org> net-p2p/deluge/deluge-2.1.1-r3.ebuild | 177 net-p2p/deluge/files/deluge-2.1.1-ayatana.patch | 17 +++ 2 files changed, 194 insertions(+) diff --git a/net-p2p/deluge/deluge-2.1.1-r3.ebuild b/net-p2p/deluge/deluge-2.1.1-r3.ebuild new file mode 100644 index ..2d6ade36c4d5 --- /dev/null +++ b/net-p2p/deluge/deluge-2.1.1-r3.ebuild @@ -0,0 +1,177 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..11} ) +DISTUTILS_USE_PEP517=setuptools +DISTUTILS_SINGLE_IMPL=1 +inherit distutils-r1 systemd xdg + +DESCRIPTION="BitTorrent client with a client/server model" +HOMEPAGE="https://deluge-torrent.org/; + +if [[ ${PV} == ]]; then + inherit git-r3 + EGIT_REPO_URI="https://git.deluge-torrent.org/${PN}; +else + SRC_URI="http://download.deluge-torrent.org/source/$(ver_cut 1-2)/${P}.tar.xz" + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~riscv ~x86" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="console gui libnotify sound webinterface" +REQUIRED_USE=" + ${PYTHON_REQUIRED_USE} + libnotify? ( gui ) + sound? ( gui ) +" + +BDEPEND=" + dev-util/intltool + test? ( + $(python_gen_cond_dep ' + >=dev-python/pytest-twisted-1.13.4-r1[${PYTHON_USEDEP}] + ') + ) +" + +RDEPEND=" + acct-group/deluge + acct-user/deluge + net-libs/libtorrent-rasterbar:=[python,${PYTHON_SINGLE_USEDEP}] + $(python_gen_cond_dep ' + gui? ( + sound? ( dev-python/pygame[${PYTHON_USEDEP}] ) + dev-python/pygobject:3[${PYTHON_USEDEP}] + gnome-base/librsvg + libnotify? ( x11-libs/libnotify ) + ) + dev-python/chardet[${PYTHON_USEDEP}] + dev-python/distro[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] + dev-python/pyopenssl[${PYTHON_USEDEP}] + dev-python/pyxdg[${PYTHON_USEDEP}] + dev-python/rencode[${PYTHON_USEDEP}] + dev-python/setproctitle[${PYTHON_USEDEP}] + || ( + >=dev-python/twisted-17.1.0[ssl(-),${PYTHON_USEDEP}] + >=dev-python/twisted-17.1.0[crypt(-),${PYTHON_USEDEP}] + ) + >=dev-python/zope-interface-4.4.2[${PYTHON_USEDEP}] + dev-python/mako[${PYTHON_USEDEP}] + ') +" + +PATCHES=( + "${FILESDIR}/${P}-twisted-22.10.patch" + # https://dev.deluge-torrent.org/ticket/3598 + "${FILESDIR}/${P}-ayatana.patch" +) + +distutils_enable_tests pytest + +python_prepare_all() { + local args=( + -e 's|"new_release_check": True|"new_release_check": False|' + -e 's|"check_new_releases": True|"check_new_releases": False|' + -e 's|"show_new_releases": True|"show_new_releases": False|' + ) + sed -i "${args[@]}" -- 'deluge/core/preferencesmanager.py' || die + + distutils-r1_python_prepare_all +} + +python_test() { + local EPYTEST_IGNORE=( + # Upstream CI/CD skips these and they seem to intentionally segfault to collect core dumps... + deluge/plugins/Stats/deluge_stats/tests/test_stats.py + # Skipped upstream + deluge/tests/test_security.py + ) + local EPYTEST_DESELECT=( + # Skipped upstream + 'deluge/plugins/WebUi/deluge_webui/tests/test_plugin_webui.py::TestWebUIPlugin::test_enable_webui' + 'deluge/tests/test_torrent.py::TestTorrent::test_torrent_error_resume_data_unaltered' + 'deluge/tests/test_tracker_icons.py::TestTrackerIcons::test_get_seo_svg_with_sni' + # never returns + 'deluge/tests/test_ui_entry.py::TestConsoleScriptEntryWithDaemon' + # failing network(?)-related tests, even with sandbox disabled + 'deluge/tests/test_common.py::TestCommon::test_is_interface' + # fails + 'deluge/tests/test_core.py::TestCore::test_pause_torrents' + # fails because of network sandbox + 'deluge/tests/test_core.py::TestCore::test_test_listen_port' + 'deluge/tests/test_tracker_icons.py::TestTrackerIcons::test_get_deluge_png' +
[gentoo-commits] repo/gentoo:master commit in: net-p2p/deluge/files/, net-p2p/deluge/
commit: 0fe44f7a1d0009f74cfe5cd7e9d8495859c5052a Author: Paolo Pedroni iol it> AuthorDate: Tue Dec 27 14:38:22 2022 + Commit: Joonas Niilola gentoo org> CommitDate: Thu Jan 12 14:41:38 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0fe44f7a net-p2p/deluge: Fix deluge-web systemd service unit Also clarify systemd service usage and drop old. Closes: https://bugs.gentoo.org/888183 Signed-off-by: Paolo Pedroni iol.it> Closes: https://github.com/gentoo/gentoo/pull/28852 Signed-off-by: Joonas Niilola gentoo.org> .../deluge/{deluge-2.1.1.ebuild => deluge-2.1.1-r2.ebuild} | 12 net-p2p/deluge/files/deluge-web.service-4| 10 ++ 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/net-p2p/deluge/deluge-2.1.1.ebuild b/net-p2p/deluge/deluge-2.1.1-r2.ebuild similarity index 94% rename from net-p2p/deluge/deluge-2.1.1.ebuild rename to net-p2p/deluge/deluge-2.1.1-r2.ebuild index 6e8715c9404e..e30912c37127 100644 --- a/net-p2p/deluge/deluge-2.1.1.ebuild +++ b/net-p2p/deluge/deluge-2.1.1-r2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -16,7 +16,7 @@ if [[ ${PV} == ]]; then EGIT_REPO_URI="https://git.deluge-torrent.org/${PN}; else SRC_URI="http://download.deluge-torrent.org/source/$(ver_cut 1-2)/${P}.tar.xz" - KEYWORDS="amd64 ~arm ~arm64 ~ppc ~riscv x86" + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~riscv ~x86" fi LICENSE="GPL-2" @@ -64,6 +64,8 @@ RDEPEND=" ') " +PATCHES=( "${FILESDIR}/${P}-twisted-22.10.patch" ) + distutils_enable_tests pytest python_prepare_all() { @@ -131,7 +133,7 @@ python_install_all() { if use webinterface; then newinitd "${FILESDIR}/deluge-web.init-2" deluge-web newconfd "${FILESDIR}/deluge-web.conf" deluge-web - systemd_newunit "${FILESDIR}/deluge-web.service-3" deluge-web.service + systemd_newunit "${FILESDIR}/deluge-web.service-4" deluge-web.service systemd_install_serviced "${FILESDIR}/deluge-web.service.conf" else rm -r "${D}/$(python_get_sitedir)/deluge/ui/web/" || die @@ -156,7 +158,9 @@ pkg_postinst() { elog elog "To start the daemon either run 'deluged' as user" elog "or modify /etc/conf.d/deluged and run" - elog "/etc/init.d/deluged start as root" + elog "'/etc/init.d/deluged start' as root if you use OpenRC" + elog "or" + elog "'systemctl start deluged.service' as root if you use systemd" elog "You can still use deluge the old way" elog elog "Systemd unit files for deluged and deluge-web no longer source" diff --git a/net-p2p/deluge/files/deluge-web.service-4 b/net-p2p/deluge/files/deluge-web.service-4 new file mode 100644 index ..9ebfcbc84745 --- /dev/null +++ b/net-p2p/deluge/files/deluge-web.service-4 @@ -0,0 +1,10 @@ +[Unit] +Description=Deluge WebUI +Documentation=man:deluge-web +After=deluged.service + +[Service] +ExecStart=/usr/bin/deluge-web -d -c ${DELUGE_WEB_HOME} ${DELUGE_WEB_OPTS} + +[Install] +WantedBy=multi-user.target
[gentoo-commits] repo/gentoo:master commit in: net-p2p/deluge/files/, net-p2p/deluge/
commit: eaceccfa7548d133e33add079ba76618a39730f8 Author: Paolo Pedroni iol it> AuthorDate: Mon Nov 7 15:23:07 2022 + Commit: Craig Andrews gentoo org> CommitDate: Mon Nov 7 15:35:23 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eaceccfa net-p2p/deluge: Fix deluge-web execution with twisted-22.10.0 Closes: https://bugs.gentoo.org/879351 Signed-off-by: Paolo Pedroni iol.it> Closes: https://github.com/gentoo/gentoo/pull/28167 Signed-off-by: Craig Andrews gentoo.org> net-p2p/deluge/deluge-2.1.1-r1.ebuild | 171 + .../deluge/files/deluge-2.1.1-twisted-22.10.patch | 31 2 files changed, 202 insertions(+) diff --git a/net-p2p/deluge/deluge-2.1.1-r1.ebuild b/net-p2p/deluge/deluge-2.1.1-r1.ebuild new file mode 100644 index ..49f330c238b3 --- /dev/null +++ b/net-p2p/deluge/deluge-2.1.1-r1.ebuild @@ -0,0 +1,171 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) +DISTUTILS_USE_PEP517=setuptools +DISTUTILS_SINGLE_IMPL=1 +inherit distutils-r1 systemd xdg + +DESCRIPTION="BitTorrent client with a client/server model" +HOMEPAGE="https://deluge-torrent.org/; + +if [[ ${PV} == ]]; then + inherit git-r3 + EGIT_REPO_URI="https://git.deluge-torrent.org/${PN}; +else + SRC_URI="http://download.deluge-torrent.org/source/$(ver_cut 1-2)/${P}.tar.xz" + KEYWORDS="amd64 ~arm ~arm64 ~ppc ~riscv x86" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="console gui libnotify sound webinterface" +REQUIRED_USE=" + ${PYTHON_REQUIRED_USE} + libnotify? ( gui ) + sound? ( gui ) +" + +BDEPEND=" + dev-util/intltool + test? ( + $(python_gen_cond_dep ' + >=dev-python/pytest-twisted-1.13.4-r1[${PYTHON_USEDEP}] + ') + ) +" + +RDEPEND=" + acct-group/deluge + acct-user/deluge + net-libs/libtorrent-rasterbar:=[python,${PYTHON_SINGLE_USEDEP}] + $(python_gen_cond_dep ' + gui? ( + sound? ( dev-python/pygame[${PYTHON_USEDEP}] ) + dev-python/pygobject:3[${PYTHON_USEDEP}] + gnome-base/librsvg + libnotify? ( x11-libs/libnotify ) + ) + dev-python/chardet[${PYTHON_USEDEP}] + dev-python/distro[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] + dev-python/pyopenssl[${PYTHON_USEDEP}] + dev-python/pyxdg[${PYTHON_USEDEP}] + dev-python/rencode[${PYTHON_USEDEP}] + dev-python/setproctitle[${PYTHON_USEDEP}] + || ( + >=dev-python/twisted-17.1.0[ssl(-),${PYTHON_USEDEP}] + >=dev-python/twisted-17.1.0[crypt(-),${PYTHON_USEDEP}] + ) + >=dev-python/zope-interface-4.4.2[${PYTHON_USEDEP}] + dev-python/mako[${PYTHON_USEDEP}] + ') +" + +PATCHES=( "${FILESDIR}/${P}-twisted-22.10.patch" ) + +distutils_enable_tests pytest + +python_prepare_all() { + local args=( + -e 's|"new_release_check": True|"new_release_check": False|' + -e 's|"check_new_releases": True|"check_new_releases": False|' + -e 's|"show_new_releases": True|"show_new_releases": False|' + ) + sed -i "${args[@]}" -- 'deluge/core/preferencesmanager.py' || die + + distutils-r1_python_prepare_all +} + +python_test() { + local EPYTEST_IGNORE=( + # Upstream CI/CD skips these and they seem to intentionally segfault to collect core dumps... + deluge/plugins/Stats/deluge_stats/tests/test_stats.py + # Skipped upstream + deluge/tests/test_security.py + ) + local EPYTEST_DESELECT=( + # Skipped upstream + 'deluge/plugins/WebUi/deluge_webui/tests/test_plugin_webui.py::TestWebUIPlugin::test_enable_webui' + 'deluge/tests/test_torrent.py::TestTorrent::test_torrent_error_resume_data_unaltered' + 'deluge/tests/test_tracker_icons.py::TestTrackerIcons::test_get_seo_svg_with_sni' + # never returns + 'deluge/tests/test_ui_entry.py::TestConsoleScriptEntryWithDaemon' + # failing network(?)-related tests, even with sandbox disabled + 'deluge/tests/test_common.py::TestCommon::test_is_interface' + # fails + 'deluge/tests/test_core.py::TestCore::test_pause_torrents' + # fails because of network sandbox + 'deluge/tests/test_core.py::TestCore::test_test_listen_port' + 'deluge/tests/test_tracker_icons.py::TestTrackerIcons::test_get_deluge_png' + 'deluge/tests/test_tracker_icons.py::TestTrackerIcons::test_get_google_ico' +
[gentoo-commits] repo/gentoo:master commit in: net-p2p/deluge/files/, net-p2p/deluge/
commit: 5e59c9a6bf0ee6b3aeea0c6b9bc6226896ecc5c5 Author: Joonas Niilola gentoo org> AuthorDate: Sat Oct 15 06:44:49 2022 + Commit: Joonas Niilola gentoo org> CommitDate: Sat Oct 15 06:47:46 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e59c9a6 net-p2p/deluge: drop 2.0.5-r2 Bug: https://bugs.gentoo.org/866842 Signed-off-by: Joonas Niilola gentoo.org> net-p2p/deluge/Manifest | 1 - net-p2p/deluge/deluge-2.0.5-r2.ebuild | 144 -- net-p2p/deluge/files/deluge-2.0.3-UI-status.patch | 31 - net-p2p/deluge/files/deluge-2.0.3-setup.py.patch | 11 -- 4 files changed, 187 deletions(-) diff --git a/net-p2p/deluge/Manifest b/net-p2p/deluge/Manifest index 1304a7562619..640b58957ce0 100644 --- a/net-p2p/deluge/Manifest +++ b/net-p2p/deluge/Manifest @@ -1,2 +1 @@ -DIST deluge-2.0.5.tar.xz 1895268 BLAKE2B 2c815aa9dbbbed5ba780d694b0518f224577b9c370a03712b15c706eda6de55e34b834f624ec18001c9d41b925677b6a001a384691a7ffd9f29c16731a735d4b SHA512 6c2994ca2906fdb92e96aa3534a4ffd5199e9ab6a1b5b12de94c94ec29850cad0cef7546ae1bea5188075fd16a07e584a17bf2f8b5eb1d2b91dee2da1e494588 DIST deluge-2.1.1.tar.xz 2541968 BLAKE2B 3fe59ad8b402281dd0e19504d10a8d9e2967911e9967613a0d5a146d9ca261cb59d2208f8bd529e7f1da824e125ffb590d12b337dd9655e78b54252b021ae8da SHA512 e94208981aee45f42b88e1c544b07e7b0d0f2c4ade6b7f37257b69d4a3394c89aff217cde699e79ad59de6d2ee4eca7a558f2b85505d2140ba73f1f76f184455 diff --git a/net-p2p/deluge/deluge-2.0.5-r2.ebuild b/net-p2p/deluge/deluge-2.0.5-r2.ebuild deleted file mode 100644 index f7144d94500d.. --- a/net-p2p/deluge/deluge-2.0.5-r2.ebuild +++ /dev/null @@ -1,144 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="7" - -PYTHON_COMPAT=( python3_{8,9,10} ) -DISTUTILS_SINGLE_IMPL=1 -inherit xdg distutils-r1 systemd - -DESCRIPTION="BitTorrent client with a client/server model" -HOMEPAGE="https://deluge-torrent.org/; - -if [[ ${PV} == ]]; then - inherit git-r3 - EGIT_REPO_URI="https://git.deluge-torrent.org/${PN}; -else - SRC_URI="http://download.deluge-torrent.org/source/$(ver_cut 1-2)/${P}.tar.xz" - KEYWORDS="amd64 ~arm ~arm64 ~ppc x86" -fi - -LICENSE="GPL-2" -SLOT="0" -IUSE="console gtk libnotify sound webinterface" -REQUIRED_USE=" - ${PYTHON_REQUIRED_USE} - libnotify? ( gtk ) - sound? ( gtk ) -" - -DEPEND=" - net-libs/libtorrent-rasterbar:=[python,${PYTHON_SINGLE_USEDEP}] - $(python_gen_cond_dep ' - dev-python/wheel[${PYTHON_USEDEP}] - ') - dev-util/intltool - acct-group/deluge - acct-user/deluge" -RDEPEND=" - net-libs/libtorrent-rasterbar:=[python,${PYTHON_SINGLE_USEDEP}] - $(python_gen_cond_dep ' - dev-python/chardet[${PYTHON_USEDEP}] - dev-python/distro[${PYTHON_USEDEP}] - dev-python/pillow[${PYTHON_USEDEP}] - dev-python/pyopenssl[${PYTHON_USEDEP}] - dev-python/pyxdg[${PYTHON_USEDEP}] - dev-python/rencode[${PYTHON_USEDEP}] - dev-python/setproctitle[${PYTHON_USEDEP}] - dev-python/six[${PYTHON_USEDEP}] - || ( - >=dev-python/twisted-17.1.0[ssl(-),${PYTHON_USEDEP}] - >=dev-python/twisted-17.1.0[crypt(-),${PYTHON_USEDEP}] - ) - >=dev-python/zope-interface-4.4.2[${PYTHON_USEDEP}] - gtk? ( - sound? ( dev-python/pygame[${PYTHON_USEDEP}] ) - dev-python/pygobject:3[${PYTHON_USEDEP}] - gnome-base/librsvg - libnotify? ( x11-libs/libnotify ) - ) - dev-python/mako[${PYTHON_USEDEP}] - ')" - -PATCHES=( - "${FILESDIR}/${PN}-2.0.3-setup.py.patch" - "${FILESDIR}/${PN}-2.0.3-UI-status.patch" -) - -python_prepare_all() { - local args=( - -e "/Compiling po file/a \\\tuptoDate = False" - ) - sed -i "${args[@]}" -- 'setup.py' || die - args=( - -e 's|"new_release_check": True|"new_release_check": False|' - -e 's|"check_new_releases": True|"check_new_releases": False|' - -e 's|"show_new_releases": True|"show_new_releases": False|' - ) - sed -i "${args[@]}" -- 'deluge/core/preferencesmanager.py' || die - - distutils-r1_python_prepare_all -} - -esetup.py() { - # bug 531370: deluge has its own plugin system. No need to relocate its egg info files. - # Override this call from the distutils-r1 eclass. - # This does not respect the distutils-r1 API. DONOT copy this example. - set -- "${PYTHON}" setup.py "$@" - echo "$@" - "$@" || die -} - -python_install_all() { - distutils-r1_python_install_all - if ! use console ; then - rm -r
[gentoo-commits] repo/gentoo:master commit in: net-p2p/deluge/files/, net-p2p/deluge/
commit: ea7a178756c5cee2e4659280423c208e67972271 Author: Craig Andrews gentoo org> AuthorDate: Sat Aug 14 01:10:19 2021 + Commit: Craig Andrews gentoo org> CommitDate: Sat Aug 14 01:10:51 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ea7a1787 net-p2p/deluge: Fix twisted logging error Closes: https://bugs.gentoo.org/807997 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Craig Andrews gentoo.org> .../deluge/{deluge-.ebuild => deluge-2.0.3-r9.ebuild} | 8 net-p2p/deluge/deluge-.ebuild | 4 +++- net-p2p/deluge/files/deluge-2.0.3-log.patch | 13 + 3 files changed, 20 insertions(+), 5 deletions(-) diff --git a/net-p2p/deluge/deluge-.ebuild b/net-p2p/deluge/deluge-2.0.3-r9.ebuild similarity index 96% copy from net-p2p/deluge/deluge-.ebuild copy to net-p2p/deluge/deluge-2.0.3-r9.ebuild index 0fe6fe0a53f..6878f1f82c5 100644 --- a/net-p2p/deluge/deluge-.ebuild +++ b/net-p2p/deluge/deluge-2.0.3-r9.ebuild @@ -5,7 +5,7 @@ EAPI="7" PYTHON_COMPAT=( python3_{8,9} ) DISTUTILS_SINGLE_IMPL=1 -inherit xdg distutils-r1 systemd +inherit distutils-r1 systemd DESCRIPTION="BitTorrent client with a client/server model" HOMEPAGE="https://deluge-torrent.org/; @@ -15,7 +15,7 @@ if [[ ${PV} == ]]; then EGIT_REPO_URI="https://git.deluge-torrent.org/${PN}; else SRC_URI="http://download.deluge-torrent.org/source/2.0/${P}.tar.xz; - KEYWORDS="~amd64 ~arm ~sparc ~x86" + KEYWORDS="~amd64 ~arm ~ppc ~sparc ~x86" fi LICENSE="GPL-2" @@ -62,6 +62,8 @@ PATCHES=( "${FILESDIR}/${PN}-2.0.3-setup.py.patch" "${FILESDIR}/${PN}-2.0.3-UI-status.patch" "${FILESDIR}/${PN}-2.0.3-gettext.patch" + "${FILESDIR}/${P}-fix-pickle.patch" + "${FILESDIR}/${P}-log.patch" ) python_prepare_all() { @@ -121,8 +123,6 @@ python_install_all() { } pkg_postinst() { - xdg_pkg_postinst - elog elog "If, after upgrading, deluge doesn't work, please remove the" elog "'~/.config/deluge' directory and try again, but make a backup" diff --git a/net-p2p/deluge/deluge-.ebuild b/net-p2p/deluge/deluge-.ebuild index 0fe6fe0a53f..0d7b3a317c0 100644 --- a/net-p2p/deluge/deluge-.ebuild +++ b/net-p2p/deluge/deluge-.ebuild @@ -15,7 +15,7 @@ if [[ ${PV} == ]]; then EGIT_REPO_URI="https://git.deluge-torrent.org/${PN}; else SRC_URI="http://download.deluge-torrent.org/source/2.0/${P}.tar.xz; - KEYWORDS="~amd64 ~arm ~sparc ~x86" + KEYWORDS="~amd64 ~arm ~ppc ~sparc ~x86" fi LICENSE="GPL-2" @@ -62,6 +62,8 @@ PATCHES=( "${FILESDIR}/${PN}-2.0.3-setup.py.patch" "${FILESDIR}/${PN}-2.0.3-UI-status.patch" "${FILESDIR}/${PN}-2.0.3-gettext.patch" + "${FILESDIR}/${P}-fix-pickle.patch" + "${FILESDIR}/${P}-log.patch" ) python_prepare_all() { diff --git a/net-p2p/deluge/files/deluge-2.0.3-log.patch b/net-p2p/deluge/files/deluge-2.0.3-log.patch new file mode 100644 index 000..45dd9896a91 --- /dev/null +++ b/net-p2p/deluge/files/deluge-2.0.3-log.patch @@ -0,0 +1,13 @@ +https://dev.deluge-torrent.org/changeset/351664ec071daa04 +https://dev.deluge-torrent.org/ticket/3327 +Index: deluge/log.py +=== +--- a/deluge/log.py b/deluge/log.py +@@ -87,5 +87,5 @@ + yield LoggingLoggerClass.exception(self, msg, *args, **kwargs) + +-def findCaller(self, stack_info=False): # NOQA: N802 ++def findCaller(self, *args, **kwargs): # NOQA: N802 + f = logging.currentframe().f_back + rv = '(unknown file)', 0, '(unknown function)'
[gentoo-commits] repo/gentoo:master commit in: net-p2p/deluge/files/, net-p2p/deluge/
commit: 8eeaceea9b91ac8f068cdcb333842d7aebb7c9e6 Author: PPed72 iol it> AuthorDate: Fri Jan 24 15:04:07 2020 + Commit: Joonas Niilola gentoo org> CommitDate: Mon Jan 27 06:32:20 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8eeaceea net-p2p/deluge: fix deluge-web.init file Also fixes installation of unwanted files and byte compilation of python modules. Remove old. Closes: https://bugs.gentoo.org/705914 Signed-off-by: Paolo Pedroni iol.it> Closes: https://github.com/gentoo/gentoo/pull/14425 Signed-off-by: Joonas Niilola gentoo.org> ...luge-2.0.3-r1.ebuild => deluge-2.0.3-r3.ebuild} | 28 ++-- net-p2p/deluge/deluge-.ebuild | 26 ++- net-p2p/deluge/files/deluge-web.init-2 | 53 ++ 3 files changed, 82 insertions(+), 25 deletions(-) diff --git a/net-p2p/deluge/deluge-2.0.3-r1.ebuild b/net-p2p/deluge/deluge-2.0.3-r3.ebuild similarity index 83% rename from net-p2p/deluge/deluge-2.0.3-r1.ebuild rename to net-p2p/deluge/deluge-2.0.3-r3.ebuild index 960cc354e42..d1806e7558e 100644 --- a/net-p2p/deluge/deluge-2.0.3-r1.ebuild +++ b/net-p2p/deluge/deluge-2.0.3-r3.ebuild @@ -3,7 +3,7 @@ EAPI="7" -PYTHON_COMPAT=( python2_7 python3_{6,7} ) +PYTHON_COMPAT=( python3_{6,7} ) DISTUTILS_SINGLE_IMPL=1 inherit distutils-r1 systemd @@ -85,31 +85,33 @@ esetup.py() { python_install_all() { distutils-r1_python_install_all if ! use console ; then - rm -rf "${D}/usr/$(get_libdir)/python2.7/site-packages/deluge/ui/console/" || die - rm -f "${D}/usr/bin/deluge-console" || die - rm -f "${D}/usr/share/man/man1/deluge-console.1" ||die + rm -r "${D}/$(python_get_sitedir)/deluge/ui/console/" || die + rm "${D}/usr/bin/deluge-console" || die + rm "${D}/usr/share/man/man1/deluge-console.1" ||die fi if ! use gtk ; then - rm -rf "${D}/usr/$(get_libdir)/python2.7/site-packages/deluge/ui/gtkui/" || die - rm -rf "${D}/usr/share/icons/" || die - rm -f "${D}/usr/bin/deluge-gtk" || die - rm -f "${D}/usr/share/man/man1/deluge-gtk.1" || die - rm -f "${D}/usr/share/applications/deluge.desktop" || die + rm -r "${D}/$(python_get_sitedir)/deluge/ui/gtk3/" || die + rm -r "${D}/usr/share/icons/" || die + rm "${D}/usr/bin/deluge-gtk" || die + rm "${D}/usr/share/man/man1/deluge-gtk.1" || die + rm "${D}/usr/share/applications/deluge.desktop" || die fi if use webinterface; then - newinitd "${FILESDIR}/deluge-web.init" deluge-web + newinitd "${FILESDIR}/deluge-web.init-2" deluge-web newconfd "${FILESDIR}/deluge-web.conf" deluge-web systemd_newunit "${FILESDIR}/deluge-web.service-3" deluge-web.service systemd_install_serviced "${FILESDIR}/deluge-web.service.conf" else - rm -rf "${D}/usr/$(get_libdir)/python2.7/site-packages/deluge/ui/web/" || die - rm -f "${D}/usr/bin/deluge-web" || die - rm -f "${D}/usr/share/man/man1/deluge-web.1" || die + rm -r "${D}/$(python_get_sitedir)/deluge/ui/web/" || die + rm "${D}/usr/bin/deluge-web" || die + rm "${D}/usr/share/man/man1/deluge-web.1" || die fi newinitd "${FILESDIR}"/deluged.init-2 deluged newconfd "${FILESDIR}"/deluged.conf-2 deluged systemd_newunit "${FILESDIR}"/deluged.service-2 deluged.service systemd_install_serviced "${FILESDIR}"/deluged.service.conf + + python_optimize } pkg_postinst() { diff --git a/net-p2p/deluge/deluge-.ebuild b/net-p2p/deluge/deluge-.ebuild index fc0402eb722..d1806e7558e 100644 --- a/net-p2p/deluge/deluge-.ebuild +++ b/net-p2p/deluge/deluge-.ebuild @@ -85,31 +85,33 @@ esetup.py() { python_install_all() { distutils-r1_python_install_all if ! use console ; then - rm -rf "${D}/usr/$(get_libdir)/python2.7/site-packages/deluge/ui/console/" || die - rm -f "${D}/usr/bin/deluge-console" || die - rm -f "${D}/usr/share/man/man1/deluge-console.1" ||die + rm -r "${D}/$(python_get_sitedir)/deluge/ui/console/" || die + rm "${D}/usr/bin/deluge-console" || die + rm "${D}/usr/share/man/man1/deluge-console.1" ||die fi if ! use gtk ; then - rm -rf "${D}/usr/$(get_libdir)/python2.7/site-packages/deluge/ui/gtkui/" || die - rm -rf "${D}/usr/share/icons/" || die - rm -f "${D}/usr/bin/deluge-gtk" || die - rm -f "${D}/usr/share/man/man1/deluge-gtk.1" || die - rm -f "${D}/usr/share/applications/deluge.desktop" || die + rm -r "${D}/$(python_get_sitedir)/deluge/ui/gtk3/" || die +
[gentoo-commits] repo/gentoo:master commit in: net-p2p/deluge/files/, net-p2p/deluge/
commit: 0636a6c1baa2467b6642ea60227ba5af62388bb0 Author: Craig Andrews gentoo org> AuthorDate: Wed Oct 9 20:52:51 2019 + Commit: Craig Andrews gentoo org> CommitDate: Fri Oct 11 15:07:09 2019 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0636a6c1 net-p2p/deluge: 2.0.3 version bump Closes: https://bugs.gentoo.org/688024 Closes: https://github.com/gentoo/gentoo/pull/12548 Closes: https://github.com/gentoo/gentoo/pull/9327 Closes: https://github.com/gentoo/gentoo/pull/13243 Package-Manager: Portage-2.3.76, Repoman-2.3.17 Signed-off-by: Craig Andrews gentoo.org> net-p2p/deluge/Manifest| 1 + .../{deluge-.ebuild => deluge-2.0.3.ebuild}| 56 ++ net-p2p/deluge/deluge-.ebuild | 56 ++ net-p2p/deluge/files/deluge-2.0.3-UI-status.patch | 31 net-p2p/deluge/files/deluge-2.0.3-setup.py.patch | 11 + net-p2p/deluge/metadata.xml| 4 ++ 6 files changed, 97 insertions(+), 62 deletions(-) diff --git a/net-p2p/deluge/Manifest b/net-p2p/deluge/Manifest index 9f49e45f37b..437ebf60a93 100644 --- a/net-p2p/deluge/Manifest +++ b/net-p2p/deluge/Manifest @@ -1 +1,2 @@ DIST deluge-1.3.15.tar.bz2 1775913 BLAKE2B 9d5224766051d52b6e075dcafab5716793081c78ba69da616fc98f2c463ddc7676b2c2ce8f54b81e1480cf4344582245733033cf5927a9692bc43ec0a23f0001 SHA512 1d0f93a8c5081b807a390f79101d7f26751b0dfc47efe4c3573541014f9e5969461e2d421d17646c17fb81eb4f66f25f5ddce63b9bd226989adb7d7506146bda +DIST deluge-2.0.3.tar.xz 1777624 BLAKE2B d090e63e7e18c7b420e1c4239c833512a04a72e8b2c494bc8a3a03a3b7a03050eed894de84d7a26a416417b0c874a82809398fcaf57972b1056e2fcceb9d092d SHA512 3abec24495b22ec10649865c7ce7c3271224c7d25c0647b43f3c177b7ccb45d4c5c593f8c89d8bc8eac85ae5dc737f9960827587912dd527bb96100304a7d480 diff --git a/net-p2p/deluge/deluge-.ebuild b/net-p2p/deluge/deluge-2.0.3.ebuild similarity index 74% copy from net-p2p/deluge/deluge-.ebuild copy to net-p2p/deluge/deluge-2.0.3.ebuild index 9989834d997..f347e4c3ee3 100644 --- a/net-p2p/deluge/deluge-.ebuild +++ b/net-p2p/deluge/deluge-2.0.3.ebuild @@ -1,24 +1,21 @@ # Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI="6" +EAPI="7" -PYTHON_COMPAT=( python2_7 ) +PYTHON_COMPAT=( python2_7 python3_{5,6} ) DISTUTILS_SINGLE_IMPL=1 -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" -inherit distutils-r1 eutils systemd l10n +inherit distutils-r1 systemd DESCRIPTION="BitTorrent client with a client/server model" HOMEPAGE="https://deluge-torrent.org/; if [[ ${PV} == ]]; then inherit git-r3 - EGIT_REPO_URI="git://deluge-torrent.org/${PN}.git - http://git.deluge-torrent.org/${PN}; - SRC_URI="" + EGIT_REPO_URI="https://git.deluge-torrent.org/${PN}; else - SRC_URI="http://download.deluge-torrent.org/source/${P}.tar.bz2; - KEYWORDS="~amd64 ~arm ~ppc ~sparc ~x86" + SRC_URI="http://download.deluge-torrent.org/source/2.0/${P}.tar.xz; + KEYWORDS="~amd64 ~x86" fi LICENSE="GPL-2" @@ -26,37 +23,41 @@ SLOT="0" IUSE="console geoip gtk libnotify sound webinterface" REQUIRED_USE=" ${PYTHON_REQUIRED_USE} - sound? ( gtk ) libnotify? ( gtk ) + sound? ( gtk ) " -PATCHES=( - "${FILESDIR}/${PN}-1.3.12-fix_scheduler_plugin.patch" -) -CDEPEND=">=net-libs/libtorrent-rasterbar-0.14.9[python,${PYTHON_USEDEP}]" -DEPEND="${CDEPEND} +DEPEND="net-libs/libtorrent-rasterbar[python,${PYTHON_USEDEP}] dev-python/setuptools[${PYTHON_USEDEP}] dev-util/intltool + dev-python/wheel[${PYTHON_USEDEP}] acct-group/deluge acct-user/deluge" -RDEPEND="${CDEPEND} - dev-python/chardet[${PYTHON_USEDEP}] +RDEPEND="dev-python/chardet[${PYTHON_USEDEP}] + dev-python/distro[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] dev-python/pyopenssl[${PYTHON_USEDEP}] dev-python/pyxdg[${PYTHON_USEDEP}] + dev-python/rencode[${PYTHON_USEDEP}] dev-python/setproctitle[${PYTHON_USEDEP}] - || ( >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}] - >=dev-python/twisted-web-13.0[${PYTHON_USEDEP}] - ) - geoip? ( dev-libs/geoip ) + dev-python/six[${PYTHON_USEDEP}] + >=dev-python/twisted-17.1.0[crypt,${PYTHON_USEDEP}] + >=dev-python/zope-interface-4.4.2[${PYTHON_USEDEP}] + geoip? ( dev-python/geoip-python[${PYTHON_USEDEP}] ) gtk? ( sound? ( dev-python/pygame[${PYTHON_USEDEP}] ) - dev-python/pygobject:2[${PYTHON_USEDEP}] - >=dev-python/pygtk-2.12[${PYTHON_USEDEP}] +
[gentoo-commits] repo/gentoo:master commit in: net-p2p/deluge/files/, net-p2p/deluge/
commit: 9180e836c5fbd22c5aecde178597faa0bcaaf30e Author: PPed72 iol it> AuthorDate: Wed Aug 30 14:38:06 2017 + Commit: Kristian Fiskerstrand gentoo org> CommitDate: Mon Oct 16 20:36:45 2017 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9180e836 net-p2p/deluge: fix to preferences ui Bug: https://bugs.gentoo.org/623650 net-p2p/deluge/deluge-1.3.15-r1.ebuild | 144 + .../deluge-1.3.15-r1-fix-preferences-ui.patch | 32 + 2 files changed, 176 insertions(+) diff --git a/net-p2p/deluge/deluge-1.3.15-r1.ebuild b/net-p2p/deluge/deluge-1.3.15-r1.ebuild new file mode 100644 index 000..e76bbab1485 --- /dev/null +++ b/net-p2p/deluge/deluge-1.3.15-r1.ebuild @@ -0,0 +1,144 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +PYTHON_COMPAT=( python2_7 ) +DISTUTILS_SINGLE_IMPL=1 +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" +inherit distutils-r1 eutils systemd user l10n + +DESCRIPTION="BitTorrent client with a client/server model" +HOMEPAGE="http://deluge-torrent.org/; + +if [[ ${PV} == ]]; then + inherit git-r3 + EGIT_REPO_URI="git://deluge-torrent.org/${PN}.git + http://git.deluge-torrent.org/${PN}; + SRC_URI="" + KEYWORDS="~amd64 ~x86" +else + SRC_URI="http://download.deluge-torrent.org/source/${P}.tar.bz2; + KEYWORDS="~amd64 ~arm ~ppc ~sparc ~x86" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="console geoip gtk libnotify sound webinterface" +REQUIRED_USE=" + ${PYTHON_REQUIRED_USE} + sound? ( gtk ) + libnotify? ( gtk ) +" +PATCHES=( + "${FILESDIR}/${PN}-1.3.5-disable_libtorrent_internal_copy.patch" + "${FILESDIR}/${PN}-1.3.15-r1-fix-preferences-ui.patch" +) + +CDEPEND="http://dev.deluge-torrent.org/wiki/Faq; + elog +} diff --git a/net-p2p/deluge/files/deluge-1.3.15-r1-fix-preferences-ui.patch b/net-p2p/deluge/files/deluge-1.3.15-r1-fix-preferences-ui.patch new file mode 100644 index 000..a63e5de10de --- /dev/null +++ b/net-p2p/deluge/files/deluge-1.3.15-r1-fix-preferences-ui.patch @@ -0,0 +1,32 @@ +From 38d7b7cdfde3c50d6263602ffb03af92fcbfa52e Mon Sep 17 00:00:00 2001 +From: Calum Lind+Date: Sat, 13 May 2017 00:05:48 +0100 +Subject: [GTKUI] Fix keyerror showing prefs + + * Fix the single_proxy ui to True as unlikely any users using <=0.15 + and need to have different proxy type settings. +--- + deluge/ui/gtkui/preferences.py | 7 ++- + 1 file changed, 2 insertions(+), 5 deletions(-) + +diff --git a/deluge/ui/gtkui/preferences.py b/deluge/ui/gtkui/preferences.py +index 645ad26..efcd93d 100644 +--- a/deluge/ui/gtkui/preferences.py b/deluge/ui/gtkui/preferences.py +@@ -318,11 +318,8 @@ class Preferences(component.Component): + } + # Add proxy stuff + +-# Display workaround for single proxy in libtorrent >v0.16 +-try: +-lt_single_proxy = component.get("PreferencesManager").LT_SINGLE_PROXY +-except AttributeError: +-lt_single_proxy = False ++# Display workaround for single proxy in libtorrent >= v0.16 ++lt_single_proxy = True + + for t in ("peer", "web_seed", "tracker", "dht"): + if lt_single_proxy and not t == "peer": +-- +cgit v1.1 +
[gentoo-commits] repo/gentoo:master commit in: net-p2p/deluge/files/, net-p2p/deluge/
commit: 900dcc34dcda0cbc21d152fb9011907a632c0e31 Author: PPed72 iol it> AuthorDate: Mon Mar 21 09:58:31 2016 + Commit: Patrice Clement gentoo org> CommitDate: Mon Mar 21 11:43:56 2016 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=900dcc34 net-p2p/deluge: fix scheduler plugin Reporter: Giacomo Tazzari gmail.com> Gentoo-Bug: https://bugs.gentoo.org/577848 Closes: https://github.com/gentoo/gentoo/pull/1103 net-p2p/deluge/deluge-1.3.12-r3.ebuild | 1 + .../files/deluge-1.3.12-fix_scheduler_plugin.patch | 22 ++ 2 files changed, 23 insertions(+) diff --git a/net-p2p/deluge/deluge-1.3.12-r3.ebuild b/net-p2p/deluge/deluge-1.3.12-r3.ebuild index cd671e1..1327cd2 100644 --- a/net-p2p/deluge/deluge-1.3.12-r3.ebuild +++ b/net-p2p/deluge/deluge-1.3.12-r3.ebuild @@ -50,6 +50,7 @@ RDEPEND=">=net-libs/rb_libtorrent-0.14.9[python] python_prepare_all() { local PATCHES=( "${FILESDIR}"/${PN}-1.3.5-disable_libtorrent_internal_copy.patch + "${FILESDIR}"/${PN}-1.3.12-fix_scheduler_plugin.patch ) distutils-r1_python_prepare_all diff --git a/net-p2p/deluge/files/deluge-1.3.12-fix_scheduler_plugin.patch b/net-p2p/deluge/files/deluge-1.3.12-fix_scheduler_plugin.patch new file mode 100644 index 000..fda64aa --- /dev/null +++ b/net-p2p/deluge/files/deluge-1.3.12-fix_scheduler_plugin.patch @@ -0,0 +1,22 @@ +From cdf301601fe71bd697f3796cf0a5656d437d140e Mon Sep 17 00:00:00 2001 +From: Calum Lind+Date: Wed, 16 Sep 2015 15:11:56 +0100 +Subject: [Scheduler] Revert erroneous fix backported from develop branch + + * The issue this was intended to fix only occurs on develop branch +--- + deluge/plugins/scheduler/scheduler/core.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/deluge/plugins/scheduler/scheduler/core.py b/deluge/plugins/scheduler/scheduler/core.py +index 9fb81df..f0e2392 100644 +--- a/deluge/plugins/scheduler/scheduler/core.py b/deluge/plugins/scheduler/scheduler/core.py +@@ -127,7 +127,7 @@ class Core(CorePluginBase): + """ + core_config = deluge.configmanager.ConfigManager("core.conf") + for setting in CONTROLLED_SETTINGS: +-component.get("PreferencesManager").do_config_set_func(setting, core_config[setting]) ++core_config.apply_set_functions(setting) + # Resume the session if necessary + component.get("Core").session.resume()