/[gentoo-x86]/app-office/ledger/ledger-2.6.3-r1.ebuild
Gentoo

Contents of /app-office/ledger/ledger-2.6.3-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Wed Jun 6 17:35:03 2012 UTC (2 years, 1 month ago) by darkside
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +3 -3 lines
Fix out of Prefix errors, bug 419654

(Portage version: 2.1.10.62/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-office/ledger/ledger-2.6.3-r1.ebuild,v 1.5 2011/11/02 14:54:08 phajdan.jr Exp $
4
5 EAPI=4
6
7 inherit eutils elisp-common autotools
8
9 DESCRIPTION="A double-entry accounting system with a command-line reporting interface"
10 HOMEPAGE="http://ledger-cli.org/"
11 SRC_URI="mirror://github/jwiegley/${PN}/${P}.tar.gz"
12
13 LICENSE="BSD"
14 KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~x64-macos"
15 SLOT="0"
16 IUSE="emacs debug gnuplot ofx static-libs xml vim-syntax"
17
18 DEPEND="dev-libs/gmp
19 dev-libs/libpcre
20 ofx? ( >=dev-libs/libofx-0.9 )
21 xml? ( dev-libs/expat )
22 emacs? ( virtual/emacs )
23 gnuplot? ( sci-visualization/gnuplot )"
24 RDEPEND="${DEPEND}
25 vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )"
26
27 DOCS=(sample.dat README NEWS)
28
29 SITEFILE=50${PN}-gentoo.el
30
31 src_prepare() {
32 sed -i -e "/ledger_LDFLAGS/d" Makefile.am
33 eautoreconf
34 }
35
36 src_configure() {
37 # Autodetection of dependencies may fail in the case of:
38 # USE=emacs disabled, app-editors/emacs not installed, app-editors/xemacs installed
39 use emacs || export EMACS=no
40 econf \
41 $(use_enable debug) \
42 $(use_with emacs lispdir "${EPREFIX}/${SITELISP}/${PN}") \
43 $(use_enable ofx) \
44 $(use_enable static-libs static) \
45 $(use_enable xml)
46 }
47
48 src_install() {
49 default
50
51 # One script uses vi, the outher the Finance perl module
52 # Did not add more use flags though
53 exeinto /usr/share/${PN}/scripts
54 doexe scripts/{entry,getquote,bal,bal-huquq}
55
56 # Remove timeclock since it is part of Emacs
57 rm -f "${ED}${SITELISP}/${PN}"/timeclock.*
58
59 use emacs && elisp-site-file-install "${FILESDIR}/${SITEFILE}"
60
61 if use gnuplot; then
62 mv scripts/report ledger-report
63 dobin ledger-report
64 fi
65
66 if use vim-syntax; then
67 insinto /usr/share/vim/vimfiles/syntax
68 doins ledger.vim
69 fi
70
71 use static-libs || find "${ED}" -name '*.la' -exec rm -f '{}' +
72 }
73
74 pkg_postinst() {
75 use emacs && elisp-site-regen
76 }
77
78 pkg_postrm() {
79 use emacs && elisp-site-regen
80 }

  ViewVC Help
Powered by ViewVC 1.1.20