Gentoo Archives: gentoo-commits

From: "Miroslav Šulc" <fordfrog@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libsoundtouch/
Date: Thu, 23 Sep 2021 06:53:18
Message-Id: 1632379993.3a8dcd8218960acb200b8990b074bc08180961d7.fordfrog@gentoo
1 commit: 3a8dcd8218960acb200b8990b074bc08180961d7
2 Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 23 06:52:40 2021 +0000
4 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 23 06:53:13 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a8dcd82
7
8 media-libs/libsoundtouch: bump to 2.3.1
9
10 Package-Manager: Portage-3.0.23, Repoman-3.0.3
11 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
12
13 media-libs/libsoundtouch/Manifest | 1 +
14 .../libsoundtouch/libsoundtouch-2.3.1.ebuild | 55 ++++++++++++++++++++++
15 2 files changed, 56 insertions(+)
16
17 diff --git a/media-libs/libsoundtouch/Manifest b/media-libs/libsoundtouch/Manifest
18 index 63b211d5ab0..97766866467 100644
19 --- a/media-libs/libsoundtouch/Manifest
20 +++ b/media-libs/libsoundtouch/Manifest
21 @@ -1,2 +1,3 @@
22 DIST soundtouch-2.2.tar.bz2 527571 BLAKE2B 0ed67604f0996a9112cbabad9eda39c314aa1f3b1b70aac2a014f76880cb5ad06aeb697f44e9229ad197c9245ce8f684f5fb9b31ce31ae631400a17fe825679f SHA512 8bc1b9aa60031145e8be7ab48d10d93da84b0f5032eb2d8cf46291d4267b6810513f284f6fa72dd6f343e30eeec03070a7485cd933f30bace2ebf995bc843143
23 DIST soundtouch-2.3.0.tar.bz2 528840 BLAKE2B e76627c323c223a067db6fd65a08661f39c9b55e0eb8ead7d643f92707dc56b8d235eded27a95d5eb1ea751d15336d4cb4b757c4abb2f6780258d81899484241 SHA512 f85974d7afd010bd874a4ffc51abf4013694334bfb09071f1c4d478641d34b5eecb9efc6ac41d8f0e6a5d1cb4095289316c124c522b4ca3fbd6a91b6cfc83083
24 +DIST soundtouch-2.3.1.tar.bz2 529126 BLAKE2B f8ba587ac199cd1e91f3d3487b81457b7c7bb2b4dca8867376ae47f92bf4d5e60aef3d310eab56510995d5ce72e94ce55ecc4e601bfb3b4eba52c40982032d6b SHA512 9fac7484aead1a20aae019b29847ea13ad6d8cb72272313fcffd859b31479d2ab2fe2f69cfef2b3fd35e9b03923d095bf44a67b46f2b313ac711aa31df0fdd59
25
26 diff --git a/media-libs/libsoundtouch/libsoundtouch-2.3.1.ebuild b/media-libs/libsoundtouch/libsoundtouch-2.3.1.ebuild
27 new file mode 100644
28 index 00000000000..f9bd2650355
29 --- /dev/null
30 +++ b/media-libs/libsoundtouch/libsoundtouch-2.3.1.ebuild
31 @@ -0,0 +1,55 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit autotools multilib-minimal toolchain-funcs
38 +
39 +MY_PN=${PN/lib}
40 +MY_P=${MY_PN}-${PV}
41 +DESCRIPTION="Audio processing library for changing tempo, pitch and playback rates"
42 +HOMEPAGE="https://www.surina.net/soundtouch/ https://gitlab.com/soundtouch/soundtouch"
43 +SRC_URI="https://gitlab.com/${MY_PN}/${MY_PN}/-/archive/${PV}/${MY_P}.tar.bz2"
44 +
45 +LICENSE="LGPL-2.1"
46 +# subslot = libSoundTouch.so soname
47 +SLOT="0/1"
48 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-solaris"
49 +IUSE="cpu_flags_x86_sse openmp static-libs"
50 +
51 +BDEPEND="virtual/pkgconfig"
52 +
53 +S="${WORKDIR}/${MY_P}"
54 +
55 +src_prepare() {
56 + default
57 + if use openmp ; then
58 + tc-has-openmp || die "Please switch to an openmp compatible compiler"
59 + fi
60 + sed -i "s:^\(dist_doc_DATA=\)COPYING.TXT :\1:" Makefile.am || die
61 + sed -i 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:g' configure.ac || die
62 + eautoreconf
63 +}
64 +
65 +multilib_src_configure() {
66 + local myeconfargs=(
67 + --enable-shared
68 + --disable-integer-samples
69 + $(use_enable cpu_flags_x86_sse x86-optimizations)
70 + $(use_enable openmp)
71 + $(use_enable static-libs static)
72 + )
73 + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
74 +}
75 +
76 +multilib_src_compile() {
77 + emake CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}"
78 +}
79 +
80 +multilib_src_install() {
81 + emake DESTDIR="${D}" pkgdocdir="${EPREFIX}"/usr/share/doc/${PF}/html install
82 +}
83 +
84 +multilib_src_install_all() {
85 + find "${ED}" -name '*.la' -delete || die
86 +}