media-libs/imlib2: Remove bogus Makefiles from docs
authorAndreas Sturmlechner <asturm@gentoo.org>
Sun, 22 Jul 2018 23:14:27 +0000 (01:14 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Sun, 22 Jul 2018 23:21:53 +0000 (01:21 +0200)
Package-Manager: Portage-2.3.43, Repoman-2.3.10

media-libs/imlib2/imlib2-1.5.1-r1.ebuild

index 7457df0e31d66908e4aee5612f113b46359330e7..ca27d229d37cbb9cd0287462134d8efae086decc 100644 (file)
@@ -65,7 +65,10 @@ multilib_src_configure() {
 multilib_src_install() {
        V=1 emake install DESTDIR="${D}"
 
-       use doc && local HTML_DOCS=( "${S}"/doc/. )
+       if use doc; then
+               local HTML_DOCS=( "${S}"/doc/. )
+               rm "${S}"/doc/Makefile.{am,in} || die
+       fi
        einstalldocs
 
        find "${D}" -name '*.la' -delete || die