Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/portaudio/
Date: Mon, 21 Jun 2021 00:41:42
Message-Id: 1624236089.a08c8635572f9b5dd90a4a83af02740687731e43.sam@gentoo
1 commit: a08c8635572f9b5dd90a4a83af02740687731e43
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 21 00:10:56 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 21 00:41:29 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a08c8635
7
8 media-libs/portaudio: add 19.07.00
9
10 Closes: https://bugs.gentoo.org/797241
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 media-libs/portaudio/portaudio-19.07.00.ebuild | 75 ++++++++++++++++++++++++++
14 1 file changed, 75 insertions(+)
15
16 diff --git a/media-libs/portaudio/portaudio-19.07.00.ebuild b/media-libs/portaudio/portaudio-19.07.00.ebuild
17 new file mode 100644
18 index 00000000000..7555dcdbcff
19 --- /dev/null
20 +++ b/media-libs/portaudio/portaudio-19.07.00.ebuild
21 @@ -0,0 +1,75 @@
22 +# Copyright 1999-2021 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=7
26 +
27 +inherit autotools multilib-minimal
28 +
29 +DESCRIPTION="A free, cross-platform, open-source, audio I/O library"
30 +HOMEPAGE="http://www.portaudio.com/"
31 +SRC_URI="http://www.portaudio.com/archives/pa_stable_v190600_20161030.tgz
32 + https://sources.debian.org/data/main/p/portaudio19/19.6.0-1/debian/patches/audacity-portmixer.patch -> ${PN}-19.06.00-audacity-portmixer.patch"
33 +S="${WORKDIR}/${PN}"
34 +
35 +LICENSE="MIT"
36 +SLOT="0"
37 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
38 +IUSE="alsa +cxx debug doc jack oss static-libs"
39 +
40 +RDEPEND="alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] )
41 + jack? ( virtual/jack[${MULTILIB_USEDEP}] )"
42 +DEPEND="${RDEPEND}"
43 +BDEPEND="
44 + doc? ( app-doc/doxygen )
45 + virtual/pkgconfig
46 +"
47 +
48 +DOCS=( README.txt )
49 +
50 +PATCHES=(
51 + "${DISTDIR}/${PN}-19.06.00-audacity-portmixer.patch"
52 + "${FILESDIR}"/${PN}-19.06.00-AR.patch # bug #720966, trigger reconf
53 + "${FILESDIR}"/${PN}-19.06.00-slibtool.patch
54 +)
55 +
56 +src_prepare() {
57 + default
58 +
59 + eautoconf
60 +}
61 +
62 +multilib_src_configure() {
63 + local myeconfargs=(
64 + $(use_enable debug debug-output)
65 + $(use_enable cxx)
66 + $(use_enable static-libs static)
67 + $(use_with alsa)
68 + $(use_with jack)
69 + $(use_with oss)
70 + )
71 +
72 + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
73 +}
74 +
75 +multilib_src_compile() {
76 + # workaround parallel build issue
77 + emake lib/libportaudio.la
78 + emake
79 +}
80 +
81 +src_compile() {
82 + multilib-minimal_src_compile
83 +
84 + if use doc; then
85 + doxygen -u Doxyfile || die
86 + doxygen Doxyfile || die
87 + fi
88 +}
89 +
90 +multilib_src_install_all() {
91 + default
92 +
93 + use doc && dodoc -r doc/html
94 +
95 + find "${ED}" -name "*.la" -delete || die
96 +}