Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: gui-wm/wayfire/
Date: Mon, 06 Sep 2021 21:08:52
Message-Id: 1630962506.5aa7ccf7f654e6190c1b2c20a729c5f458f1ee97.sam@gentoo
1 commit: 5aa7ccf7f654e6190c1b2c20a729c5f458f1ee97
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 6 19:34:47 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 6 21:08:26 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5aa7ccf7
7
8 gui-wm/wayfire: add 0.7.2
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 gui-wm/wayfire/Manifest | 1 +
13 gui-wm/wayfire/wayfire-0.7.2.ebuild | 96 +++++++++++++++++++++++++++++++++++++
14 2 files changed, 97 insertions(+)
15
16 diff --git a/gui-wm/wayfire/Manifest b/gui-wm/wayfire/Manifest
17 index 5454f153084..e4b06b94642 100644
18 --- a/gui-wm/wayfire/Manifest
19 +++ b/gui-wm/wayfire/Manifest
20 @@ -1 +1,2 @@
21 DIST wayfire-0.7.1.tar.xz 753104 BLAKE2B e26b5e770fff44ef04a9d832ed404f05d37448c8ecc0be1e976b8bd0866c2716150bc43394fc4d2fbba1854696eaf54f16dabc632b686f236e66313d0d1eaf59 SHA512 c045ed16d2eb24b508f84d6616021638ec139b99618f5cb834f2b3675d1e549a6cc1bc3150dd97965a16a2a23fe54abe34e4671ce345350a7fb4084f13d7e969
22 +DIST wayfire-0.7.2.tar.xz 753132 BLAKE2B 0873ff9937cdc7cc63af2c2c365c7e3eed9c0784ab0777e88de9aa373316e9bb1c87a10651d8526577e3da32e402e4d8f6db68d32bc4fcf5513f526751f76829 SHA512 e1321605dbae2b9769a54aaacb0e4a4259b1e2ab4304e8a8c1257f7033b2d740b0632053309ecccc75e04f7b6d2bdf6d68dcebad6950fd914c3052b19bc58e24
23
24 diff --git a/gui-wm/wayfire/wayfire-0.7.2.ebuild b/gui-wm/wayfire/wayfire-0.7.2.ebuild
25 new file mode 100644
26 index 00000000000..b707ccebc23
27 --- /dev/null
28 +++ b/gui-wm/wayfire/wayfire-0.7.2.ebuild
29 @@ -0,0 +1,96 @@
30 +# Copyright 2019-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +inherit meson
36 +
37 +DESCRIPTION="compiz like 3D wayland compositor"
38 +HOMEPAGE="https://github.com/WayfireWM/wayfire"
39 +
40 +if [[ ${PV} == 9999 ]]; then
41 + inherit git-r3
42 + EGIT_REPO_URI="https://github.com/WayfireWM/${PN}.git"
43 +else
44 + SRC_URI="https://github.com/WayfireWM/${PN}/releases/download/v${PV}/${P}.tar.xz"
45 + KEYWORDS="~amd64 ~arm64 ~x86"
46 +fi
47 +
48 +LICENSE="MIT"
49 +SLOT="0"
50 +IUSE="+gles +system-wfconfig +system-wlroots X"
51 +
52 +DEPEND="
53 + dev-libs/libevdev
54 + dev-libs/libinput
55 + gui-libs/gtk-layer-shell
56 + media-libs/glm
57 + media-libs/mesa:=[gles2,wayland,X?]
58 + media-libs/libglvnd[X?]
59 + media-libs/libjpeg-turbo
60 + media-libs/libpng
61 + media-libs/freetype:=[X?]
62 + x11-libs/libdrm
63 + x11-libs/gtk+:3=[wayland,X?]
64 + x11-libs/cairo:=[X?,svg]
65 + x11-libs/libxkbcommon:=[X?]
66 + x11-libs/pixman
67 + X? ( x11-libs/libxcb )
68 + system-wfconfig? (
69 + >=gui-libs/wf-config-0.7.1
70 + <gui-libs/wf-config-0.8.0
71 + )
72 + !system-wfconfig? ( !gui-libs/wf-config )
73 + system-wlroots? (
74 + >=gui-libs/wlroots-0.14.0:=[X?]
75 + <gui-libs/wlroots-0.15.0:=
76 + )
77 + !system-wlroots? ( !gui-libs/wlroots )
78 +"
79 +
80 +RDEPEND="
81 + ${DEPEND}
82 + x11-misc/xkeyboard-config
83 +"
84 +
85 +BDEPEND="
86 + dev-libs/wayland-protocols
87 + virtual/pkgconfig
88 +"
89 +
90 +src_configure() {
91 + sed -e "s:@EPREFIX@:${EPREFIX}:" \
92 + "${FILESDIR}"/wayfire-session > "${T}"/wayfire-session || die
93 + sed -e "s:@EPREFIX@:${EPREFIX}:" \
94 + "${FILESDIR}"/wayfire-session.desktop > "${T}"/wayfire-session.desktop || die
95 + local emesonargs=(
96 + $(meson_feature system-wfconfig use_system_wfconfig)
97 + $(meson_feature system-wlroots use_system_wlroots)
98 + $(meson_feature X xwayland)
99 + $(meson_use gles enable_gles32)
100 + )
101 + meson_src_configure
102 +}
103 +
104 +src_install() {
105 + meson_src_install
106 + dobin "${T}"/wayfire-session
107 +
108 + insinto "/usr/share/wayland-sessions/"
109 + insopts -m644
110 + doins wayfire.desktop
111 + doins "${T}"/wayfire-session.desktop
112 +
113 + insinto "/usr/share/wayfire/"
114 + doins wayfire.ini
115 +}
116 +
117 +pkg_postinst() {
118 + if [ -z "${REPLACING_VERSIONS}" ]; then
119 + elog "Wayfire has been installed but the session cannot be used"
120 + elog "until you install a configuration file. The default config"
121 + elog "file is installed at \"/usr/share/wayfire/wayfire.ini\""
122 + elog "To install the file execute"
123 + elog "\$ cp /usr/share/wayfire.ini ~/.config/wayfire.ini"
124 + fi
125 +}