commit: a277b4410cf6ff32dbb38a573e2ffd39dd56dfa3
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 10 00:35:48 2024 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Fri Nov 15 21:06:02 2024 +0000
URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=a277b441
kde.org.eclass: Utilise pkg_info for live ebuild warnings
Imported from ecm.eclass for now. Enables more fine-grained messaging by
knowledge available through {frameworks,plasma,gear}.kde.org inheritance
combined with ${PV}.
Bug: https://bugs.gentoo.org/823808
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
eclass/kde.org.eclass | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/eclass/kde.org.eclass b/eclass/kde.org.eclass
index 9be501ce9e..47a52ef023 100644
--- a/eclass/kde.org.eclass
+++ b/eclass/kde.org.eclass
@@ -235,6 +235,14 @@ kde.org_src_unpack() {
esac
}
+kde.org_pkg_info() {
+ if [[ ${KDE_BUILD_TYPE} = live ]]; then
+ echo "WARNING! This is an experimental live ebuild of
${CATEGORY}/${PN}"
+ echo "Use it at your own risk."
+ echo "Only file bugs at bugs.gentoo.org if convinced that
ebuild needs an update!"
+ fi
+}
+
fi
-EXPORT_FUNCTIONS pkg_nofetch src_unpack
+EXPORT_FUNCTIONS pkg_nofetch src_unpack pkg_info