commit:     fb4e0b882ce961fa9fa09f1cc017007a71f6af57
Author:     Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me>
AuthorDate: Wed May 27 23:44:29 2020 +0000
Commit:     Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
CommitDate: Wed May 27 23:44:29 2020 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=fb4e0b88

media-sound/sndio: Make it multilib

This is needed to add sndio support to multilib packages like portaudio

Signed-off-by: Haelwenn (lanodan) Monnier <contact <AT> hacktivis.me>

 media-sound/sndio/sndio-1.6.0.ebuild | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/media-sound/sndio/sndio-1.6.0.ebuild 
b/media-sound/sndio/sndio-1.6.0.ebuild
index 166a64c..67deea4 100644
--- a/media-sound/sndio/sndio-1.6.0.ebuild
+++ b/media-sound/sndio/sndio-1.6.0.ebuild
@@ -3,6 +3,8 @@
 
 EAPI=7
 
+inherit multilib-minimal
+
 DESCRIPTION="small audio and MIDI framework part of the OpenBSD project"
 HOMEPAGE="http://www.sndio.org/";
 SRC_URI="http://www.sndio.org/${P}.tar.gz";
@@ -12,15 +14,20 @@ KEYWORDS="~amd64"
 IUSE="alsa"
 
 DEPEND="
-       dev-libs/libbsd
-       media-libs/alsa-lib
+       dev-libs/libbsd[${MULTILIB_USEDEP}]
+       media-libs/alsa-lib[${MULTILIB_USEDEP}]
 "
 RDEPEND="
        ${DEPEND}
        acct-user/sndiod
 "
 
-src_configure() {
+src_prepare() {
+       default
+       multilib_copy_sources
+}
+
+multilib_src_configure() {
        ./configure \
                --prefix=/usr \
                --libdir=/usr/$(get_libdir) \

Reply via email to