Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/bleachbit/
Date: Thu, 08 Jul 2021 17:21:37
Message-Id: 1625764877.8856a04fe43d87589164c5db30655640289a2f8f.ionen@gentoo
1 commit: 8856a04fe43d87589164c5db30655640289a2f8f
2 Author: Christian Tietz <christian.tietz <AT> mailbox <DOT> org>
3 AuthorDate: Mon Jun 28 15:24:18 2021 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 8 17:21:17 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8856a04f
7
8 sys-apps/bleachbit: Bump to 4.4.0
9
10 Package-Manager: Portage-3.0.20, Repoman-3.0.2
11 Signed-off-by: Christian Tietz <christian.tietz <AT> mailbox.org>
12 Closes: https://github.com/gentoo/gentoo/pull/21455
13 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
14
15 sys-apps/bleachbit/Manifest | 1 +
16 sys-apps/bleachbit/bleachbit-4.4.0.ebuild | 85 +++++++++++++++++++++++++++++++
17 2 files changed, 86 insertions(+)
18
19 diff --git a/sys-apps/bleachbit/Manifest b/sys-apps/bleachbit/Manifest
20 index 4b52ef3b9c2..aa82595ff5f 100644
21 --- a/sys-apps/bleachbit/Manifest
22 +++ b/sys-apps/bleachbit/Manifest
23 @@ -1 +1,2 @@
24 DIST bleachbit-4.2.0.tar.bz2 606223 BLAKE2B c45a11db556b9c3e3a19583bfaa633244e2ea2e374ec8b883cba486126cfb33617cd7930af79d379711980ad4b56426b39a3e68532462be1918da1386369d137 SHA512 6d43da42c6a2a328c8fb766a3f00f4511e72a00836316c279c8dc3a24468abb4c2ce909b42c568ee0b8417c08827c7cb79ae197ae693b8d6ce60faf22422effb
25 +DIST bleachbit-4.4.0.tar.bz2 640690 BLAKE2B 577b5498eeb25c499753468fd6d20fa398423ee0f36837069ecd3c6e32d20686bdf2e41492d8b082551ad373266f98963d900bc68042dc0715a5f509945be352 SHA512 ad117a790803dc405752a4582b735351842305603de7ea9d98b0d59d93e8f75e18d7125958c1cb907891098f79502ebe5a560191384036506ac4ea66694f93af
26
27 diff --git a/sys-apps/bleachbit/bleachbit-4.4.0.ebuild b/sys-apps/bleachbit/bleachbit-4.4.0.ebuild
28 new file mode 100644
29 index 00000000000..3b1fdfbeb13
30 --- /dev/null
31 +++ b/sys-apps/bleachbit/bleachbit-4.4.0.ebuild
32 @@ -0,0 +1,85 @@
33 +# Copyright 1999-2021 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +PYTHON_COMPAT=( python3_{8,9,10} )
39 +PYTHON_REQ_USE="sqlite(+)"
40 +DISTUTILS_SINGLE_IMPL=1
41 +
42 +inherit desktop distutils-r1 virtualx
43 +
44 +DESCRIPTION="Clean junk to free disk space and to maintain privacy"
45 +HOMEPAGE="https://www.bleachbit.org"
46 +SRC_URI="https://download.bleachbit.org/${P}.tar.bz2"
47 +
48 +LICENSE="GPL-3"
49 +SLOT="0"
50 +KEYWORDS="~amd64 ~arm ~arm64 ~x86"
51 +
52 +RDEPEND="
53 + $(python_gen_cond_dep '
54 + dev-python/chardet[${PYTHON_USEDEP}]
55 + dev-python/pygobject:3[${PYTHON_USEDEP}]
56 + ')
57 +"
58 +BDEPEND="
59 + sys-devel/gettext
60 + test? (
61 + $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]')
62 + )
63 +"
64 +
65 +distutils_enable_tests unittest
66 +
67 +# tests fail under FEATURES=usersandbox
68 +RESTRICT="test"
69 +
70 +python_prepare_all() {
71 + if use test; then
72 + # avoid tests requiring internet access
73 + rm tests/Test{Chaff,Update}.py || die
74 +
75 + # fails due to non-existent $HOME/.profile
76 + rm tests/TestInit.py || die
77 +
78 + # only applicable to Windows installer
79 + rm tests/TestNsisUtilities.py || die
80 +
81 + # these fail on upstream Travis CI as well as on Gentoo
82 + sed -e "s/test_notify(self)/_&/" \
83 + -i tests/TestGUI.py || die
84 +
85 + sed -e "s/test_get_proc_swaps(self)/_&/" \
86 + -i tests/TestMemory.py || die
87 + fi
88 +
89 + distutils-r1_python_prepare_all
90 +}
91 +
92 +python_compile_all() {
93 + emake -C po local
94 +}
95 +
96 +python_test() {
97 + virtx emake tests
98 +}
99 +
100 +python_install() {
101 + distutils-r1_python_install
102 + python_newscript ${PN}.py ${PN}
103 +}
104 +
105 +python_install_all() {
106 + distutils-r1_python_install_all
107 + emake -C po DESTDIR="${D}" install
108 +
109 + insinto /usr/share/bleachbit/cleaners
110 + doins cleaners/*.xml
111 +
112 + insinto /usr/share/bleachbit
113 + doins data/app-menu.ui
114 +
115 + doicon ${PN}.png
116 + domenu org.${PN}.BleachBit.desktop
117 +}