gentoo-ebuilds/x11-misc/devilspie2/devilspie2-0.45-r1.ebuild
Ionen Wolkens fedcf14afa
x11-misc/devilspie2: add missing gtk+:3[X] usedep
(note that this cannot work on wayland, thus being a hard dependency)

Closes: https://bugs.gentoo.org/957651
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2025-06-09 05:26:55 -04:00

55 lines
1,000 B
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
LUA_COMPAT=( lua5-{1..4} luajit )
inherit lua-single plocale toolchain-funcs
DESCRIPTION="Window matching utility with Lua scripting"
HOMEPAGE="https://www.nongnu.org/devilspie2/"
SRC_URI="mirror://nongnu/${PN}/${P/-/_}-src.tar.gz"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="amd64 x86"
REQUIRED_USE="${LUA_REQUIRED_USE}"
RDEPEND="
${LUA_DEPS}
dev-libs/glib:2
x11-libs/gtk+:3[X]
x11-libs/libX11
x11-libs/libXinerama
x11-libs/libXrandr
x11-libs/libwnck:3
"
DEPEND="
${RDEPEND}
x11-base/xorg-proto
"
BDEPEND="
sys-devel/gettext
virtual/pkgconfig
"
src_compile() {
tc-export CC PKG_CONFIG
local PLOCALES="fi fr it ja nl pt_BR ru sv"
DEVILSPIE2_ARGS=(
PREFIX="${EPREFIX}"/usr
LANGUAGES="$(plocale_get_locales)"
LUA="${ELUA}"
)
emake "${DEVILSPIE2_ARGS[@]}"
}
src_install() {
emake DESTDIR="${D}" "${DEVILSPIE2_ARGS[@]}" install
einstalldocs
dodoc -r doc/examples
}