From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 19B3115812D for ; Thu, 02 Jan 2025 04:22:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2E365E038D; Thu, 02 Jan 2025 04:22:44 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BA5DBE038D for ; Thu, 02 Jan 2025 04:22:43 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 93CBF335DC7 for ; Thu, 02 Jan 2025 04:22:42 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 91A8F1732 for ; Thu, 02 Jan 2025 04:22:40 +0000 (UTC) From: "Ryan Li" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ryan Li" Message-ID: <1735791698.66e6d2375da4e9c55a8745ca4afc174dcadbf135.ryanli@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: media-sound/deep-filter/files/, media-sound/deep-filter/ X-VCS-Repository: repo/proj/guru X-VCS-Files: media-sound/deep-filter/deep-filter-0.5.6-r1.ebuild media-sound/deep-filter/deep-filter-0.5.6.ebuild media-sound/deep-filter/files/deep-filter-library-path.patch X-VCS-Directories: media-sound/deep-filter/ media-sound/deep-filter/files/ X-VCS-Committer: ryanli X-VCS-Committer-Name: Ryan Li X-VCS-Revision: 66e6d2375da4e9c55a8745ca4afc174dcadbf135 X-VCS-Branch: dev Date: Thu, 02 Jan 2025 04:22:40 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 03eb427c-cfac-4aa5-a7a7-a7a34938c3f1 X-Archives-Hash: 0cbbb0735b1a40001d02ee735728b5ad commit: 66e6d2375da4e9c55a8745ca4afc174dcadbf135 Author: Ryan Li ryanli org> AuthorDate: Thu Jan 2 04:21:38 2025 +0000 Commit: Ryan Li ryanli org> CommitDate: Thu Jan 2 04:21:38 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=66e6d237 media-sound/deep-filter: add ladspa use flag and ignore Tinderbox QA0017. Ignoring QA0017 as this is a Rust project. Closes: https://bugs.gentoo.org/947322 Signed-off-by: Ryan Li ryanli.org> ...er-0.5.6.ebuild => deep-filter-0.5.6-r1.ebuild} | 35 +++++++++++++++++----- .../files/deep-filter-library-path.patch | 26 ++++++++++++++++ 2 files changed, 54 insertions(+), 7 deletions(-) diff --git a/media-sound/deep-filter/deep-filter-0.5.6.ebuild b/media-sound/deep-filter/deep-filter-0.5.6-r1.ebuild similarity index 93% rename from media-sound/deep-filter/deep-filter-0.5.6.ebuild rename to media-sound/deep-filter/deep-filter-0.5.6-r1.ebuild index e99ec17a4..c0269b505 100644 --- a/media-sound/deep-filter/deep-filter-0.5.6.ebuild +++ b/media-sound/deep-filter/deep-filter-0.5.6-r1.ebuild @@ -546,7 +546,8 @@ SRC_URI+=" ${CARGO_CRATE_URIS}" S=${WORKDIR}/DeepFilterNet-${PV} PATCHES=( - "${FILESDIR}/${PN}-${PV}-use-updated-time.patch" + "${FILESDIR}/${PN}-library-path.patch" + "${FILESDIR}/${PN}-0.5.6-use-updated-time.patch" ) LICENSE="|| ( Apache-2.0 MIT )" @@ -559,24 +560,44 @@ LICENSE+=" SLOT="0" KEYWORDS="~amd64" +IUSE="ladspa" DEPEND=" sci-libs/hdf5 " +BDEPEND=" + ladspa? ( dev-util/patchelf ) +" + +QA_FLAGS_IGNORED="usr/bin/deep-filter" + src_configure() { - pushd libDF >/dev/null || die local myfeatures=( bin tract transforms wav-utils ) - cargo_src_configure --offline --no-default-features --bin deep-filter - popd >/dev/null || die + local projects=(-p deep_filter) + if use ladspa; then + projects+=(-p deep-filter-ladspa) + fi + cargo_src_configure "${projects[@]}" --offline --no-default-features --bin deep-filter --lib +} + +src_compile() { + cargo_src_compile + if use ladspa; then + patchelf --set-soname libdeep_filter_ladspa.so "$(cargo_target_dir)"/libdeep_filter_ladspa.so + fi } src_install() { - pushd libDF >/dev/null || die - cargo_src_install - popd >/dev/null || die + dobin "$(cargo_target_dir)"/deep-filter + if use ladspa; then + dolib.so "$(cargo_target_dir)"/libdeep_filter_ladspa.so + + insinto "/usr/share/${PN}" + doins -r ladspa/filter-chain-configs + fi } diff --git a/media-sound/deep-filter/files/deep-filter-library-path.patch b/media-sound/deep-filter/files/deep-filter-library-path.patch new file mode 100644 index 000000000..0f308700a --- /dev/null +++ b/media-sound/deep-filter/files/deep-filter-library-path.patch @@ -0,0 +1,26 @@ +diff --git a/ladspa/filter-chain-configs/deepfilter-mono-source.conf b/ladspa/filter-chain-configs/deepfilter-mono-source.conf +index e0879b1..9725998 100644 +--- a/ladspa/filter-chain-configs/deepfilter-mono-source.conf ++++ b/ladspa/filter-chain-configs/deepfilter-mono-source.conf +@@ -32,7 +32,7 @@ context.modules = [ + { + type = ladspa + name = "DeepFilter Mono" +- plugin = /usr/lib/ladspa/libdeep_filter_ladspa.so ++ plugin = /usr/lib64/libdeep_filter_ladspa.so + label = deep_filter_mono + control = { + "Attenuation Limit (dB)" 100 +diff --git a/ladspa/filter-chain-configs/deepfilter-stereo-sink.conf b/ladspa/filter-chain-configs/deepfilter-stereo-sink.conf +index 5576561..3d170ca 100644 +--- a/ladspa/filter-chain-configs/deepfilter-stereo-sink.conf ++++ b/ladspa/filter-chain-configs/deepfilter-stereo-sink.conf +@@ -35,7 +35,7 @@ context.modules = [ + { + type = ladspa + name = "DeepFilter Stereo" +- plugin = /usr/lib/ladspa/libdeep_filter_ladspa.so ++ plugin = /usr/lib64/libdeep_filter_ladspa.so + label = deep_filter_stereo + control = { + "Attenuation Limit (dB)" 100