diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2023-08-31 12:56:12 -0400 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2023-09-05 09:01:10 -0400 |
commit | 3e36b5a89f71568752c482a699219527fba909a1 (patch) | |
tree | 3a5e69456cd23204e48ccdea91192e7de63f0999 /eclass | |
parent | dev-qt/qtscxml: skip flaky test with pid-sandbox (qt6) (diff) | |
download | gentoo-3e36b5a89f71568752c482a699219527fba909a1.tar.gz gentoo-3e36b5a89f71568752c482a699219527fba909a1.tar.bz2 gentoo-3e36b5a89f71568752c482a699219527fba909a1.zip |
qt6-build.eclass: export src_unpack to aid live ebuilds
git-r3_src_unpack does not run default/unpack, and then if we have
something else (patchset, assets, or so to unpack) that we need in
live ebuilds as well they'll be skipped.
Currently only needed by qtwebengine, but it would not hurt to have
it ready whenever needed in all esp. given ebuilds do not handle
git-r3 directly (qt6-build does). They would need to conditionally
inherit git-r3 (again) to make pkgcheck happy (and @PROVIDES would
be slightly wrong given conditions).
Tend to feel it would have been nicer if git-r3_src_unpack did this
by itself though.
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/qt6-build.eclass | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/eclass/qt6-build.eclass b/eclass/qt6-build.eclass index 6e600d5d166e..f6ed180a6979 100644 --- a/eclass/qt6-build.eclass +++ b/eclass/qt6-build.eclass @@ -82,6 +82,16 @@ BDEPEND=" ###### Phase functions ###### +# @FUNCTION: qt6-build_src_unpack +# @DESCRIPTION: +# Run git-r3_src_unpack if needed (live), then default to unpack +# e.g. patchsets in live ebuilds. +qt6-build_src_unpack() { + [[ ${QT6_BUILD_TYPE} == live ]] && git-r3_src_unpack + + default +} + # @FUNCTION: qt6-build_src_prepare # @DESCRIPTION: # Run cmake_src_prepare, prepare the environment (such as set @@ -253,4 +263,4 @@ _qt6-build_prepare_env() { fi -EXPORT_FUNCTIONS src_prepare src_configure src_test src_install +EXPORT_FUNCTIONS src_unpack src_prepare src_configure src_test src_install |