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: Wed, 15 Nov 2017 17:40:43
Message-Id: 1510767622.eb4f072c1e2f6e1333cb17bf0119a05916f5404a.polynomial-c@gentoo
1 commit: eb4f072c1e2f6e1333cb17bf0119a05916f5404a
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Wed Nov 15 15:23:56 2017 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 15 17:40:22 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb4f072c
7
8 media-sound/alsa-utils: Bump to version 1.1.5
9
10 Package-Manager: Portage-2.3.14, Repoman-2.3.6
11
12 media-sound/alsa-utils/Manifest | 1 +
13 media-sound/alsa-utils/alsa-utils-1.1.5.ebuild | 74 ++++++++++++++++++++++++++
14 2 files changed, 75 insertions(+)
15
16 diff --git a/media-sound/alsa-utils/Manifest b/media-sound/alsa-utils/Manifest
17 index ccdb2cbd061..072b5d0c294 100644
18 --- a/media-sound/alsa-utils/Manifest
19 +++ b/media-sound/alsa-utils/Manifest
20 @@ -1,3 +1,4 @@
21 DIST alsa-utils-1.1.2.tar.bz2 1193140 SHA256 7af603c0877d1251599d65b4fbc372e63a54371b888f5c26c6a86ac1d0519071 SHA512 38dc3331e8410123085738e74ca34c860666027ee2f6aaa21f48e726c84d8e6264043c8c7111ce2b1e158a0f38142a04d72a128ee54e00173dc4e4ba514d2f14 WHIRLPOOL 353d636271fd4354e7a7b986c08a3eabdb91bb8239b3d14a2163dea095dee010cd777276901c11df58a4fcba24680770512df4784e446a63941224f9ee79f632
22 DIST alsa-utils-1.1.3.tar.bz2 1201424 SHA256 127217a54eea0f9a49700a2f239a2d4f5384aa094d68df04a8eb80132eb6167c SHA512 a0a00578e7f7ed8441628757048412813a0345f0a3f2e085cda7a881ae3c6e22f7cf1e5119f8200e2e4340e42152b91aa5bdc20646b8422adc74ba00e4c59363 WHIRLPOOL 10f1f8f5b7a659dc7ba79c934076eafbbd72f4892b571660a6224fc1061b4e893e2f5a937187a4eb50f2e982c07e097c965a88052451218adcde2e5cd3bfb6f9
23 DIST alsa-utils-1.1.4.tar.bz2 1202047 SHA256 a7831044de92c5bf33bf3365a3f36e49397f4191e934df460ae1ca15138c9d9d SHA512 96852b3f5b57d7d9078a20881f28311543d446b69c80450179823a225089df7306456991890a7ef37672c1f55e9c386a7731c94e125504dcda2c88a674c8b4c7 WHIRLPOOL f09be2aeb3402b580ba103cfacb854b4fd55c2c19bfcfb7e56d4b924add5eb17d4fcb523cf7d85482728da8d8cfde0033cf205a7f9e53225a9b7a4a59a906f28
24 +DIST alsa-utils-1.1.5.tar.bz2 1202691 SHA256 320bd285e91db6e7fd7db3c9ec6f55b02f35449ff273c7844780ac6a5a3de2e8 SHA512 102e9ed34b89219dbad243ad5f61ca65fb8101502566c02f40d4e69abb45baa7a60f24440de1417e0f0e7f55b28db53d365d53a59af11f1ca816e2aa5907153d WHIRLPOOL f1afb19d2135500a0552825e89eb115c2cb00812ee1e911c7710246c08cbdb53d267b535fb8775b3e895f9a6550fd447873aaa22a3d698c2cac5080dc7e32efe
25
26 diff --git a/media-sound/alsa-utils/alsa-utils-1.1.5.ebuild b/media-sound/alsa-utils/alsa-utils-1.1.5.ebuild
27 new file mode 100644
28 index 00000000000..87137657c10
29 --- /dev/null
30 +++ b/media-sound/alsa-utils/alsa-utils-1.1.5.ebuild
31 @@ -0,0 +1,74 @@
32 +# Copyright 1999-2017 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +inherit eutils systemd udev
37 +
38 +DESCRIPTION="Advanced Linux Sound Architecture Utils (alsactl, alsamixer, etc.)"
39 +HOMEPAGE="http://www.alsa-project.org/"
40 +SRC_URI="mirror://alsaproject/utils/${P}.tar.bz2"
41 +
42 +LICENSE="GPL-2"
43 +SLOT="0.9"
44 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86"
45 +IUSE="bat doc +libsamplerate +ncurses nls selinux"
46 +
47 +CDEPEND=">=media-libs/alsa-lib-${PV}
48 + libsamplerate? ( media-libs/libsamplerate )
49 + ncurses? ( >=sys-libs/ncurses-5.7-r7:0= )
50 + bat? ( sci-libs/fftw:= )"
51 +DEPEND="${CDEPEND}
52 + virtual/pkgconfig
53 + doc? ( app-text/xmlto )"
54 +RDEPEND="${CDEPEND}
55 + selinux? ( sec-policy/selinux-alsa )"
56 +
57 +src_configure() {
58 + local myconf
59 + use doc || myconf='--disable-xmlto'
60 +
61 + # --disable-alsaconf because it doesn't work with sys-apps/kmod wrt #456214
62 + econf \
63 + --disable-maintainer-mode \
64 + $(use_enable bat) \
65 + $(use_enable libsamplerate alsaloop) \
66 + $(use_enable nls) \
67 + $(use_enable ncurses alsamixer) \
68 + --disable-alsaconf \
69 + --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \
70 + --with-udev-rules-dir="${EPREFIX}/$(get_udevdir)"/rules.d \
71 + --with-asound-state-dir="${EPREFIX}"/var/lib/alsa \
72 + ${myconf}
73 +}
74 +
75 +src_install() {
76 + default
77 + dodoc seq/*/README.*
78 +
79 + newinitd "${FILESDIR}"/alsasound.initd-r7 alsasound
80 + newconfd "${FILESDIR}"/alsasound.confd-r4 alsasound
81 +
82 + insinto /etc/modprobe.d
83 + newins "${FILESDIR}"/alsa-modules.conf-rc alsa.conf
84 +
85 + keepdir /var/lib/alsa
86 +
87 + # ALSA lib parser.c:1266:(uc_mgr_scan_master_configs) error: could not
88 + # scan directory /usr/share/alsa/ucm: No such file or directory
89 + # alsaucm: unable to obtain card list: No such file or directory
90 + keepdir /usr/share/alsa/ucm
91 +}
92 +
93 +pkg_postinst() {
94 + if [[ -z ${REPLACING_VERSIONS} ]]; then
95 + elog
96 + elog "To take advantage of the init script, and automate the process of"
97 + elog "saving and restoring sound-card mixer levels you should"
98 + elog "add alsasound to the boot runlevel. You can do this as"
99 + elog "root like so:"
100 + elog "# rc-update add alsasound boot"
101 + ewarn
102 + ewarn "The ALSA core should be built into the kernel or loaded through other"
103 + ewarn "means. There is no longer any modular auto(un)loading in alsa-utils."
104 + fi
105 +}