media-libs/libogg: find and remove '*.a' not required
authorMarty E. Plummer <hanetzer@protonmail.com>
Mon, 8 Jan 2018 03:21:15 +0000 (21:21 -0600)
committerAlexis Ballier <aballier@gentoo.org>
Mon, 8 Jan 2018 08:08:20 +0000 (09:08 +0100)
Not sure if this was changed in a previous version of libogg, but
libogg-1.3.3 correctly respects --enable-static/--disable-static, and
does not produce a static library when built with USE=-static-libs.

The find "${ED}" -name '*.a' -delete || die line also kills off
libogg.dll.a, which is needed for shared linking on mingw-w64, so
it should be removed as uneeded and harmful.

Package-Manager: Portage-2.3.19, Repoman-2.3.6
Signed-off-by: Marty E. Plummer <hanetzer@protonmail.com>
media-libs/libogg/libogg-1.3.3.ebuild

index 27c0175879b6e52a8eb38de11d50448b2db88c02..db5bd9b334db8659a7efab4530b3e836e06cc694 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -30,7 +30,4 @@ multilib_src_configure() {
 multilib_src_install_all() {
        einstalldocs
        find "${ED}" -name "*.la" -delete || die
-       if ! use static-libs ; then
-               find "${ED}" -name "*.a" -delete || die
-       fi
 }