commit:     e0d8fc262719125c62dc8dba0131dba3e0d355d4
Author:     Aric Belsito <lluixhi <AT> gmail <DOT> com>
AuthorDate: Thu Dec 22 23:24:52 2016 +0000
Commit:     Aric Belsito <lluixhi <AT> gmail <DOT> com>
CommitDate: Thu Dec 22 23:24:52 2016 +0000
URL:        https://gitweb.gentoo.org/proj/musl.git/commit/?id=e0d8fc26

media-libs/alsa-lib: Add most recent version

Fails to compile because PATH_MAX is undeclared.

 media-libs/alsa-lib/Manifest                       |  4 +
 media-libs/alsa-lib/alsa-lib-1.1.3.ebuild          | 93 ++++++++++++++++++++++
 .../files/alsa-lib-1.1.3-missing-limits.patch      | 11 +++
 media-libs/alsa-lib/metadata.xml                   | 13 +++
 4 files changed, 121 insertions(+)

diff --git a/media-libs/alsa-lib/Manifest b/media-libs/alsa-lib/Manifest
new file mode 100644
index 0000000..54af2dd
--- /dev/null
+++ b/media-libs/alsa-lib/Manifest
@@ -0,0 +1,4 @@
+AUX alsa-lib-1.1.3-missing-limits.patch 438 SHA256 
0209a6a218550f4c5edafef92daec6f04e402d554d37c70e9a8b77997aaaef03 SHA512 
cac154be8e27cac5c36e04f7b3df881234e6497bf49c777962a82176fcc745ec7c4f0cdd71a55c390bf415808ae76b3d5e7b383a9f59d00a0cfb5148b5653552
 WHIRLPOOL 
d790cd8469769c53896b188950c8ec474a0ebae5765d1953a5d4c9344d061667dae48341af7368e6d198d1749e9f506440298f991c179a7b4838a1787d283f6d
+DIST alsa-lib-1.1.3.tar.bz2 962001 SHA256 
71282502184c592c1a008e256c22ed0ba5728ca65e05273ceb480c70f515969c SHA512 
f5dbe2375a8c66af14378314a5238284d4ed63dfc86a750c0c6e8f6cdb6b1ea2d8ef26f870b5d152dc0b77d9b40821cab523f6734902b91583beb08e28c66850
 WHIRLPOOL 
f33871789a7cc06a9db83fd659abdfeb7940d61a24ad7c71866f843d8c0c29eaf0e0770a2034dee2526c96835935b88c2fe882184c86528c98e7d4901f94b27d
+EBUILD alsa-lib-1.1.3.ebuild 2309 SHA256 
9b128b3ffd95a16796305ff68440ec80ee87c99dc15fc7d180edd098bd0f72ba SHA512 
f890e5ae7dde1d915aaa5524eeb6034aee0270bf2df388b9792352541cdd7b0312cafb20b3fea4850e7773644dcb6a26915a0acfa52fe3b4488ee6b6a3c6b442
 WHIRLPOOL 
334a39d5f9b3dce527a35b8b06bf93c7565105653a3b02c3f6a632657a08a05fff9dcbfcdcee24c45b6b76c211da06645b8bd6a00faafe119910ad538aaf2cc2
+MISC metadata.xml 438 SHA256 
f2bec88238bb4a607fc2bb215e5967996ddb2f4bbcfa4692934c387db292db92 SHA512 
1e3a7f5a2f9ea84793ec938eb657fcbd6d5748f1cb055d085c638e30d1b5c1154a9dc0026d6e3592de074125c17926a4429757844f7d02b960f4a9a8d94a0433
 WHIRLPOOL 
e1c1cdc7aa789e26c847575bf1d5b64c62ca652254cd54068cf1b2e5580d5512ec31157ccd9c524dcbf654f401779a93dde9f9ca7481b69083db41c70fe247e7

