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 | |
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>
-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 | ||||
-rw-r--r-- | metadata/pkg_desc_index | 1 | ||||
-rw-r--r-- | profiles/use.local.desc | 3 |
7 files changed, 149 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 +} diff --git a/metadata/pkg_desc_index b/metadata/pkg_desc_index index d7562007..4a00e0c5 100644 --- a/metadata/pkg_desc_index +++ b/metadata/pkg_desc_index @@ -71,6 +71,7 @@ games-engines/freesci 0.6.4-r2: Sierra script interpreter for your old Sierra ad games-rpg/aklabeth 1.0-r1: A remake of Richard C. Garriott's Ultima prequel games-rpg/dsa-stats 1.1: calculate stat probabalities for the role playing game DSA - Das schwarze Auge games-rpg/m5figur-mv 4.2.2: LaTeX2e character sheet layout for the Midgard Role Playing Game (Edition M5) +gui-wm/wayfire 0.7.3: compiz like 3D wayland compositor media-gfx/ipe 7.2.24: Drawing editor for creating figures in PDF or PS formats media-gfx/libspiro 20200505-r1: A spline computation library media-gfx/pqiv 2.11: powerful GTK based command-line image viewer with a minimal UI diff --git a/profiles/use.local.desc b/profiles/use.local.desc index 1babe6ef..fc400308 100644 --- a/profiles/use.local.desc +++ b/profiles/use.local.desc @@ -106,6 +106,9 @@ games-emulation/xmame:net - Add network support games-emulation/xmess:bundled-libs - Use bundled version of dev-libs/expat games-emulation/xmess:net - Add network support games-rpg/m5figur-mv:examples - Compile example character sheet as PDF +gui-wm/wayfire:gles - use libglvnd to do animations more efficiently +gui-wm/wayfire:system-wfconfig - use the system-wide wf-config, else build it as a submodule. DO NOT DISABLE UNLESS YOU KNOW WHAT YOU ARE DOING. +gui-wm/wayfire:system-wlroots - use the system wide wlroots, else build it as a submodule. DO NOT DISABLE UNLESS YOU KNOW WHAT YOU ARE DOING. media-gfx/pqiv:archive - Enable support for images in archives and cbX comic book files media-gfx/pqiv:gtk2 - Use gtk:2 instead of gtk:3 media-libs/avidemux-core:nvenc - Adds support for NVIDIA Encoder (NVENC) API for hardware accelerated encoding on NVIDIA cards. |