net-im/mcabber: employ readme.gentoo-r1
authorAndrey Utkin <andrey_utkin@gentoo.org>
Sat, 22 Sep 2018 23:43:16 +0000 (00:43 +0100)
committerAndrey Utkin <andrey_utkin@gentoo.org>
Sun, 23 Sep 2018 01:00:42 +0000 (02:00 +0100)
Package-Manager: Portage-2.3.48, Repoman-2.3.10

net-im/mcabber/files/README.gentoo [new file with mode: 0644]
net-im/mcabber/mcabber-9999.ebuild

diff --git a/net-im/mcabber/files/README.gentoo b/net-im/mcabber/files/README.gentoo
new file mode 100644 (file)
index 0000000..dc394e6
--- /dev/null
@@ -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.
index 64bf95a6cad0f9af37526408729668e08353b43e..2f8476b1c21452a9206a1c64f314ae8b7b2d659c 100644 (file)
@@ -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
 }