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@riseup.net>
This commit is contained in:
Andrew Ammerlaan
2021-02-27 22:14:44 +01:00
parent 321fa92abb
commit 67aa20071b

View File

@@ -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
}