app-vim/perl-support: handle optional dependencies.
authorFerenc Erki <erkiferenc@gmail.com>
Sun, 29 Oct 2017 22:30:48 +0000 (23:30 +0100)
committerPatrice Clement <monsieurp@gentoo.org>
Thu, 9 Nov 2017 23:13:36 +0000 (00:13 +0100)
Closes: https://bugs.gentoo.org/614492
Closes: https://github.com/gentoo/gentoo/pull/6078
Package-Manager: Portage-2.3.8, Repoman-2.3.3

app-vim/perl-support/perl-support-5.4.ebuild

index 80a42f4e20a740136c111a689a1083fd0f0e8fbf..11fbe9c4a123208999c3fa6f0f02ff3791c1f154 100644 (file)
@@ -13,6 +13,8 @@ KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~x86-macos"
 VIM_PLUGIN_HELPFILES="perlsupport.txt"
 
 RDEPEND="
+       !ppc? ( dev-perl/Devel-NYTProf )
+       dev-perl/Perl-Tidy
        dev-perl/Perl-Tags
        dev-perl/Perl-Critic"
 
@@ -29,3 +31,16 @@ src_install() {
 
        vim-plugin_src_install
 }
+
+pkg_postinst() {
+       elog "${PN} can utilize the following modules on top of the ones installed as"
+       elog "dependencies:"
+       elog
+       elog "Devel::SmallProf     - per-line Perl profiler"
+       elog "Devel::FastProf      - per-line Perl profiler"
+       elog "Devel::ptkdb         - Perl debugger using a Tk GUI"
+       elog "Pod::Pdf             - A POD to PDF translator"
+       elog "YAPE::Regex::Explain - regular expression analyzer"
+       elog
+       elog "You may need to install them separately if you would like to use them."
+}