diff --git a/x11-wm/phoc/Manifest b/x11-wm/phoc/Manifest index 5c4d37d..a8df586 100644 --- a/x11-wm/phoc/Manifest +++ b/x11-wm/phoc/Manifest @@ -1,2 +1,4 @@ +DIST phoc-v0.11.0.tar.gz 161198 BLAKE2B 1121dead62dc1088043843e3816d11b9ee0231566eccd78add1ed6e75a2d158e8bc844dd4831a05b0a3ff1c5a3d8181c46c3163ba105285a0833b246e50dc386 SHA512 0ed455a9216ec1fb8100cf8422d771c56e37067f8c1a809b1cde0e424d48622780fd0ffd6b164e1217218c56a016e448a23d7acb03559c5b7058d6b359e56e14 DIST phoc-v0.9.0.tar.gz 154836 BLAKE2B c701b1f9384d86d381719320303f9baa0000a0cabaed6d81d359a2f72f0c067da965ba57659c63b65aee32604b2bec65a4e6c8a59c3bbd8433ef3231a139bf3c SHA512 1146bd689a1a2fac60f2b4ea5893bd49c6cb4628cc4a6422a053e3210fed238ab572c28144f262ed5cc2992ebd3870e587a051e2b62f39e2fc146218387a5d89 +DIST wlroots-2fce64d30d378d7009a5770b2472231a0e535ada.tar.gz 506577 BLAKE2B 4ea1bfa90e6b6e00c68ab29c04519876c5fefc229d3affde035cfb4b7355f7119cf2bca3d5337aca297741e4795a22739b3a8d627ffe5fbc37bcf24fa91bc3d2 SHA512 cecf7427bdcb231516d665e47cd2508fabda0ba03b2e0f8f3279197c0403c9d8f07f7a00906179e80e53fe9e0a1a226bda99f94d398ba278803b98b76574a2b4 DIST wlroots-5413b1ec61c6e3390929db595c0ec92f92ea2594.tar.gz 477754 BLAKE2B 6424b3ec038b3cb658ffeeb6302c210f5632fc524017c6de2f33794650b44dcd79d6079bd2799df5e5440f4710c7155fd81e1beedb7694f6b953ec62572dcbd2 SHA512 353532240840ccd11192a807d8d2c3d13ca42cbdaf7366e6a4908a4698d0305910ff152b12fe6839dde72f63b4ea279f47d4268196d34d2ee02f69c9ae9e4e9d diff --git a/x11-wm/phoc/phoc-0.11.0.ebuild b/x11-wm/phoc/phoc-0.11.0.ebuild new file mode 100644 index 0000000..3cde5e1 --- /dev/null +++ b/x11-wm/phoc/phoc-0.11.0.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit meson vala xdg gnome2-utils + +MY_PV="v${PV}" +MY_P="${PN}-${MY_PV}" + +WL_COMMIT="2fce64d30d378d7009a5770b2472231a0e535ada" +WL_P="wlroots-${WL_COMMIT}" + +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 + https://source.puri.sm/Librem5/wlroots/-/archive/${WL_COMMIT}/${WL_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 + sys-auth/seatd + !gui-libs/wlroots +" + +BDEPEND=" + dev-util/ctags + dev-util/meson + virtual/pkgconfig + x11-base/xorg-server +" + +PATCHES=( + "${FILESDIR}/0001-seat-Don-t-notify-on-key-release.patch" +) + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + default + rm -r "${S}"/subprojects/wlroots || die "Failed to remove bundled wlroots" + cp -r "${WORKDIR}/${WL_P}" "${S}"/subprojects/wlroots || die "Failed to copy right version of wlroots" + + cd "${S}"/subprojects/wlroots + eapply "${FILESDIR}"/xcursor-fix-false-positive-stringop-truncation.diff + +} + +src_configure() { + local emesonargs=( + -Ddefault_library=shared + -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 +}