1 |
commit: e5883f1964b837ad24addc4c24b7bea731012979 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 25 21:13:32 2019 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 25 21:14:48 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5883f19 |
7 |
|
8 |
media-libs/alsa-lib: Revbump to fix pulseaudio build |
9 |
|
10 |
Reported-by: crabbed halo ablution <crabbedhaloablution <AT> icloud.com> |
11 |
Tested-by: crabbed halo ablution <crabbedhaloablution <AT> icloud.com> |
12 |
Thanks-to: James Le Cuirot <chewi <AT> gentoo.org> |
13 |
Closes: https://bugs.gentoo.org/700870 |
14 |
Package-Manager: Portage-2.3.79, Repoman-2.3.18 |
15 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
16 |
|
17 |
media-libs/alsa-lib/alsa-lib-1.2.1.1-r1.ebuild | 86 ++++++++++++++++++++++ |
18 |
.../alsa-lib-1.2.1.1-ucm_add_asoundlib_h.patch | 25 +++++++ |
19 |
2 files changed, 111 insertions(+) |
20 |
|
21 |
diff --git a/media-libs/alsa-lib/alsa-lib-1.2.1.1-r1.ebuild b/media-libs/alsa-lib/alsa-lib-1.2.1.1-r1.ebuild |
22 |
new file mode 100644 |
23 |
index 00000000000..704317dcf5a |
24 |
--- /dev/null |
25 |
+++ b/media-libs/alsa-lib/alsa-lib-1.2.1.1-r1.ebuild |
26 |
@@ -0,0 +1,86 @@ |
27 |
+# Copyright 1999-2019 Gentoo Authors |
28 |
+# Distributed under the terms of the GNU General Public License v2 |
29 |
+ |
30 |
+EAPI=7 |
31 |
+ |
32 |
+PYTHON_COMPAT=( python{2_7,3_{5,6,7}} ) |
33 |
+ |
34 |
+inherit autotools multilib multilib-minimal python-single-r1 |
35 |
+ |
36 |
+DESCRIPTION="Advanced Linux Sound Architecture Library" |
37 |
+HOMEPAGE="https://alsa-project.org/" |
38 |
+SRC_URI="https://www.alsa-project.org/files/pub/lib/${P}.tar.bz2" |
39 |
+ |
40 |
+LICENSE="LGPL-2.1" |
41 |
+SLOT="0" |
42 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" |
43 |
+IUSE="alisp debug doc elibc_uclibc python +thread-safety" |
44 |
+ |
45 |
+RDEPEND="python? ( ${PYTHON_DEPS} )" |
46 |
+DEPEND="${RDEPEND} |
47 |
+ doc? ( >=app-doc/doxygen-1.2.6 )" |
48 |
+ |
49 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
50 |
+ |
51 |
+PATCHES=( |
52 |
+ "${FILESDIR}/${PN}-1.1.6-missing_files.patch" #652422 |
53 |
+ "${FILESDIR}/${P}-ucm_add_asoundlib_h.patch" #700870 |
54 |
+) |
55 |
+ |
56 |
+pkg_setup() { |
57 |
+ use python && python-single-r1_pkg_setup |
58 |
+} |
59 |
+ |
60 |
+src_prepare() { |
61 |
+ find . -name Makefile.am -exec sed -i -e '/CFLAGS/s:-g -O2::' {} + || die |
62 |
+ # https://bugs.gentoo.org/509886 |
63 |
+ if use elibc_uclibc ; then |
64 |
+ sed -i -e 's:oldapi queue_timer:queue_timer:' test/Makefile.am || die |
65 |
+ fi |
66 |
+ # https://bugs.gentoo.org/545950 |
67 |
+ sed -i -e '5s:^$:\nAM_CPPFLAGS = -I$(top_srcdir)/include:' test/lsb/Makefile.am || die |
68 |
+ default |
69 |
+ eautoreconf |
70 |
+} |
71 |
+ |
72 |
+multilib_src_configure() { |
73 |
+ local myeconfargs=( |
74 |
+ --disable-maintainer-mode |
75 |
+ --disable-resmgr |
76 |
+ --enable-aload |
77 |
+ --enable-rawmidi |
78 |
+ --enable-seq |
79 |
+ --enable-shared |
80 |
+ # enable Python only on final ABI |
81 |
+ $(multilib_native_use_enable python) |
82 |
+ $(use_enable alisp) |
83 |
+ $(use_enable thread-safety) |
84 |
+ $(use_with debug) |
85 |
+ $(usex elibc_uclibc --without-versioned '') |
86 |
+ ) |
87 |
+ |
88 |
+ ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" |
89 |
+} |
90 |
+ |
91 |
+multilib_src_compile() { |
92 |
+ emake |
93 |
+ |
94 |
+ if multilib_is_native_abi && use doc; then |
95 |
+ emake doc |
96 |
+ grep -FZrl "${S}" doc/doxygen/html | \ |
97 |
+ xargs -0 sed -i -e "s:${S}::" |
98 |
+ fi |
99 |
+} |
100 |
+ |
101 |
+multilib_src_install() { |
102 |
+ emake DESTDIR="${D}" install |
103 |
+ if multilib_is_native_abi && use doc; then |
104 |
+ docinto html |
105 |
+ dodoc -r doc/doxygen/html/. |
106 |
+ fi |
107 |
+} |
108 |
+ |
109 |
+multilib_src_install_all() { |
110 |
+ find "${ED}" -type f \( -name '*.a' -o -name '*.la' \) -delete || die |
111 |
+ dodoc ChangeLog doc/asoundrc.txt NOTES TODO |
112 |
+} |
113 |
|
114 |
diff --git a/media-libs/alsa-lib/files/alsa-lib-1.2.1.1-ucm_add_asoundlib_h.patch b/media-libs/alsa-lib/files/alsa-lib-1.2.1.1-ucm_add_asoundlib_h.patch |
115 |
new file mode 100644 |
116 |
index 00000000000..3c6072b8c3d |
117 |
--- /dev/null |
118 |
+++ b/media-libs/alsa-lib/files/alsa-lib-1.2.1.1-ucm_add_asoundlib_h.patch |
119 |
@@ -0,0 +1,25 @@ |
120 |
+From: Jaroslav Kysela <perex@×××××.cz> |
121 |
+Date: Sat, 23 Nov 2019 14:38:35 +0000 (+0100) |
122 |
+Subject: ucm: use-case.h - add <alsa/asoundlib.h> include |
123 |
+X-Git-Url: https://git.alsa-project.org/?p=alsa-lib.git;a=commitdiff_plain;h=1a4b362115b5e1bb4f5b888919ffd11736adbf0c |
124 |
+ |
125 |
+ucm: use-case.h - add <alsa/asoundlib.h> include |
126 |
+ |
127 |
+It is required for snd_ctl_elem_id_t and snd_mixer_selem_id_t. |
128 |
+ |
129 |
+Signed-off-by: Jaroslav Kysela <perex@×××××.cz> |
130 |
+--- |
131 |
+ |
132 |
+diff --git a/include/use-case.h b/include/use-case.h |
133 |
+index 8a37121..80073ef 100644 |
134 |
+--- a/include/use-case.h |
135 |
++++ b/include/use-case.h |
136 |
+@@ -42,6 +42,8 @@ |
137 |
+ extern "C" { |
138 |
+ #endif |
139 |
+ |
140 |
++#include <alsa/asoundlib.h> |
141 |
++ |
142 |
+ /** |
143 |
+ * \defgroup ucm Use Case Interface |
144 |
+ * The ALSA Use Case manager interface. |