fix sys-libs/libportal, add fallback to 0.3

This commit is contained in:
Martin Sekera 2022-02-13 10:50:03 +01:00
parent 505df538a8
commit 62b6e19353
2 changed files with 50 additions and 6 deletions

View file

@ -0,0 +1,29 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit meson
SRC_URI="https://github.com/flatpak/${PN}/releases/download/${PV}/${P}.tar.xz"
DESCRIPTION="Flatpak portal library"
HOMEPAGE="https://github.com/flatpak/libportal"
LICENSE="LGPL-2"
SLOT="0"
IUSE="test"
KEYWORDS="~amd64"
RDEPEND="dev-libs/glib:2"
DEPEND="${RDEPEND}
dev-util/gtk-doc"
src_configure() {
local emesonargs=(
$(meson_use test build-portal-test)
)
meson_src_configure
}

View file

@ -2,8 +2,9 @@
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=7 EAPI=7
VALA_USE_DEPEND="vapigen"
inherit meson inherit meson vala
SRC_URI="https://github.com/flatpak/${PN}/releases/download/${PV}/${P}.tar.xz" SRC_URI="https://github.com/flatpak/${PN}/releases/download/${PV}/${P}.tar.xz"
DESCRIPTION="Flatpak portal library" DESCRIPTION="Flatpak portal library"
@ -11,18 +12,32 @@ HOMEPAGE="https://github.com/flatpak/libportal"
LICENSE="LGPL-2" LICENSE="LGPL-2"
SLOT="0" SLOT="0"
IUSE="test" IUSE="test vala introspection doc"
KEYWORDS="~amd64" KEYWORDS="~amd64 ~arm64"
RDEPEND="dev-libs/glib:2" RDEPEND="dev-libs/glib:2"
DEPEND="${RDEPEND} DEPEND="
dev-util/gtk-doc" ${RDEPEND}
doc? (
dev-util/gtk-doc
dev-util/gi-docgen
)
vala? ( $(vala_depend) )
"
src_prepare() {
default
use vala && vala_src_prepare
}
src_configure() { src_configure() {
local emesonargs=( local emesonargs=(
$(meson_use test build-portal-test) $(meson_use vala vapi)
$(meson_use introspection)
$(meson_use test portal-tests)
$(meson_use doc docs)
) )
meson_src_configure meson_src_configure