diff --git a/media-libs/alsa-lib/alsa-lib-1.1.3.ebuild 
b/media-libs/alsa-lib/alsa-lib-1.1.3.ebuild
new file mode 100644
index 0000000..317b317
--- /dev/null
+++ b/media-libs/alsa-lib/alsa-lib-1.1.3.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+# no support for python3_2 or above yet wrt #471326
+PYTHON_COMPAT=( python2_7 )
+
+inherit autotools eutils multilib multilib-minimal python-single-r1
+
+DESCRIPTION="Advanced Linux Sound Architecture Library"
+HOMEPAGE="http://www.alsa-project.org/";
+SRC_URI="mirror://alsaproject/lib/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc 
~x86 ~amd64-linux ~x86-linux"
+IUSE="alisp debug doc elibc_uclibc python"
+
+RDEPEND="python? ( ${PYTHON_DEPS} )
+       abi_x86_32? (
+               !<=app-emulation/emul-linux-x86-soundlibs-20130224-r1
+               !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
+       )"
+DEPEND="${RDEPEND}
+       doc? ( >=app-doc/doxygen-1.2.6 )"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+PATCHES=( "${FILESDIR}"/${P}-missing-limits.patch )
+
+pkg_setup() {
+       use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+       find . -name Makefile.am -exec sed -i -e '/CFLAGS/s:-g -O2::' {} + || 
die
+       # https://bugs.gentoo.org/509886
+       use elibc_uclibc && { sed -i -e 's:oldapi queue_timer:queue_timer:' 
test/Makefile.am || die; }
+       # https://bugs.gentoo.org/545950
+       sed -i -e '5s:^$:\nAM_CPPFLAGS = -I$(top_srcdir)/include:' 
test/lsb/Makefile.am || die
+       default
+       eautoreconf
+}
+
+multilib_src_configure() {
+       local myconf
+       # enable Python only on final ABI
+       if multilib_is_native_abi; then
+               myconf="$(use_enable python)"
+       else
+               myconf="--disable-python"
+       fi
+       use elibc_uclibc && myconf+=" --without-versioned"
+
+       ECONF_SOURCE=${S} \
+       econf \
+               --disable-maintainer-mode \
+               --enable-shared \
+               --disable-resmgr \
+               --enable-rawmidi \
+               --enable-seq \
+               --enable-aload \
+               $(use_with debug) \
+               $(use_enable alisp) \
+               ${myconf}
+}
+
+multilib_src_compile() {
+       emake
+
+       if multilib_is_native_abi && use doc; then
+               emake doc
+               fgrep -Zrl "${S}" doc/doxygen/html | \
+                       xargs -0 sed -i -e "s:${S}::"
+       fi
+}
+
+multilib_src_install() {
+       emake DESTDIR="${D}" install
+       if multilib_is_native_abi && use doc; then
+               docinto html
+               dodoc -r doc/doxygen/html/.
+       fi
+}
+
+multilib_src_install_all() {
+       prune_libtool_files --all
+       find "${ED}"/usr/$(get_libdir)/alsa-lib -name '*.a' -exec rm -f {} +
+       docinto ""
+       dodoc ChangeLog doc/asoundrc.txt NOTES TODO
+}

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
new file mode 100644
index 0000000..09ba400
--- /dev/null
+++ b/media-libs/alsa-lib/files/alsa-lib-1.1.3-missing-limits.patch
@@ -0,0 +1,11 @@
+diff -Naur alsa-lib-1.1.3.orig/src/ucm/parser.c alsa-lib-1.1.3/src/ucm/parser.c
+--- alsa-lib-1.1.3.orig/src/ucm/parser.c       2016-12-22 15:21:20.756308973 
-0800
++++ alsa-lib-1.1.3/src/ucm/parser.c    2016-12-22 15:21:51.996612346 -0800
+@@ -32,6 +32,7 @@
+ 
+ #include "ucm_local.h"
+ #include <dirent.h>
++#include <limits.h>
+ 
+ /** The name of the environment variable containing the UCM directory */
+ #define ALSA_CONFIG_UCM_VAR "ALSA_CONFIG_UCM"

diff --git a/media-libs/alsa-lib/metadata.xml b/media-libs/alsa-lib/metadata.xml
new file mode 100644
index 0000000..d1e2102
--- /dev/null
+++ b/media-libs/alsa-lib/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+  <maintainer type="project">
+    <email>[email protected]</email>
+  </maintainer>
+  <use>
+    <flag name="alisp">Enable support for ALISP (ALSA LISP) interpreter for 
advanced features.</flag>
+  </use>
+  <upstream>
+    <remote-id type="cpe">cpe:/a:alsa-project:alsa-lib</remote-id>
+  </upstream>
+</pkgmetadata>

Reply via email to