3 |
3 |
|
4 |
4 |
EAPI=8
|
5 |
5 |
|
6 |
|
PYTHON_COMPAT=( python3_{9..11} )
|
|
6 |
PYTHON_COMPAT=( python3_{10..11} )
|
7 |
7 |
|
8 |
8 |
inherit gnome2-utils python-single-r1 scons-utils toolchain-funcs
|
9 |
9 |
|
... | ... | |
28 |
28 |
gui? (
|
29 |
29 |
${PYTHON_DEPS}
|
30 |
30 |
gnome-base/librsvg:2[introspection]
|
31 |
|
sys-auth/polkit[introspection]
|
32 |
31 |
x11-libs/gdk-pixbuf[introspection]
|
33 |
32 |
x11-libs/gtk+:3[introspection]
|
34 |
33 |
x11-libs/gtksourceview:3.0[introspection]
|
... | ... | |
67 |
66 |
"${FILESDIR}/${PN}-2.10.1-cflags.patch"
|
68 |
67 |
# https://github.com/sahib/rmlint/pull/520
|
69 |
68 |
"${FILESDIR}/${PN}-2.10.1-scons.patch"
|
70 |
|
# https://github.com/sahib/rmlint/pull/521
|
71 |
|
"${FILESDIR}/${PN}-2.10.1-fix-tests.patch"
|
72 |
69 |
# Skip problematic tests
|
73 |
70 |
"${FILESDIR}/${PN}-2.10.1-skip-tests.patch"
|
74 |
|
# https://github.com/sahib/rmlint/pull/523
|
75 |
|
"${FILESDIR}/${PN}-2.10.1-x86-fix-size.patch"
|
76 |
71 |
# https://github.com/sahib/rmlint/pull/526
|
77 |
72 |
"${FILESDIR}/${PN}-2.10.1-fix-cc.patch"
|
78 |
|
# https://github.com/sahib/rmlint/issues/608#issuecomment-1406811107
|
79 |
|
"${FILESDIR}/${PN}-2.10.1-fix-gui-install.patch"
|
|
73 |
# https://github.com/sahib/rmlint/commit/69d9dcb60c9e88084aba37545c77fd02fdc7df33
|
|
74 |
"${FILESDIR}/${P}-fix-sorting-tests.patch"
|
80 |
75 |
)
|
81 |
76 |
|
82 |
77 |
src_prepare() {
|
... | ... | |
84 |
79 |
# Force the GUI to run with the correct PYTHON_SINGLE_TARGET
|
85 |
80 |
sed -i "/const char \*commands/s/python3/${EPYTHON}/" \
|
86 |
81 |
lib/cmdline.c || die
|
87 |
|
if use test && use x86; then
|
88 |
|
# Skip part of a test until this is fixed:
|
89 |
|
# https://github.com/sahib/rmlint/issues/522
|
90 |
|
sed -i '/--size 0-18446744073709551615\.1/d' \
|
91 |
|
tests/test_options/test_size.py || die
|
92 |
|
fi
|
93 |
82 |
}
|
94 |
83 |
|
95 |
84 |
src_configure() {
|