3 |
3 |
|
4 |
4 |
EAPI=7
|
5 |
5 |
|
6 |
|
PYTHON_COMPAT=( python3_{9..10} )
|
|
6 |
PYTHON_COMPAT=( python3_{9..11} )
|
7 |
7 |
|
8 |
8 |
inherit autotools bash-completion-r1 gnome2-utils python-r1 toolchain-funcs vala virtualx xdg-utils
|
9 |
9 |
|
... | ... | |
19 |
19 |
LICENSE="LGPL-2.1"
|
20 |
20 |
SLOT="0"
|
21 |
21 |
KEYWORDS="amd64 arm arm64 ~ia64 ~loong ppc ppc64 ~riscv sparc x86"
|
22 |
|
IUSE="X appindicator +emoji gtk2 +gtk3 +gtk4 +gui +introspection nls +python systemd test +unicode vala wayland"
|
|
22 |
IUSE="X appindicator +emoji gtk2 +gtk3 +gtk4 +gui +introspection libnotify nls +python systemd test +unicode vala wayland"
|
23 |
23 |
RESTRICT="!test? ( test )"
|
24 |
24 |
REQUIRED_USE="
|
25 |
25 |
appindicator? ( gtk3 )
|
... | ... | |
49 |
49 |
x11-libs/libXi
|
50 |
50 |
)
|
51 |
51 |
introspection? ( dev-libs/gobject-introspection )
|
|
52 |
libnotify? ( x11-libs/libnotify )
|
52 |
53 |
nls? ( virtual/libintl )
|
53 |
54 |
python? (
|
54 |
55 |
${PYTHON_DEPS}
|
... | ... | |
75 |
76 |
app-i18n/unicode-emoji
|
76 |
77 |
)
|
77 |
78 |
nls? ( sys-devel/gettext )
|
|
79 |
test? ( x11-apps/setxkbmap )
|
78 |
80 |
unicode? ( app-i18n/unicode-data )"
|
79 |
81 |
|
80 |
|
PATCHES=(
|
81 |
|
"${FILESDIR}"/${P}-src-Fix-refcounting-issues.patch
|
82 |
|
)
|
83 |
|
|
84 |
82 |
src_prepare() {
|
85 |
83 |
vala_src_prepare --ignore-use
|
86 |
|
sed -i "/UCD_DIR=/s/\$with_emoji_annotation_dir/\$with_ucd_dir/" configure.ac
|
87 |
84 |
if ! has_version 'x11-libs/gtk+:3[wayland]'; then
|
88 |
85 |
touch ui/gtk3/panelbinding.vala \
|
|
86 |
ui/gtk3/panel.vala \
|
89 |
87 |
ui/gtk3/emojierapp.vala || die
|
90 |
88 |
fi
|
91 |
89 |
if ! use emoji; then
|
... | ... | |
106 |
104 |
# fix for parallel install
|
107 |
105 |
sed -i "/^if ENABLE_PYTHON2/,/^endif/d" bindings/pygobject/Makefile.am || die
|
108 |
106 |
# require user interaction
|
109 |
|
sed -i "/^TESTS += ibus-\(compose\|keypress\)/d" src/tests/Makefile.am || die
|
|
107 |
sed -i "/^TESTS_C += ibus-\(compose\|keypress\)/d" src/tests/Makefile.am || die
|
110 |
108 |
|
111 |
109 |
sed -i "/^bash_completion/d" tools/Makefile.am || die
|
112 |
110 |
|
... | ... | |
151 |
149 |
$(use_enable gtk4)
|
152 |
150 |
$(use_enable gui ui)
|
153 |
151 |
$(use_enable introspection)
|
|
152 |
$(use_enable libnotify)
|
154 |
153 |
$(use_enable nls)
|
155 |
154 |
$(use_enable systemd systemd-services)
|
156 |
155 |
$(use_enable test tests)
|
... | ... | |
186 |
185 |
|
187 |
186 |
src_install() {
|
188 |
187 |
default
|
|
188 |
# Remove la files
|
189 |
189 |
find "${ED}" -name '*.la' -delete || die
|
190 |
190 |
|
|
191 |
# Remove stray python files generated by the build system
|
|
192 |
find "${ED}" -name '*.pyc' -exec rm -f {} \; || die
|
|
193 |
find "${ED}" -name '*.pyo' -exec rm -f {} \; || die
|
|
194 |
|
191 |
195 |
if use python; then
|
192 |
196 |
python_install() {
|
193 |
197 |
emake -C bindings/pygobject \
|