diff options
author | Marek Szuba <marecki@gentoo.org> | 2022-04-25 22:59:24 +0100 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2022-04-25 23:57:10 +0100 |
commit | 96c46518c21e26fa1865cae9762f204f3649a8e2 (patch) | |
tree | b07d71af12d04fae198ed607bdeb4930c70cae6b /media-sound | |
parent | dev-libs/cJSON: remove whitespace in DESCRIPTION (diff) | |
download | gentoo-96c46518c21e26fa1865cae9762f204f3649a8e2.tar.gz gentoo-96c46518c21e26fa1865cae9762f204f3649a8e2.tar.bz2 gentoo-96c46518c21e26fa1865cae9762f204f3649a8e2.zip |
media-sound/pulseeffects: add 4.8.6
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'media-sound')
-rw-r--r-- | media-sound/pulseeffects/Manifest | 1 | ||||
-rw-r--r-- | media-sound/pulseeffects/files/pulseeffects-4.8.6-meson_no_automagic.patch | 55 | ||||
-rw-r--r-- | media-sound/pulseeffects/pulseeffects-4.8.6.ebuild | 86 |
3 files changed, 142 insertions, 0 deletions
diff --git a/media-sound/pulseeffects/Manifest b/media-sound/pulseeffects/Manifest index ce776eacd72a..bec4c1ae85c0 100644 --- a/media-sound/pulseeffects/Manifest +++ b/media-sound/pulseeffects/Manifest @@ -1 +1,2 @@ DIST pulseeffects-4.8.5.tar.gz 2028531 BLAKE2B 0ba68c90d4eb25e3b22c4f39f989bef428c970f0dcfa0b301c500928f835d76c31cd1d7692d1a853b3121d4e8fbee8102c1f538b06cb15933509719a6da5d8a0 SHA512 b72f4d5356af1308d997f01ac2efc5eefb569e9a1253f0a19918aec5f9c2d386ab5c293a5aa6a28e8d15200289f32d34c8f3d524bc50874c750afdee61bc0820 +DIST pulseeffects-4.8.6.tar.gz 2028485 BLAKE2B bf50c72773670ec9b8fd1f21b927b23f6656a2de6c86fc0b68a8fb199a2c949146d1c550f6ce291ca713edb5d0f2a034cf5cae6f3d266c4ef0f541c5f247e422 SHA512 37ad97e7234e9dae0f3be910b35b2dfed94f593c39e59b9977e31c95108e7edede4104cc5fe32292e617f119898c4bad4e9fd5afdfb9aaaa134f5cb78fc5fa0f diff --git a/media-sound/pulseeffects/files/pulseeffects-4.8.6-meson_no_automagic.patch b/media-sound/pulseeffects/files/pulseeffects-4.8.6-meson_no_automagic.patch new file mode 100644 index 000000000000..0288fab2987d --- /dev/null +++ b/media-sound/pulseeffects/files/pulseeffects-4.8.6-meson_no_automagic.patch @@ -0,0 +1,55 @@ +--- a/meson.build ++++ b/meson.build +@@ -4,7 +4,7 @@ + 'cpp', + default_options : ['cpp_std=c++17','buildtype=debugoptimized'], + version: '4.8.6', +- meson_version: '>= 0.40.0' ++ meson_version: '>= 0.47.0' + ) + + add_global_arguments('-DG_LOG_DOMAIN="pulseeffects"', language : 'c') +--- a/meson_options.txt ++++ b/meson_options.txt +@@ -0,0 +1,12 @@ ++option( ++ 'bs2b', ++ type: 'feature', ++ value: 'auto', ++ description: 'Enable bs2b-based Crossfeed plug-in for improving headphone listening of stereo audio records' ++) ++option( ++ 'rnnoise', ++ type: 'feature', ++ value: 'auto', ++ description: 'Enable rnnoise-based Noise Reduction plug-in' ++) +--- a/src/meson.build ++++ b/src/meson.build +@@ -108,7 +108,7 @@ + dependency('gstreamer-plugins-bad-1.0', version: '>=1.12.5'), + dependency('gstreamer-fft-1.0'), + dependency('lilv-0', version: '>=0.22', required: false), +- dependency('libbs2b', required: false), ++ dependency('libbs2b', required: get_option('bs2b')), + dependency('boost', version: '>=1.72', modules:['system','filesystem']), + dependency('sndfile'), + dependency('threads') +--- a/src/rnnoise/meson.build ++++ b/src/rnnoise/meson.build +@@ -1,4 +1,5 @@ +-dep_rnnoise = dependency('rnnoise', required: false) ++opt_rnnoise = get_option('rnnoise') ++dep_rnnoise = dependency('rnnoise', required: opt_rnnoise) + + if dep_rnnoise.found() + +@@ -28,7 +29,7 @@ + cpp_args: plugins_cxx_args + ) + +-else ++elif opt_rnnoise.auto() + + message('could not find the RNNoise library') + diff --git a/media-sound/pulseeffects/pulseeffects-4.8.6.ebuild b/media-sound/pulseeffects/pulseeffects-4.8.6.ebuild new file mode 100644 index 000000000000..bf1d9aac8112 --- /dev/null +++ b/media-sound/pulseeffects/pulseeffects-4.8.6.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit gnome2-utils meson + +DESCRIPTION="Limiter, compressor, reverberation, equalizer auto volume effects for Pulseaudio" +HOMEPAGE="https://github.com/wwmm/easyeffects/tree/pulseaudio-legacy" + +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/wwmm/easyeffects" + EGIT_BRANCH="pulseaudio-legacy" +else + SRC_URI="https://github.com/wwmm/easyeffects/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="GPL-3" +SLOT="0" +IUSE="bs2b calf +doc rnnoise rubberband webrtc zamaudio" + +DEPEND=">=dev-libs/boost-1.72:= + >=dev-cpp/glibmm-2.56.0:2 + >=dev-cpp/gtkmm-3.24:3.0 + >=dev-libs/glib-2.56:2 + >=dev-libs/libsigc++-2.10:2 + >=media-libs/gstreamer-1.12.5:1.0 + media-libs/gst-plugins-base + >=media-libs/gst-plugins-bad-1.12.5:1.0 + media-libs/libebur128 + media-libs/libsndfile + >=media-libs/lilv-0.24.2-r1 + >=media-libs/zita-convolver-3.0.0 + media-sound/pulseaudio + >=x11-libs/gtk+-3.20:3 + bs2b? ( >=media-plugins/gst-plugins-bs2b-1.12.5:1.0 ) + rnnoise? ( media-libs/rnnoise )" +RDEPEND="!media-sound/easyeffects + ${DEPEND} + >=media-libs/gst-plugins-good-1.12.5:1.0 + >=media-libs/lsp-plugins-1.1.24[lv2] + >=media-plugins/gst-plugins-ladspa-1.12.5:1.0 + >=media-plugins/gst-plugins-lv2-1.12.5:1.0 + >=media-plugins/gst-plugins-pulse-1.12.5:1.0 + sys-apps/dbus + calf? ( >=media-plugins/calf-0.90.1[lv2] ) + doc? ( gnome-extra/yelp ) + rubberband? ( media-libs/rubberband[ladspa] ) + webrtc? ( media-plugins/gst-plugins-webrtc ) + zamaudio? ( media-plugins/zam-plugins )" +# Only header files are used from libsamplerate so put it here rather than DEPEND +# to avoid unnecessary cross-compilation. +BDEPEND="dev-libs/appstream-glib + dev-util/desktop-file-utils + dev-util/itstool + media-libs/libsamplerate + sys-devel/gettext + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${PN}-4.8.6-meson_no_automagic.patch +) + +S="${WORKDIR}"/easyeffects-${PV} + +src_configure() { + local emesonargs=( + $(meson_feature bs2b) + $(meson_feature rnnoise) + ) + meson_src_configure +} + +pkg_postinst() { + gnome2_gconf_install + gnome2_schemas_update + xdg_icon_cache_update +} + +pkg_postrm() { + gnome2_gconf_uninstall + gnome2_schemas_update + xdg_icon_cache_update +} |