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

94 lines
1.8 KiB
Bash
Raw Normal View History

2021-07-24 03:49:41 +02:00
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
2021-08-22 02:22:25 +02:00
inherit meson vala xdg gnome2-utils
2021-07-24 03:49:41 +02:00
MY_PV="v${PV}"
MY_P="${PN}-${MY_PV}"
2021-11-11 10:05:57 +01:00
2021-11-11 10:12:23 +01:00
WL_COMMIT="5413b1ec61c6e3390929db595c0ec92f92ea2594"
WL_P="wlroots-${WL_COMMIT}"
2021-07-24 03:49:41 +02:00
DESCRIPTION="Wlroots based Phone compositor"
2021-08-21 17:38:58 +02:00
HOMEPAGE="https://gitlab.gnome.org/World/Phosh/phoc"
2021-07-24 03:49:41 +02:00
# we don't use the version on gentoo because it breaks
# the phoc installation. we follow method used in archlinuxarm
SRC_URI="
2021-10-30 23:12:24 +02:00
https://gitlab.gnome.org/World/Phosh/phoc/-/archive/${MY_PV}/${MY_P}.tar.gz
2021-11-11 10:12:23 +01:00
https://source.puri.sm/Librem5/wlroots/-/archive/${WL_COMMIT}/${WL_P}.tar.gz
2021-07-24 03:49:41 +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
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
2021-08-23 18:12:23 +02:00
sys-auth/seatd
2021-11-10 11:43:59 +01:00
!gui-libs/wlroots
2021-07-24 03:49:41 +02:00
"
BDEPEND="
dev-util/ctags
dev-util/meson
virtual/pkgconfig
x11-base/xorg-server
"
2021-11-10 11:43:59 +01:00
PATCHES=(
"${FILESDIR}/0001-seat-Don-t-notify-on-key-release.patch"
)
2021-07-24 03:49:41 +02:00
S="${WORKDIR}/${MY_P}"
src_prepare() {
default
rm -r "${S}"/subprojects/wlroots || die "Failed to remove bundled wlroots"
2021-08-22 00:11:27 +02:00
cp -r "${WORKDIR}/${WL_P}" "${S}"/subprojects/wlroots || die "Failed to copy right version of wlroots"
2021-08-23 18:12:23 +02:00
2021-08-22 01:57:12 +02:00
cd "${S}"/subprojects/wlroots
2021-08-23 18:12:23 +02:00
eapply "${FILESDIR}"/xcursor-fix-false-positive-stringop-truncation.diff
2021-08-22 01:57:12 +02:00
2021-07-24 03:49:41 +02:00
}
src_configure() {
local emesonargs=(
-Ddefault_library=shared
-Dtests=false
)
meson_src_configure
}
src_install() {
DESTDIR="${D}" meson_src_install
2021-08-22 02:07:16 +02:00
dobin "${S}"/helpers/scale-to-fit
2021-07-24 03:49:41 +02:00
}
pkg_postinst() {
xdg_pkg_postinst
2021-08-22 02:22:25 +02:00
gnome2_schemas_update
2021-07-24 03:49:41 +02:00
}
pkg_postrm() {
xdg_pkg_postrm
}