commit:     afa7efb81dfbf003d4c263e484980f6472a2ba59
Author:     Maciej Mrozowski <reavertm <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 24 01:30:47 2021 +0000
Commit:     Maciej Mrozowski <reavertm <AT> gentoo <DOT> org>
CommitDate: Sun Jan 24 01:30:47 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=afa7efb8

dev-util/ddd: migrate to optfeature

Bug: https://bugs.gentoo.org/759130
Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Maciej Mrozowski <reavertm <AT> gentoo.org>

 dev-util/ddd/ddd-3.3.12-r4.ebuild | 18 +++++++-----------
 1 file changed, 7 insertions(+), 11 deletions(-)

diff --git a/dev-util/ddd/ddd-3.3.12-r4.ebuild 
b/dev-util/ddd/ddd-3.3.12-r4.ebuild
index 8ca2724f7f5..b0279808edf 100644
--- a/dev-util/ddd/ddd-3.3.12-r4.ebuild
+++ b/dev-util/ddd/ddd-3.3.12-r4.ebuild
@@ -3,7 +3,7 @@
 
 EAPI="6"
 
-inherit autotools eutils
+inherit autotools eutils optfeature
 
 DESCRIPTION="Graphical front-end for command-line debuggers"
 HOMEPAGE="https://www.gnu.org/software/ddd";
@@ -74,19 +74,15 @@ src_install() {
 }
 
 pkg_postinst() {
-       if ! has_version sci-visualization/gnuplot; then
-               echo
-               elog "To enable data visualization in DDD, install 
sci-visualization/gnuplot."
-       fi
+       optfeature "Data visualisation" sci-visualization/gnuplot
+       optfeature "Java debugging" virtual/jdk
+       optfeature "Bash debugging" app-shells/bashdb
+       optfeature "Perl debugging" dev-lang/perl
+       optfeature "Python debugging" dev-python/pydb
+
        echo
        elog "Important notice: if you encounter DDD crashes during 
visualization, you might"
        elog "have hit bug #459324. Try switching to plotting in external 
window:"
        elog "Select Edit|Preferences|Helpers and switch 'plot window' to 
'external'"
-       elog
-       elog "To be able to debug java, bash, perl or python scripts within 
DDD, install respectively:"
-       elog "    virtual/jdk"
-       elog "    app-shells/bashdb"
-       elog "    dev-lang/perl"
-       elog "    dev-python/pydb"
        echo
 }

Reply via email to