gui-libs/xdg-desktop-portal-wlr/xdg-desktop-portal-wlr-9999.ebuild
author gabriel
Sun, 18 Apr 2021 17:09:52 +0100
changeset 41 9575db29637a
parent 2 e83c1ad7d608
permissions -rw-r--r--
xdg-portal-desktop-wlr 0.3.0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
     1
# Copyright 1999-2020 Gentoo Authors
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
     2
# Distributed under the terms of the GNU General Public License v2
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
     3
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
     4
EAPI=7
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
     5
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
     6
inherit meson
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
     7
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
     8
DESCRIPTION="xdg-desktop-portal backend for wlroots"
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
     9
HOMEPAGE="https://github.com/emersion/xdg-desktop-portal-wlr"
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
    10
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
    11
if [[ ${PV} == 9999 ]]; then
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
    12
	EGIT_REPO_URI="https://github.com/emersion/${PN}.git"
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
    13
	inherit git-r3
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
    14
else
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
    15
	SRC_URI="https://github.com/emersion/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
    16
	#KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
    17
	KEYWORDS=""
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
    18
fi
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
    19
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
    20
LICENSE="MIT"
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
    21
SLOT="0/9999"
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
    22
IUSE="elogind systemd"
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
    23
REQUIRED_USE="?? ( elogind systemd )"
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
    24
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
    25
DEPEND="
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
    26
	>=media-video/pipewire-0.2.9:=
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
    27
	dev-libs/wayland
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
    28
	>=dev-libs/wayland-protocols-1.14:=
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
    29
	elogind? ( >=sys-auth/elogind-237 )
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
    30
	systemd? ( >=sys-apps/systemd-237 )
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
    31
"
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
    32
RDEPEND="
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
    33
	${DEPEND}
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
    34
	sys-apps/xdg-desktop-portal
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
    35
"
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
    36
BDEPEND="
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
    37
	>=media-video/pipewire-0.2.9:=
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
    38
	>=dev-libs/wayland-protocols-1.14
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
    39
	>=dev-util/meson-0.47.0
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
    40
	virtual/pkgconfig
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
    41
"
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
    42
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
    43
src_configure() {
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
    44
	local emesonargs=(
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
    45
		"-Dwerror=false"
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
    46
	)
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
    47
	if use systemd; then
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
    48
		emesonargs+=("-DHAVE_SYSTEMD=1")
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
    49
	else
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
    50
		emesonargs+=("-DHAVE_ELOGIND=1")
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
    51
	fi
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
    52
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
    53
	meson_src_configure
e83c1ad7d608 Add live ebuild of xdg-desktop-portal-wlr
gabriel
parents:
diff changeset
    54
}