This new eclass is similar to readme.gentoo-r1.eclass. The main
differences are as follows. Firstly, it also displays the doc file
contents if they have changed. Secondly, it provides a convenient API to install the doc file via stdin.
Furthermore, this eclass dos not store the doc file's contents in an environment variable, which helps to keep the environment size of
ebuilds using the eclass small.
Signed-off-by: Florian Schmaus <
flow@gentoo.org>
---
eclass/greadme.eclass | 307 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 307 insertions(+)
create mode 100644 eclass/greadme.eclass
diff --git a/eclass/greadme.eclass b/eclass/greadme.eclass
new file mode 100644
index 000000000000..25e0210406c1
--- /dev/null
+++ b/eclass/greadme.eclass
@@ -0,0 +1,307 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# @ECLASS: greadme.eclass
+# @MAINTAINER:
+# Florian Schmaus <
flow@gentoo.org>
+# @AUTHOR:
+# Author: Florian Schmaus <
flow@gentoo.org>
+# @SUPPORTED_EAPIS: 6 7 8
+# @BLURB: install a doc file, that will be conditionally shown via elog messages
+# @DESCRIPTION:
+# An eclass for installing a README.gentoo doc file recording tips
+# shown via elog messages. With this eclass, those elog messages will only be +# shown at first package installation or if the contents of the file have changed.
+# Furthermore, a file for later reviewing will be installed under
+