sed -i 's/ --started-from-file//' share/vlc.desktop.in || die
fi
+ # Disable running of vlc-cache-gen, we do that in pkg_postinst
+ sed -e "/test.*build.*host/s/\$(host)/nothanks/" \
+ -i Makefile.am -i bin/Makefile.am || die "Failed to disable vlc-cache-gen"
+
eautoreconf
# Disable automatic running of tests.
}
pkg_postrm() {
+ if [[ -e /usr/lib64/vlc/plugins/plugins.dat ]]; then
+ rm /usr/lib64/vlc/plugins/plugins.dat || die "Failed to rm plugins.dat"
+ fi
+
gnome2_icon_cache_update
xdg_mimeinfo_database_update
xdg_desktop_database_update
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
sed -i 's/ --started-from-file//' share/vlc.desktop.in || die
fi
+ # Disable running of vlc-cache-gen, we do that in pkg_postinst
+ sed -e "/test.*build.*host/s/\$(host)/nothanks/" \
+ -i Makefile.am -i bin/Makefile.am || die "Failed to disable vlc-cache-gen"
+
eautoreconf
# Disable automatic running of tests.
}
pkg_postrm() {
+ if [[ -e /usr/lib64/vlc/plugins/plugins.dat ]]; then
+ rm /usr/lib64/vlc/plugins/plugins.dat || die "Failed to rm plugins.dat"
+ fi
+
gnome2_icon_cache_update
xdg_mimeinfo_database_update
xdg_desktop_database_update
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
sed -i 's/ --started-from-file//' share/vlc.desktop.in || die
fi
+ # Disable running of vlc-cache-gen, we do that in pkg_postinst
+ sed -e "/test.*build.*host/s/\$(host)/nothanks/" \
+ -i Makefile.am -i bin/Makefile.am || die "Failed to disable vlc-cache-gen"
+
eautoreconf
# Disable automatic running of tests.
}
pkg_postrm() {
+ if [[ -e /usr/lib64/vlc/plugins/plugins.dat ]]; then
+ rm /usr/lib64/vlc/plugins/plugins.dat || die "Failed to rm plugins.dat"
+ fi
+
gnome2_icon_cache_update
xdg_mimeinfo_database_update
xdg_desktop_database_update
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
sed -i 's/ --started-from-file//' share/vlc.desktop.in || die
fi
+ # Disable running of vlc-cache-gen, we do that in pkg_postinst
+ sed -e "/test.*build.*host/s/\$(host)/nothanks/" \
+ -i Makefile.am -i bin/Makefile.am || die "Failed to disable vlc-cache-gen"
+
eautoreconf
# Disable automatic running of tests.
}
pkg_postrm() {
+ if [[ -e /usr/lib64/vlc/plugins/plugins.dat ]]; then
+ rm /usr/lib64/vlc/plugins/plugins.dat || die "Failed to rm plugins.dat"
+ fi
+
gnome2_icon_cache_update
xdg_mimeinfo_database_update
xdg_desktop_database_update