diff options
author | Martin Väth <martin@mvath.de> | 2022-05-26 14:20:21 +0200 |
---|---|---|
committer | Martin Väth <martin@mvath.de> | 2022-05-26 14:20:21 +0200 |
commit | 0713ee62fd9c9dc307f2ada15a1db41bd1990ca0 (patch) | |
tree | 2bc95e13630f681ed488b2926b43e9fda8a16f89 /gui-wm | |
parent | app-arch/archwrap: Version bump (diff) | |
download | mv-0713ee62fd9c9dc307f2ada15a1db41bd1990ca0.tar.gz mv-0713ee62fd9c9dc307f2ada15a1db41bd1990ca0.tar.bz2 mv-0713ee62fd9c9dc307f2ada15a1db41bd1990ca0.zip |
gui-wm/wayfire: Add to bump to 0.7.3
Signed-off-by: Martin Väth <martin@mvath.de>
Diffstat (limited to 'gui-wm')
-rw-r--r-- | gui-wm/wayfire/Manifest | 1 | ||||
-rw-r--r-- | gui-wm/wayfire/files/wayfire-session | 17 | ||||
-rw-r--r-- | gui-wm/wayfire/files/wayfire-session.desktop | 7 | ||||
-rw-r--r-- | gui-wm/wayfire/metadata.xml | 15 | ||||
-rw-r--r-- | gui-wm/wayfire/wayfire-0.7.3.ebuild | 105 |
5 files changed, 145 insertions, 0 deletions
diff --git a/gui-wm/wayfire/Manifest b/gui-wm/wayfire/Manifest new file mode 100644 index 00000000..90f60019 --- /dev/null +++ b/gui-wm/wayfire/Manifest @@ -0,0 +1 @@ +DIST wayfire-0.7.3.tar.xz 765524 BLAKE2B b82c66796d7fb3d07c7bd9078755b7c38df1bd5c93daa659fc98b1182679bc0a06a24b322c6ab492d06d30c898659e2ba849c1d5944260e8775a04fd8a5bd078 SHA512 7bb5b8492a632a9816e847ec72def74dc234bcc30da7c320a0cd3b1d60492f5521ad8ac76a12ef967d1b114bcde9be72eb8ffc618977aed8e198d4ace1e7056e diff --git a/gui-wm/wayfire/files/wayfire-session b/gui-wm/wayfire/files/wayfire-session new file mode 100644 index 00000000..8267ea0e --- /dev/null +++ b/gui-wm/wayfire/files/wayfire-session @@ -0,0 +1,17 @@ +#!/bin/bash + +# output to syslog and stderr +# with PID and syslog identity 'wayfire' +exec 1> >(logger --id=$$ --stderr --tag wayfire) 2>&1 + +# if undefined, or empty, set to freedesktop specification defaults +[ -z "$XDG_DATA_DIRS" ] && export XDG_DATA_DIRS="/usr/local/share:/usr/share" + +# freedesktop specifications mandate that the definition +# of XDG_SESSION_TYPE should be respected +export XDG_SESSION_TYPE=wayland +export GDK_BACKEND=wayland +export QT_QPA_PLATFORM=wayland +export MOZ_ENABLE_WAYLAND=1 + +exec @EPREFIX@/usr/bin/wayfire "$@" diff --git a/gui-wm/wayfire/files/wayfire-session.desktop b/gui-wm/wayfire/files/wayfire-session.desktop new file mode 100644 index 00000000..1088c4e0 --- /dev/null +++ b/gui-wm/wayfire/files/wayfire-session.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Name=Wayfire Session +Comment=wayfire session with proper env vars +Exec=@EPREFIX@/usr/bin/wayfire-session $* +TryExec=@EPREFIX@/usr/bin/wayfire-session +Type=Application +DesktopNames=Wayfire diff --git a/gui-wm/wayfire/metadata.xml b/gui-wm/wayfire/metadata.xml new file mode 100644 index 00000000..ea9f40a8 --- /dev/null +++ b/gui-wm/wayfire/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <longdescription> + compiz like eye-candy 3D wayland, with low memory footprint. + Aims to bring desktop features such as 3D cube, fire burn, + fisheye, wrot and all other desktop effects to wayland. + </longdescription> + <!-- maintainer-needed --> + <use> + <flag name="gles">use libglvnd to do animations more efficiently</flag> + <flag name="system-wfconfig">use the system-wide wf-config, else build it as a submodule. DO NOT DISABLE UNLESS YOU KNOW WHAT YOU ARE DOING.</flag> + <flag name="system-wlroots">use the system wide wlroots, else build it as a submodule. DO NOT DISABLE UNLESS YOU KNOW WHAT YOU ARE DOING.</flag> + </use> +</pkgmetadata> diff --git a/gui-wm/wayfire/wayfire-0.7.3.ebuild b/gui-wm/wayfire/wayfire-0.7.3.ebuild new file mode 100644 index 00000000..e0da5093 --- /dev/null +++ b/gui-wm/wayfire/wayfire-0.7.3.ebuild @@ -0,0 +1,105 @@ +# Copyright 2019-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +RESTRICT="mirror" +inherit meson toolchain-funcs + +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 ~riscv ~x86" +fi + +LICENSE="MIT" +SLOT="0" +IUSE="debug +gles +system-wfconfig +system-wlroots X" + +DEPEND=" + dev-libs/libevdev + dev-libs/libinput + dev-libs/wayland + 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-base/xwayland + 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.15.0:=[X?] + ) + !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) + $(usex debug --buildtype=debug "") + $(usex debug -Db_sanitize=address,undefined "") + ) + + # Clang will fail to link without this + tc-is-clang && emesonargs+=( $(usex debug -Db_lundef=false "") ) + + 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/wayfire.ini ~/.config/wayfire.ini" + fi +} |