diff options
author | Mart Raudsepp <leio@gentoo.org> | 2024-03-29 23:03:42 +0200 |
---|---|---|
committer | Mart Raudsepp <leio@gentoo.org> | 2024-04-01 22:53:36 +0300 |
commit | e57d239408a81c068a5cc0105f9749f5d8c11f45 (patch) | |
tree | 9a3eed25eb89ad84d7858180f6b7430e50cc11b6 /eclass/gstreamer-meson.eclass | |
parent | media-plugins/gst-plugins-v4l2: add 1.22.11, EAPI-8 (diff) | |
download | gentoo-e57d239408a81c068a5cc0105f9749f5d8c11f45.tar.gz gentoo-e57d239408a81c068a5cc0105f9749f5d8c11f45.tar.bz2 gentoo-e57d239408a81c068a5cc0105f9749f5d8c11f45.zip |
gstreamer-meson.eclass: Install any preset files for split plugins
gst-plugins-vpx, gst-plugins-voamrwbenc, gst-plugins-amrnb and
gst-plugins-x264 have preset files that we weren't installing.
This change makes them do so when they bump to EAPI-8.
Bug: https://bugs.gentoo.org/915220
Signed-off-by: Mart Raudsepp <leio@gentoo.org>
Diffstat (limited to 'eclass/gstreamer-meson.eclass')
-rw-r--r-- | eclass/gstreamer-meson.eclass | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/eclass/gstreamer-meson.eclass b/eclass/gstreamer-meson.eclass index 20f8a3ab909f..8e58a0cbb99d 100644 --- a/eclass/gstreamer-meson.eclass +++ b/eclass/gstreamer-meson.eclass @@ -488,13 +488,20 @@ gstreamer_multilib_src_install() { # @FUNCTION: gstreamer_multilib_src_install_all # @DESCRIPTION: -# Installs documentation for requested gstreamer plugin +# Installs documentation and presets for requested gstreamer plugin gstreamer_multilib_src_install_all() { local plugin_dir for plugin_dir in ${GST_PLUGINS_BUILD_DIR} ; do local dir=$(gstreamer_get_plugin_dir ${plugin_dir}) [[ -e ${dir}/README ]] && dodoc "${dir}"/README + if [[ ${EAPI} == 8 ]]; then + local presets=( "${dir}"/*.prs ) + if [[ -e ${presets[0]} ]]; then + insinto /usr/share/gstreamer-${SLOT}/presets + doins "${presets[@]}" + fi + fi done } |