1 |
commit: 86ea534e33a9eea7ae966afe6d5ac03bb9915454 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 1 22:09:49 2020 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 2 12:10:48 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86ea534e |
7 |
|
8 |
media-sound/alsa-tools: Drop dev-python/pygtk |
9 |
|
10 |
Add dependency on dev-libs/gobject-introspection instead for hwmixvolume. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/706494 |
13 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
14 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
15 |
|
16 |
media-sound/alsa-tools/alsa-tools-1.2.2-r1.ebuild | 152 ++++++++++++++++++++++ |
17 |
1 file changed, 152 insertions(+) |
18 |
|
19 |
diff --git a/media-sound/alsa-tools/alsa-tools-1.2.2-r1.ebuild b/media-sound/alsa-tools/alsa-tools-1.2.2-r1.ebuild |
20 |
new file mode 100644 |
21 |
index 00000000000..e9a078d5c8e |
22 |
--- /dev/null |
23 |
+++ b/media-sound/alsa-tools/alsa-tools-1.2.2-r1.ebuild |
24 |
@@ -0,0 +1,152 @@ |
25 |
+# Copyright 1999-2020 Gentoo Authors |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+ |
28 |
+EAPI=7 |
29 |
+ |
30 |
+inherit autotools flag-o-matic xdg |
31 |
+ |
32 |
+DESCRIPTION="Advanced Linux Sound Architecture tools" |
33 |
+HOMEPAGE="https://alsa-project.org/" |
34 |
+SRC_URI="https://www.alsa-project.org/files/pub/tools/${P}.tar.bz2" |
35 |
+ |
36 |
+LICENSE="GPL-2" |
37 |
+SLOT="0.9" |
38 |
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" |
39 |
+ |
40 |
+IUSE="fltk gtk alsa_cards_hdsp alsa_cards_hdspm alsa_cards_mixart |
41 |
+alsa_cards_vx222 alsa_cards_usb-usx2y alsa_cards_sb16 alsa_cards_sbawe |
42 |
+alsa_cards_emu10k1 alsa_cards_emu10k1x alsa_cards_ice1712 |
43 |
+alsa_cards_rme32 alsa_cards_rme96 alsa_cards_sscape alsa_cards_pcxhr" |
44 |
+ |
45 |
+DEPEND=">=media-libs/alsa-lib-${PV} |
46 |
+ >=dev-python/pyalsa-1.0.26 |
47 |
+ fltk? ( >=x11-libs/fltk-1.3.0:1 ) |
48 |
+ gtk? ( |
49 |
+ dev-libs/gobject-introspection |
50 |
+ x11-libs/gtk+:2 |
51 |
+ x11-libs/gtk+:3 |
52 |
+ )" #468294 |
53 |
+RDEPEND="${DEPEND} |
54 |
+ gtk? ( media-fonts/font-misc-misc )" #456114 |
55 |
+BDEPEND=" |
56 |
+ virtual/pkgconfig |
57 |
+" |
58 |
+ |
59 |
+PATCHES=( |
60 |
+ "${FILESDIR}"/envy24control-config-dir.patch |
61 |
+) |
62 |
+ |
63 |
+pkg_setup() { |
64 |
+ ALSA_TOOLS=( |
65 |
+ seq/sbiload |
66 |
+ us428control |
67 |
+ hwmixvolume |
68 |
+ hda-verb |
69 |
+ $(usex alsa_cards_mixart mixartloader '') |
70 |
+ $(usex alsa_cards_vx222 vxloader '') |
71 |
+ $(usex alsa_cards_usb-usx2y usx2yloader '') |
72 |
+ $(usex alsa_cards_pcxhr pcxhrloader '') |
73 |
+ $(usex alsa_cards_sscape sscape_ctl '') |
74 |
+ ) |
75 |
+ |
76 |
+ if use gtk; then |
77 |
+ ALSA_TOOLS+=( |
78 |
+ echomixer |
79 |
+ hdajackretask |
80 |
+ $(usex alsa_cards_ice1712 envy24control '') |
81 |
+ ) |
82 |
+ # Perhaps a typo the following && logic? |
83 |
+ if use alsa_cards_rme32 && use alsa_cards_rme96 ; then |
84 |
+ ALSA_TOOLS+=( rmedigicontrol ) |
85 |
+ fi |
86 |
+ fi |
87 |
+ |
88 |
+ if use alsa_cards_hdsp || use alsa_cards_hdspm ; then |
89 |
+ ALSA_TOOLS+=( |
90 |
+ hdsploader |
91 |
+ $(usex fltk 'hdspconf hdspmixer' '') |
92 |
+ ) |
93 |
+ fi |
94 |
+ |
95 |
+ if use alsa_cards_sb16 || use alsa_cards_sbawe ; then |
96 |
+ ALSA_TOOLS+=( sb16_csp ) |
97 |
+ fi |
98 |
+ |
99 |
+ if use alsa_cards_emu10k1 || use alsa_cards_emu10k1x; then |
100 |
+ ALSA_TOOLS+=( as10k1 ld10k1 ) |
101 |
+ fi |
102 |
+} |
103 |
+ |
104 |
+src_prepare() { |
105 |
+ default |
106 |
+ |
107 |
+ # This block only deals with the tools that still use GTK and the |
108 |
+ # AM_PATH_GTK macro. |
109 |
+ for dir in echomixer envy24control rmedigicontrol; do |
110 |
+ has "${dir}" "${ALSA_TOOLS[*]}" || continue |
111 |
+ pushd "${dir}" &> /dev/null |
112 |
+ eautoreconf |
113 |
+ popd &> /dev/null |
114 |
+ done |
115 |
+ |
116 |
+ # This block deals with the tools that are being patched |
117 |
+ for dir in hdspconf; do |
118 |
+ has "${dir}" "${ALSA_TOOLS[*]}" || continue |
119 |
+ pushd "${dir}" &> /dev/null |
120 |
+ eautoreconf |
121 |
+ popd &> /dev/null |
122 |
+ done |
123 |
+ |
124 |
+ elibtoolize |
125 |
+} |
126 |
+ |
127 |
+src_configure() { |
128 |
+ if use fltk; then |
129 |
+ # hdspmixer requires fltk |
130 |
+ append-ldflags "-L$(dirname $(fltk-config --libs))" |
131 |
+ append-flags "-I$(fltk-config --includedir)" |
132 |
+ fi |
133 |
+ |
134 |
+ local f |
135 |
+ for f in ${ALSA_TOOLS[@]} ; do |
136 |
+ cd "${S}/${f}" || die |
137 |
+ case "${f}" in |
138 |
+ echomixer,envy24control,rmedigicontrol ) |
139 |
+ econf --with-gtk2 |
140 |
+ ;; |
141 |
+ * ) |
142 |
+ econf |
143 |
+ ;; |
144 |
+ esac |
145 |
+ done |
146 |
+} |
147 |
+ |
148 |
+src_compile() { |
149 |
+ local f |
150 |
+ for f in ${ALSA_TOOLS[@]} ; do |
151 |
+ cd "${S}/${f}" || die |
152 |
+ emake |
153 |
+ done |
154 |
+} |
155 |
+ |
156 |
+src_install() { |
157 |
+ local f |
158 |
+ for f in ${ALSA_TOOLS[@]} ; do |
159 |
+ # Install the main stuff |
160 |
+ cd "${S}/${f}" || die |
161 |
+ # hotplugdir is for usx2yloader/Makefile.am |
162 |
+ emake DESTDIR="${D}" hotplugdir=/lib/firmware install |
163 |
+ |
164 |
+ # Install the text documentation |
165 |
+ local doc |
166 |
+ for doc in README TODO ChangeLog AUTHORS; do |
167 |
+ if [[ -f "${doc}" ]]; then |
168 |
+ mv "${doc}" "${doc}.$(basename ${f})" || die |
169 |
+ dodoc "${doc}.$(basename ${f})" |
170 |
+ fi |
171 |
+ done |
172 |
+ done |
173 |
+ |
174 |
+ # Punt at least /usr/lib/liblo10k1.la (last checked, 1.0.27) |
175 |
+ find "${ED}" -type f -name '*.la' -delete || die |
176 |
+} |