diff options
author | David Seifert <soap@gentoo.org> | 2021-09-05 14:11:00 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2021-09-05 14:11:00 +0200 |
commit | d98252a18249287d04b708c56fbcd2a6e7bba849 (patch) | |
tree | 3e4c98c5a8d6038a03e38c0115b45cbe6f7a2293 /media-libs/libsamplerate | |
parent | dev-python/QtPy: add version 1.11.0 (diff) | |
download | gentoo-d98252a18249287d04b708c56fbcd2a6e7bba849.tar.gz gentoo-d98252a18249287d04b708c56fbcd2a6e7bba849.tar.bz2 gentoo-d98252a18249287d04b708c56fbcd2a6e7bba849.zip |
media-libs/libsamplerate: add 0.2.2
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'media-libs/libsamplerate')
-rw-r--r-- | media-libs/libsamplerate/Manifest | 1 | ||||
-rw-r--r-- | media-libs/libsamplerate/libsamplerate-0.2.2.ebuild | 49 |
2 files changed, 50 insertions, 0 deletions
diff --git a/media-libs/libsamplerate/Manifest b/media-libs/libsamplerate/Manifest index c4c029f96b30..fb0051a0279a 100644 --- a/media-libs/libsamplerate/Manifest +++ b/media-libs/libsamplerate/Manifest @@ -1 +1,2 @@ DIST libsamplerate-0.2.1.tar.bz2 3747188 BLAKE2B 83540f3e75cfa79cbd166f075d22cab6a63e0e057b90ac6a3760c07196cac962df7d1ca26620a9033de046e0528bee3ded2b482e8629b1ae316844b5b31f3074 SHA512 f54f7f12c9536868d7a11fc9cbb86857505e7b75fe34cedaf0b9bfc864da6037296b3eae303a33d4c87b7fd20d96933b91ef59c8cc3d1313b9fc21654e5daa2d +DIST libsamplerate-0.2.2.tar.xz 3319468 BLAKE2B 71b1e8a1644a94fff019abc6bf98c557df84994293f1e9bc651ad3ad3f0afeb24f54b8c75fc26e5202ae7c3a3e34e783fd1be7f7c6fdefe9eac9a5dfe7100b91 SHA512 d23ae54d23209ba22baae9e5fd178dd8e0e99205dada7e7c3a7b3a3d8cf816ed427a411bfeb008427f64da7767d645edce40811f238af11c8c386f5ef25a9f0c diff --git a/media-libs/libsamplerate/libsamplerate-0.2.2.ebuild b/media-libs/libsamplerate/libsamplerate-0.2.2.ebuild new file mode 100644 index 000000000000..698fa623a51a --- /dev/null +++ b/media-libs/libsamplerate/libsamplerate-0.2.2.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit multilib-minimal + +DESCRIPTION="Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for audio" +HOMEPAGE="https://libsndfile.github.io/libsamplerate/" + +if [[ ${PV} == *9999 ]]; then + inherit autotools git-r3 + EGIT_REPO_URI="https://github.com/libsndfile/libsamplerate.git" +else + SRC_URI="https://github.com/libsndfile/libsamplerate/releases/download/${PV}/${P}.tar.xz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" +fi + +LICENSE="BSD-2" +SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" + +# Alsa/FFTW are only required for tests +# libsndfile is only used by examples and tests +DEPEND=" + test? ( + media-libs/alsa-lib[${MULTILIB_USEDEP}] + media-libs/libsndfile[${MULTILIB_USEDEP}] + sci-libs/fftw:3.0[${MULTILIB_USEDEP}] + )" +BDEPEND="virtual/pkgconfig" + +src_prepare() { + default + [[ ${PV} == *9999 ]] && eautoreconf +} + +multilib_src_configure() { + ECONF_SOURCE="${S}" econf \ + $(use_enable test alsa) \ + $(use_enable test fftw) \ + $(use_enable test sndfile) +} + +multilib_src_install_all() { + einstalldocs + find "${ED}" -name '*.la' -type f -delete || die +} |