commit:     a9c313f286203d14d996219143b6c75c8728d688
Author:     Mattéo Rossillol‑‑Laruelle <beatussum <AT> protonmail <DOT> com>
AuthorDate: Mon Aug  5 19:01:40 2024 +0000
Commit:     Mattéo Rossillol‑‑Laruelle <beatussum <AT> protonmail <DOT> com>
CommitDate: Mon Aug  5 19:02:56 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a9c313f2

gui-apps/wlogout: add 1.2.2, 9999

Signed-off-by: Mattéo Rossillol‑‑Laruelle <beatussum <AT> protonmail.com>

 gui-apps/wlogout/Manifest                          |  1 +
 .../wlogout/files/wlogout-1.2.2-fix-cflags.patch   | 34 +++++++++
 gui-apps/wlogout/metadata.xml                      |  7 +-
 gui-apps/wlogout/wlogout-1.2.2.ebuild              | 83 ++++++++++++++++++++++
 gui-apps/wlogout/wlogout-9999.ebuild               | 83 ++++++++++++++++++++++
 5 files changed, 206 insertions(+), 2 deletions(-)

diff --git a/gui-apps/wlogout/Manifest b/gui-apps/wlogout/Manifest
index 6bbb00db0..260542aed 100644
--- a/gui-apps/wlogout/Manifest
+++ b/gui-apps/wlogout/Manifest
@@ -1 +1,2 @@
 DIST wlogout-1.1.1.tar.gz 540189 BLAKE2B 
44831029c85403f3e9eddca38f6936a1c627c6c78c596d0e5fa867133827ff85f10063fbc9324e9f9b42a1951247cf89d98133b82028d223e33ae1ad76b55c40
 SHA512 
bca5de1c7168a11d418d206276d8715ef0f64e020985872062974f726fd969f78bd631a94d1076039aec20e2e72b4b6de5095da79f58919bfbf7ff2e2fd93ec5
+DIST wlogout-1.2.2.tar.gz 542162 BLAKE2B 
85498f75675a346b52c18ea458a35b9e78e44656b697bdada5431c82ca972cb21435197adad4326432fa91f4c2bf37d70a0f38f03bd6e975e6a364010c1db946
 SHA512 
b95bda6b7ac6aab525e18d0a7d4f24d2bb486567e2392503896921d49ef728f571a28458c88edf2d788539d551c46941006c1248d2052a216b33b63e72448e6f

diff --git a/gui-apps/wlogout/files/wlogout-1.2.2-fix-cflags.patch 
b/gui-apps/wlogout/files/wlogout-1.2.2-fix-cflags.patch
new file mode 100644
index 000000000..cdb199ca2
--- /dev/null
+++ b/gui-apps/wlogout/files/wlogout-1.2.2-fix-cflags.patch
@@ -0,0 +1,34 @@
+From 4ff4b9b13b8aa2a22415e5c03e9d97f7bac6f2c7 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Matt=C3=A9o=20Rossillol=E2=80=91=E2=80=91Laruelle?=
+ <[email protected]>
+Date: Sun, 7 Jul 2024 17:19:06 +0200
+Subject: [PATCH] fix cflags
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+This commit removes the `-Werror` cflag added by meson.build.
+
+See-also: 
https://devmanual.gentoo.org/ebuild-writing/common-mistakes/index.html#-werror-compiler-flag-not-removed
+Signed-off-by: Mattéo Rossillol‑‑Laruelle <[email protected]>
+---
+ meson.build | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/meson.build b/meson.build
+index 7af6fb9..2e35693 100644
+--- a/meson.build
++++ b/meson.build
+@@ -5,8 +5,7 @@ project(
+   license: 'MIT',
+   default_options:
+   [
+-    'c_std=c11',
+-    'werror=true'
++    'c_std=c11'
+   ]
+ )
+ 
+-- 
+2.44.2
+

diff --git a/gui-apps/wlogout/metadata.xml b/gui-apps/wlogout/metadata.xml
index 3d1c8c77d..22dc37931 100644
--- a/gui-apps/wlogout/metadata.xml
+++ b/gui-apps/wlogout/metadata.xml
@@ -7,13 +7,16 @@
        </maintainer>
        <use>
                <flag name="layershell">Enable transparency</flag>
-               <flag name="doc">Install man pages</flag>
                <flag name="bash-completions">Enable completions for bash 
shell</flag>
                <flag name="fish-completions">Enable completions for fish 
shell</flag>
                <flag name="zsh-completions">Enable completions for zsh 
shell</flag>
        </use>
        <upstream>
+               <maintainer status="active">
+                       <name>Haden Collins</name>
+                       <email>[email protected]</email>
+               </maintainer>
+               <bugs-to>https://github.com/ArtsyMacaw/wlogout/issues/</bugs-to>
                <remote-id type="github">ArtsyMacaw/wlogout</remote-id>
-               <bugs-to>https://github.com/ArtsyMacaw/wlogout/issues</bugs-to>
        </upstream>
 </pkgmetadata>

