diff options
Diffstat (limited to 'dev-libs/libportal')
-rw-r--r-- | dev-libs/libportal/Manifest | 2 | ||||
-rw-r--r-- | dev-libs/libportal/libportal-0.7.1.ebuild | 109 |
2 files changed, 111 insertions, 0 deletions
diff --git a/dev-libs/libportal/Manifest b/dev-libs/libportal/Manifest index 0adfd62cbe32..8a3a4764863a 100644 --- a/dev-libs/libportal/Manifest +++ b/dev-libs/libportal/Manifest @@ -1,3 +1,5 @@ DIST libportal-0.6.tar.xz 63816 BLAKE2B 396659bd1fd00885b49363a3f6fc0ccf5324c87417cfcab48c966ef61ab2fa35d300be84656261fdf4313b77fc13058d7b7c9aadb0591c1ef17b80434f8ec19d SHA512 f5f76a0dd0c66521b745c276e41f298addbbd41dd5fb3df9381ea85c122387878cb0e51ffac1e17f9e82548ab222d2c2fe92ab0d018de8a9ae9b2dfd65e454c4 +DIST libportal-0.7.1.tar.xz 74268 BLAKE2B b519fa88735d640a74e18cc791ec69862f136b793a7c855b1f3873cf6b15626d69088747f1a7ff54f8cd96f79e82e3df31e5349e3da57906e769b8f809f4ba34 SHA512 cbc50bfd86787fffc975fc53835acc6c3c0fd54b7ee02fce1983f1bd0fc40b15a0537780cd5e943ecedcf951840080a0f55a23a96e706223e52a6144ee70332c EBUILD libportal-0.6.ebuild 1747 BLAKE2B 468a8f73ac750ae599ded48e43141c6762c90a47c4b80db0390afa9a5574bdd93d059bd5261b3821ef3d1d6321a0fc4465db8cdc031cd0653c910404c80135ee SHA512 564ead18bbabb5502af21fd8d2292e747345e4362028c662fe2e94d2724095f8e6e9652c200e91490cd7fe90768d3ff0b3b3077b789327ef4a6f8d2905e97a65 +EBUILD libportal-0.7.1.ebuild 2244 BLAKE2B d742ef6a562a8c0f971cfa3390741ff75f7d8359da8602baa31977eb9a88f86b57a908825635cbdb661bda78cf99138a1e0ee85f09ed32a3442ab810528d0fa2 SHA512 073aa999974068d6d6953bd25356c5148d77cf04c866dbdce7faaca69ee7a0f202eab5eb5f3dbdfb0ad9649cb6b3c3b7157c68c3e2e4497dd63b874a0a9a52e8 MISC metadata.xml 346 BLAKE2B 36d7ac5ecd2e44a96508cd386bf9cdde323bcf70778bddde22780302958f79c57d337439d11629ea85d52c4990cc85b78aadf500241423ddfd31bd66cc6fbc7a SHA512 dc36f454412fca9a812721598d9e279ab33b83399388ca8722d6ab5dfadb7f54a5702b7dee3f5af29549cded85d8effe1b282cf6911eefafff7d9b848420d8b8 diff --git a/dev-libs/libportal/libportal-0.7.1.ebuild b/dev-libs/libportal/libportal-0.7.1.ebuild new file mode 100644 index 000000000000..873af4b69fc7 --- /dev/null +++ b/dev-libs/libportal/libportal-0.7.1.ebuild @@ -0,0 +1,109 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) +inherit meson python-any-r1 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="~alpha ~amd64 ~arm ~arm64 ~ia64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" +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 ) + ) + test? ( + ${PYTHON_DEPS} + $(python_gen_any_dep ' + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/dbus-python[${PYTHON_USEDEP}] + dev-python/python-dbusmock[${PYTHON_USEDEP}] + ') + ) + vala? ( $(vala_depend) ) +" + +python_check_deps() { + python_has_version \ + "dev-python/pytest[${PYTHON_USEDEP}]" \ + "dev-python/dbus-python[${PYTHON_USEDEP}]" \ + "dev-python/python-dbusmock[${PYTHON_USEDEP}]" +} + +pkg_setup() { + if use test; then + python-any-r1_pkg_setup + fi +} + +src_prepare() { + default + vala_setup +} + +src_configure() { + local emesonargs=( + $(meson_feature gtk backend-gtk3) + $(meson_feature gtk backend-gtk4) + $(meson_feature qt5 backend-qt5) + -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 +} |