commit:     208ee92e313849b8def2a05edd9c88b2be4e0322
Author:     Andrey Utkin <andrey_utkin <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 22 23:43:16 2018 +0000
Commit:     Andrey Utkin <andrey_utkin <AT> gentoo <DOT> org>
CommitDate: Sun Sep 23 01:00:42 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=208ee92e

net-im/mcabber: employ readme.gentoo-r1

Package-Manager: Portage-2.3.48, Repoman-2.3.10

 net-im/mcabber/files/README.gentoo | 17 +++++++++++++++++
 net-im/mcabber/mcabber-9999.ebuild | 25 ++++---------------------
 2 files changed, 21 insertions(+), 21 deletions(-)

diff --git a/net-im/mcabber/files/README.gentoo 
b/net-im/mcabber/files/README.gentoo
new file mode 100644
index 00000000000..dc394e6e5a4
--- /dev/null
+++ b/net-im/mcabber/files/README.gentoo
@@ -0,0 +1,17 @@
+MCabber requires you to create a subdirectory .mcabber in your home
+directory and to place a configuration file there.
+An example mcabberrc was installed as part of the documentation.
+To create a new mcabberrc based on the example mcabberrc, execute the
+following commands:
+
+  mkdir -p ~/.mcabber
+  bzcat /usr/share/doc/mcabber*/mcabberrc.example.bz2 > ~/.mcabber/mcabberrc
+
+Then edit ~/.mcabber/mcabberrc with your favorite editor.
+
+See the CONFIGURATION FILE and FILES sections of the mcabber
+manual page (section 1) for more information.
+
+MCabber supports PGP encryption of messages. See README_PGP.txt for details.
+
+Check out /usr/share/mcabber/ for contributed themes and event scripts.

diff --git a/net-im/mcabber/mcabber-9999.ebuild 
b/net-im/mcabber/mcabber-9999.ebuild
index 64bf95a6cad..2f8476b1c21 100644
--- a/net-im/mcabber/mcabber-9999.ebuild
+++ b/net-im/mcabber/mcabber-9999.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-inherit flag-o-matic
+inherit flag-o-matic readme.gentoo-r1
 
 DESCRIPTION="A small Jabber console client with various features, like MUC, 
SSL, PGP"
 HOMEPAGE="http://mcabber.com/";
@@ -90,27 +90,10 @@ src_install() {
                insinto /usr/share/vim/vimfiles/ftdetect
                doins mcabber_log-ftdetect.vim
        fi
+
+       readme.gentoo_create_doc
 }
 
 pkg_postinst() {
-       elog
-       elog "MCabber requires you to create a subdirectory .mcabber in your 
home"
-       elog "directory and to place a configuration file there."
-       elog "An example mcabberrc was installed as part of the documentation."
-       elog "To create a new mcabberrc based on the example mcabberrc, execute 
the"
-       elog "following commands:"
-       elog
-       elog "  mkdir -p ~/.mcabber"
-       elog "  bzcat ${EROOT}usr/share/doc/${PF}/mcabberrc.example.bz2 
>~/.mcabber/mcabberrc"
-       elog
-       elog "Then edit ~/.mcabber/mcabberrc with your favorite editor."
-       elog
-       elog "See the CONFIGURATION FILE and FILES sections of the mcabber"
-       elog "manual page (section 1) for more information."
-       elog
-       elog "From version 0.9.0 on, MCabber supports PGP encryption of 
messages."
-       elog "See README_PGP.txt for details."
-       echo
-       einfo "Check out ${EROOT}usr/share/${PN} for contributed themes and 
event scripts."
-       echo
+       readme.gentoo_print_elog
 }

Reply via email to