commit: 9c4dfe7d5741b26a28df3c2787c6c25198518c39 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> AuthorDate: Sat Oct 21 14:54:10 2017 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Sat Oct 21 15:17:50 2017 +0000 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=9c4dfe7d
kde-apps/kmail: Add more pkg_postinst info (spam, virus filters) Package-Manager: Portage-2.3.12, Repoman-2.3.3 kde-apps/kmail/kmail-17.08.49.9999.ebuild | 23 +++++++++++++---------- kde-apps/kmail/kmail-9999.ebuild | 23 +++++++++++++---------- 2 files changed, 26 insertions(+), 20 deletions(-) diff --git a/kde-apps/kmail/kmail-17.08.49.9999.ebuild b/kde-apps/kmail/kmail-17.08.49.9999.ebuild index bf03eed6c8..1c31b47b0c 100644 --- a/kde-apps/kmail/kmail-17.08.49.9999.ebuild +++ b/kde-apps/kmail/kmail-17.08.49.9999.ebuild @@ -93,15 +93,18 @@ src_prepare() { pkg_postinst() { kde5_pkg_postinst - if ! has_version "kde-apps/kdepim-addons:${SLOT}" ; then - echo - elog "Install kde-apps/kdepim-addons:${SLOT} for fancy e-mail headers and various useful plugins." - echo - fi + pkg_is_installed() { + echo "${1} ($(has_version ${1} || echo "not ")installed)" + } - if ! has_version "kde-apps/kleopatra:${SLOT}" ; then - echo - elog "Install kde-apps/kleopatra:${SLOT} to get a crypto config and certificate details GUI." - echo - fi + elog "KMail supports the following runtime dependencies:" + elog " Virus detection:" + elog " $(pkg_is_installed app-antivirus/clamav)" + elog " Spam filtering:" + elog " $(pkg_is_installed mail-filter/bogofilter)" + elog " $(pkg_is_installed mail-filter/spamassassin)" + elog " Fancy e-mail headers and various useful plugins:" + elog " $(pkg_is_installed kde-apps/kdepim-addons:${SLOT})" + elog " Crypto config and certificate details GUI:" + elog " $(pkg_is_installed kde-apps/kleopatra:${SLOT})" } diff --git a/kde-apps/kmail/kmail-9999.ebuild b/kde-apps/kmail/kmail-9999.ebuild index bf03eed6c8..1c31b47b0c 100644 --- a/kde-apps/kmail/kmail-9999.ebuild +++ b/kde-apps/kmail/kmail-9999.ebuild @@ -93,15 +93,18 @@ src_prepare() { pkg_postinst() { kde5_pkg_postinst - if ! has_version "kde-apps/kdepim-addons:${SLOT}" ; then - echo - elog "Install kde-apps/kdepim-addons:${SLOT} for fancy e-mail headers and various useful plugins." - echo - fi + pkg_is_installed() { + echo "${1} ($(has_version ${1} || echo "not ")installed)" + } - if ! has_version "kde-apps/kleopatra:${SLOT}" ; then - echo - elog "Install kde-apps/kleopatra:${SLOT} to get a crypto config and certificate details GUI." - echo - fi + elog "KMail supports the following runtime dependencies:" + elog " Virus detection:" + elog " $(pkg_is_installed app-antivirus/clamav)" + elog " Spam filtering:" + elog " $(pkg_is_installed mail-filter/bogofilter)" + elog " $(pkg_is_installed mail-filter/spamassassin)" + elog " Fancy e-mail headers and various useful plugins:" + elog " $(pkg_is_installed kde-apps/kdepim-addons:${SLOT})" + elog " Crypto config and certificate details GUI:" + elog " $(pkg_is_installed kde-apps/kleopatra:${SLOT})" }