summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2018-08-11 16:28:43 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2018-08-11 18:43:54 +0200
commit30e5e1fa723931b0c728d9e7c2713614cfa392f8 (patch)
tree63656fa0f6e8f8b4351c4a619652eef706d20f2a /media-video
parentmedia-video/vlc: 3.0 branch was fixed for Qt-5.11 (diff)
downloadgentoo-30e5e1fa723931b0c728d9e7c2713614cfa392f8.tar.gz
gentoo-30e5e1fa723931b0c728d9e7c2713614cfa392f8.tar.bz2
gentoo-30e5e1fa723931b0c728d9e7c2713614cfa392f8.zip
media-video/vlc: Fix location of vlc-cache-gen and plugins dir
Thanks-to: jospezial <jospezial@gmx.de> Closes: https://bugs.gentoo.org/656200 Package-Manager: Portage-2.3.45, Repoman-2.3.10
Diffstat (limited to 'media-video')
-rw-r--r--media-video/vlc/vlc-9999.ebuild12
1 files changed, 6 insertions, 6 deletions
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