commit:     52df57a4f1e92549962c503693ce9a8b40588603
Author:     Aliaksei Urbanski <aliaksei.urbanski <AT> gmail <DOT> com>
AuthorDate: Mon Feb  5 22:44:04 2024 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Wed Feb  7 10:01:25 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=52df57a4

gui-apps/wf-recorder: add 0.4.1

Corresponding release:
  - https://github.com/ammen99/wf-recorder/releases/tag/v0.4.1

These changes also add the pulseaudio USE flag.

Closes: https://bugs.gentoo.org/871684
Signed-off-by: Aliaksei Urbanski <aliaksei.urbanski <AT> gmail.com>
Co-authored-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/35161
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 gui-apps/wf-recorder/Manifest                             |  1 +
 gui-apps/wf-recorder/metadata.xml                         |  3 +++
 .../{wf-recorder-9999.ebuild => wf-recorder-0.4.1.ebuild} | 15 ++++++++++++---
 gui-apps/wf-recorder/wf-recorder-9999.ebuild              | 15 ++++++++++++---
 4 files changed, 28 insertions(+), 6 deletions(-)

diff --git a/gui-apps/wf-recorder/Manifest b/gui-apps/wf-recorder/Manifest
index 4a8da3a7e14b..6a86d06fdba2 100644
--- a/gui-apps/wf-recorder/Manifest
+++ b/gui-apps/wf-recorder/Manifest
@@ -1 +1,2 @@
 DIST wf-recorder-0.3.0.tar.xz 19888 BLAKE2B 
52b7cbe8ad77d3756f91cad0c0642548b439f3465be8152d9cc1175f55d608df8bbd9f21e82b18099fba59d39389012e023e7dc39a0ae061eed13aece99c058a
 SHA512 
6c8a069c923a342441ab5ebce2cf8ec727b75f474c2843d0fa49b69b3e5ef4498bc0548573409203e704a84a72ebec5523f89459a144679bf1d9d5bf6e514b60
+DIST wf-recorder-0.4.1.tar.xz 26184 BLAKE2B 
87110d3fb8629b5cdfc2c4b50da56d19630b97ffb7e46a555099c8fca263bd1bd87fb03a497fbb5e5ac0022b31bb5c93dc4ea29785de33dd7f2adc8db74f7db2
 SHA512 
c97b3a0570aa5496d93b88549db6cd682e80c1497bbd6e999ab6b35f2f13adc7af167c22517fa35eab5d3021439001d0e7cfe2ee75a2ba99b9aa6953beb56aa0

diff --git a/gui-apps/wf-recorder/metadata.xml 
b/gui-apps/wf-recorder/metadata.xml
index fdda02a176cb..c918bd848a21 100644
--- a/gui-apps/wf-recorder/metadata.xml
+++ b/gui-apps/wf-recorder/metadata.xml
@@ -5,4 +5,7 @@
        <upstream>
                <remote-id type="github">ammen99/wf-recorder</remote-id>
        </upstream>
+       <use>
+               <flag name="pulseaudio">Enable support for audio capture via 
PulseAudio</flag>
+       </use>
 </pkgmetadata>

diff --git a/gui-apps/wf-recorder/wf-recorder-9999.ebuild 
b/gui-apps/wf-recorder/wf-recorder-0.4.1.ebuild
similarity index 69%
copy from gui-apps/wf-recorder/wf-recorder-9999.ebuild
copy to gui-apps/wf-recorder/wf-recorder-0.4.1.ebuild
index fd58d11409c9..3a7ded597607 100644
--- a/gui-apps/wf-recorder/wf-recorder-9999.ebuild
+++ b/gui-apps/wf-recorder/wf-recorder-0.4.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2020-2023 Gentoo Authors
+# Copyright 2020-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -18,11 +18,13 @@ fi
 
 LICENSE="MIT"
 SLOT="0"
+IUSE="pulseaudio"
 
 DEPEND="
        dev-libs/wayland
-       media-libs/libpulse
-       media-video/ffmpeg[pulseaudio,x264]
+       media-libs/mesa[wayland]
+       media-video/ffmpeg[pulseaudio?,x264]
+       pulseaudio? ( media-libs/libpulse )
 "
 RDEPEND="${DEPEND}"
 BDEPEND="
@@ -30,3 +32,10 @@ BDEPEND="
        dev-util/wayland-scanner
        virtual/pkgconfig
 "
+
+src_configure() {
+       local emesonargs=(
+               $(meson_feature pulseaudio pulse)
+       )
+       meson_src_configure
+}

diff --git a/gui-apps/wf-recorder/wf-recorder-9999.ebuild 
b/gui-apps/wf-recorder/wf-recorder-9999.ebuild
index fd58d11409c9..3a7ded597607 100644
--- a/gui-apps/wf-recorder/wf-recorder-9999.ebuild
+++ b/gui-apps/wf-recorder/wf-recorder-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2020-2023 Gentoo Authors
+# Copyright 2020-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -18,11 +18,13 @@ fi
 
 LICENSE="MIT"
 SLOT="0"
+IUSE="pulseaudio"
 
 DEPEND="
        dev-libs/wayland
-       media-libs/libpulse
-       media-video/ffmpeg[pulseaudio,x264]
+       media-libs/mesa[wayland]
+       media-video/ffmpeg[pulseaudio?,x264]
+       pulseaudio? ( media-libs/libpulse )
 "
 RDEPEND="${DEPEND}"
 BDEPEND="
@@ -30,3 +32,10 @@ BDEPEND="
        dev-util/wayland-scanner
        virtual/pkgconfig
 "
+
+src_configure() {
+       local emesonargs=(
+               $(meson_feature pulseaudio pulse)
+       )
+       meson_src_configure
+}

Reply via email to