commit:     bdb79794c7dded31f4f78d70aeb9c278bb152a42
Author:     NP-Hardass <NP-Hardass <AT> gentoo <DOT> org>
AuthorDate: Wed May 29 22:34:45 2019 +0000
Commit:     Göktürk Yüksek <gokturk <AT> gentoo <DOT> org>
CommitDate: Thu May 30 04:29:19 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bdb79794

app-arch/engrampa: Switch to using readme.gentoo-r1 eclass

Based code off of recommended example, file-roller

Closes: https://bugs.gentoo.org/639590

Signed-off-by: NP-Hardass <NP-Hardass <AT> gentoo.org>

Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Göktürk Yüksek <gokturk <AT> gentoo.org>

 ...mpa-1.22.1.ebuild => engrampa-1.22.1-r1.ebuild} | 48 ++++++++++++----------
 1 file changed, 27 insertions(+), 21 deletions(-)

diff --git a/app-arch/engrampa/engrampa-1.22.1.ebuild 
b/app-arch/engrampa/engrampa-1.22.1-r1.ebuild
similarity index 53%
rename from app-arch/engrampa/engrampa-1.22.1.ebuild
rename to app-arch/engrampa/engrampa-1.22.1-r1.ebuild
index f1260b9b27e..63cc9bce008 100644
--- a/app-arch/engrampa/engrampa-1.22.1.ebuild
+++ b/app-arch/engrampa/engrampa-1.22.1-r1.ebuild
@@ -5,7 +5,7 @@ EAPI=6
 
 MATE_LA_PUNT="yes"
 
-inherit mate
+inherit mate readme.gentoo-r1
 
 if [[ ${PV} != 9999 ]]; then
        KEYWORDS="~amd64 ~arm ~arm64 ~x86"
@@ -36,6 +36,26 @@ DEPEND="${RDEPEND}
        sys-devel/gettext
        virtual/pkgconfig"
 
+DISABLE_AUTOFORMATTING="yes"
+DOC_CONTENTS="
+${PN} is a frontend for several archiving utilities. If you want
+support for a particular archive format,install the relevant package:
+
+7-zip   : emerge app-arch/p7zip
+ace     : emerge app-arch/unace
+arj     : emerge app-arch/arj
+cpio    : emerge app-arch/cpio
+deb     : emerge app-arch/dpkg
+iso     : emerge app-cdr/cdrtools
+jar,zip : emerge app-arch/zip  or  emerge app-arch/unzip
+lha     : emerge app-arch/lha
+lzma    : emerge app-arch/xz-utils
+lzop    : emerge app-arch/lzop
+rar     : emerge app-arch/unrar
+rpm     : emerge app-arch/rpm
+unstuff : emerge app-arch/stuffit
+zoo     : emerge app-arch/zoo"
+
 src_configure() {
        mate_src_configure \
                --disable-run-in-place \
@@ -44,26 +64,12 @@ src_configure() {
                $(use_enable packagekit)
 }
 
+src_install() {
+       mate_src_install
+       readme.gentoo_create_doc
+}
+
 pkg_postinst() {
        mate_pkg_postinst
-
-       elog ""
-       elog "${PN} is a frontend for several archiving utilities. If you want 
a"
-       elog "particular achive format supported install the relevant package."
-       elog
-       elog "For example:"
-       elog "  7-zip   : emerge app-arch/p7zip"
-       elog "  ace     : emerge app-arch/unace"
-       elog "  arj     : emerge app-arch/arj"
-       elog "  cpio    : emerge app-arch/cpio"
-       elog "  deb     : emerge app-arch/dpkg"
-       elog "  iso     : emerge app-cdr/cdrtools"
-       elog "  jar,zip : emerge app-arch/zip  or  emerge app-arch/unzip"
-       elog "  lha     : emerge app-arch/lha"
-       elog "  lzma    : emerge app-arch/xz-utils"
-       elog "  lzop    : emerge app-arch/lzop"
-       elog "  rar     : emerge app-arch/unrar"
-       elog "  rpm     : emerge app-arch/rpm"
-       elog "  unstuff : emerge app-arch/stuffit"
-       elog "  zoo     : emerge app-arch/zoo"
+       readme.gentoo_print_elog
 }

Reply via email to