commit:     de2c52788dc9a6881830eca97da7e3499ea34219
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 15 08:27:40 2018 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Thu Mar 15 08:28:43 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de2c5278

media-sound/lame: Don't install mlame script

It uses mlame_corr binary that gets never built, only works on little endian
machines and fails to recognize all wav files.
Also overhauled the ebuild a bit. Committed straight to stable.

Closes: https://bugs.gentoo.org/650542
Package-Manager: Portage-2.3.24, Repoman-2.3.6

 .../{lame-3.100.ebuild => lame-3.100-r1.ebuild}    | 26 +++++++++-------------
 1 file changed, 11 insertions(+), 15 deletions(-)

diff --git a/media-sound/lame/lame-3.100.ebuild 
b/media-sound/lame/lame-3.100-r1.ebuild
similarity index 82%
rename from media-sound/lame/lame-3.100.ebuild
rename to media-sound/lame/lame-3.100-r1.ebuild
index 50c2f1cf696..3639535b057 100644
--- a/media-sound/lame/lame-3.100.ebuild
+++ b/media-sound/lame/lame-3.100-r1.ebuild
@@ -46,33 +46,29 @@ src_prepare() {
 }
 
 multilib_src_configure() {
+       # Only build the frontend for the default ABI.
        local myconf=(
-               $(use_enable static-libs static)
-               $(use_enable debug debug norm)
                --disable-mp3x
                --enable-dynamic-frontends
+               $(multilib_native_use_enable frontend)
+               $(multilib_native_use_enable mp3rtp)
+               $(multilib_native_usex sndfile '--with-fileio=sndfile' '')
+               $(use_enable debug debug norm)
+               $(use_enable static-libs static)
+               $(usex cpu_flags_x86_mmx '--enable-nasm' '') #361879
        )
-       use cpu_flags_x86_mmx && myconf+=( --enable-nasm ) #361879
-
-       # Only build the frontend for the default ABI.
-       if [ "${ABI}" = "${DEFAULT_ABI}" ] ; then
-               myconf+=( $(use_enable mp3rtp) $(use_enable frontend) )
-               use sndfile && myconf+=( --with-fileio=sndfile )
-       else
-               myconf+=( --disable-frontend --disable-mp3rtp )
-       fi
 
        ECONF_SOURCE="${S}" econf "${myconf[@]}"
 }
 
 multilib_src_install() {
-       emake DESTDIR="${D}" pkghtmldir="${EPREFIX}/usr/share/doc/${PF}/html" 
install
+       emake \
+               DESTDIR="${D}" \
+               pkghtmldir="${EPREFIX}/usr/share/doc/${PF}/html" \
+               install
 }
 
 multilib_src_install_all() {
-       cd "${S}"
-       dobin misc/mlame
-
        dodoc API ChangeLog HACKING README STYLEGUIDE TODO USAGE
        docinto html
        dodoc misc/lameGUI.html Dll/LameDLLInterface.htm

Reply via email to