diff --git a/gui-apps/wlogout/wlogout-1.2.2.ebuild 
b/gui-apps/wlogout/wlogout-1.2.2.ebuild
new file mode 100644
index 000000000..42f00e2b1
--- /dev/null
+++ b/gui-apps/wlogout/wlogout-1.2.2.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit meson
+
+DESCRIPTION="A wayland based logout menu"
+HOMEPAGE="https://github.com/ArtsyMacaw/wlogout";
+
+if [[ "${PV}" = 9999 ]]; then
+       inherit git-r3
+
+       EGIT_REPO_URI="https://github.com/ArtsyMacaw/wlogout.git";
+else
+       
SRC_URI="https://github.com/ArtsyMacaw/wlogout/archive/refs/tags/${PV}.tar.gz 
-> ${P}.tar.gz"
+       KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+IUSE="man"
+RESTRICT="test"
+
+DEPEND="
+       app-accessibility/at-spi2-core:2
+       dev-libs/expat
+       dev-libs/fribidi
+       dev-libs/glib:2
+       dev-libs/libffi:=
+       dev-libs/libpcre2:=
+       dev-libs/wayland
+       gui-libs/gtk-layer-shell
+       media-gfx/graphite2
+       media-libs/fontconfig:1.0
+       media-libs/freetype:2
+       media-libs/harfbuzz:=
+       media-libs/libepoxy
+       media-libs/libjpeg-turbo:=
+       media-libs/libpng:=
+       sys-apps/dbus
+       sys-libs/zlib:=
+       x11-libs/cairo
+       x11-libs/gdk-pixbuf:2
+       x11-libs/gtk+:3[wayland]
+       x11-libs/libX11
+       x11-libs/libXau
+       x11-libs/libxcb:=
+       x11-libs/libXcomposite
+       x11-libs/libXcursor
+       x11-libs/libXdamage
+       x11-libs/libXdmcp
+       x11-libs/libXext
+       x11-libs/libXfixes
+       x11-libs/libXi
+       x11-libs/libxkbcommon
+       x11-libs/libXrandr
+       x11-libs/libXrender
+       x11-libs/pango
+       x11-libs/pixman
+"
+
+BDEPEND="
+       virtual/pkgconfig
+       man? ( app-text/scdoc )
+"
+
+RDEPEND="${DEPEND}"
+
+DOCS=(
+       example.png
+       README.md
+)
+
+PATCHES=( "${FILESDIR}/${P}-fix-cflags.patch" )
+
+src_configure() {
+       local emesonargs=(
+               "$(meson_feature man man-pages)"
+       )
+
+       meson_src_configure
+}

diff --git a/gui-apps/wlogout/wlogout-9999.ebuild 
b/gui-apps/wlogout/wlogout-9999.ebuild
new file mode 100644
index 000000000..42f00e2b1
--- /dev/null
+++ b/gui-apps/wlogout/wlogout-9999.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit meson
+
+DESCRIPTION="A wayland based logout menu"
+HOMEPAGE="https://github.com/ArtsyMacaw/wlogout";
+
+if [[ "${PV}" = 9999 ]]; then
+       inherit git-r3
+
+       EGIT_REPO_URI="https://github.com/ArtsyMacaw/wlogout.git";
+else
+       
SRC_URI="https://github.com/ArtsyMacaw/wlogout/archive/refs/tags/${PV}.tar.gz 
-> ${P}.tar.gz"
+       KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+IUSE="man"
+RESTRICT="test"
+
+DEPEND="
+       app-accessibility/at-spi2-core:2
+       dev-libs/expat
+       dev-libs/fribidi
+       dev-libs/glib:2
+       dev-libs/libffi:=
+       dev-libs/libpcre2:=
+       dev-libs/wayland
+       gui-libs/gtk-layer-shell
+       media-gfx/graphite2
+       media-libs/fontconfig:1.0
+       media-libs/freetype:2
+       media-libs/harfbuzz:=
+       media-libs/libepoxy
+       media-libs/libjpeg-turbo:=
+       media-libs/libpng:=
+       sys-apps/dbus
+       sys-libs/zlib:=
+       x11-libs/cairo
+       x11-libs/gdk-pixbuf:2
+       x11-libs/gtk+:3[wayland]
+       x11-libs/libX11
+       x11-libs/libXau
+       x11-libs/libxcb:=
+       x11-libs/libXcomposite
+       x11-libs/libXcursor
+       x11-libs/libXdamage
+       x11-libs/libXdmcp
+       x11-libs/libXext
+       x11-libs/libXfixes
+       x11-libs/libXi
+       x11-libs/libxkbcommon
+       x11-libs/libXrandr
+       x11-libs/libXrender
+       x11-libs/pango
+       x11-libs/pixman
+"
+
+BDEPEND="
+       virtual/pkgconfig
+       man? ( app-text/scdoc )
+"
+
+RDEPEND="${DEPEND}"
+
+DOCS=(
+       example.png
+       README.md
+)
+
+PATCHES=( "${FILESDIR}/${P}-fix-cflags.patch" )
+
+src_configure() {
+       local emesonargs=(
+               "$(meson_feature man man-pages)"
+       )
+
+       meson_src_configure
+}

Reply via email to