public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/noise-suppression-for-voice/
Date: Mon, 16 Oct 2023 05:37:15 +0000 (UTC)	[thread overview]
Message-ID: <1697434599.bcda70e6f561f9f1e68b4407841c979e067d692d.sam@gentoo> (raw)

commit:     bcda70e6f561f9f1e68b4407841c979e067d692d
Author:     Kacper Słomiński <kacper.slominski72 <AT> gmail <DOT> com>
AuthorDate: Sat Sep 30 21:37:35 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Oct 16 05:36:39 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bcda70e6

media-libs/noise-suppression-for-voice: add 1.03, update live

Closes: https://bugs.gentoo.org/877261
Signed-off-by: Kacper Słomiński <kacper.slominski72 <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/33144
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-libs/noise-suppression-for-voice/Manifest    |  1 +
 .../noise-suppression-for-voice/metadata.xml       |  5 +++
 .../noise-suppression-for-voice-1.03.ebuild        | 49 ++++++++++++++++++++++
 .../noise-suppression-for-voice-9999.ebuild        | 46 +++++++++++++-------
 4 files changed, 86 insertions(+), 15 deletions(-)

diff --git a/media-libs/noise-suppression-for-voice/Manifest b/media-libs/noise-suppression-for-voice/Manifest
index dd09c98cc1fa..e66db47e2418 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-0.91.tar.gz 207544 BLAKE2B e16f81b58f382e6bc01905c046fdb0b00891b9a82540df01387fc5e5ded165314b8f3c40a1c3c33a4544c536eb1b7aa57d25ac59180624dd2550ec9c465f0545 SHA512 e117fd54e6cf01c4721b79fddca2f2898331e46764c7a05077ed3034c50e2cbc0c1d6fa3084f7c6f56a629bf20127a7d1bccd57d30b0693cc3eb30edaae6cd28
+DIST noise-suppression-for-voice-1.03.tar.gz 19486457 BLAKE2B 50d92eb6d8868aa5c175fd2d78c3a24a9d92ddc00327c9155ac59a3d143ec7e462b122e3ad6b07f5647346d69731c0940658581a42100df5924eb759385dd1fc SHA512 1cf08c947a1f5415e35d11007acb3bf1cbb6929c81c3d877d2a1714ec30061285077f9850eb08da7784bf2188d849bd630ad605b1b6e03ea75a1afb16076a512

diff --git a/media-libs/noise-suppression-for-voice/metadata.xml b/media-libs/noise-suppression-for-voice/metadata.xml
index afcb307cc3db..7a3d885c9e9c 100644
--- a/media-libs/noise-suppression-for-voice/metadata.xml
+++ b/media-libs/noise-suppression-for-voice/metadata.xml
@@ -16,4 +16,9 @@
 	<upstream>
 		<remote-id type="github">werman/noise-suppression-for-voice</remote-id>
 	</upstream>
+	<use>
+		<flag name="lv2">Enable the LV2 plugin</flag>
+		<flag name="vst">Enable the VST plugin</flag>
+		<flag name="vst3">Enable the VST3 plugin</flag>
+	</use>
 </pkgmetadata>

diff --git a/media-libs/noise-suppression-for-voice/noise-suppression-for-voice-1.03.ebuild b/media-libs/noise-suppression-for-voice/noise-suppression-for-voice-1.03.ebuild
new file mode 100644
index 000000000000..bab288cfb6c0
--- /dev/null
+++ b/media-libs/noise-suppression-for-voice/noise-suppression-for-voice-1.03.ebuild
@@ -0,0 +1,49 @@
+# Copyright 2020-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+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"
+fi
+
+LICENSE="GPL-3+"
+SLOT="0"
+IUSE="+ladspa lv2 vst vst3"
+
+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() {
+	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_AU_PLUGIN=OFF
+		-DBUILD_AUV3_PLUGIN=OFF
+	)
+	cmake_src_configure
+}

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 9d39add132b4..bab288cfb6c0 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
@@ -1,33 +1,49 @@
 # Copyright 2020-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
+EAPI=8
 
 inherit cmake
 
 DESCRIPTION="A real-time noise suppression plugin for voice"
 HOMEPAGE="https://github.com/werman/noise-suppression-for-voice"
 
-if [ "${PV}" = "9999" ]; then
+if [[ "${PV}" == "9999" ]]; then
 	inherit git-r3
 	EGIT_REPO_URI="https://github.com/werman/noise-suppression-for-voice.git"
 else
-	KEYWORDS="~amd64 ~x86"
 	SRC_URI="https://github.com/werman/noise-suppression-for-voice/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+	KEYWORDS="~amd64 ~x86"
 fi
 
 LICENSE="GPL-3+"
 SLOT="0"
-IUSE=""
-
-src_install() {
-	dodoc README.md
-
-	cd "${BUILD_DIR}"
-
-	insinto /usr/$(get_libdir)/lv2/
-	doins -r bin/rnnoise.lv2
-
-	insinto /usr/$(get_libdir)/ladspa/
-	doins bin/ladspa/librnnoise_ladspa.so
+IUSE="+ladspa lv2 vst vst3"
+
+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() {
+	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_AU_PLUGIN=OFF
+		-DBUILD_AUV3_PLUGIN=OFF
+	)
+	cmake_src_configure
 }


             reply	other threads:[~2023-10-16  5:37 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-16  5:37 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-08-20  0:48 [gentoo-commits] repo/gentoo:master commit in: media-libs/noise-suppression-for-voice/ Eli Schwartz
2024-07-28  2:39 Sam James
2024-07-22 20:35 Sam James
2024-07-22 20:35 Sam James
2024-03-28  4:01 Sam James
2023-11-22 17:44 Sam James
2023-11-14 17:30 Andreas Sturmlechner
2023-10-16  5:37 Sam James
2023-02-01 19:27 Andreas Sturmlechner
2022-08-19  4:04 Sam James
2021-02-25 16:50 Rick Farina
2020-07-24  0:51 Rick Farina
2020-07-24  0:51 Rick Farina
2020-07-06 17:23 Rick Farina

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1697434599.bcda70e6f561f9f1e68b4407841c979e067d692d.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox