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

92 lines
1.8 KiB
Bash
Raw Normal View History

2022-07-15 16:30:22 +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}"
2022-09-01 14:12:25 +02:00
#WL_COMMIT="9b77a484d9581fb6ce4b0afcd44dd728709d8ba7"
WL_COMMIT="1f8bb9e0e3058fc31a14866dc52e8f83c1287a09"
WL_P="wlroots-${WL_COMMIT}"
2022-07-15 16:30:22 +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
2022-09-01 14:12:25 +02:00
https://source.puri.sm/Librem5/wlroots/-/archive/${WL_COMMIT}/${WL_P}.tar.gz
2022-07-15 16:30:22 +02:00
"
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
2022-09-01 14:12:25 +02:00
gnome-base/dconf
gnome-base/gsettings-desktop-schemas
gnome-base/gnome-settings-daemon
2022-07-15 16:30:22 +02:00
gnome-base/gnome-desktop
2022-09-01 14:12:25 +02:00
dev-util/vulkan-headers
2022-08-22 22:27:24 +02:00
sys-apps/systemd
2022-07-15 16:30:22 +02:00
x11-libs/libdrm
x11-libs/pixman
2022-09-01 14:12:25 +02:00
x11-libs/libxcb
2022-07-15 16:30:22 +02:00
x11-libs/xcb-util
x11-libs/xcb-util-wm
2022-08-22 22:24:26 +02:00
x11-libs/xcb-util-renderutil
2022-07-15 16:30:22 +02:00
x11-wm/mutter
sys-auth/seatd
2022-09-01 14:12:25 +02:00
!gui-libs/wlroots
2022-08-22 22:27:24 +02:00
sys-auth/seatd
2022-09-01 14:12:25 +02:00
x11-apps/xkbcomp
2022-08-22 23:07:45 +02:00
x11-libs/libdrm
2022-07-15 16:30:22 +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"
2022-09-01 14:12:25 +02:00
cp -r "${WORKDIR}/${WL_P}" "${S}"/subprojects/wlroots || die "Failed to copy right version of wlroots"
2022-07-15 16:30:22 +02:00
}
src_configure() {
local emesonargs=(
2022-09-01 14:12:25 +02:00
-Dembed-wlroots=enabled
-Ddefault_library=static
2022-07-15 16:30:22 +02:00
-Dtests=false
)
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
}