diff --git a/sci-libs/p4est/p4est-2.0.ebuild b/sci-libs/p4est/p4est-2.0.ebuild index 62bc613a26027..8fd68ca09b10a 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 8cd883fb0d28e..32ae041f931ac 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 a54c8b564e3ea..8fd68ca09b10a 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() {