Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/easyeffects/files/, media-sound/easyeffects/
Date: Sun, 18 Jul 2021 00:32:04
Message-Id: 1626568302.f2a1687a2fabdb008fbb1366a9b31ed11d44637e.marecki@gentoo
1 commit: f2a1687a2fabdb008fbb1366a9b31ed11d44637e
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 18 00:15:37 2021 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 18 00:31:42 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f2a1687a
7
8 media-sound/easyeffects: improve dependencies and tweak metadata
9
10 Same thing as recent media-sound/pulseeffects changes. Had to drop the
11 ppc32 keyword due to gnome-extra/yelp, will request re-keywording.
12
13 Closes: https://bugs.gentoo.org/800713
14 Closes: https://bugs.gentoo.org/802528
15 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
16
17 .../easyeffects/easyeffects-5.0.4-r1.ebuild | 83 ++++++++++++++++++++++
18 .../easyeffects-5.0.4-meson_no_automagic.patch | 55 ++++++++++++++
19 media-sound/easyeffects/metadata.xml | 10 ++-
20 3 files changed, 145 insertions(+), 3 deletions(-)
21
22 diff --git a/media-sound/easyeffects/easyeffects-5.0.4-r1.ebuild b/media-sound/easyeffects/easyeffects-5.0.4-r1.ebuild
23 new file mode 100644
24 index 00000000000..2b949438898
25 --- /dev/null
26 +++ b/media-sound/easyeffects/easyeffects-5.0.4-r1.ebuild
27 @@ -0,0 +1,83 @@
28 +# Copyright 1999-2021 Gentoo Authors
29 +# Distributed under the terms of the GNU General Public License v2
30 +
31 +EAPI=7
32 +
33 +inherit gnome2-utils meson
34 +
35 +DESCRIPTION="Limiter, auto volume and many other plugins for PipeWire applications"
36 +HOMEPAGE="https://github.com/wwmm/easyeffects/tree/pipewire-gstreamer-legacy"
37 +
38 +if [[ ${PV} == *9999 ]]; then
39 + inherit git-r3
40 + EGIT_REPO_URI="https://github.com/wwmm/easyeffects"
41 + EGIT_BRANCH="pipewire-gstreamer-legacy"
42 +else
43 + SRC_URI="https://github.com/wwmm/easyeffects/archive/v${PV}.tar.gz -> ${P}.tar.gz"
44 + KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
45 +fi
46 +
47 +LICENSE="GPL-3"
48 +SLOT="0"
49 +IUSE="bs2b calf rnnoise rubberband webrtc"
50 +
51 +DEPEND=">=dev-libs/boost-1.72:=
52 + >=dev-cpp/glibmm-2.56.0:2
53 + >=dev-cpp/gtkmm-3.24:3.0
54 + >=dev-libs/glib-2.56:2
55 + >=dev-libs/libsigc++-2.10:2
56 + >=media-libs/gstreamer-1.12.5:1.0
57 + media-libs/gst-plugins-base
58 + >=media-libs/gst-plugins-bad-1.12.5:1.0
59 + media-libs/libebur128
60 + media-libs/libsndfile
61 + >=media-libs/lilv-0.24.2-r1
62 + >=media-libs/zita-convolver-3.0.0
63 + >=media-video/pipewire-0.3.24[gstreamer]
64 + >=x11-libs/gtk+-3.20:3
65 + bs2b? ( >=media-plugins/gst-plugins-bs2b-1.12.5:1.0 )
66 + rnnoise? ( media-libs/rnnoise )"
67 +RDEPEND="!media-sound/pulseeffects
68 + ${DEPEND}
69 + gnome-extra/yelp
70 + >=media-libs/gst-plugins-good-1.12.5:1.0
71 + >=media-libs/lsp-plugins-1.1.24[lv2]
72 + >=media-plugins/gst-plugins-ladspa-1.12.5:1.0
73 + >=media-plugins/gst-plugins-lv2-1.12.5:1.0
74 + >=media-plugins/gst-plugins-pulse-1.12.5:1.0
75 + sys-apps/dbus
76 + calf? ( >=media-plugins/calf-0.90.1[lv2] )
77 + rubberband? ( media-libs/rubberband[ladspa] )
78 + webrtc? ( media-plugins/gst-plugins-webrtc )"
79 +# Only header files are used from libsamplerate so put it here rather than DEPEND
80 +# to avoid unnecessary cross-compilation.
81 +BDEPEND="dev-libs/appstream-glib
82 + dev-util/desktop-file-utils
83 + dev-util/itstool
84 + media-libs/libsamplerate
85 + sys-devel/gettext
86 + virtual/pkgconfig"
87 +
88 +PATCHES=(
89 + "${FILESDIR}"/${PN}-5.0.4-meson_no_automagic.patch
90 +)
91 +
92 +src_configure() {
93 + local emesonargs=(
94 + $(meson_feature bs2b)
95 + $(meson_feature rnnoise)
96 + )
97 + meson_src_configure
98 +}
99 +
100 +pkg_postinst() {
101 + gnome2_gconf_install
102 + gnome2_schemas_update
103 + xdg_icon_cache_update
104 +}
105 +
106 +pkg_postrm() {
107 + gnome2_gconf_uninstall
108 + gnome2_schemas_update
109 + xdg_icon_cache_update
110 +}
111
112 diff --git a/media-sound/easyeffects/files/easyeffects-5.0.4-meson_no_automagic.patch b/media-sound/easyeffects/files/easyeffects-5.0.4-meson_no_automagic.patch
113 new file mode 100644
114 index 00000000000..4e547d404f8
115 --- /dev/null
116 +++ b/media-sound/easyeffects/files/easyeffects-5.0.4-meson_no_automagic.patch
117 @@ -0,0 +1,55 @@
118 +--- a/meson.build
119 ++++ b/meson.build
120 +@@ -4,7 +4,7 @@
121 + 'cpp',
122 + default_options : ['cpp_std=c++17','buildtype=debugoptimized'],
123 + version: '5.0.4',
124 +- meson_version: '>= 0.40.0'
125 ++ meson_version: '>= 0.47.0'
126 + )
127 +
128 + add_global_arguments('-DG_LOG_DOMAIN="pulseeffects"', language : 'c')
129 +--- a/meson_options.txt
130 ++++ b/meson_options.txt
131 +@@ -0,0 +1,12 @@
132 ++option(
133 ++ 'bs2b',
134 ++ type: 'feature',
135 ++ value: 'auto',
136 ++ description: 'Enable bs2b-based Crossfeed plug-in for improving headphone listening of stereo audio records'
137 ++)
138 ++option(
139 ++ 'rnnoise',
140 ++ type: 'feature',
141 ++ value: 'auto',
142 ++ description: 'Enable rnnoise-based Noise Reduction plug-in'
143 ++)
144 +--- a/src/meson.build
145 ++++ b/src/meson.build
146 +@@ -108,7 +108,7 @@
147 + dependency('gstreamer-plugins-bad-1.0', version: '>=1.12.5'),
148 + dependency('gstreamer-fft-1.0'),
149 + dependency('lilv-0', version: '>=0.22', required: false),
150 +- dependency('libbs2b', required: false),
151 ++ dependency('libbs2b', required: get_option('bs2b')),
152 + dependency('boost', version: '>=1.72', modules:['filesystem']),
153 + dependency('sndfile'),
154 + dependency('threads')
155 +--- a/src/rnnoise/meson.build
156 ++++ b/src/rnnoise/meson.build
157 +@@ -1,4 +1,5 @@
158 +-dep_rnnoise = dependency('rnnoise', required: false)
159 ++opt_rnnoise = get_option('rnnoise')
160 ++dep_rnnoise = dependency('rnnoise', required: opt_rnnoise)
161 +
162 + if dep_rnnoise.found()
163 +
164 +@@ -28,7 +29,7 @@
165 + cpp_args: plugins_cxx_args
166 + )
167 +
168 +-else
169 ++elif opt_rnnoise.auto()
170 +
171 + message('could not find the RNNoise library')
172 +
173
174 diff --git a/media-sound/easyeffects/metadata.xml b/media-sound/easyeffects/metadata.xml
175 index e4010fa254c..67cca67386d 100644
176 --- a/media-sound/easyeffects/metadata.xml
177 +++ b/media-sound/easyeffects/metadata.xml
178 @@ -10,9 +10,13 @@
179 <name>Matthew Thode</name>
180 </maintainer>
181 <use>
182 - <flag name="bs2b">Enable use of media-libs/libbs2b</flag>
183 - <flag name="calf">Enable use of media-plugins/calf for adding various FX</flag>
184 - <flag name="rubberband">Enable usse of media-libs/rubberband for the pitch shifting FX</flag>
185 + <flag name="bs2b">Enable use of <pkg>media-libs/libbs2b</pkg> for the crossfeed FX</flag>
186 + <flag name="calf">Enable use of <pkg>media-plugins/calf</pkg> for adding various FX</flag>
187 + <flag name="rnnoise">Enable use of <pkg>media-libs/rnnoise</pkg> for the neural network-based
188 + noise-reduction FX</flag>
189 + <flag name="rubberband">Enable use of <pkg>media-libs/rubberband</pkg> for the pitch-shifting FX</flag>
190 + <flag name="webrtc">Enable use of <pkg>media-plugins/gst-plugins-webrtc</pkg> for various
191 + voice-enhancement FX</flag>
192 </use>
193 <upstream>
194 <remote-id type="github">wwmm/easyeffects</remote-id>