48 lines
964 B
Bash
48 lines
964 B
Bash
# Copyright 1999-2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
PYTHON_COMPAT=( python3_{11..14} )
|
|
|
|
inherit python-single-r1
|
|
|
|
DESCRIPTION="Python bindings for Thunar extensions"
|
|
HOMEPAGE="
|
|
https://docs.xfce.org/xfce/thunar/thunarx-python
|
|
https://gitlab.xfce.org/bindings/thunarx-python
|
|
"
|
|
SRC_URI="https://archive.xfce.org/src/bindings/${PN}/${PV%.*}/${P}.tar.bz2"
|
|
|
|
LICENSE="GPL-2+"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
IUSE="gtk-doc"
|
|
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
|
|
|
RDEPEND="
|
|
${PYTHON_DEPS}
|
|
$(python_gen_cond_dep '
|
|
dev-python/pygobject:3[${PYTHON_USEDEP}]
|
|
')
|
|
>=dev-libs/glib-2.30:2
|
|
>=xfce-base/thunar-1.7.0:=
|
|
>=x11-libs/gtk+-3.20:3
|
|
"
|
|
DEPEND="${RDEPEND}"
|
|
BDEPEND="
|
|
gtk-doc? ( dev-util/gtk-doc )
|
|
virtual/pkgconfig
|
|
"
|
|
|
|
src_configure() {
|
|
PYTHON="${EPYTHON}" econf $(use_enable gtk-doc)
|
|
}
|
|
|
|
src_install() {
|
|
default
|
|
|
|
find "${ED}" -name '*.la' -delete || die
|
|
keepdir /usr/share/thunarx-python/extensions
|
|
}
|