commit: cf6f9a4f9d690b57dc2d5a54d25cbd33f9822ee3 Author: Adel KARA SLIMANE <adel.ks <AT> zegrapher <DOT> com> AuthorDate: Sun Feb 13 02:56:28 2022 +0000 Commit: Adel KARA SLIMANE <adel <AT> karaslimane <DOT> com> CommitDate: Sun Feb 13 02:56:28 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=cf6f9a4f
media-sound/noisetorch: new package Signed-off-by: Adel KARA SLIMANE <adel.ks <AT> zegrapher.com> media-sound/noisetorch/Manifest | 1 + media-sound/noisetorch/files/fix-make.patch | 10 +++++++ media-sound/noisetorch/metadata.xml | 12 ++++++++ media-sound/noisetorch/noisetorch-0.11.4.ebuild | 40 +++++++++++++++++++++++++ media-sound/noisetorch/noisetorch-9999.ebuild | 40 +++++++++++++++++++++++++ 5 files changed, 103 insertions(+) diff --git a/media-sound/noisetorch/Manifest b/media-sound/noisetorch/Manifest new file mode 100644 index 000000000..958e3bc7f --- /dev/null +++ b/media-sound/noisetorch/Manifest @@ -0,0 +1 @@ +DIST noisetorch-0.11.4.tar.gz 2667337 BLAKE2B 646fd32407a4da3424d372123ef7a5bd78c8e4805a7ef5a1f98c6fff32e1e13347ddf02632f13f57477e07505b750163ec4ae31610abc883f0d983904acb3964 SHA512 ebe28ed1f62c2dbd8b72659dbfafe6c2426253476806e699d6b80841a7e8200c3d68ec6d5abbfa69a2cafcddc3a5592d410e8a2793661b87720c6f5dc24e14a4 diff --git a/media-sound/noisetorch/files/fix-make.patch b/media-sound/noisetorch/files/fix-make.patch new file mode 100644 index 000000000..1af71afd6 --- /dev/null +++ b/media-sound/noisetorch/files/fix-make.patch @@ -0,0 +1,10 @@ +--- a/Makefile ++++ b/Makefile +@@ -27,6 +27,5 @@ release: rnnoise + go run scripts/signer.go -s + git describe --tags > bin/version.txt + rnnoise: +- cd c/ladspa; \ +- make ++ $(MAKE) -C c/ladspa + \ No newline at end of file diff --git a/media-sound/noisetorch/metadata.xml b/media-sound/noisetorch/metadata.xml new file mode 100644 index 000000000..59bfe3691 --- /dev/null +++ b/media-sound/noisetorch/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <name>Adel Kara Slimane</name> + <email>[email protected]</email> + </maintainer> + <upstream> + <remote-id type="github">lawl/NoiseTorch</remote-id> + <bugs-to>https://github.com/lawl/NoiseTorch/issues</bugs-to> + </upstream> +</pkgmetadata> diff --git a/media-sound/noisetorch/noisetorch-0.11.4.ebuild b/media-sound/noisetorch/noisetorch-0.11.4.ebuild new file mode 100644 index 000000000..4d6458e81 --- /dev/null +++ b/media-sound/noisetorch/noisetorch-0.11.4.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit go-module desktop fcaps + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/lawl/NoiseTorch" +else + SRC_URI="https://github.com/lawl/NoiseTorch/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" + + S="${WORKDIR}/NoiseTorch-${PV}" +fi + +DESCRIPTION="Real-time microphone noise suppression on Linux. " +HOMEPAGE="https://github.com/lawl/NoiseTorch" + +LICENSE="GPL-3" +SLOT="0" +IUSE="" + +go-module_set_globals + +src_prepare() { + default + eapply "${FILESDIR}/fix-make.patch" +} + +src_install() { + dobin "${S}/bin/noisetorch" + domenu "${S}/assets/noisetorch.desktop" + doicon "${S}/assets/icon/noisetorch.png" +} + +pkg_postinst() { + fcaps CAP_SYS_RESOURCE usr/bin/noisetorch +} \ No newline at end of file diff --git a/media-sound/noisetorch/noisetorch-9999.ebuild b/media-sound/noisetorch/noisetorch-9999.ebuild new file mode 100644 index 000000000..4d6458e81 --- /dev/null +++ b/media-sound/noisetorch/noisetorch-9999.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit go-module desktop fcaps + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/lawl/NoiseTorch" +else + SRC_URI="https://github.com/lawl/NoiseTorch/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" + + S="${WORKDIR}/NoiseTorch-${PV}" +fi + +DESCRIPTION="Real-time microphone noise suppression on Linux. " +HOMEPAGE="https://github.com/lawl/NoiseTorch" + +LICENSE="GPL-3" +SLOT="0" +IUSE="" + +go-module_set_globals + +src_prepare() { + default + eapply "${FILESDIR}/fix-make.patch" +} + +src_install() { + dobin "${S}/bin/noisetorch" + domenu "${S}/assets/noisetorch.desktop" + doicon "${S}/assets/icon/noisetorch.png" +} + +pkg_postinst() { + fcaps CAP_SYS_RESOURCE usr/bin/noisetorch +} \ No newline at end of file
