diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-01-15 15:51:32 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-01-15 15:51:32 +0000 |
commit | 21435953e16cda318a82334ddbadb3b5c36d9ea7 (patch) | |
tree | e1810a4b135afce04b34862ef0fab2bfaeb8aeca /net-p2p/deluge | |
parent | 7bc9c63c9da678a7e6fceb095d56c634afd22c56 (diff) |
gentoo resync : 15.01.2020
Diffstat (limited to 'net-p2p/deluge')
-rw-r--r-- | net-p2p/deluge/Manifest | 5 | ||||
-rw-r--r-- | net-p2p/deluge/deluge-2.0.3-r1.ebuild | 4 | ||||
-rw-r--r-- | net-p2p/deluge/deluge-2.0.3-r2.ebuild | 133 | ||||
-rw-r--r-- | net-p2p/deluge/deluge-9999.ebuild | 4 |
4 files changed, 140 insertions, 6 deletions
diff --git a/net-p2p/deluge/Manifest b/net-p2p/deluge/Manifest index ebb838367e37..ace3c4d2f318 100644 --- a/net-p2p/deluge/Manifest +++ b/net-p2p/deluge/Manifest @@ -17,6 +17,7 @@ EBUILD deluge-1.3.15-r2.ebuild 4929 BLAKE2B 78454c0525b20a0a521d15bd49c01e556c7c EBUILD deluge-1.3.15-r3.ebuild 4495 BLAKE2B 82ffe9b866a7761cfce5cea806ba57cce365172fe092470481c0ca6af14801b91d2d3c58da3c9b5d41764273b35223f4d18daa44682f45901038d4fc64b773e6 SHA512 dd366542d8ad15db9ff42ded2e2a45c421457f8cddc2640438decccbc82e25e4b3a8c3c4959eb265c3a27c655b86af7902ebba989301066f97176d5d07fb0120 EBUILD deluge-1.3.15-r4.ebuild 4433 BLAKE2B 3568da55fb548fd2bff397e7475eb35566b32215c704e0bea54088c3bf99a2819a866111ff579f3a64cd3160bb1dc1f7a5273f1a9be5aa1fbe40ba5ece07230b SHA512 21a791b18064beabc6213ebe9414af89151e47bc80747691045b4931c67f72b158a6ca444ecb94efc428db250c4dc94dc9425b46d6791b26329a6ee6621e17c7 EBUILD deluge-1.3.9999.ebuild 4443 BLAKE2B bc2778509d617096c242d0d0d0295bb9c257cbc0befbfaff376d530106b278260970eaf162ead9d83c841f33cce180be84d8d0f81686f3394bb52edbe596e94d SHA512 70391b5670f0b3fe38e477a952fa563bc7441d65f7b0e141eebd073166392a5aaa9f98f3e2414c240333007eb4fb714517c190b8b6287812e96bb5b244f41469 -EBUILD deluge-2.0.3-r1.ebuild 4415 BLAKE2B b1028710ba509fe4e3b89ecb973f5e788c8ac1ed4172954a2f92ab0e8ad43542819d083b82c18f2d58360d49ae1572bd75e7496454f44a665a18606a5bcb758e SHA512 07ac0dd3bfcc907088d682b5f9e699cf70d9dc12d4ffd6690dcd9a54e6b7a5daed81963aa0722f54aee6a3270068acf4913ae009462d9904186069e21971c631 -EBUILD deluge-9999.ebuild 4415 BLAKE2B b1028710ba509fe4e3b89ecb973f5e788c8ac1ed4172954a2f92ab0e8ad43542819d083b82c18f2d58360d49ae1572bd75e7496454f44a665a18606a5bcb758e SHA512 07ac0dd3bfcc907088d682b5f9e699cf70d9dc12d4ffd6690dcd9a54e6b7a5daed81963aa0722f54aee6a3270068acf4913ae009462d9904186069e21971c631 +EBUILD deluge-2.0.3-r1.ebuild 4413 BLAKE2B 86a93914d61d06ed9860ac9873d5e9eefaec800a1957445710b6bdf091cfbd90be4b8a987642c186e9a7058e54fc5371c2d15ffd952903bfaee6269fa755d01a SHA512 f51c986a322af353296ef72cb4465578816bf13aa40f43eb5ff6531269f2403768c2662f5b687484119daf84fa512afc6d4ccbacb5e593bb0e246ea63119ac19 +EBUILD deluge-2.0.3-r2.ebuild 4403 BLAKE2B dd1698b08bc2c722b33c29f05daeab2337016326c8e368126c52efce793cd9a6ec3389f7c721d8ac8fa54e7cc870f711e3cb727a41ca3ef843fc9d399e6b3816 SHA512 ebd99abc0ee319e373d2f697d036b0d68591155b73e99fefbb6e6a1c17c6b347586d6fa26b133d8bf34a3866591997dbde7269df92e4392d3925676b1fa40773 +EBUILD deluge-9999.ebuild 4403 BLAKE2B dd1698b08bc2c722b33c29f05daeab2337016326c8e368126c52efce793cd9a6ec3389f7c721d8ac8fa54e7cc870f711e3cb727a41ca3ef843fc9d399e6b3816 SHA512 ebd99abc0ee319e373d2f697d036b0d68591155b73e99fefbb6e6a1c17c6b347586d6fa26b133d8bf34a3866591997dbde7269df92e4392d3925676b1fa40773 MISC metadata.xml 756 BLAKE2B bc8720edfa5af1ee53bdf84af194bce3f3620d228d3cffa2b7af0b239b8d0988ff9df2f6cd24931496bb474867403164870f46170db0b1697ee80035c07760e3 SHA512 19ffe8fe672b0a3929cae6351e07c3422e445479a9627d968aefc2b8f7ff042460a6b4e76ea4aa131b3136e3237b700cd8039b1efdefaacc30a194707df86d81 diff --git a/net-p2p/deluge/deluge-2.0.3-r1.ebuild b/net-p2p/deluge/deluge-2.0.3-r1.ebuild index 9d936b780a05..960cc354e427 100644 --- a/net-p2p/deluge/deluge-2.0.3-r1.ebuild +++ b/net-p2p/deluge/deluge-2.0.3-r1.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI="7" -PYTHON_COMPAT=( python2_7 python3_{5,6,7} ) +PYTHON_COMPAT=( python2_7 python3_{6,7} ) DISTUTILS_SINGLE_IMPL=1 inherit distutils-r1 systemd diff --git a/net-p2p/deluge/deluge-2.0.3-r2.ebuild b/net-p2p/deluge/deluge-2.0.3-r2.ebuild new file mode 100644 index 000000000000..fc0402eb7223 --- /dev/null +++ b/net-p2p/deluge/deluge-2.0.3-r2.ebuild @@ -0,0 +1,133 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +PYTHON_COMPAT=( python3_{6,7} ) +DISTUTILS_SINGLE_IMPL=1 +inherit distutils-r1 systemd + +DESCRIPTION="BitTorrent client with a client/server model" +HOMEPAGE="https://deluge-torrent.org/" + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + 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 ~x86" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="console geoip gtk libnotify sound webinterface" +REQUIRED_USE=" + ${PYTHON_REQUIRED_USE} + libnotify? ( gtk ) + sound? ( gtk ) +" + +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="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[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:3[${PYTHON_USEDEP}] + gnome-base/librsvg + libnotify? ( x11-libs/libnotify ) + ) + net-libs/libtorrent-rasterbar[python,${PYTHON_USEDEP}] + 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 -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 + 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 + fi + if use webinterface; then + newinitd "${FILESDIR}/deluge-web.init" 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 + 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 +} + +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" + elog "first!" + 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 "You can still use deluge the old way" + elog + elog "Systemd unit files for deluged and deluge-web no longer source" + elog "/etc/conf.d/deluge* files. Environment variable customization now" + elog "happens in /etc/systemd/system/deluged.service.d/00gentoo.conf" + elog "and /etc/systemd/system/deluge-web.service.d/00gentoo.conf" + elog + elog "For more information look at https://dev.deluge-torrent.org/wiki/Faq" + elog +} diff --git a/net-p2p/deluge/deluge-9999.ebuild b/net-p2p/deluge/deluge-9999.ebuild index 9d936b780a05..fc0402eb7223 100644 --- a/net-p2p/deluge/deluge-9999.ebuild +++ b/net-p2p/deluge/deluge-9999.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI="7" -PYTHON_COMPAT=( python2_7 python3_{5,6,7} ) +PYTHON_COMPAT=( python3_{6,7} ) DISTUTILS_SINGLE_IMPL=1 inherit distutils-r1 systemd |