Files
guru/sci-electronics/lxi-tools/lxi-tools-2.1.ebuild
Jan Henke e4dd8a0417 sci-electronics/lxi-tools: Fix pkg_setup
Due to using both lua-single-r1 and python-any-r1, pkg_setup needs to
explicitly call both's eclasses pkg_setup function.

Closes: https://bugs.gentoo.org/866461
Signed-off-by: Jan Henke <Jan.Henke@taujhe.de>
2022-08-28 17:46:03 +02:00

56 lines
1.1 KiB
Bash

# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python{3_9,3_10,3_11} )
LUA_COMPAT=( lua5-3 )
inherit meson python-any-r1 lua-single gnome2-utils xdg-utils
DESCRIPTION="Tools to access devices with LXI"
HOMEPAGE="https://github.com/lxi-tools/lxi-tools"
SRC_URI="https://github.com/lxi-tools/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
IUSE="bash-completion +gui"
REQUIRED_USE="${LUA_REQUIRED_USE}"
RDEPEND="
bash-completion? ( >=app-shells/bash-completion-2.11 )
>=sys-libs/readline-8.1_p2
${LUA_DEPS}
>=sci-electronics/liblxi-1.13
gui? (
>=dev-libs/glib-2.70
>=gui-libs/gtk-4.5.0
>=gui-libs/gtksourceview-5.3.3
>=gui-libs/libadwaita-1.0.1
)
"
DEPEND="${RDEPEND}"
BDEPEND="${PYTHON_DEPS}"
pkg_setup() {
python-any-r1_pkg_setup
lua-single_pkg_setup
}
src_configure() {
local emesonargs=(
$(meson_use gui)
)
meson_src_configure
}
pkg_postinst() {
gnome2_schemas_update
xdg_icon_cache_update
}
pkg_postrm() {
gnome2_schemas_update
xdg_icon_cache_update
}