diff options
Diffstat (limited to 'sys-libs/snapd-glib/snapd-glib-1.64-r100.ebuild')
-rw-r--r-- | sys-libs/snapd-glib/snapd-glib-1.64-r100.ebuild | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/sys-libs/snapd-glib/snapd-glib-1.64-r100.ebuild b/sys-libs/snapd-glib/snapd-glib-1.64-r100.ebuild new file mode 100644 index 000000000000..ca2dc1ebc3ed --- /dev/null +++ b/sys-libs/snapd-glib/snapd-glib-1.64-r100.ebuild @@ -0,0 +1,65 @@ +# Copyright 2019-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit meson vala + +DESCRIPTION="glib library for communicating with snapd" +HOMEPAGE="https://snapcraft.io/" +SRC_URI="https://github.com/snapcore/snapd-glib/releases/download/${PV}/${P}.tar.xz" + +LICENSE="LGPL-3" +SLOT="0/1" +KEYWORDS="~amd64" + +IUSE="doc introspection qml qt6 vala" +REQUIRED_USE=" + qml? ( qt6 ) + vala? ( introspection ) +" + +BDEPEND=" + virtual/pkgconfig + sys-devel/gettext + qt6? ( dev-qt/qttools:6[linguist] ) +" + +DEPEND=" + dev-libs/json-glib + dev-libs/glib:2 + dev-util/glib-utils + net-libs/libsoup:3.0 + doc? ( dev-util/gtk-doc ) + introspection? ( dev-libs/gobject-introspection ) + qml? ( dev-qt/qtdeclarative:6 ) + qt6? ( + dev-qt/qtbase:6[network,widgets] + ) + vala? ( $(vala_depend) ) +" + +RDEPEND="${DEPEND} + app-containers/snapd +" + +PATCHES=( + "${FILESDIR}/${P}-qt6.patch" +) + +pkg_setup() { + vala_setup +} + +src_configure() { + local emesonargs=( + "$(meson_use doc docs)" + "$(meson_use introspection)" + "$(meson_use qml qml-bindings)" + "$(meson_use qt6 qt-bindings)" + "$(meson_use vala vala-bindings)" + -Dsoup2=false + ) + + meson_src_configure +} |