Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/spandsp/
Date: Thu, 25 Nov 2021 13:51:21
Message-Id: 1637848267.d31ba5cc9b101152a6f73d13de88aaa7e3b6bd84.marecki@gentoo
1 commit: d31ba5cc9b101152a6f73d13de88aaa7e3b6bd84
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 25 13:50:47 2021 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 25 13:51:07 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d31ba5cc
7
8 media-libs/spandsp: update EAPI 5 -> 8
9
10 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
11
12 media-libs/spandsp/spandsp-0.0.6-r1.ebuild | 63 ++++++++++++++++++++++++++++++
13 1 file changed, 63 insertions(+)
14
15 diff --git a/media-libs/spandsp/spandsp-0.0.6-r1.ebuild b/media-libs/spandsp/spandsp-0.0.6-r1.ebuild
16 new file mode 100644
17 index 000000000000..bbbf322e189f
18 --- /dev/null
19 +++ b/media-libs/spandsp/spandsp-0.0.6-r1.ebuild
20 @@ -0,0 +1,63 @@
21 +# Copyright 1999-2021 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +
26 +DESCRIPTION="SpanDSP is a library of DSP functions for telephony"
27 +HOMEPAGE="https://www.soft-switch.org/"
28 +SRC_URI="https://www.soft-switch.org/downloads/spandsp/${P/_}.tar.gz"
29 +
30 +LICENSE="LGPL-2.1"
31 +SLOT="0"
32 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
33 +IUSE="doc fixed-point cpu_flags_x86_mmx cpu_flags_x86_sse cpu_flags_x86_sse2 cpu_flags_x86_sse3"
34 +
35 +RDEPEND="media-libs/tiff
36 + virtual/jpeg"
37 +DEPEND="${RDEPEND}"
38 +BDEPEND="doc? (
39 + app-doc/doxygen
40 + dev-libs/libxslt
41 +)"
42 +
43 +# Enabled implicitly by the build system. Really useless.
44 +REQUIRED_USE="
45 + cpu_flags_x86_sse3? ( cpu_flags_x86_sse2 )
46 + cpu_flags_x86_sse2? ( cpu_flags_x86_sse )
47 + cpu_flags_x86_sse? ( cpu_flags_x86_mmx )"
48 +
49 +S=${WORKDIR}/${PN}-$(ver_cut 1-3)
50 +
51 +# TODO:
52 +# there are two tests options: tests and test-data
53 +# they need audiofile, fftw, libxml and probably more
54 +
55 +src_configure() {
56 + # Note: flags over sse3 aren't really used -- they're only
57 + # boilerplate. They also make some silly assumptions, e.g. that
58 + # every CPU with SSE4* has SSSE3.
59 + # Reference: https://bugs.funtoo.org/browse/FL-2069.
60 + # If you want to re-add them, first check if the code started
61 + # using them. If it did, figure out if the flags can be unbundled
62 + # from one another. Otherwise, you'd have to do REQUIRED_USE.
63 +
64 + econf \
65 + $(use_enable doc) \
66 + $(use_enable fixed-point) \
67 + $(use_enable cpu_flags_x86_mmx mmx) \
68 + $(use_enable cpu_flags_x86_sse sse) \
69 + $(use_enable cpu_flags_x86_sse2 sse2) \
70 + $(use_enable cpu_flags_x86_sse3 sse3)
71 +}
72 +
73 +src_install() {
74 + emake DESTDIR="${D}" install
75 + dodoc AUTHORS ChangeLog DueDiligence NEWS README
76 +
77 + find "${ED}" -name '*.la' -delete || die
78 +
79 + if use doc; then
80 + docinto html
81 + dodoc -r doc/{api/html/*,t38_manual}
82 + fi
83 +}