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, 07 Dec 2021 06:47:16
Message-Id: 1638859620.f1aff2fc5a7de3d33d6c1867d04085d00df56718.polynomial-c@gentoo
1 commit: f1aff2fc5a7de3d33d6c1867d04085d00df56718
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 7 06:39:14 2021 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 7 06:47:00 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1aff2fc
7
8 media-libs/alsa-lib: Bump to version 1.2.6
9
10 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
11
12 media-libs/alsa-lib/Manifest | 1 +
13 media-libs/alsa-lib/alsa-lib-1.2.6.ebuild | 92 +++++++++++++++++++++++++++++++
14 2 files changed, 93 insertions(+)
15
16 diff --git a/media-libs/alsa-lib/Manifest b/media-libs/alsa-lib/Manifest
17 index 2f2cda5dd263..baae0ac54fbd 100644
18 --- a/media-libs/alsa-lib/Manifest
19 +++ b/media-libs/alsa-lib/Manifest
20 @@ -1,2 +1,3 @@
21 DIST alsa-lib-1.2.4.tar.bz2 1044405 BLAKE2B e1d5d9afe21dac693645274ae4ec8a607c9fcc9915ba4ebccfdb539d44b9353ba07529e2c8eaca119884b926d4467285313c945c9015a788101fe532064442db SHA512 12086952dc8f16f1cb6946517858e17b1c3276aeda9ff5703a84bb38aa78eb4c4e9cb4485c5b3f21f174fdbd976b3bcbbc481e85cb2460652858490df51ae844
22 DIST alsa-lib-1.2.5.1.tar.bz2 1069073 BLAKE2B 5464cc7f263bdf7b10aa7e1f542ad6dbc55bf300156fd1bded00375c41a518d4b14f96e28eb1c60a6ce7cc6e27da4b2e8598cd867f15417f260fc23513f93e11 SHA512 01998ffa449e925ff552c13aea47f9540903afdc533086067c78dcaba4d239c347180d3d28bb0000e6d19b7779c7249fcc77a30057930ca22d18ba55e163fa1c
23 +DIST alsa-lib-1.2.6.tar.bz2 1079598 BLAKE2B 84a7a20fbea4025f2ac08acefa3a9ea9d2737585c5d5f09c8df3b5ccb998eaa09a7ec16a019a40c4d3e3e4b5209b961f9da23ec57c0bb9824bade9a3a0dd4350 SHA512 ae95718813abf62811fe44c6df2a8de5a1227da4b022c4dd97dd8e7c1001f48307ba36bf04208bdbe24e8a8eebf4ed5a59f40ee6750dcbe976678071c3f2f5b7
24
25 diff --git a/media-libs/alsa-lib/alsa-lib-1.2.6.ebuild b/media-libs/alsa-lib/alsa-lib-1.2.6.ebuild
26 new file mode 100644
27 index 000000000000..1b9c1819ad93
28 --- /dev/null
29 +++ b/media-libs/alsa-lib/alsa-lib-1.2.6.ebuild
30 @@ -0,0 +1,92 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +PYTHON_COMPAT=( python3_{8..10} )
37 +inherit autotools multilib-minimal python-single-r1
38 +
39 +DESCRIPTION="Advanced Linux Sound Architecture Library"
40 +HOMEPAGE="https://alsa-project.org/wiki/Main_Page"
41 +if [[ ${PV} == *_p* ]] ; then
42 + # Please set correct commit ID for a snapshot release!!!
43 + COMMIT="abe805ed6c7f38e48002e575535afd1f673b9bcd"
44 + SRC_URI="https://git.alsa-project.org/?p=${PN}.git;a=snapshot;h=${COMMIT};sf=tgz -> ${P}.tar.gz"
45 + S="${WORKDIR}"/${PN}-${COMMIT:0:7}
46 +else
47 + # TODO: Upstream does publish .sig files, so someone could implement verify-sig ;)
48 + SRC_URI="https://www.alsa-project.org/files/pub/lib/${P}.tar.bz2"
49 +fi
50 +
51 +LICENSE="LGPL-2.1"
52 +SLOT="0"
53 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
54 +IUSE="alisp debug doc elibc_uclibc python +thread-safety"
55 +
56 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
57 +
58 +BDEPEND="doc? ( >=app-doc/doxygen-1.2.6 )"
59 +RDEPEND="python? ( ${PYTHON_DEPS} )
60 + media-libs/alsa-topology-conf
61 + media-libs/alsa-ucm-conf
62 +"
63 +DEPEND="${RDEPEND}"
64 +
65 +PATCHES=(
66 + "${FILESDIR}/${PN}-1.1.6-missing_files.patch" # bug #652422
67 +)
68 +
69 +pkg_setup() {
70 + use python && python-single-r1_pkg_setup
71 +}
72 +
73 +src_prepare() {
74 + find . -name Makefile.am -exec sed -i -e '/CFLAGS/s:-g -O2::' {} + || die
75 + # https://bugs.gentoo.org/509886
76 + if use elibc_uclibc ; then
77 + sed -i -e 's:oldapi queue_timer:queue_timer:' test/Makefile.am || die
78 + fi
79 + # https://bugs.gentoo.org/545950
80 + sed -i -e '5s:^$:\nAM_CPPFLAGS = -I$(top_srcdir)/include:' test/lsb/Makefile.am || die
81 + default
82 + eautoreconf
83 +}
84 +
85 +multilib_src_configure() {
86 + local myeconfargs=(
87 + --disable-maintainer-mode
88 + --disable-resmgr
89 + --enable-aload
90 + --enable-rawmidi
91 + --enable-seq
92 + --enable-shared
93 + # enable Python only on final ABI
94 + $(multilib_native_use_enable python)
95 + $(use_enable alisp)
96 + $(use_enable thread-safety)
97 + $(use_with debug)
98 + $(usex elibc_uclibc --without-versioned '')
99 + )
100 +
101 + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
102 +}
103 +
104 +multilib_src_compile() {
105 + emake
106 +
107 + if multilib_is_native_abi && use doc; then
108 + emake doc
109 + grep -FZrl "${S}" doc/doxygen/html | \
110 + xargs -0 sed -i -e "s:${S}::" || die
111 + fi
112 +}
113 +
114 +multilib_src_install() {
115 + multilib_is_native_abi && use doc && local HTML_DOCS=( doc/doxygen/html/. )
116 + default
117 +}
118 +
119 +multilib_src_install_all() {
120 + find "${ED}" -type f \( -name '*.a' -o -name '*.la' \) -delete || die
121 + dodoc ChangeLog doc/asoundrc.txt NOTES TODO
122 +}