commit: 67aa20071b773e4bce1b5d2e917a63b0a3d29216 Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> AuthorDate: Sat Feb 27 21:14:44 2021 +0000 Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> CommitDate: Sat Feb 27 21:14:44 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=67aa2007
app-arch/libarchive-qt: fix ignoring lib install path Closes: https://github.com/gentoo/guru/issues/42 Package-Manager: Portage-3.0.15, Repoman-3.0.2 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net> app-arch/libarchive-qt/libarchive-qt-2.0.2.ebuild | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/app-arch/libarchive-qt/libarchive-qt-2.0.2.ebuild b/app-arch/libarchive-qt/libarchive-qt-2.0.2.ebuild index ff6dfb33..b2e5605f 100644 --- a/app-arch/libarchive-qt/libarchive-qt-2.0.2.ebuild +++ b/app-arch/libarchive-qt/libarchive-qt-2.0.2.ebuild @@ -30,6 +30,18 @@ DEPEND=" " RDEPEND="${DEPEND}" +src_prepare() { + default + + # remove override of the libpath + sed -i -e '/^ target.path/d' lib/shared.pro || die + sed -i -e '/^ target.path/d' lib/static.pro || die + + # fix prefix of lib files + sed -i -e 's/$$INSTALL_PREFIX/$$PREFIX/g' lib/shared.pro || die + sed -i -e 's/$$INSTALL_PREFIX/$$PREFIX/g' lib/static.pro || die +} + src_configure() { local lib="$(get_libdir)" # '^^' because we need to upcase the definition @@ -38,5 +50,5 @@ src_configure() { src_install() { einstalldocs - emake INSTALL_ROOT="${D}" install + emake INSTALL_ROOT="${ED}" install }
