From 52e9a07714e82aeb40d6569b4e337059bd37a83f Mon Sep 17 00:00:00 2001 From: Gerben Jan Dijkman <129263+stealthgun@users.noreply.github.com> Date: Thu, 25 Mar 2021 12:57:18 +0100 Subject: [PATCH] Update gstreamer-1.18.4.ebuild --- media-libs/gstreamer/gstreamer-1.18.4.ebuild | 49 ++++++-------------- 1 file changed, 15 insertions(+), 34 deletions(-) diff --git a/media-libs/gstreamer/gstreamer-1.18.4.ebuild b/media-libs/gstreamer/gstreamer-1.18.4.ebuild index a2493d6..a063ee3 100644 --- a/media-libs/gstreamer/gstreamer-1.18.4.ebuild +++ b/media-libs/gstreamer/gstreamer-1.18.4.ebuild @@ -35,7 +35,8 @@ DEPEND="${RDEPEND} " src_configure() { - multilib-minimal_src_configure + vala_src_prepare + xdg_src_prepare } multilib_src_configure() { @@ -44,7 +45,7 @@ multilib_src_configure() { # helpers from there. # Disable static archives and examples to speed up build time # Disable debug, as it only affects -g passing (debugging symbols), this must done through make.conf in gentoo - local myconf=( + local emesonargs=( --libexecdir="${EPREFIX}"/usr/$(get_libdir) --disable-benchmarks --disable-debug @@ -61,40 +62,20 @@ multilib_src_configure() { --with-package-name="GStreamer ebuild for Gentoo" --with-package-origin="https://packages.gentoo.org/package/media-libs/gstreamer" ) - - if use caps ; then - myconf+=( --with-ptp-helper-permissions=capabilities ) - else - myconf+=( - --with-ptp-helper-permissions=setuid-root - --with-ptp-helper-setuid-user=nobody - --with-ptp-helper-setuid-group=nobody - ) - fi - - ECONF_SOURCE="${S}" econf "${myconf[@]}" - - if multilib_is_native_abi; then - local x - for x in gst libs plugins; do - ln -s "${S}"/docs/${x}/html docs/${x}/html || die - done - fi + + meson_src_configure } -multilib_src_install() { - # can't do "default", we want to install docs in multilib_src_install_all - emake DESTDIR="${D}" install - - # Needed for orc-using gst plugins on hardened/PaX systems, bug #421579 - use orc && pax-mark -m "${ED}usr/$(get_libdir)/gstreamer-${SLOT}/gst-plugin-scanner" +src_test() { + virtx meson_src_test } -multilib_src_install_all() { - DOCS="AUTHORS ChangeLog NEWS MAINTAINERS README RELEASE" - einstalldocs - find "${ED}" -name '*.la' -delete || die - - # Needed for orc-using gst plugins on hardened/PaX systems, bug #421579 - use orc && pax-mark -m "${ED}usr/bin/gst-launch-${SLOT}" +pkg_postinst() { + xdg_pkg_postinst + gnome2_schemas_update +} + +pkg_postrm() { + xdg_pkg_postrm + gnome2_schemas_update }