Skip to content

Commit

Permalink
media-gfx/graphviz: Fix build w/ USE=-examples
Browse files Browse the repository at this point in the history
Not all USE flag combinations build a demo directory.

Package-Manager: Portage-2.3.19, Repoman-2.3.6
  • Loading branch information
a17r committed Jan 7, 2018
1 parent 92176e7 commit 230e991
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions media-gfx/graphviz/graphviz-2.40.1-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 230e991

Please sign in to comment.