Commit | Line | Data |
---|---|---|
e55c1b67 | 1 | ;;; GNU Guix --- Functional package management for GNU |
c71c8b97 | 2 | ;;; Copyright © 2015, 2016 Ricardo Wurmus <rekado@elephly.net> |
8b94dffd | 3 | ;;; Copyright © 2015 Eric Bavier <bavier@member.fsf.org> |
57818b6e | 4 | ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il> |
e55c1b67 RW |
5 | ;;; |
6 | ;;; This file is part of GNU Guix. | |
7 | ;;; | |
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. | |
12 | ;;; | |
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. | |
17 | ;;; | |
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/>. | |
20 | ||
21 | (define-module (gnu packages gnucash) | |
c71c8b97 | 22 | #:use-module ((guix licenses) #:prefix license:) |
e55c1b67 RW |
23 | #:use-module (guix packages) |
24 | #:use-module (guix download) | |
25 | #:use-module (guix build-system gnu) | |
26 | #:use-module (gnu packages) | |
445aa137 | 27 | #:use-module (gnu packages autotools) |
e55c1b67 | 28 | #:use-module (gnu packages gnome) |
5c881f32 | 29 | #:use-module (gnu packages gnupg) |
e55c1b67 RW |
30 | #:use-module (gnu packages glib) |
31 | #:use-module (gnu packages gtk) | |
32 | #:use-module (gnu packages guile) | |
33 | #:use-module (gnu packages icu4c) | |
445aa137 | 34 | #:use-module (gnu packages multiprecision) |
8b94dffd | 35 | #:use-module (gnu packages perl) |
e55c1b67 | 36 | #:use-module (gnu packages pkg-config) |
5c881f32 | 37 | #:use-module (gnu packages tls) |
8b94dffd | 38 | #:use-module (gnu packages web) |
e55c1b67 RW |
39 | #:use-module (gnu packages webkit) |
40 | #:use-module (gnu packages xml)) | |
41 | ||
42 | (define-public gnucash | |
43 | (package | |
44 | (name "gnucash") | |
c554c6ba | 45 | (version "2.6.15") |
e55c1b67 RW |
46 | (source |
47 | (origin | |
48 | (method url-fetch) | |
de67e922 LF |
49 | (uri (string-append "mirror://sourceforge/gnucash/gnucash%20%28stable%29/" |
50 | version "/gnucash-" version ".tar.bz2")) | |
e55c1b67 RW |
51 | (sha256 |
52 | (base32 | |
c554c6ba | 53 | "1bnvnv1sxv85bgpfklykbhymjl4sbfqc1z9as5ym97s3cf1fn68n")) |
fc1adab1 | 54 | (patches (search-patches "gnucash-price-quotes-perl.patch")))) |
e55c1b67 | 55 | (build-system gnu-build-system) |
e55c1b67 RW |
56 | (inputs |
57 | `(("guile" ,guile-2.0) | |
58 | ("icu4c" ,icu4c) | |
59 | ("glib" ,glib) | |
60 | ("gtk" ,gtk+-2) | |
61 | ("goffice" ,goffice-0.8) | |
62 | ("libgnomecanvas" ,libgnomecanvas) | |
63 | ("libxml2" ,libxml2) | |
64 | ("libxslt" ,libxslt) | |
8b94dffd | 65 | ("webkitgtk" ,webkitgtk/gtk+-2) |
945939a5 | 66 | ("aqbanking" ,aqbanking) |
8b94dffd EB |
67 | ("perl-date-manip" ,perl-date-manip) |
68 | ("perl-finance-quote" ,perl-finance-quote))) | |
e55c1b67 RW |
69 | (native-inputs |
70 | `(("glib" ,glib "bin") ; glib-compile-schemas, etc. | |
71 | ("intltool" ,intltool) | |
72 | ("pkg-config" ,pkg-config))) | |
8b94dffd EB |
73 | (arguments |
74 | `(#:tests? #f ;FIXME: failing at /qof/gnc-date/qof print date dmy buff | |
945939a5 RW |
75 | #:configure-flags '("--disable-dbi" |
76 | "--enable-aqbanking") | |
8b94dffd EB |
77 | #:phases |
78 | (modify-phases %standard-phases | |
79 | (add-after | |
80 | 'install 'wrap-programs | |
81 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
82 | (for-each (lambda (prog) | |
83 | (wrap-program (string-append (assoc-ref outputs "out") | |
84 | "/bin/" prog) | |
85 | `("PERL5LIB" ":" prefix | |
86 | ,(map (lambda (o) | |
87 | (string-append o "/lib/perl5/site_perl/" | |
88 | ,(package-version perl))) | |
89 | (if (string=? prog "gnc-fq-helper") | |
90 | (list | |
91 | ,@(transitive-input-references | |
92 | 'inputs | |
93 | (map (lambda (l) | |
94 | (assoc l (inputs))) | |
95 | '("perl-finance-quote" | |
96 | "perl-date-manip")))) | |
97 | (list | |
98 | ,@(transitive-input-references | |
99 | 'inputs | |
100 | (map (lambda (l) | |
101 | (assoc l (inputs))) | |
102 | '("perl-finance-quote"))))))))) | |
103 | '("gnucash" | |
104 | "gnc-fq-check" | |
105 | "gnc-fq-helper" | |
106 | "gnc-fq-dump"))))))) | |
57818b6e | 107 | (home-page "http://www.gnucash.org/") |
e55c1b67 RW |
108 | (synopsis "Personal and small business financial accounting software") |
109 | (description | |
110 | "GnuCash is personal and professional financial-accounting software. | |
111 | It can be used to track bank accounts, stocks, income and expenses, based on | |
112 | the double-entry accounting practice. It includes support for QIF/OFX/HBCI | |
113 | import and transaction matching. It also automates several tasks, such as | |
114 | financial calculations or scheduled transactions.") | |
c71c8b97 | 115 | (license license:gpl3+))) |
5c881f32 RW |
116 | |
117 | (define-public gwenhywfar | |
118 | (package | |
119 | (name "gwenhywfar") | |
120 | (version "4.15.3") | |
121 | (source | |
122 | (origin | |
123 | (method url-fetch) | |
124 | (uri (string-append "http://www.aquamaniac.de/sites/download/download.php?" | |
834458f6 | 125 | "package=01&release=201&file=01")) |
5c881f32 RW |
126 | (file-name (string-append name "-" version ".tar.gz")) |
127 | (sha256 | |
128 | (base32 | |
129 | "0fp67s932x66xfljb26zbrn8ambbc5y5c3hllr6l284nr63qf3ka")))) | |
130 | (build-system gnu-build-system) | |
131 | (arguments | |
132 | `(#:configure-flags | |
133 | (list "--disable-network-checks" | |
134 | ;; Both GTK+2 and QT4 are supported. | |
135 | "--with-guis=gtk2" | |
136 | (string-append "--with-openssl-includes=" | |
137 | (assoc-ref %build-inputs "openssl") "/include") | |
138 | (string-append "--with-openssl-libs=" | |
139 | (assoc-ref %build-inputs "openssl") "/lib")))) | |
140 | (inputs | |
141 | `(("libgcrypt" ,libgcrypt) | |
142 | ("gnutls" ,gnutls) | |
143 | ("openssl" ,openssl) | |
144 | ("gtk+" ,gtk+-2))) | |
145 | (native-inputs | |
146 | `(("pkg-config" ,pkg-config))) | |
147 | (home-page "http://www.aquamaniac.de/sites/aqbanking/index.php") | |
148 | (synopsis "Utility library for networking and security applications") | |
149 | (description | |
150 | "This package provides a helper library for networking and security | |
151 | applications and libraries. It is used by AqBanking.") | |
152 | ;; The license includes an explicit additional permission to compile and | |
153 | ;; distribute this library with the OpenSSL Toolkit. | |
154 | (license license:lgpl2.1+))) | |
155 | ||
445aa137 RW |
156 | (define-public aqbanking |
157 | (package | |
158 | (name "aqbanking") | |
cac19f0d | 159 | (version "5.6.12") |
445aa137 RW |
160 | (source |
161 | (origin | |
162 | (method url-fetch) | |
163 | (uri (string-append "http://www.aquamaniac.de/sites/download/download.php?" | |
cac19f0d | 164 | "package=03&release=208&file=01")) |
445aa137 RW |
165 | (file-name (string-append name "-" version ".tar.gz")) |
166 | (sha256 | |
167 | (base32 | |
7d354629 | 168 | "08jbwmiv6f3v8iqdr44x4szna496fqcjfi6mlx04cnbx91m70lh6")))) |
445aa137 RW |
169 | (build-system gnu-build-system) |
170 | (arguments | |
171 | `(;; Parallel building fails because aqhbci is required before it's | |
172 | ;; built. | |
173 | #:parallel-build? #f | |
174 | #:configure-flags | |
175 | (list (string-append "--with-gwen-dir=" | |
176 | (assoc-ref %build-inputs "gwenhywfar"))))) | |
177 | (propagated-inputs | |
178 | `(("gwenhywfar" ,gwenhywfar))) | |
179 | (inputs | |
180 | `(("gmp" ,gmp) | |
181 | ("xmlsec" ,xmlsec) | |
182 | ("gnutls" ,gnutls))) | |
183 | (native-inputs | |
184 | `(("pkg-config" ,pkg-config) | |
185 | ("libltdl" ,libltdl))) | |
186 | (home-page "http://www.aquamaniac.de/sites/aqbanking/index.php") | |
187 | (synopsis "Interface for online banking tasks") | |
188 | (description | |
189 | "AqBanking is a modular and generic interface to online banking tasks, | |
190 | financial file formats (import/export) and bank/country/currency information. | |
191 | AqBanking uses backend plugins to actually perform the online tasks. HBCI, | |
192 | OFX DirectConnect, YellowNet, GeldKarte, and DTAUS discs are currently | |
193 | supported. AqBanking is used by GnuCash, KMyMoney, and QBankManager.") | |
194 | ;; AqBanking is licensed under the GPLv2 or GPLv3 | |
195 | (license (list license:gpl2 license:gpl3)))) |