summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuilherme Amadio <amadio@gentoo.org>2019-08-02 11:03:16 +0200
committerGuilherme Amadio <amadio@gentoo.org>2019-08-07 15:35:32 +0200
commit2f4920ceed44312716ce5ba4850b26ce3e89b875 (patch)
tree037926741f14bdcd0705f9e83df4b70b8d04ad51 /app-emulation/faudio
parentapp-admin/mcelog: bump to 164 (diff)
downloadgentoo-2f4920ceed44312716ce5ba4850b26ce3e89b875.tar.gz
gentoo-2f4920ceed44312716ce5ba4850b26ce3e89b875.tar.bz2
gentoo-2f4920ceed44312716ce5ba4850b26ce3e89b875.zip
app-emulation/faudio: fix prefix installation for 19.06
Package-Manager: Portage-2.3.70, Repoman-2.3.16 Signed-off-by: Guilherme Amadio <amadio@gentoo.org>
Diffstat (limited to 'app-emulation/faudio')
-rw-r--r--app-emulation/faudio/faudio-19.06.ebuild7
-rw-r--r--app-emulation/faudio/files/faudio.pc2
2 files changed, 6 insertions, 3 deletions
diff --git a/app-emulation/faudio/faudio-19.06.ebuild b/app-emulation/faudio/faudio-19.06.ebuild
index 295da5632494..82959acb7332 100644
--- a/app-emulation/faudio/faudio-19.06.ebuild
+++ b/app-emulation/faudio/faudio-19.06.ebuild
@@ -52,7 +52,7 @@ multilib_src_configure() {
"-DXNASONG=$(usex xnasong ON OFF)"
)
if use ffmpeg; then
- mycmakeargs+=( "-DFFmpeg_LIBRARY_DIRS=${PREFIX%/}/usr/$(get_libdir)" )
+ mycmakeargs+=( "-DFFmpeg_LIBRARY_DIRS=${EPREFIX%/}/usr/$(get_libdir)" )
fi
cmake-utils_src_configure
}
@@ -70,7 +70,10 @@ multilib_src_install() {
# FIXME: do we want to install the FAudio tools?
cmake-utils_src_install
- sed -e "s/%LIB%/$(get_libdir)/g" "${FILESDIR}/faudio.pc" \
+ sed -e \
+ "s@%LIB%@$(get_libdir)@g" \
+ "s@%PREFIX%@${EPREFIX}/usr@g" \
+ "${FILESDIR}/faudio.pc" \
> "${T}/faudio.pc" \
|| die "sed failed"
insinto "/usr/$(get_libdir)/pkgconfig"
diff --git a/app-emulation/faudio/files/faudio.pc b/app-emulation/faudio/files/faudio.pc
index c632922c1f66..cdb3bf49e64a 100644
--- a/app-emulation/faudio/files/faudio.pc
+++ b/app-emulation/faudio/files/faudio.pc
@@ -1,4 +1,4 @@
-prefix=/usr
+prefix=%PREFIX%
exec_prefix=${prefix}
libdir=${prefix}/%LIB%
includedir=${prefix}/include/FAudio