gstreamer-meson.eclass: check for package-name and package-origin options

Bug: https://bugs.gentoo.org/823617
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
This commit is contained in:
Mike Gilbert
2021-11-13 19:43:26 -05:00
parent 178f637bd8
commit 8207f2dffa
+8 -5
View File
@@ -328,12 +328,15 @@ gstreamer_multilib_src_configure() {
fi
fi
if grep -qF "option('package-name'" "${EMESON_SOURCE}"/meson_options.txt ; then
gst_conf+=( -Dpackage-name="Gentoo GStreamer ebuild" )
fi
if grep -qF "option('package-origin'" "${EMESON_SOURCE}"/meson_options.txt ; then
gst_conf+=( -Dpackage-origin="https://www.gentoo.org" )
fi
gst_conf+=( "${@}" )
einfo "Configuring to build ${GST_PLUGINS_ENABLED} plugin(s) ..."
gst_conf+=(
-Dpackage-name="Gentoo GStreamer ebuild"
-Dpackage-origin="https://www.gentoo.org"
"${@}"
)
meson_src_configure "${gst_conf[@]}"
}