commit: e833bec6f11174789a0d685d66f63268e216e552 Author: Erik Mackdanz <stasibear <AT> gentoo <DOT> org> AuthorDate: Sun Nov 3 19:36:46 2024 +0000 Commit: Erik Mackdanz <stasibear <AT> gentoo <DOT> org> CommitDate: Sun Nov 3 20:11:31 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e833bec6
app-office/ledger: install contrib report script Closes: https://github.com/gentoo/gentoo/pull/39094 Closes: https://bugs.gentoo.org/942044 Closes: https://bugs.gentoo.org/942406 Signed-off-by: Erik Mackdanz <stasibear <AT> gentoo.org> app-office/ledger/ledger-3.3.2-r2.ebuild | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/app-office/ledger/ledger-3.3.2-r2.ebuild b/app-office/ledger/ledger-3.3.2-r2.ebuild index c69d99cb1265..4d99599fedda 100644 --- a/app-office/ledger/ledger-3.3.2-r2.ebuild +++ b/app-office/ledger/ledger-3.3.2-r2.ebuild @@ -5,7 +5,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{10,11,12,13} ) CMAKE_REMOVE_MODULES_LIST=( FindPython Support ) -inherit bash-completion-r1 check-reqs cmake python-single-r1 +inherit bash-completion-r1 check-reqs cmake optfeature python-single-r1 DESCRIPTION="Double-entry accounting system with a command-line reporting interface" HOMEPAGE="https://www.ledger-cli.org/" @@ -102,6 +102,10 @@ src_compile() { src_install() { cmake_src_install + # Requires gnuplot + exeinto /usr/bin + doexe contrib/report + newbashcomp contrib/${PN}-completion.bash ${PN} } @@ -109,9 +113,13 @@ pkg_postinst() { elog elog "Since version 3, vim support is released separately." elog "See https://github.com/ledger/vim-ledger" - elog - elog "For Emacs mode, emerge app-emacs/ledger-mode" + optfeature_header \ + "Install the following packages for additional features:" + optfeature "Emacs support" "app-emacs/ledger-mode" + optfeature "Plot visualization" "sci-visualization/gnuplot" + optfeature "Graph visualization" "media-gfx/graphviz" } # rainy day TODO: # - IUSE test +# - create vim-ledger ebuild
