This commit is contained in:
Gerben Jan Dijkman 2024-10-14 15:14:20 +02:00
parent 548e9a8274
commit b76ebe5bd8
2 changed files with 0 additions and 81 deletions

View File

@ -1 +0,0 @@
DIST libpeas-2.0.5.tar.xz 156616 BLAKE2B e6b1f796c24fac89a029cb5d9a2db803fce82aae16618c57dc502ba85568b3af39f33a6c82f505fd7cb5d674d566c70a5c505390af0a366ab316bae954fa2b19 SHA512 4c035b824d07c32b9bf828a9b3fed0fe842759686bd23186b1c381b6f8690ed22e6aa98c50550454593c788903c994fd0bab618c0b855970160aa135eb386e73

View File

@ -1,80 +0,0 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..12} )
inherit gnome.org meson python-single-r1 vala virtualx xdg
DESCRIPTION="A GObject plugins library"
HOMEPAGE="https://wiki.gnome.org/Projects/Libpeas https://gitlab.gnome.org/GNOME/libpeas"
LICENSE="LGPL-2.1+"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
IUSE="+gtk gtk-doc +python vala"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
RDEPEND="
>=dev-libs/glib-2.44:2
>=dev-libs/gobject-introspection-1.39:=
gtk? ( >=x11-libs/gtk+-3.0.0:3[introspection] )
python? (
${PYTHON_DEPS}
$(python_gen_cond_dep '
>=dev-python/pygobject-3.2:3[${PYTHON_USEDEP}]
')
)
>=dev-lang/spidermonkey-125.0.0
"
DEPEND="${RDEPEND}"
BDEPEND="
dev-util/glib-utils
gtk-doc? (
>=dev-util/gtk-doc-1.11
>=dev-util/gi-docgen-2021.7
app-text/docbook-xml-dtd:4.3
)
>=sys-devel/gettext-0.19.8
virtual/pkgconfig
"
pkg_setup() {
use python && python-single-r1_pkg_setup
}
src_prepare() {
default
use vala && vala_setup
}
src_configure() {
local emesonargs=(
-Dlua51=false
$(meson_use python python3)
# introspection was always enabled in autotools; would need readiness by consumers
# to USE flag it, but most need it for python plugins anyways
-Dintrospection=true
$(meson_use vala vapi)
$(meson_use gtk-doc gtk_doc)
)
meson_src_configure
}
src_test() {
virtx meson_src_test
}
src_install() {
meson_src_install
if use gtk-doc; then
mkdir -p "${ED}"/usr/share/gtk-doc/html/ || die
mv "${ED}"/usr/share/doc/libpeas-1.0 "${ED}"/usr/share/gtk-doc/html/ || die
if use gtk; then
mv "${ED}"/usr/share/doc/libpeas-gtk-1.0 "${ED}"/usr/share/gtk-doc/html/ || die
fi
fi
}