1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net>
3 ;;; Copyright © 2015 Eric Bavier <bavier@member.fsf.org>
4 ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
6 ;;; This file is part of GNU Guix.
8 ;;; GNU Guix is free software; you can redistribute it and/or modify it
9 ;;; under the terms of the GNU General Public License as published by
10 ;;; the Free Software Foundation; either version 3 of the License, or (at
11 ;;; your option) any later version.
13 ;;; GNU Guix is distributed in the hope that it will be useful, but
14 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
15 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 ;;; GNU General Public License for more details.
18 ;;; You should have received a copy of the GNU General Public License
19 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
21 (define-module (gnu packages gnucash)
22 #:use-module (guix licenses)
23 #:use-module (guix packages)
24 #:use-module (guix download)
25 #:use-module (guix build-system gnu)
26 #:use-module (gnu packages)
27 #:use-module (gnu packages gnome)
28 #:use-module (gnu packages glib)
29 #:use-module (gnu packages gtk)
30 #:use-module (gnu packages guile)
31 #:use-module (gnu packages icu4c)
32 #:use-module (gnu packages perl)
33 #:use-module (gnu packages pkg-config)
34 #:use-module (gnu packages web)
35 #:use-module (gnu packages webkit)
36 #:use-module (gnu packages xml))
38 (define-public gnucash
45 (uri (string-append "mirror://sourceforge/gnucash/gnucash-"
49 "0x84f07p30pwhriamv8ifljgw755cj87rc12jy1xddf47spyj7rp"))
50 (patches (search-patches "gnucash-price-quotes-perl.patch"))))
51 (build-system gnu-build-system)
53 `(("guile" ,guile-2.0)
57 ("goffice" ,goffice-0.8)
58 ("libgnomecanvas" ,libgnomecanvas)
61 ("webkitgtk" ,webkitgtk/gtk+-2)
62 ("perl-date-manip" ,perl-date-manip)
63 ("perl-finance-quote" ,perl-finance-quote)))
65 `(("glib" ,glib "bin") ; glib-compile-schemas, etc.
66 ("intltool" ,intltool)
67 ("pkg-config" ,pkg-config)))
69 `(#:tests? #f ;FIXME: failing at /qof/gnc-date/qof print date dmy buff
70 #:configure-flags '("--disable-dbi")
72 (modify-phases %standard-phases
74 'install 'wrap-programs
75 (lambda* (#:key inputs outputs #:allow-other-keys)
76 (for-each (lambda (prog)
77 (wrap-program (string-append (assoc-ref outputs "out")
79 `("PERL5LIB" ":" prefix
81 (string-append o "/lib/perl5/site_perl/"
82 ,(package-version perl)))
83 (if (string=? prog "gnc-fq-helper")
85 ,@(transitive-input-references
89 '("perl-finance-quote"
92 ,@(transitive-input-references
96 '("perl-finance-quote")))))))))
101 (home-page "http://www.gnucash.org/")
102 (synopsis "Personal and small business financial accounting software")
104 "GnuCash is personal and professional financial-accounting software.
105 It can be used to track bank accounts, stocks, income and expenses, based on
106 the double-entry accounting practice. It includes support for QIF/OFX/HBCI
107 import and transaction matching. It also automates several tasks, such as
108 financial calculations or scheduled transactions.")