gjdwebserver-overlay/x11-wm/phoc/phoc-0.29.0.ebuild

90 lines
1.7 KiB
Bash
Raw Normal View History

2022-10-04 14:50:54 +02:00
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit meson xdg gnome2-utils
MY_PV="v${PV}"
MY_P="${PN}-${MY_PV}"
2023-05-01 14:15:32 +02:00
GMO_COMMIT="f4d4e5740c3e4b2de40864ab8a9e7b7f957d6aec"
2022-10-04 14:50:54 +02:00
DESCRIPTION="Wlroots based Phone compositor"
HOMEPAGE="https://gitlab.gnome.org/World/Phosh/phoc"
SRC_URI="
https://gitlab.gnome.org/World/Phosh/phoc/-/archive/${MY_PV}/${MY_P}.tar.gz
2023-03-01 17:40:05 +01:00
https://gitlab.gnome.org/guidog/gmobile/-/archive/${GMO_COMMIT}/gmobile-${GMO_COMMIT}.tar.gz
2022-10-04 14:50:54 +02:00
"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
2023-01-10 15:11:01 +01:00
IUSE="+introspection +systemd test"
2022-10-04 14:50:54 +02:00
RESTRICT="!test? ( test )"
RDEPEND="
dev-libs/glib
dev-libs/gobject-introspection
dev-libs/libinput
2023-01-10 15:11:01 +01:00
dev-libs/wayland
dev-libs/wayland-protocols
2022-10-04 14:50:54 +02:00
gnome-base/dconf
gnome-base/gsettings-desktop-schemas
gnome-base/gnome-settings-daemon
2022-10-04 15:01:56 +02:00
>=gnome-base/gnome-desktop-3.26
2022-10-04 14:50:54 +02:00
dev-util/vulkan-headers
sys-apps/systemd
x11-libs/libdrm
x11-libs/pixman
x11-libs/libxcb
x11-libs/xcb-util
x11-libs/xcb-util-wm
x11-libs/xcb-util-renderutil
x11-wm/mutter
sys-auth/seatd
x11-apps/xkbcomp
2022-10-04 15:01:56 +02:00
x11-libs/libxkbcommon
=gui-libs/wlroots-0.15.1-r2
2022-10-04 14:50:54 +02:00
"
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"
2023-03-01 17:40:05 +01:00
rm -r "${S}"/subprojects/gmobile || die
mv "${WORKDIR}"/gmobile-"${GMO_COMMIT}" "${S}"/subprojects/gmobile || die
2022-10-04 14:50:54 +02:00
}
src_configure() {
local emesonargs=(
-Dtests=false
-Dembed-wlroots=disabled
2022-10-04 14:50:54 +02:00
)
meson_src_configure
}
src_install() {
DESTDIR="${D}" meson_src_install
dobin "${S}"/helpers/scale-to-fit
}
pkg_postinst() {
xdg_pkg_postinst
gnome2_schemas_update
}
pkg_postrm() {
xdg_pkg_postrm
}