1 |
commit: e0d8fc262719125c62dc8dba0131dba3e0d355d4 |
2 |
Author: Aric Belsito <lluixhi <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Dec 22 23:24:52 2016 +0000 |
4 |
Commit: Aric Belsito <lluixhi <AT> gmail <DOT> com> |
5 |
CommitDate: Thu Dec 22 23:24:52 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=e0d8fc26 |
7 |
|
8 |
media-libs/alsa-lib: Add most recent version |
9 |
|
10 |
Fails to compile because PATH_MAX is undeclared. |
11 |
|
12 |
media-libs/alsa-lib/Manifest | 4 + |
13 |
media-libs/alsa-lib/alsa-lib-1.1.3.ebuild | 93 ++++++++++++++++++++++ |
14 |
.../files/alsa-lib-1.1.3-missing-limits.patch | 11 +++ |
15 |
media-libs/alsa-lib/metadata.xml | 13 +++ |
16 |
4 files changed, 121 insertions(+) |
17 |
|
18 |
diff --git a/media-libs/alsa-lib/Manifest b/media-libs/alsa-lib/Manifest |
19 |
new file mode 100644 |
20 |
index 0000000..54af2dd |
21 |
--- /dev/null |
22 |
+++ b/media-libs/alsa-lib/Manifest |
23 |
@@ -0,0 +1,4 @@ |
24 |
+AUX alsa-lib-1.1.3-missing-limits.patch 438 SHA256 0209a6a218550f4c5edafef92daec6f04e402d554d37c70e9a8b77997aaaef03 SHA512 cac154be8e27cac5c36e04f7b3df881234e6497bf49c777962a82176fcc745ec7c4f0cdd71a55c390bf415808ae76b3d5e7b383a9f59d00a0cfb5148b5653552 WHIRLPOOL d790cd8469769c53896b188950c8ec474a0ebae5765d1953a5d4c9344d061667dae48341af7368e6d198d1749e9f506440298f991c179a7b4838a1787d283f6d |
25 |
+DIST alsa-lib-1.1.3.tar.bz2 962001 SHA256 71282502184c592c1a008e256c22ed0ba5728ca65e05273ceb480c70f515969c SHA512 f5dbe2375a8c66af14378314a5238284d4ed63dfc86a750c0c6e8f6cdb6b1ea2d8ef26f870b5d152dc0b77d9b40821cab523f6734902b91583beb08e28c66850 WHIRLPOOL f33871789a7cc06a9db83fd659abdfeb7940d61a24ad7c71866f843d8c0c29eaf0e0770a2034dee2526c96835935b88c2fe882184c86528c98e7d4901f94b27d |
26 |
+EBUILD alsa-lib-1.1.3.ebuild 2309 SHA256 9b128b3ffd95a16796305ff68440ec80ee87c99dc15fc7d180edd098bd0f72ba SHA512 f890e5ae7dde1d915aaa5524eeb6034aee0270bf2df388b9792352541cdd7b0312cafb20b3fea4850e7773644dcb6a26915a0acfa52fe3b4488ee6b6a3c6b442 WHIRLPOOL 334a39d5f9b3dce527a35b8b06bf93c7565105653a3b02c3f6a632657a08a05fff9dcbfcdcee24c45b6b76c211da06645b8bd6a00faafe119910ad538aaf2cc2 |
27 |
+MISC metadata.xml 438 SHA256 f2bec88238bb4a607fc2bb215e5967996ddb2f4bbcfa4692934c387db292db92 SHA512 1e3a7f5a2f9ea84793ec938eb657fcbd6d5748f1cb055d085c638e30d1b5c1154a9dc0026d6e3592de074125c17926a4429757844f7d02b960f4a9a8d94a0433 WHIRLPOOL e1c1cdc7aa789e26c847575bf1d5b64c62ca652254cd54068cf1b2e5580d5512ec31157ccd9c524dcbf654f401779a93dde9f9ca7481b69083db41c70fe247e7 |
28 |
|
29 |
diff --git a/media-libs/alsa-lib/alsa-lib-1.1.3.ebuild b/media-libs/alsa-lib/alsa-lib-1.1.3.ebuild |
30 |
new file mode 100644 |
31 |
index 0000000..317b317 |
32 |
--- /dev/null |
33 |
+++ b/media-libs/alsa-lib/alsa-lib-1.1.3.ebuild |
34 |
@@ -0,0 +1,93 @@ |
35 |
+# Copyright 1999-2016 Gentoo Foundation |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+# $Id$ |
38 |
+ |
39 |
+EAPI=6 |
40 |
+ |
41 |
+# no support for python3_2 or above yet wrt #471326 |
42 |
+PYTHON_COMPAT=( python2_7 ) |
43 |
+ |
44 |
+inherit autotools eutils multilib multilib-minimal python-single-r1 |
45 |
+ |
46 |
+DESCRIPTION="Advanced Linux Sound Architecture Library" |
47 |
+HOMEPAGE="http://www.alsa-project.org/" |
48 |
+SRC_URI="mirror://alsaproject/lib/${P}.tar.bz2" |
49 |
+ |
50 |
+LICENSE="LGPL-2.1" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" |
53 |
+IUSE="alisp debug doc elibc_uclibc python" |
54 |
+ |
55 |
+RDEPEND="python? ( ${PYTHON_DEPS} ) |
56 |
+ abi_x86_32? ( |
57 |
+ !<=app-emulation/emul-linux-x86-soundlibs-20130224-r1 |
58 |
+ !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)] |
59 |
+ )" |
60 |
+DEPEND="${RDEPEND} |
61 |
+ doc? ( >=app-doc/doxygen-1.2.6 )" |
62 |
+ |
63 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
64 |
+ |
65 |
+PATCHES=( "${FILESDIR}"/${P}-missing-limits.patch ) |
66 |
+ |
67 |
+pkg_setup() { |
68 |
+ use python && python-single-r1_pkg_setup |
69 |
+} |
70 |
+ |
71 |
+src_prepare() { |
72 |
+ find . -name Makefile.am -exec sed -i -e '/CFLAGS/s:-g -O2::' {} + || die |
73 |
+ # https://bugs.gentoo.org/509886 |
74 |
+ use elibc_uclibc && { sed -i -e 's:oldapi queue_timer:queue_timer:' test/Makefile.am || die; } |
75 |
+ # https://bugs.gentoo.org/545950 |
76 |
+ sed -i -e '5s:^$:\nAM_CPPFLAGS = -I$(top_srcdir)/include:' test/lsb/Makefile.am || die |
77 |
+ default |
78 |
+ eautoreconf |
79 |
+} |
80 |
+ |
81 |
+multilib_src_configure() { |
82 |
+ local myconf |
83 |
+ # enable Python only on final ABI |
84 |
+ if multilib_is_native_abi; then |
85 |
+ myconf="$(use_enable python)" |
86 |
+ else |
87 |
+ myconf="--disable-python" |
88 |
+ fi |
89 |
+ use elibc_uclibc && myconf+=" --without-versioned" |
90 |
+ |
91 |
+ ECONF_SOURCE=${S} \ |
92 |
+ econf \ |
93 |
+ --disable-maintainer-mode \ |
94 |
+ --enable-shared \ |
95 |
+ --disable-resmgr \ |
96 |
+ --enable-rawmidi \ |
97 |
+ --enable-seq \ |
98 |
+ --enable-aload \ |
99 |
+ $(use_with debug) \ |
100 |
+ $(use_enable alisp) \ |
101 |
+ ${myconf} |
102 |
+} |
103 |
+ |
104 |
+multilib_src_compile() { |
105 |
+ emake |
106 |
+ |
107 |
+ if multilib_is_native_abi && use doc; then |
108 |
+ emake doc |
109 |
+ fgrep -Zrl "${S}" doc/doxygen/html | \ |
110 |
+ xargs -0 sed -i -e "s:${S}::" |
111 |
+ fi |
112 |
+} |
113 |
+ |
114 |
+multilib_src_install() { |
115 |
+ emake DESTDIR="${D}" install |
116 |
+ if multilib_is_native_abi && use doc; then |
117 |
+ docinto html |
118 |
+ dodoc -r doc/doxygen/html/. |
119 |
+ fi |
120 |
+} |
121 |
+ |
122 |
+multilib_src_install_all() { |
123 |
+ prune_libtool_files --all |
124 |
+ find "${ED}"/usr/$(get_libdir)/alsa-lib -name '*.a' -exec rm -f {} + |
125 |
+ docinto "" |
126 |
+ dodoc ChangeLog doc/asoundrc.txt NOTES TODO |
127 |
+} |
128 |
|
129 |
diff --git a/media-libs/alsa-lib/files/alsa-lib-1.1.3-missing-limits.patch b/media-libs/alsa-lib/files/alsa-lib-1.1.3-missing-limits.patch |
130 |
new file mode 100644 |
131 |
index 0000000..09ba400 |
132 |
--- /dev/null |
133 |
+++ b/media-libs/alsa-lib/files/alsa-lib-1.1.3-missing-limits.patch |
134 |
@@ -0,0 +1,11 @@ |
135 |
+diff -Naur alsa-lib-1.1.3.orig/src/ucm/parser.c alsa-lib-1.1.3/src/ucm/parser.c |
136 |
+--- alsa-lib-1.1.3.orig/src/ucm/parser.c 2016-12-22 15:21:20.756308973 -0800 |
137 |
++++ alsa-lib-1.1.3/src/ucm/parser.c 2016-12-22 15:21:51.996612346 -0800 |
138 |
+@@ -32,6 +32,7 @@ |
139 |
+ |
140 |
+ #include "ucm_local.h" |
141 |
+ #include <dirent.h> |
142 |
++#include <limits.h> |
143 |
+ |
144 |
+ /** The name of the environment variable containing the UCM directory */ |
145 |
+ #define ALSA_CONFIG_UCM_VAR "ALSA_CONFIG_UCM" |
146 |
|
147 |
diff --git a/media-libs/alsa-lib/metadata.xml b/media-libs/alsa-lib/metadata.xml |
148 |
new file mode 100644 |
149 |
index 0000000..d1e2102 |
150 |
--- /dev/null |
151 |
+++ b/media-libs/alsa-lib/metadata.xml |
152 |
@@ -0,0 +1,13 @@ |
153 |
+<?xml version="1.0" encoding="UTF-8"?> |
154 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
155 |
+<pkgmetadata> |
156 |
+ <maintainer type="project"> |
157 |
+ <email>alsa-bugs@g.o</email> |
158 |
+ </maintainer> |
159 |
+ <use> |
160 |
+ <flag name="alisp">Enable support for ALISP (ALSA LISP) interpreter for advanced features.</flag> |
161 |
+ </use> |
162 |
+ <upstream> |
163 |
+ <remote-id type="cpe">cpe:/a:alsa-project:alsa-lib</remote-id> |
164 |
+ </upstream> |
165 |
+</pkgmetadata> |