summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Faulhammer <opfer@gentoo.org>2007-10-14 23:31:53 +0000
committerChristian Faulhammer <opfer@gentoo.org>2007-10-14 23:31:53 +0000
commita49f394ccf7cddd79e10504d35996b0a512e5397 (patch)
tree0074c0b3ca24bdc44432064cb3c94d688bceaf26 /app-office
parentrevision bump for fixed Emacs support, see bug 193427 (diff)
downloadgentoo-2-a49f394ccf7cddd79e10504d35996b0a512e5397.tar.gz
gentoo-2-a49f394ccf7cddd79e10504d35996b0a512e5397.tar.bz2
gentoo-2-a49f394ccf7cddd79e10504d35996b0a512e5397.zip
fixed Emacs support, see bug 193463
(Portage version: 2.1.3.9)
Diffstat (limited to 'app-office')
-rw-r--r--app-office/ledger/ChangeLog8
-rw-r--r--app-office/ledger/files/50ledger-gentoo.el5
-rw-r--r--app-office/ledger/files/digest-ledger-2.5-r23
-rw-r--r--app-office/ledger/ledger-2.5-r2.ebuild69
4 files changed, 84 insertions, 1 deletions
diff --git a/app-office/ledger/ChangeLog b/app-office/ledger/ChangeLog
index 919d550b6257..2cd2cad67f8d 100644
--- a/app-office/ledger/ChangeLog
+++ b/app-office/ledger/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-office/ledger
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/ledger/ChangeLog,v 1.6 2007/09/16 10:48:11 opfer Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/ledger/ChangeLog,v 1.7 2007/10/14 23:31:52 opfer Exp $
+
+*ledger-2.5-r2 (14 Oct 2007)
+
+ 14 Oct 2007; Christian Faulhammer <opfer@gentoo.org>
+ +files/50ledger-gentoo.el, +ledger-2.5-r2.ebuild:
+ fixed Emacs support, see bug 193463
16 Sep 2007; Christian Faulhammer <opfer@gentoo.org> ledger-2.5-r1.ebuild:
adding elisp-site-regen, so Emacs start-up is updated, see bug 158073
diff --git a/app-office/ledger/files/50ledger-gentoo.el b/app-office/ledger/files/50ledger-gentoo.el
new file mode 100644
index 000000000000..27836612139f
--- /dev/null
+++ b/app-office/ledger/files/50ledger-gentoo.el
@@ -0,0 +1,5 @@
+
+;;; app-office/ledger site-lisp configuration
+
+(add-to-list 'load-path "@SITELISP@")
+(autoload 'ledger-mode "ledger" "A mode for editing ledger data files." t)
diff --git a/app-office/ledger/files/digest-ledger-2.5-r2 b/app-office/ledger/files/digest-ledger-2.5-r2
new file mode 100644
index 000000000000..3c46760f016a
--- /dev/null
+++ b/app-office/ledger/files/digest-ledger-2.5-r2
@@ -0,0 +1,3 @@
+MD5 ef2ac2e9942ecddfc01cc6ae42e264e9 ledger-2.5.tar.gz 829947
+RMD160 4380ecc5275df22b48a202e82e0b6a723bcd3c69 ledger-2.5.tar.gz 829947
+SHA256 9def110964965c5dcbb1680ca3d5844ab9d0128d4176d0a90fbd0164fee8031c ledger-2.5.tar.gz 829947
diff --git a/app-office/ledger/ledger-2.5-r2.ebuild b/app-office/ledger/ledger-2.5-r2.ebuild
new file mode 100644
index 000000000000..66c87814b5bc
--- /dev/null
+++ b/app-office/ledger/ledger-2.5-r2.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-office/ledger/ledger-2.5-r2.ebuild,v 1.1 2007/10/14 23:31:52 opfer Exp $
+
+inherit eutils elisp-common
+
+DESCRIPTION="A 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"
+
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="NewArtisans"
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+IUSE="emacs debug gnuplot ofx xml"
+
+DEPEND="dev-libs/gmp
+ dev-libs/libpcre
+ ofx? ( >=dev-libs/libofx-0.7 )
+ xml? ( dev-libs/expat )
+ emacs? ( virtual/emacs )
+ gnuplot? ( sci-visualization/gnuplot )"
+
+SITEFILE=50${PN}-gentoo.el
+
+src_compile() {
+
+ econf \
+ $(use_enable xml) \
+ $(use_enable ofx) \
+ $(use_enable debug) \
+ $(use_with emacs lispdir "${D}${SITELISP}/${PN}") \
+ || die "Configure failed!"
+
+ emake || die "Make failed!"
+}
+
+src_install() {
+
+ dodoc sample.dat README NEWS ledger.pdf
+
+ ## One script uses vi, the outher the Finance perl module
+ ## Did not add more use flags though
+ insinto /usr/share/${P}
+ doins scripts/entry scripts/getquote scripts/bal scripts/bal-huquq
+
+ einstall || die "Installation failed!"
+
+ # Remove timeclock since it is part of Emacs
+ rm -f "${D}${SITELISP}/${PN}"/timeclock.*
+
+ if use emacs; then
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" \
+ || die "elisp-site-file-install failed"
+ fi
+
+ if use gnuplot; then
+ mv scripts/report ledger-report
+ dobin ledger-report
+ fi
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}