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/speexdsp/
Date: Sat, 25 Jun 2022 09:17:17
Message-Id: 1656148632.63d167dda2f2bd848655e37679f5cac460fc9f47.fordfrog@gentoo
1 commit: 63d167dda2f2bd848655e37679f5cac460fc9f47
2 Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jun 25 09:16:35 2022 +0000
4 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 25 09:17:12 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=63d167dd
7
8 media-libs/speexdsp: bump to 1.2.1, eapi8 + cleanup
9
10 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
11
12 media-libs/speexdsp/Manifest | 1 +
13 media-libs/speexdsp/speexdsp-1.2.1.ebuild | 55 +++++++++++++++++++++++++++++++
14 2 files changed, 56 insertions(+)
15
16 diff --git a/media-libs/speexdsp/Manifest b/media-libs/speexdsp/Manifest
17 index fcff49ea4f20..fece581af24c 100644
18 --- a/media-libs/speexdsp/Manifest
19 +++ b/media-libs/speexdsp/Manifest
20 @@ -1 +1,2 @@
21 DIST speexdsp-1.2.0.tar.gz 919621 BLAKE2B 70c7d07f4b23abbb70cfb212a6541288c71f57fffd5fe22ddd94901a7d01fa403a69b7884e3a4a2267ffd45a7e053b1ae7c7fd662e57053a06d4a7efb7889610 SHA512 e357cd5377415ea66c862302c7cf8bf6a10063cacd903f0846478975b87974cf5bdf00e2c6759d8f4f453c4c869cf284e9dc948a84a83d7b2ab96bd5405c05ec
22 +DIST speexdsp-1.2.1.tar.gz 922584 BLAKE2B 9105967eaee3ea8fcba2df1739d92a520407e086d3f4645763d8c7f26adff4f6c46b653e873b3e5ca04fce2ee5f765f8f7a242172d7cc4873fe15c3295a5913b SHA512 41b5f37b48db5cb8c5a0f6437a4a8266d2627a5b7c1088de8549fe0bf0bb3105b7df8024fe207eef194096e0726ea73e2b53e0a4293d8db8e133baa0f8a3bad3
23
24 diff --git a/media-libs/speexdsp/speexdsp-1.2.1.ebuild b/media-libs/speexdsp/speexdsp-1.2.1.ebuild
25 new file mode 100644
26 index 000000000000..032d3178895f
27 --- /dev/null
28 +++ b/media-libs/speexdsp/speexdsp-1.2.1.ebuild
29 @@ -0,0 +1,55 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +inherit autotools flag-o-matic multilib-minimal
36 +
37 +MY_P=${P/_}
38 +MY_P=${MY_P/_p/.}
39 +
40 +DESCRIPTION="Audio compression format designed for speech -- DSP"
41 +HOMEPAGE="https://www.speex.org/"
42 +SRC_URI="https://downloads.xiph.org/releases/speex/${MY_P}.tar.gz"
43 +
44 +LICENSE="BSD"
45 +SLOT="0"
46 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x86-solaris"
47 +IUSE="cpu_flags_x86_sse cpu_flags_x86_sse2 cpu_flags_arm_neon"
48 +
49 +BDEPEND="virtual/pkgconfig"
50 +
51 +S="${WORKDIR}/${MY_P}"
52 +
53 +PATCHES=(
54 + "${FILESDIR}"/${PN}-1.2.0-configure.patch
55 +)
56 +
57 +src_prepare() {
58 + default
59 +
60 + sed -i \
61 + -e 's:noinst_PROGRAMS:check_PROGRAMS:' \
62 + libspeexdsp/Makefile.am || die
63 +
64 + eautoreconf
65 +
66 + append-lfs-flags
67 +}
68 +
69 +multilib_src_configure() {
70 + # Can also be configured with one of:
71 + # --enable-fixed-point (no floating point)
72 + # --with-fft=proprietary-intel-mkl (mkl)
73 + # --with-fft=gpl-fftw3 (fftw)
74 + ECONF_SOURCE="${S}" econf \
75 + --disable-static \
76 + $(use_enable cpu_flags_x86_sse sse) \
77 + $(use_enable cpu_flags_x86_sse2 sse2) \
78 + $(use_enable cpu_flags_arm_neon neon)
79 +}
80 +
81 +multilib_src_install_all() {
82 + einstalldocs
83 + find "${ED}" -name '*.la' -type f -delete || die
84 +}