summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2018-01-07 11:53:35 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2018-01-07 14:42:41 +0100
commit50b9b4fe6a53e9539086ff4a42fd2493478ae947 (patch)
treeeccf829f34c34db473a3dc83247a4b18461ec1ee /media-gfx
parentmedia-gfx/graphviz: Sort DEPENDs (diff)
downloadgentoo-50b9b4fe6a53e9539086ff4a42fd2493478ae947.tar.gz
gentoo-50b9b4fe6a53e9539086ff4a42fd2493478ae947.tar.bz2
gentoo-50b9b4fe6a53e9539086ff4a42fd2493478ae947.zip
media-gfx/graphviz: Add missing || die
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/graphviz/graphviz-2.40.1-r1.ebuild12
1 files changed, 8 insertions, 4 deletions
diff --git a/media-gfx/graphviz/graphviz-2.40.1-r1.ebuild b/media-gfx/graphviz/graphviz-2.40.1-r1.ebuild
index 91a891f80f5b..f7a96bed93df 100644
--- a/media-gfx/graphviz/graphviz-2.40.1-r1.ebuild
+++ b/media-gfx/graphviz/graphviz-2.40.1-r1.ebuild
@@ -257,9 +257,13 @@ src_install() {
pkgconfigdir="${EPREFIX}"/usr/$(get_libdir)/pkgconfig \
install
- use examples || rm -rf "${ED}"/usr/share/graphviz/demo
+ if use !examples; then
+ rm -r "${ED}"/usr/share/graphviz/demo || die
+ fi
- use static-libs || find "${ED}" -name '*.la' -exec rm -f {} +
+ if use !static-libs; then
+ find "${ED}" -name '*.la' -delete || die
+ fi
dodoc AUTHORS ChangeLog NEWS README
@@ -271,10 +275,10 @@ src_install() {
pkg_postinst() {
# This actually works if --enable-ltdl is passed
# to configure
- dot -c
+ dot -c || die
}
pkg_postrm() {
# Remove cruft, bug #547344
- rm -f "${EROOT}usr/lib/graphviz/config{,6}"
+ rm -rf "${EROOT}"usr/lib/graphviz/config{,6} || die
}