media-sound/lame: Don't install mlame script
authorLars Wendler <polynomial-c@gentoo.org>
Thu, 15 Mar 2018 08:27:40 +0000 (09:27 +0100)
committerLars Wendler <polynomial-c@gentoo.org>
Thu, 15 Mar 2018 08:28:43 +0000 (09:28 +0100)
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

media-sound/lame/lame-3.100-r1.ebuild [moved from media-sound/lame/lame-3.100.ebuild with 82% similarity]

similarity index 82%
rename from media-sound/lame/lame-3.100.ebuild
rename to media-sound/lame/lame-3.100-r1.ebuild
index 50c2f1cf69632d224dacaf1578dfa2ecef39fbea..3639535b0578a5117f370f5021728ae4d8983b40 100644 (file)
@@ -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