From f8deb4f754798d63fb6b82178452ee846df8475f Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 17 Feb 2024 11:37:14 +0000 Subject: gentoo auto-resync : 17:02:2024 - 11:37:14 --- media-sound/alsa-tools/Manifest | 2 + media-sound/alsa-tools/alsa-tools-1.2.11.ebuild | 158 ++++++++++++++++++++++++ 2 files changed, 160 insertions(+) create mode 100644 media-sound/alsa-tools/alsa-tools-1.2.11.ebuild (limited to 'media-sound/alsa-tools') diff --git a/media-sound/alsa-tools/Manifest b/media-sound/alsa-tools/Manifest index 4f9ccaf9436e..dd23f9cbb105 100644 --- a/media-sound/alsa-tools/Manifest +++ b/media-sound/alsa-tools/Manifest @@ -1,5 +1,7 @@ AUX alsa-tools-1.2.5-hdspmixer-crash.patch 761 BLAKE2B a2290baa6b4436a2d1cfdfd12039b42ee83017a991b7f05bb8118e27942c7b60bdb0a5636a0859d035290472069a485c2c1d6d45491c9b560b56cd80c36a859e SHA512 220fc805687d04e43914ae13ebfd6f9cfcf4415f7e9a25b0f9d57ee399656a5cc0aa17d75b8e27ee634dd3d66e88bb93fe8caed84b37c0e90bb154f086b3b71f AUX envy24control-config-dir.patch 593 BLAKE2B 481ffd2bf81ce1e8fb0cd8ee1d40c398c54aec73ca705c26ea234915c47f2da7f48a71075612540ac42d4aaf91dfc43d23b08ec72c6598b25126b1771841e15e SHA512 267be12fb2d9d561cc2746317beaf5168362005cb98a55d3efe5741dcd974b088bfa049f2ed185919083fe2e24596eec67de2f2984da5369b9aa0eac983b5cef +DIST alsa-tools-1.2.11.tar.bz2 1882262 BLAKE2B 2c429cb0dceb1dcb186578e2109a1b3b6eece7ba5e8e1c6de14cc5e2f37ecc947469247e95fb894bb1171fa490deb000405135ec82e822d0fc24bf5c920ec724 SHA512 b5a29a83121a637eaa16d225875feeabaea893eabc61b97d0c18a5852d851ff2e6932bd732786bb43525b410c2bb9185261cc4509fd3ee5fd8536557f12b2154 DIST alsa-tools-1.2.5.tar.bz2 1880907 BLAKE2B 1ecd7d24771e3f5899a7084a69196c9301b549dd331cbbbc55b6f0c694566147a9d5642cf94f0ad5ca5fcedb77daa1cb4615ce0ec0be157b32c9d756611a7cca SHA512 1c4ff947d9f2424056a6748e04a1250fb73443a3f470f61d0b563c91be082bc42d56e550d6cc27eaed3edcea2066a107e20455c959b053b5deafa2d811b7e498 +EBUILD alsa-tools-1.2.11.ebuild 3472 BLAKE2B da2c1c7ec15d10549467169be559f843043794182ffd4ea57ed27d6ffa85f1fd8f40a7ec56b4e33a9eff65e579068f0017502a62aee3716a49b3d02af3e20a71 SHA512 cdf44b9a5d7c31554cedeadccb79c81448d80e8b4fda7fbd6bb45b8117a29f3e5fcae1a1483d41f52967d1ac45e2fc91ec0e681e1bc8234c437e0dfb9a84a91c EBUILD alsa-tools-1.2.5-r1.ebuild 3516 BLAKE2B 8780357680d18848374abdebc71e898c0c988018b68252607efad314e0b6160651ac9e3e041f23d771f582866ecceeaab6b267fdeeb0e48696411a07c131aa99 SHA512 cb8e0426ecb1270b771c58978b5a40be18afed5ed3f8894921fab4b7174274b1740255acfb1ab314642d3de99daff94d830efc1d5f3604a4a69e3926074414d8 MISC metadata.xml 310 BLAKE2B 1e82b52e947ac2e811104c837f168f7020c2864c5ece3b1da5e06578a3e63b39b06bdb4993ac7d5cbd90d5e359df63c49aba4a4f309bf8f9c003190942b0d9b3 SHA512 45fc98227626d78099dfae8b44df697c436d1df13e61e6e05bbd29ec63218961aadc5124c813c6d076f29da6617f2c901b73ff8a021817973d13a809d0240f4d diff --git a/media-sound/alsa-tools/alsa-tools-1.2.11.ebuild b/media-sound/alsa-tools/alsa-tools-1.2.11.ebuild new file mode 100644 index 000000000000..8bd584b359a0 --- /dev/null +++ b/media-sound/alsa-tools/alsa-tools-1.2.11.ebuild @@ -0,0 +1,158 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools flag-o-matic libtool xdg + +DESCRIPTION="Advanced Linux Sound Architecture tools" +HOMEPAGE="https://alsa-project.org/wiki/Main_Page" +SRC_URI="https://www.alsa-project.org/files/pub/tools/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0.9" +KEYWORDS="~alpha ~amd64 ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" + +IUSE="fltk gtk alsa_cards_hdsp alsa_cards_hdspm alsa_cards_mixart +alsa_cards_vx222 alsa_cards_usb-usx2y alsa_cards_sb16 alsa_cards_sbawe +alsa_cards_emu10k1 alsa_cards_emu10k1x alsa_cards_ice1712 +alsa_cards_rme32 alsa_cards_rme96 alsa_cards_sscape alsa_cards_pcxhr" + +# bug #468294 +DEPEND=" + >=media-libs/alsa-lib-${PV} + >=dev-python/pyalsa-1.0.26 + fltk? ( >=x11-libs/fltk-1.3.0:1 ) + gtk? ( + dev-libs/gobject-introspection + x11-libs/gtk+:2 + x11-libs/gtk+:3 + ) +" +# bug #456114 +RDEPEND=" + ${DEPEND} + gtk? ( media-fonts/font-misc-misc ) +" +BDEPEND=" + virtual/pkgconfig +" + +PATCHES=( + "${FILESDIR}"/envy24control-config-dir.patch +) + +pkg_setup() { + ALSA_TOOLS=( + seq/sbiload + us428control + hwmixvolume + hda-verb + $(usev alsa_cards_mixart mixartloader) + $(usev alsa_cards_vx222 vxloader) + $(usev alsa_cards_usb-usx2y usx2yloader) + $(usev alsa_cards_pcxhr pcxhrloader) + $(usev alsa_cards_sscape sscape_ctl) + ) + + if use gtk; then + ALSA_TOOLS+=( + echomixer + hdajackretask + $(usev alsa_cards_ice1712 envy24control) + ) + # Perhaps a typo the following && logic? + if use alsa_cards_rme32 && use alsa_cards_rme96 ; then + ALSA_TOOLS+=( rmedigicontrol ) + fi + fi + + if use alsa_cards_hdsp || use alsa_cards_hdspm ; then + ALSA_TOOLS+=( + hdsploader + $(usev fltk 'hdspconf hdspmixer') + ) + fi + + if use alsa_cards_sb16 || use alsa_cards_sbawe ; then + ALSA_TOOLS+=( sb16_csp ) + fi + + if use alsa_cards_emu10k1 || use alsa_cards_emu10k1x; then + ALSA_TOOLS+=( as10k1 ld10k1 ) + fi +} + +src_prepare() { + default + + # This block only deals with the tools that still use GTK and the + # AM_PATH_GTK macro. + for dir in echomixer envy24control rmedigicontrol; do + has "${dir}" "${ALSA_TOOLS[*]}" || continue + pushd "${dir}" &> /dev/null || die + eautoreconf + popd &> /dev/null || die + done + + # This block deals with the tools that are being patched + for dir in hdspconf; do + has "${dir}" "${ALSA_TOOLS[*]}" || continue + pushd "${dir}" &> /dev/null || die + eautoreconf + popd &> /dev/null || die + done + + elibtoolize +} + +src_configure() { + if use fltk; then + # hdspmixer requires fltk + append-ldflags "-L$(dirname $(fltk-config --libs))" + append-flags "-I$(fltk-config --includedir)" + fi + + local f + for f in ${ALSA_TOOLS[@]} ; do + cd "${S}/${f}" || die + case "${f}" in + echomixer,envy24control,rmedigicontrol ) + econf --with-gtk2 + ;; + * ) + econf + ;; + esac + done +} + +src_compile() { + local f + for f in ${ALSA_TOOLS[@]} ; do + cd "${S}/${f}" || die + emake + done +} + +src_install() { + local f + for f in ${ALSA_TOOLS[@]} ; do + # Install the main stuff + cd "${S}/${f}" || die + # hotplugdir is for usx2yloader/Makefile.am + emake DESTDIR="${D}" hotplugdir=/lib/firmware install + + # Install the text documentation + local doc + for doc in README TODO ChangeLog AUTHORS; do + if [[ -f "${doc}" ]]; then + mv "${doc}" "${doc}.$(basename ${f})" || die + dodoc "${doc}.$(basename ${f})" + fi + done + done + + # Punt at least /usr/lib/liblo10k1.la (last checked, 1.0.27) + find "${ED}" -type f -name '*.la' -delete || die +} -- cgit v1.2.3