summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Mackdanz <stasibear@gentoo.org>2024-11-03 13:36:46 -0600
committerErik Mackdanz <stasibear@gentoo.org>2024-11-03 14:11:31 -0600
commite833bec6f11174789a0d685d66f63268e216e552 (patch)
treede893d3f7897cdb4fc428ed8576e49584c887684 /app-office
parentapp-office/ledger: bump to -r2 (diff)
downloadgentoo-e833bec6f11174789a0d685d66f63268e216e552.tar.gz
gentoo-e833bec6f11174789a0d685d66f63268e216e552.tar.bz2
gentoo-e833bec6f11174789a0d685d66f63268e216e552.zip
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@gentoo.org>
Diffstat (limited to 'app-office')
-rw-r--r--app-office/ledger/ledger-3.3.2-r2.ebuild14
1 files 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