gentoo/dev-libs/eekboard/eekboard-1.0.8_p20121001-r2.ebuild
Alfred Wingate d83e25b6a5
*/*: depend on newer gobject-introspection as a workaround
sed -E '/dev-libs\/gobject-introspection(:=|\s|$|-[0-9]|\[)/ { s/(>=)?dev-libs\/gobject-introspection(-[0-9.r-]*)?/>=dev-libs\/gobject-introspection-1.82.0-r2/ }' */*/*.ebuild -i

+ manually going over to undo the false positives or if the version
  requirement was higher.

Bug: https://bugs.gentoo.org/947058
See-Also: ae37e3f389808700bd0f4343ee04888f0ef179d2
Signed-off-by: Alfred Wingate <parona@protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44336
Closes: https://github.com/gentoo/gentoo/pull/44336
Signed-off-by: Sam James <sam@gentoo.org>
2025-10-26 03:26:28 +00:00

91 lines
1.7 KiB
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{11..14} )
VALA_USE_DEPEND="vapigen"
inherit autotools gnome2-utils python-any-r1 vala vcs-snapshot virtualx xdg
DESCRIPTION="An easy to use virtual keyboard toolkit"
HOMEPAGE="https://github.com/ueno/eekboard"
SRC_URI="https://github.com/ueno/${PN}/archive/e212262f29e022bdf7047861263ceea0c373e916.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc +introspection libcanberra static-libs +vala +xtest"
RESTRICT="!test? ( test )"
REQUIRED_USE="vala? ( introspection )"
RDEPEND="
app-accessibility/at-spi2-core
dev-libs/glib:2
dev-libs/libcroco
virtual/libintl
x11-libs/gtk+:3
x11-libs/libX11
x11-libs/libxklavier
x11-libs/pango
introspection? ( >=dev-libs/gobject-introspection-1.82.0-r2 )
libcanberra? ( media-libs/libcanberra[gtk3(+)] )
vala? ( $(vala_depend) )
xtest? ( x11-libs/libXtst )
"
DEPEND="${RDEPEND}"
BDEPEND="
${PYTHON_DEPS}
dev-util/glib-utils
dev-util/gtk-doc
dev-build/gtk-doc-am
dev-util/intltool
sys-devel/gettext
virtual/pkgconfig
"
PATCHES=(
"${FILESDIR}"/${PN}-python-3.patch
"${FILESDIR}"/${PN}-vala.patch
)
src_prepare() {
use vala && vala_setup
default
eautoreconf
}
src_configure() {
econf \
$(use_enable doc gtk-doc) \
$(use_enable introspection) \
$(use_enable libcanberra) \
$(use_enable static-libs static) \
$(use_enable vala) \
$(use_enable xtest)
}
src_test() {
virtx default
}
src_install() {
default
find "${ED}" -name '*.la' -delete || die
}
pkg_preinst() {
xdg_pkg_preinst
gnome2_schemas_savelist
}
pkg_postinst() {
xdg_pkg_postinst
gnome2_schemas_update
}
pkg_postrm() {
xdg_pkg_postrm
gnome2_schemas_update
}