Gentoo Archives: gentoo-commits

From: Florian Schmaus <flow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: x11-wm/phoc/
Date: Wed, 05 Jan 2022 17:14:21
Message-Id: 1641306262.2fb9f55fbe4fd4e859b796b84e56f7b933cb6d10.flow@gentoo
1 commit: 2fb9f55fbe4fd4e859b796b84e56f7b933cb6d10
2 Author: Gerben Jan Dijkman <gjdijkman <AT> gjdwebserver <DOT> nl>
3 AuthorDate: Tue Jan 4 14:24:22 2022 +0000
4 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 4 14:24:22 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2fb9f55f
7
8 x11-wm/phoc: Version Bump
9
10 Package-Manager: Portage-3.0.28, Repoman-3.0.3
11 Signed-off-by: Gerben Jan Dijkman <gjdijkman <AT> gjdwebserver.nl>
12
13 x11-wm/phoc/Manifest | 2 +
14 x11-wm/phoc/phoc-0.11.0.ebuild | 85 ++++++++++++++++++++++++++++++++++++++++++
15 2 files changed, 87 insertions(+)
16
17 diff --git a/x11-wm/phoc/Manifest b/x11-wm/phoc/Manifest
18 index 5c4d37dd2..a8df586db 100644
19 --- a/x11-wm/phoc/Manifest
20 +++ b/x11-wm/phoc/Manifest
21 @@ -1,2 +1,4 @@
22 +DIST phoc-v0.11.0.tar.gz 161198 BLAKE2B 1121dead62dc1088043843e3816d11b9ee0231566eccd78add1ed6e75a2d158e8bc844dd4831a05b0a3ff1c5a3d8181c46c3163ba105285a0833b246e50dc386 SHA512 0ed455a9216ec1fb8100cf8422d771c56e37067f8c1a809b1cde0e424d48622780fd0ffd6b164e1217218c56a016e448a23d7acb03559c5b7058d6b359e56e14
23 DIST phoc-v0.9.0.tar.gz 154836 BLAKE2B c701b1f9384d86d381719320303f9baa0000a0cabaed6d81d359a2f72f0c067da965ba57659c63b65aee32604b2bec65a4e6c8a59c3bbd8433ef3231a139bf3c SHA512 1146bd689a1a2fac60f2b4ea5893bd49c6cb4628cc4a6422a053e3210fed238ab572c28144f262ed5cc2992ebd3870e587a051e2b62f39e2fc146218387a5d89
24 +DIST wlroots-2fce64d30d378d7009a5770b2472231a0e535ada.tar.gz 506577 BLAKE2B 4ea1bfa90e6b6e00c68ab29c04519876c5fefc229d3affde035cfb4b7355f7119cf2bca3d5337aca297741e4795a22739b3a8d627ffe5fbc37bcf24fa91bc3d2 SHA512 cecf7427bdcb231516d665e47cd2508fabda0ba03b2e0f8f3279197c0403c9d8f07f7a00906179e80e53fe9e0a1a226bda99f94d398ba278803b98b76574a2b4
25 DIST wlroots-5413b1ec61c6e3390929db595c0ec92f92ea2594.tar.gz 477754 BLAKE2B 6424b3ec038b3cb658ffeeb6302c210f5632fc524017c6de2f33794650b44dcd79d6079bd2799df5e5440f4710c7155fd81e1beedb7694f6b953ec62572dcbd2 SHA512 353532240840ccd11192a807d8d2c3d13ca42cbdaf7366e6a4908a4698d0305910ff152b12fe6839dde72f63b4ea279f47d4268196d34d2ee02f69c9ae9e4e9d
26
27 diff --git a/x11-wm/phoc/phoc-0.11.0.ebuild b/x11-wm/phoc/phoc-0.11.0.ebuild
28 new file mode 100644
29 index 000000000..bad337bad
30 --- /dev/null
31 +++ b/x11-wm/phoc/phoc-0.11.0.ebuild
32 @@ -0,0 +1,85 @@
33 +# Copyright 1999-2022 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit meson vala xdg gnome2-utils
39 +
40 +MY_PV="v${PV}"
41 +MY_P="${PN}-${MY_PV}"
42 +
43 +WL_COMMIT="2fce64d30d378d7009a5770b2472231a0e535ada"
44 +WL_P="wlroots-${WL_COMMIT}"
45 +
46 +DESCRIPTION="Wlroots based Phone compositor"
47 +HOMEPAGE="https://gitlab.gnome.org/World/Phosh/phoc"
48 +
49 +# we don't use the version on gentoo because it breaks
50 +# the phoc installation. we follow method used in archlinuxarm
51 +SRC_URI="
52 + https://gitlab.gnome.org/World/Phosh/phoc/-/archive/${MY_PV}/${MY_P}.tar.gz
53 + https://source.puri.sm/Librem5/wlroots/-/archive/${WL_COMMIT}/${WL_P}.tar.gz
54 +"
55 +
56 +LICENSE="GPL-3"
57 +SLOT="0"
58 +KEYWORDS="~amd64 ~arm64"
59 +IUSE="+introspection +systemd test"
60 +RESTRICT="!test? ( test )"
61 +
62 +RDEPEND="
63 + dev-libs/glib
64 + dev-libs/gobject-introspection
65 + dev-libs/libinput
66 + dev-libs/wayland
67 + dev-libs/wayland-protocols
68 + gnome-base/gnome-desktop
69 + systemd? (
70 + !sys-apps/openrc
71 + sys-apps/systemd
72 + )
73 + x11-libs/libdrm
74 + x11-libs/pixman
75 + x11-libs/xcb-util
76 + x11-libs/xcb-util-wm
77 + x11-wm/mutter
78 + sys-auth/seatd
79 + !gui-libs/wlroots
80 +"
81 +
82 +BDEPEND="
83 + dev-util/ctags
84 + dev-util/meson
85 + virtual/pkgconfig
86 + x11-base/xorg-server
87 +"
88 +
89 +S="${WORKDIR}/${MY_P}"
90 +
91 +src_prepare() {
92 + default
93 + rm -r "${S}"/subprojects/wlroots || die "Failed to remove bundled wlroots"
94 + cp -r "${WORKDIR}/${WL_P}" "${S}"/subprojects/wlroots || die "Failed to copy right version of wlroots"
95 +}
96 +
97 +src_configure() {
98 + local emesonargs=(
99 + -Ddefault_library=shared
100 + -Dtests=false
101 + )
102 + meson_src_configure
103 +}
104 +
105 +src_install() {
106 + DESTDIR="${D}" meson_src_install
107 + dobin "${S}"/helpers/scale-to-fit
108 +}
109 +
110 +pkg_postinst() {
111 + xdg_pkg_postinst
112 + gnome2_schemas_update
113 +}
114 +
115 +pkg_postrm() {
116 + xdg_pkg_postrm
117 +}