commit:     6fefffcbfbf8feb4a4d33c1bc9cbb5b4b7311aa5
Author:     Matthias Maier <tamiko <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 23 21:37:42 2020 +0000
Commit:     Matthias Maier <tamiko <AT> gentoo <DOT> org>
CommitDate: Thu Apr 23 21:40:31 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6fefffcb

sci-libs/p4est: fix library path

Closes: https://bugs.gentoo.org/680140
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org>

 sci-libs/p4est/p4est-2.0.ebuild  | 5 ++---
 sci-libs/p4est/p4est-2.2.ebuild  | 5 ++---
 sci-libs/p4est/p4est-9999.ebuild | 5 ++---
 3 files changed, 6 insertions(+), 9 deletions(-)

diff --git a/sci-libs/p4est/p4est-2.0.ebuild b/sci-libs/p4est/p4est-2.0.ebuild
index 62bc613a260..8fd68ca09b1 100644
--- a/sci-libs/p4est/p4est-2.0.ebuild
+++ b/sci-libs/p4est/p4est-2.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -73,9 +73,8 @@ src_prepare() {
                "${S}"/configure || die "sed failed"
 
        sed -i \
-               "s/libsc\.la/libsc\.so/" \
+               "s#lib/libsc\.la#$(get_libdir)/libsc\.so#" \
                "${S}"/configure || die "sed failed"
-
 }
 
 src_configure() {

diff --git a/sci-libs/p4est/p4est-2.2.ebuild b/sci-libs/p4est/p4est-2.2.ebuild
index 8cd883fb0d2..32ae041f931 100644
--- a/sci-libs/p4est/p4est-2.2.ebuild
+++ b/sci-libs/p4est/p4est-2.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -73,9 +73,8 @@ src_prepare() {
                "${S}"/configure || die "sed failed"
 
        sed -i \
-               "s/libsc\.la/libsc\.so/" \
+               "s#lib/libsc\.la#$(get_libdir)/libsc\.so#" \
                "${S}"/configure || die "sed failed"
-
 }
 
 src_configure() {

diff --git a/sci-libs/p4est/p4est-9999.ebuild b/sci-libs/p4est/p4est-9999.ebuild
index a54c8b564e3..8fd68ca09b1 100644
--- a/sci-libs/p4est/p4est-9999.ebuild
+++ b/sci-libs/p4est/p4est-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -73,9 +73,8 @@ src_prepare() {
                "${S}"/configure || die "sed failed"
 
        sed -i \
-               "s/libsc\.la/libsc\.so/" \
+               "s#lib/libsc\.la#$(get_libdir)/libsc\.so#" \
                "${S}"/configure || die "sed failed"
-
 }
 
 src_configure() {

Reply via email to