From 30e5e1fa723931b0c728d9e7c2713614cfa392f8 Mon Sep 17 00:00:00 2001 From: Andreas Sturmlechner Date: Sat, 11 Aug 2018 16:28:43 +0200 Subject: media-video/vlc: Fix location of vlc-cache-gen and plugins dir Thanks-to: jospezial 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(-) (limited to 'media-video') diff --git a/media-video/vlc/vlc-9999.ebuild b/media-video/vlc/vlc-9999.ebuild index 857714b2e491..ae4e442515a8 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 -- cgit v1.2.3-65-gdbad