1 |
commit: efe8736bf3c14b3fe693493d4fdb2b33a4ec7f10 |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 13 22:18:41 2015 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 13 22:24:37 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=efe8736b |
7 |
|
8 |
eclass/readme.gentoo.eclass: force people to use readme.gentoo-r1 for eapi6 support (#520094#c6) |
9 |
|
10 |
eclass/readme.gentoo.eclass | 9 +++++++-- |
11 |
1 file changed, 7 insertions(+), 2 deletions(-) |
12 |
|
13 |
diff --git a/eclass/readme.gentoo.eclass b/eclass/readme.gentoo.eclass |
14 |
index 741287a..0ab9e89 100644 |
15 |
--- a/eclass/readme.gentoo.eclass |
16 |
+++ b/eclass/readme.gentoo.eclass |
17 |
@@ -14,6 +14,8 @@ |
18 |
# shown via elog messages. With this eclass, those elog messages will only be |
19 |
# shown at first package installation and a file for later reviewing will be |
20 |
# installed under /usr/share/doc/${PF} |
21 |
+# |
22 |
+# This eclass is DEPRECATED. Please use readme.gentoo-r1 instead. |
23 |
|
24 |
if [[ -z ${_README_GENTOO_ECLASS} ]]; then |
25 |
_README_GENTOO_ECLASS=1 |
26 |
@@ -31,8 +33,11 @@ case "${EAPI:-0}" in |
27 |
EXPORT_FUNCTIONS src_install pkg_postinst |
28 |
;; |
29 |
6) |
30 |
- # Stop exporting default functions as discussed at: |
31 |
- # https://bugs.gentoo.org/show_bug.cgi?id=520094 |
32 |
+ die "Unsupported EAPI=${EAPI} for ${ECLASS}" |
33 |
+ die "Please migrate to readme.gentoo-r1.eclass and note that" |
34 |
+ die "it stops to export any ebuild phases and, then, you will" |
35 |
+ die "need to ensure readme.gentoo_create_doc is called in" |
36 |
+ die "src_install and readme.gentoo_print_elog in pkg_postinst" |
37 |
;; |
38 |
*) |
39 |
die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}" |