diff options
author | Matt Turner <mattst88@gentoo.org> | 2022-04-15 14:35:41 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gentoo.org> | 2022-04-15 15:13:01 -0700 |
commit | 761a307d6c172886b82c3a69197b7fd3cc500dd8 (patch) | |
tree | 06d3a5df21a3404a0f1b7c0e71b1aa08baadcab6 /dev-libs/libportal | |
parent | app-emacs/racket-mode: drop old 20220208 (diff) | |
download | gentoo-761a307d6c172886b82c3a69197b7fd3cc500dd8.tar.gz gentoo-761a307d6c172886b82c3a69197b7fd3cc500dd8.tar.bz2 gentoo-761a307d6c172886b82c3a69197b7fd3cc500dd8.zip |
dev-libs/libportal: Add new package, version 0.6
Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'dev-libs/libportal')
-rw-r--r-- | dev-libs/libportal/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/libportal/libportal-0.6.ebuild | 89 | ||||
-rw-r--r-- | dev-libs/libportal/metadata.xml | 8 |
3 files changed, 98 insertions, 0 deletions
diff --git a/dev-libs/libportal/Manifest b/dev-libs/libportal/Manifest new file mode 100644 index 000000000000..ad68bc5788d2 --- /dev/null +++ b/dev-libs/libportal/Manifest @@ -0,0 +1 @@ +DIST libportal-0.6.tar.xz 63816 BLAKE2B 396659bd1fd00885b49363a3f6fc0ccf5324c87417cfcab48c966ef61ab2fa35d300be84656261fdf4313b77fc13058d7b7c9aadb0591c1ef17b80434f8ec19d SHA512 f5f76a0dd0c66521b745c276e41f298addbbd41dd5fb3df9381ea85c122387878cb0e51ffac1e17f9e82548ab222d2c2fe92ab0d018de8a9ae9b2dfd65e454c4 diff --git a/dev-libs/libportal/libportal-0.6.ebuild b/dev-libs/libportal/libportal-0.6.ebuild new file mode 100644 index 000000000000..22a66ac299bf --- /dev/null +++ b/dev-libs/libportal/libportal-0.6.ebuild @@ -0,0 +1,89 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit meson vala virtualx + +DESCRIPTION="Flatpak portal library" +HOMEPAGE="https://github.com/flatpak/libportal" +SRC_URI="https://github.com/flatpak/libportal/releases/download/${PV}/${P}.tar.xz" + +LICENSE="LGPL-3" +SLOT="0/1-1-1-1" # soname of libportal{,-gtk3,-gtk4,-qt5}.so +KEYWORDS="~amd64" +IUSE="gtk gtk-doc +introspection qt5 test +vala" +RESTRICT="!test? ( test )" +REQUIRED_USE=" + gtk-doc? ( introspection ) + vala? ( introspection ) +" + +RDEPEND=" + >=dev-libs/glib-2.58:2 + introspection? ( dev-libs/gobject-introspection:= ) + gtk? ( + x11-libs/gtk+:3 + gui-libs/gtk:4 + ) + qt5? ( + dev-qt/qtcore:= + dev-qt/qtgui:= + dev-qt/qtx11extras:= + dev-qt/qtwidgets:= + ) +" +DEPEND="${RDEPEND} + qt5? ( + test? ( dev-qt/qttest:= ) + ) +" +BDEPEND=" + dev-util/glib-utils + virtual/pkgconfig + gtk-doc? ( dev-util/gi-docgen ) + qt5? ( + test? ( dev-qt/linguist-tools ) + ) + vala? ( $(vala_depend) ) +" + +src_prepare() { + default + vala_setup +} + +src_configure() { + local backends + use gtk && backends+="gtk3,gtk4," + use qt5 && backends+="qt5," + + local emesonargs=( + -Dbackends=${backends%,} + -Dportal-tests=false + $(meson_use introspection) + $(meson_use vala vapi) + $(meson_use gtk-doc docs) + $(meson_use test tests) + ) + meson_src_configure +} + +src_test() { + # Tests only exist for Qt5 + if use qt5; then + virtx meson_src_test + else + # run meson_src_test to notice if tests are added + meson_src_test + fi +} + +src_install() { + meson_src_install + + if use gtk-doc; then + mkdir -p "${ED}"/usr/share/gtk-doc/html/ || die + mv "${ED}"/usr/share/doc/${PN}-1 "${ED}"/usr/share/gtk-doc/html/ || die + fi +} diff --git a/dev-libs/libportal/metadata.xml b/dev-libs/libportal/metadata.xml new file mode 100644 index 000000000000..7b343b06be8a --- /dev/null +++ b/dev-libs/libportal/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>gnome@gentoo.org</email> + <name>Gentoo GNOME Desktop</name> +</maintainer> +</pkgmetadata> |