From the website: Ledger is an command-line accounting tool that provides double-entry accounting with a minimum of frills, and yet with a maximum of expressiveness and flexibility. Additional comments: This tool provides an emacs major mode and python bindings. Python as well as gnuplot can be used to provide graphics. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 64935 [details] Ebuild for ledger-2.3
Created attachment 64936 [details] Patch to correct the dependancies on expat
Created attachment 64937 [details] Site lisp file if you want to use emacs with this
Created attachment 64938 [details] Special Licence from NewArtisans
You can also import gnucash (or any ofx compliant files for that matter) into the tool.
Created attachment 65008 [details] Ebuild for ledger-2.3 Realised that python support was not recognized by configure. Fixed by adding the python include directory. In addition timeclock scripts are now installed independant of the emacs use flag.
Created attachment 71435 [details] Ebuild for ledger-2.4 Version bump. Python support is still problematic though.
2.5 is out. The 'problematic python pieces' can be removed from the ebuild, as the Changelog says: "2006-02-15 13:10 Summary: Python integration support has been removed Due to that fact that it was under-documented, poorly supported, and effectively used by no one (myself included), I have completely removed Python integration support from Ledger. Emphasis will now be placed on using the "xml" and "csv" reports for manipulating Ledger's output data, rather than embedded scripting." I'll attach a diff for the 2.4 ebuild which removes the python support, but splits the ofx in seperate ofx and xml USE flags. (it also removes some of the previously commented out lines, skip that if you still want these).
2.5 is out. The 'problematic python pieces' can be removed from the ebuild, as the Changelog says: "2006-02-15 13:10 Summary: Python integration support has been removed Due to that fact that it was under-documented, poorly supported, and effectively used by no one (myself included), I have completely removed Python integration support from Ledger. Emphasis will now be placed on using the "xml" and "csv" reports for manipulating Ledger's output data, rather than embedded scripting." I'll attach a diff from the 2.4 to the 2.5 ebuild which removes the python support. I additionally splits the ofx in seperate ofx and xml USE flags. (it also removes some of the previously commented out lines, skip that if you still want these).
Note, that this patch does not install two python scripts anymore which 2.4 installed. I did not find them particularly interesting, but some might still want them... --- ledger-2.4.ebuild 2006-11-14 13:26:44.000000000 +0000 +++ ledger-2.5.ebuild 2006-11-14 13:32:59.000000000 +0000 @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: $ -inherit eutils distutils elisp +inherit eutils elisp DESCRIPTION="Ledger is an command-line accounting tool that provides double-entry accounting with a minimum of frills, and yet with a maximum of expressiveness and flexibility." HOMEPAGE="http://www.newartisans.com/software.html" @@ -10,18 +10,16 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" LICENSE="NewArtisans" KEYWORDS="~x86" SLOT="0" -IUSE="emacs debug gnuplot ofx python " +IUSE="emacs debug gnuplot ofx xml" DEPEND=" dev-libs/gmp dev-libs/libpcre ofx? (>=dev-libs/libofx-0.7 - dev-libs/expat - ) - python? (dev-lang/python - dev-libs/boost ) + xml? (dev-libs/expat + ) emacs? (app-editors/emacs ) gnuplot?(media-gfx/gnuplot @@ -29,43 +27,20 @@ SITEFILE=50ledger-mode-gentoo.el -#src_unpack() { - -# unpack ${A} && cd ${S} - -# if use ofx; then - ## Make configure recognize expat as xml parser - #epatch ${FILESDIR}/gentoo-expat.patch - - ## Somehow missing from source package -# touch AUTHORS COPYING - -# autoconf || die "Autoconf failed to rebuild configure!" -# fi -#} - src_compile() { - local myconf - use ofx && myconf="${myconf} --enable-xml" - use ofx && myconf="${myconf} --enable-ofx" - use python && myconf="${myconf} --enable-python" - use debug && myconf="${myconf} --enable-debug" - - distutils_python_version - CPPFLAGS="-I /usr/include/python${PYVER}" econf ${myconf} || die "Configure failed!" - + econf \ + $(use_enable xml) \ + $(use_enable ofx) \ + $(use_enable debug) \ + || die "Configure failed!" emake || die "Make failed!" - use emacs && elisp_src_compile - - use python && distutils_src_compile } - src_install() { - dodoc sample.dat README ledger.pdf + dodoc sample.dat README NEWS ledger.pdf mv scripts/bal ledger-bal mv scripts/bal-huquq ledger-bal-huquq @@ -86,13 +61,5 @@ mv scripts/report ledger-report dobin ledger-report fi - - if use python; then - distutils_src_install - mv scripts/trend ledger-trend - dobin ledger-trend - dobin timeclock - dobin scripts/to scripts/ti scripts/tc - fi }
Hi Sebastian, thanks for the updated ebuild! Was about time that I add this to the tree. In portage now.