You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1008 B
50 lines
1008 B
3 years ago
|
# Copyright 1999-2022 Gentoo Authors
|
||
3 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
3 years ago
|
EAPI=8
|
||
3 years ago
|
|
||
|
inherit autotools
|
||
|
|
||
|
DESCRIPTION="Recurrent neural network for audio noise reduction"
|
||
|
HOMEPAGE="https://jmvalin.ca/demo/rnnoise/ https://gitlab.xiph.org/xiph/rnnoise"
|
||
|
|
||
|
COMMIT="1cbdbcf1283499bbb2230a6b0f126eb9b236defd"
|
||
2 years ago
|
SRC_URI="https://gitlab.xiph.org/xiph/rnnoise/-/archive/${COMMIT}/rnnoise-${COMMIT}.tar.bz2"
|
||
3 years ago
|
S="${WORKDIR}/${PN}-${COMMIT}"
|
||
|
|
||
|
LICENSE="BSD"
|
||
|
SLOT="0"
|
||
3 years ago
|
KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
|
||
3 years ago
|
IUSE="doc"
|
||
|
# NOTE: Documentation currently empty (version 0.4.1_p20210122)
|
||
|
|
||
|
BDEPEND="
|
||
|
doc? (
|
||
|
app-doc/doxygen
|
||
|
media-gfx/graphviz
|
||
|
)
|
||
|
"
|
||
|
|
||
2 years ago
|
PATCHES=(
|
||
|
"${FILESDIR}"/${PN}-0.4.1_p20210122-configure-clang16.patch
|
||
|
)
|
||
|
|
||
3 years ago
|
src_prepare() {
|
||
|
default
|
||
|
eautoreconf
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
local myeconfargs=(
|
||
|
--disable-examples
|
||
|
$(use_enable doc)
|
||
|
)
|
||
|
econf "${myeconfargs[@]}"
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
default
|
||
|
rm "${ED}/usr/share/doc/${PF}/COPYING" || die
|
||
|
find "${ED}" -name '*.la' -delete || die
|
||
|
}
|