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