forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Sam James <[email protected]>
- Loading branch information
1 parent
14d074b
commit 5aa7ccf
Showing
2 changed files
with
97 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
DIST wayfire-0.7.1.tar.xz 753104 BLAKE2B e26b5e770fff44ef04a9d832ed404f05d37448c8ecc0be1e976b8bd0866c2716150bc43394fc4d2fbba1854696eaf54f16dabc632b686f236e66313d0d1eaf59 SHA512 c045ed16d2eb24b508f84d6616021638ec139b99618f5cb834f2b3675d1e549a6cc1bc3150dd97965a16a2a23fe54abe34e4671ce345350a7fb4084f13d7e969 | ||
DIST wayfire-0.7.2.tar.xz 753132 BLAKE2B 0873ff9937cdc7cc63af2c2c365c7e3eed9c0784ab0777e88de9aa373316e9bb1c87a10651d8526577e3da32e402e4d8f6db68d32bc4fcf5513f526751f76829 SHA512 e1321605dbae2b9769a54aaacb0e4a4259b1e2ab4304e8a8c1257f7033b2d740b0632053309ecccc75e04f7b6d2bdf6d68dcebad6950fd914c3052b19bc58e24 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
# Copyright 2019-2021 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=7 | ||
|
||
inherit meson | ||
|
||
DESCRIPTION="compiz like 3D wayland compositor" | ||
HOMEPAGE="https://github.com/WayfireWM/wayfire" | ||
|
||
if [[ ${PV} == 9999 ]]; then | ||
inherit git-r3 | ||
EGIT_REPO_URI="https://github.com/WayfireWM/${PN}.git" | ||
else | ||
SRC_URI="https://github.com/WayfireWM/${PN}/releases/download/v${PV}/${P}.tar.xz" | ||
KEYWORDS="~amd64 ~arm64 ~x86" | ||
fi | ||
|
||
LICENSE="MIT" | ||
SLOT="0" | ||
IUSE="+gles +system-wfconfig +system-wlroots X" | ||
|
||
DEPEND=" | ||
dev-libs/libevdev | ||
dev-libs/libinput | ||
gui-libs/gtk-layer-shell | ||
media-libs/glm | ||
media-libs/mesa:=[gles2,wayland,X?] | ||
media-libs/libglvnd[X?] | ||
media-libs/libjpeg-turbo | ||
media-libs/libpng | ||
media-libs/freetype:=[X?] | ||
x11-libs/libdrm | ||
x11-libs/gtk+:3=[wayland,X?] | ||
x11-libs/cairo:=[X?,svg] | ||
x11-libs/libxkbcommon:=[X?] | ||
x11-libs/pixman | ||
X? ( x11-libs/libxcb ) | ||
system-wfconfig? ( | ||
>=gui-libs/wf-config-0.7.1 | ||
<gui-libs/wf-config-0.8.0 | ||
) | ||
!system-wfconfig? ( !gui-libs/wf-config ) | ||
system-wlroots? ( | ||
>=gui-libs/wlroots-0.14.0:=[X?] | ||
<gui-libs/wlroots-0.15.0:= | ||
) | ||
!system-wlroots? ( !gui-libs/wlroots ) | ||
" | ||
|
||
RDEPEND=" | ||
${DEPEND} | ||
x11-misc/xkeyboard-config | ||
" | ||
|
||
BDEPEND=" | ||
dev-libs/wayland-protocols | ||
virtual/pkgconfig | ||
" | ||
|
||
src_configure() { | ||
sed -e "s:@EPREFIX@:${EPREFIX}:" \ | ||
"${FILESDIR}"/wayfire-session > "${T}"/wayfire-session || die | ||
sed -e "s:@EPREFIX@:${EPREFIX}:" \ | ||
"${FILESDIR}"/wayfire-session.desktop > "${T}"/wayfire-session.desktop || die | ||
local emesonargs=( | ||
$(meson_feature system-wfconfig use_system_wfconfig) | ||
$(meson_feature system-wlroots use_system_wlroots) | ||
$(meson_feature X xwayland) | ||
$(meson_use gles enable_gles32) | ||
) | ||
meson_src_configure | ||
} | ||
|
||
src_install() { | ||
meson_src_install | ||
dobin "${T}"/wayfire-session | ||
|
||
insinto "/usr/share/wayland-sessions/" | ||
insopts -m644 | ||
doins wayfire.desktop | ||
doins "${T}"/wayfire-session.desktop | ||
|
||
insinto "/usr/share/wayfire/" | ||
doins wayfire.ini | ||
} | ||
|
||
pkg_postinst() { | ||
if [ -z "${REPLACING_VERSIONS}" ]; then | ||
elog "Wayfire has been installed but the session cannot be used" | ||
elog "until you install a configuration file. The default config" | ||
elog "file is installed at \"/usr/share/wayfire/wayfire.ini\"" | ||
elog "To install the file execute" | ||
elog "\$ cp /usr/share/wayfire.ini ~/.config/wayfire.ini" | ||
fi | ||
} |