diff options
author | Kacper Słomiński <kacper.slominski72@gmail.com> | 2024-07-20 14:35:38 +0200 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-07-22 21:33:04 +0100 |
commit | 5bc5cd72b9aba09928d7e9e0bce363a42534050f (patch) | |
tree | 4439a71df42b1a4fa392d97fd0caeabe2fd9420e /media-libs/noise-suppression-for-voice | |
parent | dev-python/graph-tool: remove upstreamed patch (diff) | |
download | gentoo-5bc5cd72b9aba09928d7e9e0bce363a42534050f.tar.gz gentoo-5bc5cd72b9aba09928d7e9e0bce363a42534050f.tar.bz2 gentoo-5bc5cd72b9aba09928d7e9e0bce363a42534050f.zip |
media-libs/noise-suppression-for-voice: add 1.10, update live
Signed-off-by: Kacper Słomiński <kacper.slominski72@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs/noise-suppression-for-voice')
3 files changed, 68 insertions, 8 deletions
diff --git a/media-libs/noise-suppression-for-voice/Manifest b/media-libs/noise-suppression-for-voice/Manifest index 8ca71240af23..3815bfb85628 100644 --- a/media-libs/noise-suppression-for-voice/Manifest +++ b/media-libs/noise-suppression-for-voice/Manifest @@ -1 +1,2 @@ DIST noise-suppression-for-voice-1.03.tar.gz 19486457 BLAKE2B 50d92eb6d8868aa5c175fd2d78c3a24a9d92ddc00327c9155ac59a3d143ec7e462b122e3ad6b07f5647346d69731c0940658581a42100df5924eb759385dd1fc SHA512 1cf08c947a1f5415e35d11007acb3bf1cbb6929c81c3d877d2a1714ec30061285077f9850eb08da7784bf2188d849bd630ad605b1b6e03ea75a1afb16076a512 +DIST noise-suppression-for-voice-1.10.tar.gz 37315188 BLAKE2B cd2f6029aefd6aaef546bcdbc7c0eaf9692a79ba81575649314124c8d6775cb49c62e22a0c4aa8845b9cef07637ed523ee034e79d7a3f0f71db85e7a9f402508 SHA512 17b0f9eb2e377036e0b27045e826ac16ae9e6b1c4e60888ec4663d000cd7d89458ad8365b5bc45b6ed3b2e41e208a45b9db5c79518afb283b3b21554aff2ce84 diff --git a/media-libs/noise-suppression-for-voice/noise-suppression-for-voice-1.10.ebuild b/media-libs/noise-suppression-for-voice/noise-suppression-for-voice-1.10.ebuild new file mode 100644 index 000000000000..8c501112747c --- /dev/null +++ b/media-libs/noise-suppression-for-voice/noise-suppression-for-voice-1.10.ebuild @@ -0,0 +1,65 @@ +# Copyright 2020-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake flag-o-matic + +DESCRIPTION="A real-time noise suppression plugin for voice" +HOMEPAGE="https://github.com/werman/noise-suppression-for-voice" + +if [[ "${PV}" == "9999" ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/werman/noise-suppression-for-voice.git" +else + SRC_URI="https://github.com/werman/noise-suppression-for-voice/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" + + PATCHES=( + "${FILESDIR}/${PN}-1.03-tests.patch" + ) +fi + +LICENSE="GPL-3+" +SLOT="0" + +IUSE="+ladspa lv2 vst vst3 test" +REQUIRED_USE="|| ( ladspa lv2 vst vst3 )" +RESTRICT="!test? ( test )" + +COMMON_DEPEND=" + media-libs/freetype + x11-libs/libX11 + x11-libs/libXcursor + x11-libs/libXinerama + x11-libs/libXrandr +" + +DEPEND=" + lv2? ( ${COMMON_DEPEND} ) + vst? ( ${COMMON_DEPEND} ) + vst3? ( ${COMMON_DEPEND} ) +" + +RDEPEND="${DEPEND}" + +src_configure() { + # Bug #925672 + append-atomic-flags + + local mycmakeargs=( + -DBUILD_LADSPA_PLUGIN=$(usex ladspa ON OFF) + -DBUILD_LV2_PLUGIN=$(usex lv2 ON OFF) + -DBUILD_VST_PLUGIN=$(usex vst ON OFF) + -DBUILD_VST3_PLUGIN=$(usex vst3 ON OFF) + -DBUILD_TESTS=$(usex test ON OFF) + -DBUILD_AU_PLUGIN=OFF + -DBUILD_AUV3_PLUGIN=OFF + ) + cmake_src_configure +} + +src_test() { + cp "${BUILD_DIR}/src/common/CTestTestfile.cmake" "${BUILD_DIR}/CTestTestfile.cmake" || die + cmake_src_test +} diff --git a/media-libs/noise-suppression-for-voice/noise-suppression-for-voice-9999.ebuild b/media-libs/noise-suppression-for-voice/noise-suppression-for-voice-9999.ebuild index 0fd3b8452a21..8c501112747c 100644 --- a/media-libs/noise-suppression-for-voice/noise-suppression-for-voice-9999.ebuild +++ b/media-libs/noise-suppression-for-voice/noise-suppression-for-voice-9999.ebuild @@ -16,7 +16,7 @@ else KEYWORDS="~amd64 ~x86" PATCHES=( - "${FILESDIR}/${P}-tests.patch" + "${FILESDIR}/${PN}-1.03-tests.patch" ) fi @@ -45,13 +45,7 @@ RDEPEND="${DEPEND}" src_configure() { # Bug #925672 - # append-atomic-flags does not work for us in this case, as it can - # only test for single integers of given sizes, meanwhile - # noise-suppression-for-voice does std::atomic<RnNoiseStats>, where - # RnNoiseStats is a struct with 4 uint32_t members. - if test-flags-CCLD "-latomic" &>/dev/null; then - append-flags -Wl,--push-state,--as-needed,-latomic,--pop-state - fi + append-atomic-flags local mycmakeargs=( -DBUILD_LADSPA_PLUGIN=$(usex ladspa ON OFF) |