summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* gstreamer-meson.eclass: fix handling meson-1.5's pretty-printed JSONSam James2024-06-301-1/+1
| | | | | | | | | | | meson-1.5 pretty-prints its JSON which means the target JSON file here spawns multiple lines. <$x> will only read one line, per https://github.com/makamaka/JSON-PP/issues/85#issuecomment-1367719155. Switch to reading the whole file like in https://stackoverflow.com/a/24959863. Cloess: https://bugs.gentoo.org/935245 Signed-off-by: Sam James <sam@gentoo.org>
* gstreamer-meson.eclass: depend on glib-utils for -base and -bad splitsMart Raudsepp2024-04-011-0/+6
| | | | | Closes: https://bugs.gentoo.org/811807 Signed-off-by: Mart Raudsepp <leio@gentoo.org>
* gstreamer-meson.eclass: Avoid shm and waylandsink getting enabled for -bad ↵Mart Raudsepp2024-04-011-2/+2
| | | | | | | | | | splits This is mainly for correctness, as the bad split builds didn't actually end up building anything about shm or waylandsink as the subdirs of those are ignored by the split packages builds. Signed-off-by: Mart Raudsepp <leio@gentoo.org>
* gstreamer-meson.eclass: Install any preset files for split pluginsMart Raudsepp2024-04-011-1/+8
| | | | | | | | | 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>
* gstreamer-meson.eclass: Increase test timeoutMart Raudsepp2024-04-011-1/+1
| | | | | | | | gst-plugins-good fails flvmux or other tests sometimes for me on timeout otherwise, probably from running with a high amount of parallel tests having some longer-running take even longer. Signed-off-by: Mart Raudsepp <leio@gentoo.org>
* gstreamer-meson.eclass: add EAPI 8 support with pkg_setup and python-any-r1Mart Raudsepp2024-04-011-9/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pkg_setup is exported in EAPI-8 to proxy to python-any-r1_pkg_setup while being future-proof for any other changes and make it less surprising when some ebuild needs to important something else that exports pkg_setup too by not having it be implicit export via an indirect inherit. Bug: https://bugs.gentoo.org/834789 Bug: https://bugs.gentoo.org/807959 Bug: https://bugs.gentoo.org/804597 Bug: https://bugs.gentoo.org/804600 Bug: https://bugs.gentoo.org/804948 Bug: https://bugs.gentoo.org/805515 Bug: https://bugs.gentoo.org/808111 Bug: https://bugs.gentoo.org/808114 Bug: https://bugs.gentoo.org/813029 Bug: https://bugs.gentoo.org/813156 Bug: https://bugs.gentoo.org/813159 Bug: https://bugs.gentoo.org/834790 Bug: https://bugs.gentoo.org/834791 Bug: https://bugs.gentoo.org/834878 Bug: https://bugs.gentoo.org/835398 Bug: https://bugs.gentoo.org/843986 Bug: https://bugs.gentoo.org/866797 Bug: https://bugs.gentoo.org/866800 Bug: https://bugs.gentoo.org/866803 Bug: https://bugs.gentoo.org/866806 Bug: https://bugs.gentoo.org/866824 Bug: https://bugs.gentoo.org/866827 Bug: https://bugs.gentoo.org/866830 Bug: https://bugs.gentoo.org/866833 Bug: https://bugs.gentoo.org/866836 Bug: https://bugs.gentoo.org/866845 Bug: https://bugs.gentoo.org/866848 Bug: https://bugs.gentoo.org/866851 Bug: https://bugs.gentoo.org/866854 Bug: https://bugs.gentoo.org/866857 Bug: https://bugs.gentoo.org/866860 Bug: https://bugs.gentoo.org/866863 Bug: https://bugs.gentoo.org/866866 Bug: https://bugs.gentoo.org/866914 Bug: https://bugs.gentoo.org/866917 Bug: https://bugs.gentoo.org/866920 Bug: https://bugs.gentoo.org/866926 Bug: https://bugs.gentoo.org/888129 Bug: https://bugs.gentoo.org/907435 Bug: https://bugs.gentoo.org/907437 Bug: https://bugs.gentoo.org/907438 Bug: https://bugs.gentoo.org/907440 Bug: https://bugs.gentoo.org/907441 Bug: https://bugs.gentoo.org/907466 Bug: https://bugs.gentoo.org/907467 Bug: https://bugs.gentoo.org/907468 Bug: https://bugs.gentoo.org/907469 Signed-off-by: Mart Raudsepp <leio@gentoo.org>
* gstreamer-meson.eclass: fix false positive missing IUSE=orc warningsMart Raudsepp2024-04-011-1/+23
| | | | | | | | | Main packages are assumed to always want IUSE=orc when the meson option is there, whereas split plugins are considered to need it when they refer to orc_dep in one of their plugin subdirs and not need it when none do. Closes: https://bugs.gentoo.org/810417 Signed-off-by: Mart Raudsepp <leio@gentoo.org>
* gstreamer-meson.eclass: fix false positive missing introspection warningsMart Raudsepp2024-04-011-1/+3
| | | | | | | | Split plugins would (almost?) never enable introspection build as they typically don't ship any libraries, much less those that would be set up for introspection. Bug: https://bugs.gentoo.org/810417 Signed-off-by: Mart Raudsepp <leio@gentoo.org>
* gstreamer-meson.eclass: Avoid ximagesrc and v4l2 getting enabled for -good ↵Mart Raudsepp2024-04-011-3/+8
| | | | | | | | | | splits This is mainly for correctness, as the good split builds didn't actually end up building anything about ximagesrc or v4l2 as the subdirs of those are ignored by the split packages builds. Signed-off-by: Mart Raudsepp <leio@gentoo.org>
* gstreamer-meson.eclass: Refactor away repetition in gstreamer_get_plugins()Mart Raudsepp2024-04-011-29/+16
| | | | Signed-off-by: Mart Raudsepp <leio@gentoo.org>
* gstreamer-meson.eclass: Drop bogus IUSE=test for split packagesMart Raudsepp2024-04-011-1/+7
| | | | | | | | virtualx was inherited unconditionally, but only used in non-splits. Unconditional virtualx inheriting is preserved for older than 1.22.10 versions to not cause any --newuse rebuilds for stable users. Signed-off-by: Mart Raudsepp <leio@gentoo.org>
* gstreamer-meson.eclass: Avoid gl getting automatically enabled for base splitsMart Raudsepp2024-04-011-0/+5
| | | | | | | | | This necessitates adding `gl` to GST_PLUGINS_NOAUTO in gst-plugins-base, or it gets disabled there as well due to eclass additions being appended to the ebuild ones. This is mainly for correctness, as the few base split builds didn't actually end up building anything about GL extra due to this. Signed-off-by: Mart Raudsepp <leio@gentoo.org>
* gstreamer-meson.eclass: Avoid needlessly compiling helper libraries in split ↵Mart Raudsepp2024-04-011-1/+5
| | | | | | | | | | | | | | | | | | | | | packages When a split package uses gstreamer_system_package() for a helper library in gst-libs/ that is in the same tarball, it wasn't working fully anymore these days because for subprojects support they all do a meson.override_dependency as well, which is also overriding the dependency our eclass helper adds at the top of the split plugins subdir meson.build. Because of that, it was building these helper libraries from scratch and link against them, only to discard it after linking against it and potentially also causing some ABI issues, as at runtime the system version from the main package is used (though that hasn't been observed as of yet, only the extra big compilation). Fix it by deleting the relevant override_dependency call as part of gstreamer_system_package() as well, which works as long as the syntax used for it is standard in terms of whitespace usage. For example gst-plugins-cdparanoia had 51 build units before due to this, but only 2 after the fix. Signed-off-by: Mart Raudsepp <leio@gentoo.org>
* media-libs/gstreamer: add 1.22.10, drop 1.22.3 (security)Haelwenn (lanodan) Monnier2024-04-011-0/+6
| | | | | | | | | | | | - eclass / gst-plugins-good: Add "soup" option in the special cases - gst-plugins-good: Backport fix against tests being enabled on libsoup presence automagic-style <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6058> Closes: https://bugs.gentoo.org/836163 Closes: https://bugs.gentoo.org/908978 Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me> Signed-off-by: Mart Raudsepp <leio@gentoo.org>
* gstreamer-meson.eclass: detect qt5/qt6 in split -good pluginsSam James2023-06-101-0/+10
| | | | | Closes: https://bugs.gentoo.org/907483 Signed-off-by: Sam James <sam@gentoo.org>
* gstreamer-meson.eclass: drop unused variableSam James2023-05-261-2/+0
| | | | | | | | Reported by Arfrever. Followup to 47f7239e01ad9ab99ba28da8fb52f787ddf0648f. Signed-off-by: Sam James <sam@gentoo.org>
* gstreamer-meson.eclass: drop invalid local in global scopeSam James2023-05-261-1/+1
| | | | | | | Thanks to radhermit for reporting. Portage doesn't notice this because it does sourcing in function-scope. Signed-off-by: Sam James <sam@gentoo.org>
* gstreamer-meson.eclass: fix spellingSam James2023-03-261-1/+1
| | | | | | | Thanks to codespell. Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* gstreamer-meson.eclass: Quote argument of ":" commandUlrich Müller2023-03-261-5/+5
| | | | | | This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* gstreamer-meson.eclass: remove unnecessary BDEPEND on sys-apps/sedDavid Seifert2022-12-071-1/+0
| | | | | | * guaranteed by PMS Signed-off-by: David Seifert <soap@gentoo.org>
* gstreamer-meson.eclass: fix UnquotedVariable of BUILD_DIRArthur Zamarin2022-09-121-1/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* gstreamer-meson.eclass: fix install on prefixSam James2022-07-101-0/+1
| | | | | Closes: https://bugs.gentoo.org/852203 Signed-off-by: Sam James <sam@gentoo.org>
* gstreamer-meson.eclass: Fix typosMatt Turner2022-05-171-2/+2
| | | | Signed-off-by: Matt Turner <mattst88@gentoo.org>
* gstreamer-meson.eclass: fix symlink issue for WORKDIRTony Lee2022-03-261-3/+11
| | | | | | | | | | Fixes symlink issue with a variety of gstreamer plugin packages. Bug: https://bugs.gentoo.org/820416 Bug: https://bugs.gentoo.org/816702 Closes: https://bugs.gentoo.org/805020 Closes: https://github.com/gentoo/gentoo/pull/22967 Signed-off-by: Sam James <sam@gentoo.org>
* *.eclass: @ECLASS-VARIABLE renamed to @ECLASS_VARIABLEUlrich Müller2022-03-241-6/+6
| | | | | Bug: https://bugs.gentoo.org/835396 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* gstreamer-meson.eclass: check for package-name and package-origin optionsMike Gilbert2021-11-131-5/+8
| | | | | Bug: https://bugs.gentoo.org/823617 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* gstreamer-meson.eclass: Fix eclass documentationUlrich Müller2021-10-021-1/+1
| | | | | Fixes: 0f014c97162ec8ee23f1355f00bf488c9178e6b9 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* gstreamer-meson.eclass: Set @PROVIDESMichał Górny2021-09-021-0/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* gstreamer-meson.eclass: change metadata variable whitespaceSam James2021-07-311-0/+1
| | | | | | Similar to skel.ebuild. Signed-off-by: Sam James <sam@gentoo.org>
* gstreamer-meson.eclass: Replace ${GST_MIN_PV} with $(ver_cut 1-2)Haelwenn (lanodan) Monnier2021-07-311-6/+2
| | | | | | | | Our previous version bound was too low. Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me> Closes: https://github.com/gentoo/gentoo/pull/21831 Signed-off-by: Sam James <sam@gentoo.org>
* gstreamer-meson.eclass: minor style changesSam James2021-07-101-4/+2
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* gstreamer-meson.eclass: Add special detection for opencv and hlsHaelwenn (lanodan) Monnier2021-07-101-0/+10
| | | | | | | | | - opencv is described as a library but builds & works like a plugin - hls is a regular plugin but it's option is separated into another block Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me> Closes: https://github.com/gentoo/gentoo/pull/21513 Signed-off-by: Sam James <sam@gentoo.org>
* gstreamer-meson.eclass: Add plugin dependency override helpersIgor V. Kovalenko2021-07-101-0/+50
| | | | | Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
* gstreamer-meson.eclass: Fix cycle dependency on gstreamerHaelwenn (lanodan) Monnier2021-05-311-1/+7
| | | | | | | Closes: https://bugs.gentoo.org/793032 Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me> Closes: https://github.com/gentoo/gentoo/pull/21052 Signed-off-by: Sam James <sam@gentoo.org>
* gstreamer-meson.eclass: New eclass required for gstreamer-1.18.0+Haelwenn (lanodan) Monnier2021-05-301-0/+367
Gstreamer switched to meson in 1.16.0 and removed autotools support in 1.18.0, this eclass is an update of gstreamer.eclass. One significant change is that we lost the gstreamer_system_link function. Differences from version 1: - Move to EAPI-7, including moving deps from DEPEND to BDEPEND when appropriate - Port python script to perl, this allows to avoid having to add PYTHON_COMPAT into a python-unrelated eclass - Drop errorneous MULTILIB_USEDEP on virtual/pkgconfig - Fix running tests: defining multilib_src_test, media-libs/gstreamer[test] dep - Fix ebuild emesonargs being ignored - Remove legacy prune_libtool_files - virtualx wrapped for testing Differences from version 2: - Get list of plugins from meson_options.txt instead of hard-coding them, this adds GST_PLUGINS_NOAUTO for ones managed by the ebuild - Fix @AUTHOR order - Sort inherits - remove stray semicolon in test - Add virtx to tests - Remove gstreamer_environment_reset - Put GST_ORG_MODULE conditions into gstreamer_multilib_src_{compile,install} - QA warn when IUSE=orc is defined but the option is absent - Pass gst_debug/examples/nls/tests options only when declared - Use code similar to orc for introspection Closes: https://bugs.gentoo.org/690468 Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me> Signed-off-by: Sam James <sam@gentoo.org>