Сравнение bleachbit-5.0.0 с bleachbit-5.0.2

/usr/portage/sys-apps/bleachbit/bleachbit-5.0.2.ebuild 2026-07-03 20:03:05.098731070 +0300
3 3

  
4 4
EAPI=8
5 5

  
6
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/${PN}.asc
6 7
DISTUTILS_USE_PEP517=setuptools
7
PYTHON_COMPAT=( python3_{11..13} )
8
PYTHON_COMPAT=( python3_{11..14} )
8 9
PYTHON_REQ_USE="sqlite(+)"
9 10
DISTUTILS_SINGLE_IMPL=1
10 11

  
11
inherit desktop distutils-r1 virtualx
12
inherit desktop distutils-r1 verify-sig virtualx
12 13

  
13 14
DESCRIPTION="Clean junk to free disk space and to maintain privacy"
14 15
HOMEPAGE="https://www.bleachbit.org"
15
SRC_URI="https://download.bleachbit.org/${P}.tar.bz2"
16
SRC_URI="
17
	https://download.bleachbit.org/${P}.tar.bz2
18
	verify-sig? ( https://download.sourceforge.net/project/bleachbit/bleachbit/${PV}/detached_signatures/${P}.tar.bz2.sig )
19
"
16 20

  
17 21
LICENSE="GPL-3"
18 22
SLOT="0"
......
28 32
"
29 33
BDEPEND="
30 34
	sys-devel/gettext
35
	verify-sig? ( sec-keys/openpgp-keys-bleachbit )
31 36
"
32 37

  
33 38
distutils_enable_tests unittest
34 39

  
40
PATCHES=(
41
	"${FILESDIR}"/bleachbit-5.0.2-chardet-6.patch
42
	"${FILESDIR}"/bleachbit-5.0.2-py3.14.patch
43
	"${FILESDIR}"/bleachbit-5.0.2-pygobject-deprecation.patch
44
	"${FILESDIR}"/bleachbit-5.0.2-fix_locale_test.patch
45
)
46

  
35 47
python_prepare_all() {
48
	distutils-r1_python_prepare_all
49

  
36 50
	if use test; then
37 51
		# avoid tests requiring internet access
38 52
		rm tests/Test{Chaff,GuiChaff,Network,Update}.py || die
......
63 77

  
64 78
		sed -e "s/test_is_process_running(self)/_&/" \
65 79
			-i tests/TestUnix.py || die
66
	fi
67 80

  
68
	distutils-r1_python_prepare_all
81
		# Fails if user has filesystems outside of the accepted subset
82
		# ['btrfs', 'ext4', 'ext3', 'squashfs', 'unknown']
83
		# This is an issue for example if you use xfs.
84
		# Instead of adding every possible filesystem lets just skip it.
85
		sed -e "s/test_get_filesystem_type(self)/_&/" \
86
			-i tests/TestFileUtilities.py || die
87

  
88
		# Assumes loginshell is the uid.
89
		sed -e "s/test_get_real_uid(self)/_&/" \
90
			-i tests/TestGeneral.py || die
91
	fi
69 92
}
70 93

  
71 94
python_compile_all() {
......
73 96
}
74 97

  
75 98
python_test() {
76
	virtx emake tests
99
	# use a hardcoded valid code, some tests may fail with accent (pt, fr, ck ...)
100
	# tests.TestGuiStartup.GuiStartupTestCase.test_first_start_message_clears_flag
101
	# tests.TestGuiStartup.GuiStartupTestCase.test_upgrade_message_shown_for_pre_510
102
	# tests.TestWinapp.WinappTestCase.test_section_not_found
103
	export LC_ALL="C.UTF-8"
104
	virtx eunittest -p Test*.py
77 105
}
78 106

  
79 107
python_install() {
Спасибо!