Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/bleachbit/
Date: Wed, 24 Nov 2021 08:07:47
Message-Id: 1637741255.321e0e2881b447156d241387b0894d429b494c49.juippis@gentoo
1 commit: 321e0e2881b447156d241387b0894d429b494c49
2 Author: Christian Tietz <christian.tietz <AT> mailbox <DOT> org>
3 AuthorDate: Sun Nov 14 12:53:07 2021 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 24 08:07:35 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=321e0e28
7
8 sys-apps/bleachbit: Bump to 4.4.2, EAPI=8
9
10 Package-Manager: Portage-3.0.28, Repoman-3.0.3
11 Signed-off-by: Christian Tietz <christian.tietz <AT> mailbox.org>
12 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
13
14 sys-apps/bleachbit/Manifest | 1 +
15 sys-apps/bleachbit/bleachbit-4.4.2.ebuild | 85 +++++++++++++++++++++++++++++++
16 2 files changed, 86 insertions(+)
17
18 diff --git a/sys-apps/bleachbit/Manifest b/sys-apps/bleachbit/Manifest
19 index aa82595ff5f5..35ec65996d64 100644
20 --- a/sys-apps/bleachbit/Manifest
21 +++ b/sys-apps/bleachbit/Manifest
22 @@ -1,2 +1,3 @@
23 DIST bleachbit-4.2.0.tar.bz2 606223 BLAKE2B c45a11db556b9c3e3a19583bfaa633244e2ea2e374ec8b883cba486126cfb33617cd7930af79d379711980ad4b56426b39a3e68532462be1918da1386369d137 SHA512 6d43da42c6a2a328c8fb766a3f00f4511e72a00836316c279c8dc3a24468abb4c2ce909b42c568ee0b8417c08827c7cb79ae197ae693b8d6ce60faf22422effb
24 DIST bleachbit-4.4.0.tar.bz2 640690 BLAKE2B 577b5498eeb25c499753468fd6d20fa398423ee0f36837069ecd3c6e32d20686bdf2e41492d8b082551ad373266f98963d900bc68042dc0715a5f509945be352 SHA512 ad117a790803dc405752a4582b735351842305603de7ea9d98b0d59d93e8f75e18d7125958c1cb907891098f79502ebe5a560191384036506ac4ea66694f93af
25 +DIST bleachbit-4.4.2.tar.bz2 653525 BLAKE2B ae65e310d33c2e523244a32de1ff28081be940a6a2ed2aadf682218ebe7346de3b5f37ab457d4f16542730d617678effbcda461e7080c43cd81c17f6b959018d SHA512 247a1ed0e491e5e02c4bc9a5c2d11d5f1511ef9644b9edf34b1c9326e6515c33dfd60b98bb2dab59eac36ab5e1c9b5ed1e8d7c749261bde90450a2fc717dae6f
26
27 diff --git a/sys-apps/bleachbit/bleachbit-4.4.2.ebuild b/sys-apps/bleachbit/bleachbit-4.4.2.ebuild
28 new file mode 100644
29 index 000000000000..6cca03a93f7c
30 --- /dev/null
31 +++ b/sys-apps/bleachbit/bleachbit-4.4.2.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=8
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 +}