From: Andreas Sturmlechner Date: Sun, 7 Jan 2018 15:42:37 +0000 (+0100) Subject: media-gfx/graphviz: Fix build w/ USE=-examples X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=230e991b0b4664eb888c0d2767a740fb1eb73e10;p=gentoo.git media-gfx/graphviz: Fix build w/ USE=-examples Not all USE flag combinations build a demo directory. Package-Manager: Portage-2.3.19, Repoman-2.3.6 --- diff --git a/media-gfx/graphviz/graphviz-2.40.1-r1.ebuild b/media-gfx/graphviz/graphviz-2.40.1-r1.ebuild index d1f5b49c8211..edc5a11b4af8 100644 --- a/media-gfx/graphviz/graphviz-2.40.1-r1.ebuild +++ b/media-gfx/graphviz/graphviz-2.40.1-r1.ebuild @@ -257,11 +257,11 @@ src_install() { pkgconfigdir="${EPREFIX}"/usr/$(get_libdir)/pkgconfig \ install - if use !examples; then - rm -r "${ED}"/usr/share/graphviz/demo || die + if ! use examples; then + rm -rf "${ED}"/usr/share/graphviz/demo || die fi - if use !static-libs; then + if ! use static-libs; then find "${ED}" -name '*.la' -delete || die fi