1 |
commit: 84483a2d18d7f1e9f2db04880dac2e180910ec0e |
2 |
Author: Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me> |
3 |
AuthorDate: Sat Jun 26 10:45:33 2021 +0000 |
4 |
Commit: Haelwenn Monnier <contact <AT> hacktivis <DOT> me> |
5 |
CommitDate: Sat Jun 26 10:45:56 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=84483a2d |
7 |
|
8 |
media-plugins/alsa-sndio: Make it multilib |
9 |
|
10 |
Signed-off-by: Haelwenn (lanodan) Monnier <contact <AT> hacktivis.me> |
11 |
|
12 |
media-plugins/alsa-sndio/alsa-sndio-0.2.ebuild | 20 +++++++++++++------- |
13 |
1 file changed, 13 insertions(+), 7 deletions(-) |
14 |
|
15 |
diff --git a/media-plugins/alsa-sndio/alsa-sndio-0.2.ebuild b/media-plugins/alsa-sndio/alsa-sndio-0.2.ebuild |
16 |
index 203199067..1b5cb4eab 100644 |
17 |
--- a/media-plugins/alsa-sndio/alsa-sndio-0.2.ebuild |
18 |
+++ b/media-plugins/alsa-sndio/alsa-sndio-0.2.ebuild |
19 |
@@ -1,8 +1,10 @@ |
20 |
-# Copyright 2020 Gentoo Authors |
21 |
+# Copyright 2020-2021 Gentoo Authors |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
|
24 |
EAPI=7 |
25 |
|
26 |
+inherit multilib-minimal |
27 |
+ |
28 |
DESCRIPTION="ALSA PCM to play audio on sndio servers" |
29 |
HOMEPAGE="https://github.com/Duncaen/alsa-sndio" |
30 |
SRC_URI="https://github.com/Duncaen/alsa-sndio/archive/${PV}.tar.gz -> ${P}.tar.gz" |
31 |
@@ -11,22 +13,26 @@ SLOT="0" |
32 |
KEYWORDS="~amd64" |
33 |
|
34 |
DEPEND=" |
35 |
- media-libs/alsa-lib |
36 |
- media-sound/sndio:= |
37 |
+ media-libs/alsa-lib[${MULTILIB_USEDEP}] |
38 |
+ media-sound/sndio:=[${MULTILIB_USEDEP}] |
39 |
" |
40 |
RDEPEND="${DEPEND}" |
41 |
|
42 |
src_prepare() { |
43 |
- default |
44 |
+ fix_libdir() { |
45 |
+ sed -i "s;/lib/alsa-lib/;/$(get_libdir)/alsa-lib/;" "${BUILD_DIR}/Makefile" || die "Failed changing libdir" |
46 |
+ } |
47 |
|
48 |
- sed -i "s;/lib/alsa-lib/;/$(get_libdir)/alsa-lib/;" Makefile || die "Failed changing libdir" |
49 |
+ default |
50 |
+ multilib_copy_sources |
51 |
+ multilib_foreach_abi fix_libdir |
52 |
} |
53 |
|
54 |
-src_compile() { |
55 |
+multilib_src_compile() { |
56 |
emake CC="${CC:-gcc}" |
57 |
} |
58 |
|
59 |
-src_install() { |
60 |
+multilib_src_install() { |
61 |
export PREFIX="/usr" |
62 |
|
63 |
default |