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