commit:     30e5e1fa723931b0c728d9e7c2713614cfa392f8
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 11 14:28:43 2018 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat Aug 11 16:43:54 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=30e5e1fa

media-video/vlc: Fix location of vlc-cache-gen and plugins dir

Thanks-to: jospezial <jospezial <AT> gmx.de>
Closes: https://bugs.gentoo.org/656200
Package-Manager: Portage-2.3.45, Repoman-2.3.10

 media-video/vlc/vlc-9999.ebuild | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/media-video/vlc/vlc-9999.ebuild b/media-video/vlc/vlc-9999.ebuild
index 857714b2e49..ae4e442515a 100644
--- a/media-video/vlc/vlc-9999.ebuild
+++ b/media-video/vlc/vlc-9999.ebuild
@@ -465,12 +465,12 @@ src_install() {
 }
 
 pkg_postinst() {
-       if [[ "$ROOT" = "/" ]] && [[ -x "/usr/$(get_libdir)/vlc/vlc-cache-gen" 
]] ; then
-               einfo "Running /usr/$(get_libdir)/vlc/vlc-cache-gen on 
/usr/$(get_libdir)/vlc/plugins/"
-               "/usr/$(get_libdir)/vlc/vlc-cache-gen" 
"/usr/$(get_libdir)/vlc/plugins/"
+       if [[ "$ROOT" = "/" ]] && [[ -x "/usr/libexec/vlc/vlc-cache-gen" ]] ; 
then
+               einfo "Running /usr/libexec/vlc/vlc-cache-gen on 
/usr/libexec/vlc/plugins/"
+               "/usr/libexec/vlc/vlc-cache-gen" "/usr/libexec/vlc/plugins/"
        else
                ewarn "We cannot run vlc-cache-gen (most likely ROOT!=/)"
-               ewarn "Please run /usr/$(get_libdir)/vlc/vlc-cache-gen manually"
+               ewarn "Please run /usr/libexec/vlc/vlc-cache-gen manually"
                ewarn "If you do not do it, vlc will take a long time to load."
        fi
 
@@ -480,8 +480,8 @@ pkg_postinst() {
 }
 
 pkg_postrm() {
-       if [[ -e /usr/$(get_libdir)/vlc/plugins/plugins.dat ]]; then
-               rm /usr/$(get_libdir)/vlc/plugins/plugins.dat || die "Failed to 
rm plugins.dat"
+       if [[ -e /usr/libexec/vlc/plugins/plugins.dat ]]; then
+               rm /usr/libexec/vlc/plugins/plugins.dat || die "Failed to rm 
plugins.dat"
        fi
 
        gnome2_icon_cache_update

Reply via email to