1 |
commit: d1bed05cfc7504187d2826dd5032aa3ee7e08dbf |
2 |
Author: Christian Tietz <christian.tietz <AT> mailbox <DOT> org> |
3 |
AuthorDate: Mon Feb 27 12:07:12 2023 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 27 12:31:51 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1bed05c |
7 |
|
8 |
sys-apps/bleachbit: PEP517 and py3.11 support |
9 |
|
10 |
Closes: https://bugs.gentoo.org/897252 |
11 |
Signed-off-by: Christian Tietz <christian.tietz <AT> mailbox.org> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/29829 |
13 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
14 |
|
15 |
sys-apps/bleachbit/bleachbit-4.4.2-r1.ebuild | 87 ++++++++++++++++++++++++++++ |
16 |
1 file changed, 87 insertions(+) |
17 |
|
18 |
diff --git a/sys-apps/bleachbit/bleachbit-4.4.2-r1.ebuild b/sys-apps/bleachbit/bleachbit-4.4.2-r1.ebuild |
19 |
new file mode 100644 |
20 |
index 000000000000..3cc4297cdb73 |
21 |
--- /dev/null |
22 |
+++ b/sys-apps/bleachbit/bleachbit-4.4.2-r1.ebuild |
23 |
@@ -0,0 +1,87 @@ |
24 |
+# Copyright 1999-2023 Gentoo Authors |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI=8 |
28 |
+ |
29 |
+DISTUTILS_USE_PEP517=setuptools |
30 |
+PYTHON_COMPAT=( python3_{9..11} ) |
31 |
+PYTHON_REQ_USE="sqlite(+)" |
32 |
+DISTUTILS_SINGLE_IMPL=1 |
33 |
+ |
34 |
+inherit desktop distutils-r1 virtualx |
35 |
+ |
36 |
+DESCRIPTION="Clean junk to free disk space and to maintain privacy" |
37 |
+HOMEPAGE="https://www.bleachbit.org" |
38 |
+SRC_URI="https://download.bleachbit.org/${P}.tar.bz2" |
39 |
+ |
40 |
+LICENSE="GPL-3" |
41 |
+SLOT="0" |
42 |
+KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
43 |
+ |
44 |
+RDEPEND=" |
45 |
+ $(python_gen_cond_dep ' |
46 |
+ dev-python/chardet[${PYTHON_USEDEP}] |
47 |
+ dev-python/pygobject:3[${PYTHON_USEDEP}] |
48 |
+ ') |
49 |
+ x11-libs/gtk+:3 |
50 |
+" |
51 |
+BDEPEND=" |
52 |
+ sys-devel/gettext |
53 |
+ test? ( |
54 |
+ $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]') |
55 |
+ ) |
56 |
+" |
57 |
+ |
58 |
+distutils_enable_tests unittest |
59 |
+ |
60 |
+# tests fail under FEATURES=usersandbox |
61 |
+RESTRICT="test" |
62 |
+ |
63 |
+python_prepare_all() { |
64 |
+ if use test; then |
65 |
+ # avoid tests requiring internet access |
66 |
+ rm tests/Test{Chaff,Update}.py || die |
67 |
+ |
68 |
+ # fails due to non-existent $HOME/.profile |
69 |
+ rm tests/TestInit.py || die |
70 |
+ |
71 |
+ # only applicable to Windows installer |
72 |
+ rm tests/TestNsisUtilities.py || die |
73 |
+ |
74 |
+ # these fail on upstream Travis CI as well as on Gentoo |
75 |
+ sed -e "s/test_notify(self)/_&/" \ |
76 |
+ -i tests/TestGUI.py || die |
77 |
+ |
78 |
+ sed -e "s/test_get_proc_swaps(self)/_&/" \ |
79 |
+ -i tests/TestMemory.py || die |
80 |
+ fi |
81 |
+ |
82 |
+ distutils-r1_python_prepare_all |
83 |
+} |
84 |
+ |
85 |
+python_compile_all() { |
86 |
+ emake -C po local |
87 |
+} |
88 |
+ |
89 |
+python_test() { |
90 |
+ virtx emake tests |
91 |
+} |
92 |
+ |
93 |
+python_install() { |
94 |
+ distutils-r1_python_install |
95 |
+ python_newscript ${PN}.py ${PN} |
96 |
+} |
97 |
+ |
98 |
+python_install_all() { |
99 |
+ distutils-r1_python_install_all |
100 |
+ emake -C po DESTDIR="${D}" install |
101 |
+ |
102 |
+ insinto /usr/share/bleachbit/cleaners |
103 |
+ doins cleaners/*.xml |
104 |
+ |
105 |
+ insinto /usr/share/bleachbit |
106 |
+ doins data/app-menu.ui |
107 |
+ |
108 |
+ doicon ${PN}.png |
109 |
+ domenu org.${PN}.BleachBit.desktop |
110 |
+} |