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@gentoo.org>
This commit is contained in:
Andreas Sturmlechner 2024-11-10 01:35:48 +01:00
parent 88f8639b69
commit f713aff8e9
No known key found for this signature in database
GPG Key ID: 012423318D1FB6CD

View File

@ -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