Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/alsa-lib/
Date: Tue, 08 Jan 2019 23:43:21
Message-Id: 1546990988.e063b4cae6f19ebae25182d954f49942f1cb22e8.polynomial-c@gentoo
1 commit: e063b4cae6f19ebae25182d954f49942f1cb22e8
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 8 23:27:12 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 8 23:43:08 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e063b4ca
7
8 media-libs/alsa-lib: Bump to version 1.1.8
9
10 Package-Manager: Portage-2.3.54, Repoman-2.3.12
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 media-libs/alsa-lib/Manifest | 1 +
14 media-libs/alsa-lib/alsa-lib-1.1.8.ebuild | 83 +++++++++++++++++++++++++++++++
15 2 files changed, 84 insertions(+)
16
17 diff --git a/media-libs/alsa-lib/Manifest b/media-libs/alsa-lib/Manifest
18 index 69b9acd635e..0297ae0d8b5 100644
19 --- a/media-libs/alsa-lib/Manifest
20 +++ b/media-libs/alsa-lib/Manifest
21 @@ -1,3 +1,4 @@
22 DIST alsa-lib-1.1.2.tar.bz2 947423 BLAKE2B 09cd6a625d8f681c5515fd925191fb5468158ed77cc3878c076f4344e4d8f7b15e9872d3d6635710049ca14199851f2343246e94810fe2a0bb0d1e02915c941e SHA512 a6c6675b1fd86955ef5072b9e6090795fc6b0b16f32481bece049e5f100e689be48b6416ff7cf36abfc67e0b94f420e08c15ff13a9701987d6bb69a8fa567e8a
23 DIST alsa-lib-1.1.6.tar.bz2 989316 BLAKE2B 2aec62d262148571cc1b93ac8053002b61266951caf8b2855fc65b699ec928672748a21ba11a25e14e752a4a85f68b2f77b5ad6af9b2f1fc5e9de41313ace54a SHA512 00117769a3d5c609019b975188d6e7a07d035bd0461f54c5f291e14667620506f1adb6d61350f78d54648850f31965aae3ab0e697bf9e09c988e2d15bf6b09f0
24 DIST alsa-lib-1.1.7.tar.bz2 1005257 BLAKE2B 0ee0eb9db057421d75436bbed49e0a0ef560700d480a5dc73bc0e9e6abaa29892dc4e4482c671996fbc9f6bb5f70ba645010bd714f30959fef897e3dc906980f SHA512 7cc81464d876a137e9ac9700420bfff7cd528338bdc6e0bdbe313d45c5b97c81f1a9483df0556fe390d54a9db747fbec62e843b42d2cbc740d5a91b015714f6c
25 +DIST alsa-lib-1.1.8.tar.bz2 1002562 BLAKE2B a531ab501943924d007f7ae0e4489deea805ccbc8f2f02d3ee392aa2dbe54ffe31f58ee1744308f851a68f693c83125088708e901d0d83e4a7a5f644ef448aa3 SHA512 50ae107c6efe8200b4c41e0463e099d16e149332f1d3a22c3e81d3e7d980b7f93f3610fc9711ef62067caeb1054e7ea612ba3903bf8a91ebeffa48687cf80eed
26
27 diff --git a/media-libs/alsa-lib/alsa-lib-1.1.8.ebuild b/media-libs/alsa-lib/alsa-lib-1.1.8.ebuild
28 new file mode 100644
29 index 00000000000..6bd9afc32fa
30 --- /dev/null
31 +++ b/media-libs/alsa-lib/alsa-lib-1.1.8.ebuild
32 @@ -0,0 +1,83 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +PYTHON_COMPAT=( python{2_7,3_{4,5,6,7}} )
39 +
40 +inherit autotools multilib multilib-minimal python-single-r1
41 +
42 +DESCRIPTION="Advanced Linux Sound Architecture Library"
43 +HOMEPAGE="https://alsa-project.org/"
44 +SRC_URI="mirror://alsaproject/lib/${P}.tar.bz2"
45 +
46 +LICENSE="LGPL-2.1"
47 +SLOT="0"
48 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
49 +IUSE="alisp debug doc elibc_uclibc python +thread-safety"
50 +
51 +RDEPEND="python? ( ${PYTHON_DEPS} )"
52 +DEPEND="${RDEPEND}
53 + doc? ( >=app-doc/doxygen-1.2.6 )"
54 +
55 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
56 +
57 +PATCHES=(
58 + "${FILESDIR}/${PN}-1.1.6-missing_files.patch" #652422
59 +)
60 +
61 +pkg_setup() {
62 + use python && python-single-r1_pkg_setup
63 +}
64 +
65 +src_prepare() {
66 + find . -name Makefile.am -exec sed -i -e '/CFLAGS/s:-g -O2::' {} + || die
67 + # https://bugs.gentoo.org/509886
68 + use elibc_uclibc && { sed -i -e 's:oldapi queue_timer:queue_timer:' test/Makefile.am || die; }
69 + # https://bugs.gentoo.org/545950
70 + sed -i -e '5s:^$:\nAM_CPPFLAGS = -I$(top_srcdir)/include:' test/lsb/Makefile.am || die
71 + default
72 + eautoreconf
73 +}
74 +
75 +multilib_src_configure() {
76 + local myeconfargs=(
77 + --disable-maintainer-mode
78 + --disable-resmgr
79 + --enable-aload
80 + --enable-rawmidi
81 + --enable-seq
82 + --enable-shared
83 + # enable Python only on final ABI
84 + $(multilib_native_use_enable python)
85 + $(use_enable alisp)
86 + $(use_enable thread-safety)
87 + $(use_with debug)
88 + $(usex elibc_uclibc --without-versioned '')
89 + )
90 +
91 + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
92 +}
93 +
94 +multilib_src_compile() {
95 + emake
96 +
97 + if multilib_is_native_abi && use doc; then
98 + emake doc
99 + grep -FZrl "${S}" doc/doxygen/html | \
100 + xargs -0 sed -i -e "s:${S}::"
101 + fi
102 +}
103 +
104 +multilib_src_install() {
105 + emake DESTDIR="${D}" install
106 + if multilib_is_native_abi && use doc; then
107 + docinto html
108 + dodoc -r doc/doxygen/html/.
109 + fi
110 +}
111 +
112 +multilib_src_install_all() {
113 + find "${ED}" \( -name '*.a' -o -name '*.la' \) -delete || die
114 + dodoc ChangeLog doc/asoundrc.txt NOTES TODO
115 +}