commit:     98d4dfcd351708fbb50a86f20ebf82d8d93096d2
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 18 18:06:58 2019 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Thu Apr 18 18:07:30 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=98d4dfcd

net-libs/nghttp2: Minor ebuild improvement

Package-Manager: Portage-2.3.63, Repoman-2.3.12
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>

 net-libs/nghttp2/nghttp2-1.37.0.ebuild | 4 +++-
 net-libs/nghttp2/nghttp2-1.38.0.ebuild | 4 +++-
 net-libs/nghttp2/nghttp2-9999.ebuild   | 6 ++++--
 3 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/net-libs/nghttp2/nghttp2-1.37.0.ebuild 
b/net-libs/nghttp2/nghttp2-1.37.0.ebuild
index 20f89187f0f..f27032d7957 100644
--- a/net-libs/nghttp2/nghttp2-1.37.0.ebuild
+++ b/net-libs/nghttp2/nghttp2-1.37.0.ebuild
@@ -64,5 +64,7 @@ multilib_src_configure() {
 }
 
 multilib_src_install_all() {
-       use static-libs || find "${ED%/}"/usr -name '*.la' -delete
+       if ! use static-libs ; then
+               find "${ED}"/usr -name '*.la' -delete || die
+       fi
 }

diff --git a/net-libs/nghttp2/nghttp2-1.38.0.ebuild 
b/net-libs/nghttp2/nghttp2-1.38.0.ebuild
index 633fb68774c..1979bd70cc2 100644
--- a/net-libs/nghttp2/nghttp2-1.38.0.ebuild
+++ b/net-libs/nghttp2/nghttp2-1.38.0.ebuild
@@ -83,5 +83,7 @@ multilib_src_configure() {
 }
 
 multilib_src_install_all() {
-       use static-libs || find "${ED%/}"/usr -name '*.la' -delete
+       if ! use static-libs ; then
+               find "${ED}"/usr -name '*.la' -delete || die
+       fi
 }

diff --git a/net-libs/nghttp2/nghttp2-9999.ebuild 
b/net-libs/nghttp2/nghttp2-9999.ebuild
index e5d039fc718..0950bfb1def 100644
--- a/net-libs/nghttp2/nghttp2-9999.ebuild
+++ b/net-libs/nghttp2/nghttp2-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # TODO: Add python support.
@@ -69,5 +69,7 @@ multilib_src_configure() {
 }
 
 multilib_src_install_all() {
-       use static-libs || find "${ED%/}"/usr -name '*.la' -delete
+       if ! use static-libs ; then
+               find "${ED}"/usr -name '*.la' -delete || die
+       fi
 }

Reply via email to