Gentoo Archives: gentoo-commits

From: Tony Vroon <chainsaw@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/alsa-tools/
Date: Tue, 01 Dec 2015 18:14:46
Message-Id: 1448466940.43e3e199d38943c20c4104b94d4ec98c13db2386.chainsaw@gentoo
1 commit: 43e3e199d38943c20c4104b94d4ec98c13db2386
2 Author: Joe Konno <joe.konno <AT> intel <DOT> com>
3 AuthorDate: Fri Nov 20 02:15:14 2015 +0000
4 Commit: Tony Vroon <chainsaw <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 25 15:55:40 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43e3e199
7
8 media-sound/alsa-tools: version bump to 1.1.0
9
10 Bump version to 1.1.0. Epatch from 1.0.29 appears to be needed-- and
11 applies cleanly-- so carrying it forward to 1.1.0. Masking all archs
12 until the gentoo-sound team deems it "stable".
13
14 This appears to be a "bugfix" release. No new features, bells, or
15 whistles to account for.
16
17 Rudimentary testing performed on amd64.
18
19 ALSA Project release notes at:
20 http://www.alsa-project.org/main/index.php/Changes_v1.0.29_v1.1.0
21
22 Package-Manager: Portage 2.2.20.1
23
24 v2: rebased on 6d4b41d7904e ("app-emulation/docker-compose: move enum34
25 dependence")
26
27 Signed-off-by: Joe Konno <joe.konno <AT> intel.com>
28
29 media-sound/alsa-tools/Manifest | 1 +
30 media-sound/alsa-tools/alsa-tools-1.1.0.ebuild | 143 +++++++++++++++++++++++++
31 2 files changed, 144 insertions(+)
32
33 diff --git a/media-sound/alsa-tools/Manifest b/media-sound/alsa-tools/Manifest
34 index 820437f..7412348 100644
35 --- a/media-sound/alsa-tools/Manifest
36 +++ b/media-sound/alsa-tools/Manifest
37 @@ -1,3 +1,4 @@
38 DIST alsa-tools-1.0.27.tar.bz2 1650746 SHA256 6562611b5a6560712f109e09740a9d4fa47296b07ed9590cb44139c5f154ada2 SHA512 aad985329e5649b5bd7c142e95c5d1c415f28bac1afb81ad21fedac76e736d18abe4aa129e798650d91b2dd14fb18f3960ed5218768c689319c2360c432b4589 WHIRLPOOL 0d827aee4219e393c61a55920e3d66eb4e208e9d3d93ac9c1bf208c5c0c8cdf2d58f63d70b534458f3542cd3cbd5478129d73aecc57ce6654bc43f0bc73c0f25
39 DIST alsa-tools-1.0.28.tar.bz2 1675680 SHA256 76e59711c6d0f39cbddce83ce1ed8da00bad112fee021f94fa990d8685cc3761 SHA512 b5150edb5f5124d5ec256b7c3348207da1bb9847ab2f10297171d6a43f559a31429ef96608a2c670db75d269dd940ebf2b6e3cbfafde530de25cbd95dce31af2 WHIRLPOOL 20f8acf8edf3fa82f19e4098c520c155a87966272d769f29a6208b25fc80a831a6cfdb3c748406ced643b5de7fa4cfb43f3a62d634fd90512369b1f57ea9cb92
40 DIST alsa-tools-1.0.29.tar.bz2 1715439 SHA256 94abf0ab5a73f0710c70d4fb3dc1003af5bae2d2ed721d59d245b41ad0f2fbd1 SHA512 c236e105106e65b9f02e5baed536fa33f8efcff21a75470127e2edacf0bbb3ec555131e146d9dbfc8da307355b372e7c2acaf8edaa98dc7880abd484fbdb2813 WHIRLPOOL 19d34f425ad45d540a0ccd2ae2c77bae810ee6039250f57296c280156c6e6ed8d3788f306975f6b06b8b3f377e714d644aed08c177bd9d83acf352ccb939a47d
41 +DIST alsa-tools-1.1.0.tar.bz2 1715113 SHA256 7d34558c590a50294b36576d257316a1ac5cd951eb8cd7d330e09f8cc757ab51 SHA512 caabbc9a8b494de6bba0dea6440b335b35e5c7dab4942ac36f127a75c2212ff98e7e38566444666edcf40c6c95e6d9797c421014fb5c5c292bb398780e6c9f87 WHIRLPOOL daf731da17c172275b484da37962d85569d70066392bb65f6b462a5f9f17784d204deec203d2466cbc08cb691689b7fc8cd664b370b39e233f1e8afb43c9d0ff
42
43 diff --git a/media-sound/alsa-tools/alsa-tools-1.1.0.ebuild b/media-sound/alsa-tools/alsa-tools-1.1.0.ebuild
44 new file mode 100644
45 index 0000000..319851c
46 --- /dev/null
47 +++ b/media-sound/alsa-tools/alsa-tools-1.1.0.ebuild
48 @@ -0,0 +1,143 @@
49 +# Copyright 1999-2015 Gentoo Foundation
50 +# Distributed under the terms of the GNU General Public License v2
51 +# $Id$
52 +
53 +EAPI=5
54 +inherit autotools eutils flag-o-matic
55 +
56 +DESCRIPTION="Advanced Linux Sound Architecture tools"
57 +HOMEPAGE="http://www.alsa-project.org/"
58 +SRC_URI="mirror://alsaproject/tools/${P}.tar.bz2"
59 +
60 +LICENSE="GPL-2"
61 +SLOT="0.9"
62 +KEYWORDS="~amd64 ~mips ~ppc ~ppc64 ~sparc ~x86"
63 +
64 +IUSE="fltk gtk alsa_cards_hdsp alsa_cards_hdspm alsa_cards_mixart
65 +alsa_cards_vx222 alsa_cards_usb-usx2y alsa_cards_sb16 alsa_cards_sbawe
66 +alsa_cards_emu10k1 alsa_cards_emu10k1x alsa_cards_ice1712
67 +alsa_cards_rme32 alsa_cards_rme96 alsa_cards_sscape alsa_cards_pcxhr"
68 +
69 +COMMON_DEPEND=">=media-libs/alsa-lib-${PV}
70 + >=dev-python/pyalsa-1.0.26
71 + fltk? ( >=x11-libs/fltk-1.3.0:1 )
72 + gtk? (
73 + >=dev-python/pygtk-2
74 + x11-libs/gtk+:2
75 + x11-libs/gtk+:3
76 + )" #468294
77 +RDEPEND="${COMMON_DEPEND}
78 + gtk? ( media-fonts/font-misc-misc )" #456114
79 +DEPEND="${COMMON_DEPEND}
80 + virtual/pkgconfig"
81 +
82 +pkg_setup() {
83 + ALSA_TOOLS="seq/sbiload us428control hwmixvolume hda-verb"
84 +
85 + if use gtk; then
86 + ALSA_TOOLS="${ALSA_TOOLS} hdajackretask"
87 + use alsa_cards_ice1712 && \
88 + ALSA_TOOLS="${ALSA_TOOLS} envy24control"
89 + use alsa_cards_rme32 && use alsa_cards_rme96 && \
90 + ALSA_TOOLS="${ALSA_TOOLS} rmedigicontrol"
91 + fi
92 +
93 + if use alsa_cards_hdsp || use alsa_cards_hdspm; then
94 + ALSA_TOOLS="${ALSA_TOOLS} hdsploader"
95 + use fltk && ALSA_TOOLS="${ALSA_TOOLS} hdspconf hdspmixer"
96 + fi
97 +
98 + use alsa_cards_mixart && ALSA_TOOLS="${ALSA_TOOLS} mixartloader"
99 + use alsa_cards_vx222 && ALSA_TOOLS="${ALSA_TOOLS} vxloader"
100 + use alsa_cards_usb-usx2y && ALSA_TOOLS="${ALSA_TOOLS} usx2yloader"
101 + use alsa_cards_pcxhr && ALSA_TOOLS="${ALSA_TOOLS} pcxhr"
102 + use alsa_cards_sscape && ALSA_TOOLS="${ALSA_TOOLS} sscape_ctl"
103 +
104 + { use alsa_cards_sb16 || use alsa_cards_sbawe; } && \
105 + ALSA_TOOLS="${ALSA_TOOLS} sb16_csp"
106 +
107 + if use alsa_cards_emu10k1 || use alsa_cards_emu10k1x; then
108 + ALSA_TOOLS="${ALSA_TOOLS} as10k1 ld10k1"
109 + fi
110 +
111 + use gtk && ALSA_TOOLS="${ALSA_TOOLS} echomixer"
112 +}
113 +
114 +src_prepare() {
115 + epatch "${FILESDIR}"/envy24control-config-dir.patch
116 +
117 + epatch_user
118 +
119 + # This block only deals with the tools that still use GTK and the
120 + # AM_PATH_GTK macro.
121 + for dir in echomixer envy24control rmedigicontrol; do
122 + has "${dir}" "${ALSA_TOOLS}" || continue
123 + pushd "${dir}" &> /dev/null
124 + eautoreconf
125 + popd &> /dev/null
126 + done
127 +
128 + # This block deals with the tools that are being patched
129 + for dir in hdspconf; do
130 + has "${dir}" "${ALSA_TOOLS}" || continue
131 + pushd "${dir}" &> /dev/null
132 + eautoreconf
133 + popd &> /dev/null
134 + done
135 +
136 + elibtoolize
137 +}
138 +
139 +src_configure() {
140 + if use fltk; then
141 + # hdspmixer requires fltk
142 + append-ldflags "-L$(dirname $(fltk-config --libs))"
143 + append-flags "-I$(fltk-config --includedir)"
144 + fi
145 +
146 + local f
147 + for f in ${ALSA_TOOLS}
148 + do
149 + cd "${S}/${f}"
150 + case "${f}" in
151 + echomixer,envy24control,rmedigicontrol )
152 + econf --with-gtk2
153 + ;;
154 + * )
155 + econf
156 + ;;
157 + esac
158 + done
159 +}
160 +
161 +src_compile() {
162 + local f
163 + for f in ${ALSA_TOOLS}
164 + do
165 + cd "${S}/${f}"
166 + emake
167 + done
168 +}
169 +
170 +src_install() {
171 + local f
172 + for f in ${ALSA_TOOLS}
173 + do
174 + # Install the main stuff
175 + cd "${S}/${f}"
176 + # hotplugdir is for usx2yloader/Makefile.am
177 + emake DESTDIR="${D}" hotplugdir=/lib/firmware install
178 +
179 + # Install the text documentation
180 + local doc
181 + for doc in README TODO ChangeLog AUTHORS; do
182 + if [[ -f "${doc}" ]]; then
183 + mv "${doc}" "${doc}.$(basename ${f})" || die
184 + dodoc "${doc}.$(basename ${f})"
185 + fi
186 + done
187 + done
188 +
189 + # Punt at least /usr/lib/liblo10k1.la (last checked, 1.0.27)
190 + prune_libtool_files
191 +}