media-sound/alsa-utils: add 1.2.15.1

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James 2025-12-20 02:37:14 +00:00
parent cea136d9ae
commit 3e676919ff
No known key found for this signature in database
GPG Key ID: 738409F520DF9190
2 changed files with 92 additions and 0 deletions

View File

@ -1,3 +1,4 @@
DIST alsa-utils-1.2.13.tar.bz2 1642028 BLAKE2B 9bc2bf8e21fb9308c2eabc6612da0848f9ddba45acb8bf8453d9cff7f73fa0267495430a150ea53b28fab8afb69a51e487e8b253dc7501e17d77ea3f6e90bcf7 SHA512 0e2fb5b6e497b977badba2ebe2bddfc819654d24001622e0299e4034210caeeea2f3c2c2d1d260a48caefb6584e0b989fdb7036c6012108c8c38d89b3cb04c78
DIST alsa-utils-1.2.14.tar.bz2 1652717 BLAKE2B 0f15f6f684bf17c0508b01eabd21917d8501b965074d3b42f6915e9bbafeafad894dcbd1a219008db0064fb98d6fb2be311e98c0b8bc7e91d1a0b8146dd02dfe SHA512 dd470a2f5210822cc4d3ded094b84721a07904df5c32dd329e0cb4c052d39e3e6d7ddb511cde2d23b3f6824c71fba9dbdca369355d5c03b234e989dbbb9b7a95
DIST alsa-utils-1.2.15.1.tar.bz2 1669645 BLAKE2B e3bd56822ec092f96386be3f8ae6772ced899884dfdef2341700be877a4822a3168d55a5aa9ba269e8e1b9fc61ae33a027abfa2e1c4f7fc68e0d8ce8780d3586 SHA512 f961c6f85244a6f10708f7e352e1eaa05fc898ec9e0d26e792efe4d2934568a455836035b311376dd03568f6c3607fad8702c5958c5874304d7afd6b8d5906e0
DIST alsa-utils-1.2.15.tar.bz2 1669125 BLAKE2B b2bbe9efa9e4793f046870246c80a901299fdaf7447fe8d1421b932d9cf077efe7418617ef2f48c2055515ce32a406a215609638b39b71b2419c324b07d0c40e SHA512 34b275d8a3c56e59a9f9e440ee6859d70d5d69a992a80593b6bcdd0eb8ac8ee93878f4e63381eb310af82f287ed1b6f7593d2a03ab7acb487c98511355d11d82

View File

@ -0,0 +1,91 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit systemd udev
DESCRIPTION="Advanced Linux Sound Architecture Utils (alsactl, alsamixer, etc.)"
HOMEPAGE="https://alsa-project.org/wiki/Main_Page"
SRC_URI="https://www.alsa-project.org/files/pub/utils/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0.9"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
IUSE="bat doc +libsamplerate ieee1394 +ncurses nls selinux"
DEPEND="
>=media-libs/alsa-lib-${PV}
libsamplerate? ( media-libs/libsamplerate )
ieee1394? ( media-libs/libffado )
ncurses? ( >=sys-libs/ncurses-5.7-r7:= )
bat? ( sci-libs/fftw:= )
"
RDEPEND="
${DEPEND}
selinux? ( sec-policy/selinux-alsa )
"
BDEPEND="
virtual/pkgconfig
doc? ( app-text/xmlto )
"
PATCHES=(
"${FILESDIR}"/${PN}-1.1.8-missing_header.patch
)
src_configure() {
export ac_cv_lib_ffado_ffado_streaming_init=$(usex ieee1394)
local myeconfargs=(
# --disable-alsaconf because it doesn't work with sys-apps/kmod, bug #456214
--disable-alsaconf
--disable-maintainer-mode
--with-asound-state-dir="${EPREFIX}"/var/lib/alsa
--with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
--with-udev-rules-dir="${EPREFIX}/$(get_udevdir)"/rules.d
$(use_enable bat)
$(use_enable libsamplerate alsaloop)
$(use_enable ncurses alsamixer)
$(use_enable nls)
$(usev !doc '--disable-xmlto')
)
econf "${myeconfargs[@]}"
}
src_install() {
default
dodoc seq/*/README.*
newinitd "${FILESDIR}"/alsasound.initd-r8 alsasound
newconfd "${FILESDIR}"/alsasound.confd-r4 alsasound
keepdir /var/lib/alsa
# ALSA lib parser.c:1266:(uc_mgr_scan_master_configs) error: could not
# scan directory /usr/share/alsa/ucm: No such file or directory
# alsaucm: unable to obtain card list: No such file or directory
keepdir /usr/share/alsa/ucm
find "${ED}" -type f -name '*.la' -delete || die
}
pkg_postinst() {
udev_reload
if [[ -z ${REPLACING_VERSIONS} ]] && ! systemd_is_booted ; then
elog
elog "To take advantage of the init script, and automate the process of"
elog "saving and restoring sound-card mixer levels you should"
elog "add alsasound to the boot runlevel. You can do this as"
elog "root like so:"
elog "# rc-update add alsasound boot"
ewarn
ewarn "The ALSA core should be built into the kernel or loaded through other"
ewarn "means. There is no longer any modular auto(un)loading in alsa-utils."
fi
}
pkg_postrm() {
udev_reload
}