# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 inherit meson vala xdg MY_PV="v${PV}" MY_P="${PN}-${MY_PV}" DESCRIPTION="Wlroots based Phone compositor" HOMEPAGE="https://gitlab.gnome.org/World/Phosh/phoc" # we don't use the version on gentoo because it breaks # the phoc installation. we follow method used in archlinuxarm SRC_URI=" https://gitlab.gnome.org/World/Phosh/phoc/-/archive/${MY_PV}/${MY_P}.tar.gz " LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64 ~arm64" IUSE="+introspection +systemd test" RESTRICT="!test? ( test )" RDEPEND=" dev-libs/glib dev-libs/gobject-introspection dev-libs/libinput dev-libs/wayland dev-libs/wayland-protocols gnome-base/gnome-desktop systemd? ( !sys-apps/openrc sys-apps/systemd ) x11-libs/libdrm x11-libs/pixman x11-libs/xcb-util x11-libs/xcb-util-wm x11-wm/mutter gnome-base/gsettings-desktop-schemas =gui-libs/wlroots-0.12.0 " BDEPEND=" dev-util/ctags dev-util/meson virtual/pkgconfig x11-base/xorg-server " S="${WORKDIR}/${MY_P}" src_prepare() { default rm -r "${S}"/subprojects/wlroots || die "Failed to remove bundled wlroots" } src_configure() { local emesonargs=( -Ddefault_library=shared -Dtests=false -Dembed-wlroots=disabled ) meson_src_configure } src_install() { DESTDIR="${D}" meson_src_install # dobin "${S}"/helpers/scale-to-fit } pkg_postinst() { xdg_pkg_postinst } pkg_postrm() { xdg_pkg_postrm }