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-sound/alsa-utils/
Date: Tue, 07 Dec 2021 06:47:16
Message-Id: 1638859621.6b573690ef9b3c5b73b1f81e9127eac83cc80beb.polynomial-c@gentoo
1 commit: 6b573690ef9b3c5b73b1f81e9127eac83cc80beb
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 7 06:42:14 2021 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 7 06:47:01 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b573690
7
8 media-sound/alsa-utils: Bump to version 1.2.6
9
10 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
11
12 media-sound/alsa-utils/Manifest | 1 +
13 media-sound/alsa-utils/alsa-utils-1.2.6.ebuild | 77 ++++++++++++++++++++++++++
14 2 files changed, 78 insertions(+)
15
16 diff --git a/media-sound/alsa-utils/Manifest b/media-sound/alsa-utils/Manifest
17 index 18a001e78c52..d47eefde5388 100644
18 --- a/media-sound/alsa-utils/Manifest
19 +++ b/media-sound/alsa-utils/Manifest
20 @@ -1,2 +1,3 @@
21 DIST alsa-utils-1.2.4.tar.bz2 1286259 BLAKE2B 41eb0b8186c1956c19d8f8b28863ab54c66ff531b9ec5c48cc6c5ed8ca249d135614112ce412d6adb6f21982235e06a4148591777cce00d17ea537aacbd664ad SHA512 13080abda55269513b3751044dac292d695e273073a62d74ed4a32c68f448a2b015fe16604650821a6398b6ef6a7b6008cb9f0b7fb7f4ee1fa2b4eb2dcf29770
22 DIST alsa-utils-1.2.5.1.tar.bz2 1326965 BLAKE2B 79f96fd3ba1d92e72dc634dc01439acd3ccd02555c39cc1714c52bbd1e4bc8b68ec7bf5d219a704533e4a61587c3528504ef9cd7c652924d74daafa90f74e42a SHA512 bbafeb9189ec5802965c4e69cf6e7cd4c132ffb77b57f164d6585649890f96edd052c72697171fd629b39e12f78648fea634468df34c1a80255227ca397907bf
23 +DIST alsa-utils-1.2.6.tar.bz2 1334063 BLAKE2B 3b81cccc836e0de9f6d98f311dc3a316a02179ec1fc7520da9658192f27e7701c6dc41b04a82639d6269d6943afd8a89cb6477406cbc36ac450e57919cff46f2 SHA512 6842f0f4c2f7cc5ac3ba94736ee259d9988b5d3e0d2b522f858d712e16938d2845fa9ef64f4aa60222b8ef6738e053f9113a5ea24a197f2c0d6c4dbd70030f5e
24
25 diff --git a/media-sound/alsa-utils/alsa-utils-1.2.6.ebuild b/media-sound/alsa-utils/alsa-utils-1.2.6.ebuild
26 new file mode 100644
27 index 000000000000..78f480047b42
28 --- /dev/null
29 +++ b/media-sound/alsa-utils/alsa-utils-1.2.6.ebuild
30 @@ -0,0 +1,77 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +inherit systemd udev
36 +
37 +DESCRIPTION="Advanced Linux Sound Architecture Utils (alsactl, alsamixer, etc.)"
38 +HOMEPAGE="https://alsa-project.org/wiki/Main_Page"
39 +SRC_URI="https://www.alsa-project.org/files/pub/utils/${P}.tar.bz2"
40 +
41 +LICENSE="GPL-2"
42 +SLOT="0.9"
43 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
44 +IUSE="bat doc +libsamplerate +ncurses nls selinux"
45 +
46 +CDEPEND=">=media-libs/alsa-lib-${PV}
47 + libsamplerate? ( media-libs/libsamplerate )
48 + ncurses? ( >=sys-libs/ncurses-5.7-r7:0= )
49 + bat? ( sci-libs/fftw:= )"
50 +DEPEND="${CDEPEND}
51 + doc? ( app-text/xmlto )"
52 +RDEPEND="${CDEPEND}
53 + selinux? ( sec-policy/selinux-alsa )"
54 +BDEPEND="virtual/pkgconfig"
55 +
56 +PATCHES=(
57 + "${FILESDIR}"/${PN}-1.1.8-missing_header.patch
58 +)
59 +
60 +src_configure() {
61 + local myeconfargs=(
62 + # --disable-alsaconf because it doesn't work with sys-apps/kmod wrt #456214
63 + --disable-alsaconf
64 + --disable-maintainer-mode
65 + --with-asound-state-dir="${EPREFIX}"/var/lib/alsa
66 + --with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
67 + --with-udev-rules-dir="${EPREFIX}/$(get_udevdir)"/rules.d
68 + $(use_enable bat)
69 + $(use_enable libsamplerate alsaloop)
70 + $(use_enable ncurses alsamixer)
71 + $(use_enable nls)
72 + $(usex doc '' --disable-xmlto)
73 + )
74 + econf "${myeconfargs[@]}"
75 +}
76 +
77 +src_install() {
78 + default
79 + dodoc seq/*/README.*
80 +
81 + newinitd "${FILESDIR}"/alsasound.initd-r8 alsasound
82 + newconfd "${FILESDIR}"/alsasound.confd-r4 alsasound
83 +
84 + insinto /etc/modprobe.d
85 + newins "${FILESDIR}"/alsa-modules.conf-rc alsa.conf
86 +
87 + keepdir /var/lib/alsa
88 +
89 + # ALSA lib parser.c:1266:(uc_mgr_scan_master_configs) error: could not
90 + # scan directory /usr/share/alsa/ucm: No such file or directory
91 + # alsaucm: unable to obtain card list: No such file or directory
92 + keepdir /usr/share/alsa/ucm
93 +}
94 +
95 +pkg_postinst() {
96 + if [[ -z ${REPLACING_VERSIONS} ]]; then
97 + elog
98 + elog "To take advantage of the init script, and automate the process of"
99 + elog "saving and restoring sound-card mixer levels you should"
100 + elog "add alsasound to the boot runlevel. You can do this as"
101 + elog "root like so:"
102 + elog "# rc-update add alsasound boot"
103 + ewarn
104 + ewarn "The ALSA core should be built into the kernel or loaded through other"
105 + ewarn "means. There is no longer any modular auto(un)loading in alsa-utils."
106 + fi
107 +}