Gentoo Archives: gentoo-commits

From: "Aaron W. Swenson" <titanofold@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-office/gnucash/, app-office/gnucash/files/
Date: Thu, 21 May 2020 11:14:47
Message-Id: 1590059606.96db598922de37bc2871757aadf4e5f2179dfca4.titanofold@gentoo
1 commit: 96db598922de37bc2871757aadf4e5f2179dfca4
2 Author: Aaron W. Swenson <titanofold <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 21 11:13:21 2020 +0000
4 Commit: Aaron W. Swenson <titanofold <AT> gentoo <DOT> org>
5 CommitDate: Thu May 21 11:13:26 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=96db5989
7
8 app-office/gnucash: Cleanup
9
10 Package-Manager: Portage-2.3.99, Repoman-2.3.22
11 Signed-off-by: Aaron W. Swenson <titanofold <AT> gentoo.org>
12
13 app-office/gnucash/Manifest | 7 -
14 .../files/gnucash-3.4-test-stress-options.scm | 315 ---------------------
15 .../files/gnucash-3.4-test-transaction.patch | 25 --
16 .../gnucash-3.7-include-checksymbolexists.patch | 12 -
17 app-office/gnucash/gnucash-3.2-r2.ebuild | 169 -----------
18 app-office/gnucash/gnucash-3.3-r1.ebuild | 169 -----------
19 app-office/gnucash/gnucash-3.3.ebuild | 171 -----------
20 app-office/gnucash/gnucash-3.4.ebuild | 180 ------------
21 app-office/gnucash/gnucash-3.5.ebuild | 176 ------------
22 app-office/gnucash/gnucash-3.6.ebuild | 192 -------------
23 app-office/gnucash/gnucash-3.7.ebuild | 213 --------------
24 app-office/gnucash/metadata.xml | 3 -
25 12 files changed, 1632 deletions(-)
26
27 diff --git a/app-office/gnucash/Manifest b/app-office/gnucash/Manifest
28 index d3dca297cfe..3db1c4417bb 100644
29 --- a/app-office/gnucash/Manifest
30 +++ b/app-office/gnucash/Manifest
31 @@ -1,8 +1 @@
32 -DIST gnucash-3.2.tar.bz2 13383942 BLAKE2B ce4beb9eab290bbc85c4b3bf68b205a8ebb274056bf10ef1721bce48ec18e4df4b488ce885dc767b4f1e951dabcdc2ba702cb5fe239f249ec50c8d2d1d12a434 SHA512 ef74cbf396096a71316e14500a5b4e57670f9e9c0c5d46f3afe051ccbae2e46a5f14edd8dd805dfb61276b934db286d48ae044160699df82689e2718ed2f7573
33 -DIST gnucash-3.3.tar.bz2 13440713 BLAKE2B a308af90d8a8e50eb732d29c7eadac1fb75b63006da5bbaa9044039c43c1c17976c6b6fdb1706a08a527b75b1300df3a8ed469151370097b0308a173a170e41b SHA512 4bf0369ca9b3c91c98a0d916f0befc7e5675a246559a6a72dba6592b64f56f3cbd1885b0711e44e8d9cca290be742812763691ae2f639ea31ec534e52e17b3f9
34 -DIST gnucash-3.4.tar.bz2 13564432 BLAKE2B 478d8e2e4acbd0725ceaf997a1e62ba3875e9d4a003e8a3e69111a9d29118447fb2da8ef3e5dd5274d83a3adef1ee9f4a153cdfd17cabe69864b53bab8c7e813 SHA512 4cebef0ba70e59a82d3b2b7b0b138ddb22e8866dc761e156ff1f15920145d12923719effef21ad4c65ccd62fbd14a1529cf0bfcaab70c5b33d103761d08062e0
35 -DIST gnucash-3.5.tar.bz2 13766397 BLAKE2B b840fa6af719e1d21daabd8e26f7026a12ca9cefe8c0f644a8382b42c34a6dec2dfc67350645437c2f12792518f289f446824a8c99ea83453e69d976c3cd5c9c SHA512 76230d2fe1ba4cc605d0d58976ed3214b10a2549fc7eaa1e327bbf85c861baa082523c70ed088a59bb56deb6af9a7808752fc719eda0df3e9209cec05c9c8d13
36 -DIST gnucash-3.6.tar.bz2 13811045 BLAKE2B aa722755e168b6096a8ad0bb05d3c67be9525d5e9e6fcf076c0b6bdc3188815017c2b1bcb308a6f8a7581315f7d9ab67f85b24486214ebbe7ea5a0428e552ea7 SHA512 3d99235a6171e7189dbb15fed11e7f3acb4f49ef8dc6124b26807e74ce4326ac5ae6e23e693a34947604ecb0253ecbcd80f669803a629eb7d236fd3444dbfe82
37 -DIST gnucash-3.7.tar.bz2 13896595 BLAKE2B d0f0cc9d407677c8b09eab5c1613a0eec80bc54984aebd10915f2f2247ea30c26104cea57c87dd6e46ade9225c9df20c583da21de15f79d50509e63186b682fe SHA512 41275b8d6abba54e95c00d746a2d50305fb7a0490b5486af1472a5d50d2de5973d1ec4de98dd10991325062e61498de020496b59d8548b5a4de9db9d23dee159
38 DIST gnucash-3.8b.tar.bz2 14285584 BLAKE2B 304d73b04883b61b8a4e174f458206769483ca0f6d28d284c760397e0bc4061dbdb379ff3cca35e80d6736516549a8733bf36895a11c2202fb9f8f25e591e1d9 SHA512 e0529934e9ccafbef2b724f5fca9a0e300c78cf21596f0dcd4b5c11ff300c06a963b68eff1efe00834dc488ced604b86011075bb22480488ddf31d2d4c94ddca
39 -DIST gtest-1.8.0.tar.gz 1281617 BLAKE2B ac052b4d0eb0d8ded03a8c7dff05177818627b8a51f2dbc2c162b2ee2a5d1323539e7d0d02236d9ebb799995e018f0171c2fdaeb4de3bb339548265e50de79e6 SHA512 1dbece324473e53a83a60601b02c92c089f5d314761351974e097b2cf4d24af4296f9eb8653b6b03b1e363d9c5f793897acae1f0c7ac40149216035c4d395d9d
40
41 diff --git a/app-office/gnucash/files/gnucash-3.4-test-stress-options.scm b/app-office/gnucash/files/gnucash-3.4-test-stress-options.scm
42 deleted file mode 100644
43 index e85cd61a8ef..00000000000
44 --- a/app-office/gnucash/files/gnucash-3.4-test-stress-options.scm
45 +++ /dev/null
46 @@ -1,315 +0,0 @@
47 -(use-modules (ice-9 textual-ports))
48 -(use-modules (ice-9 popen))
49 -(use-modules (gnucash utilities))
50 -(use-modules (gnucash gnc-module))
51 -(gnc:module-begin-syntax (gnc:module-load "gnucash/app-utils" 0))
52 -(use-modules (gnucash engine test test-extras))
53 -(use-modules (gnucash report standard-reports))
54 -(use-modules (gnucash report business-reports))
55 -(use-modules (gnucash report view-column))
56 -(use-modules (gnucash report stylesheets))
57 -(use-modules (gnucash report taxinvoice))
58 -(use-modules (gnucash report report-system))
59 -(use-modules (gnucash report report-system test test-extras))
60 -(use-modules (srfi srfi-64))
61 -(use-modules (srfi srfi-98))
62 -(use-modules (gnucash engine test srfi64-extras))
63 -(use-modules (sxml simple))
64 -(use-modules (sxml xpath))
65 -
66 -;; NOTE
67 -;; ----
68 -;; SIMPLE stress tests by default
69 -;;
70 -;; PAIRWISE COMBINATORICS are enabled by setting environment variable COMBINATORICS
71 -;; to the fullpath for the compiled jenny from http://burtleburtle.net/bob/math/jenny.html
72 -;;
73 -;; e.g. COMBINATORICS=/home/user/jenny/jenny ninja check
74 -
75 -(define optionslist '())
76 -
77 -(define (generate-optionslist)
78 - (gnc:report-templates-for-each
79 - (lambda (report-id template)
80 - (let* ((options-generator (gnc:report-template-options-generator template))
81 - (name (gnc:report-template-name template))
82 - (options (options-generator)))
83 - (set! optionslist
84 - (cons (list (cons 'report-id report-id)
85 - (cons 'report-name (gnc:report-template-name template))
86 - (cons 'options (let ((report-options-tested '()))
87 - (gnc:options-for-each
88 - (lambda (option)
89 - (when (memq (gnc:option-type option)
90 - '(multichoice boolean))
91 - (set! report-options-tested
92 - (cons (vector
93 - (gnc:option-section option)
94 - (gnc:option-name option)
95 - (gnc:option-type option)
96 - (case (gnc:option-type option)
97 - ((multichoice) (map (lambda (d) (vector-ref d 0))
98 - (gnc:option-data option)))
99 - ((boolean) (list #t #f))))
100 - report-options-tested))))
101 - options)
102 - report-options-tested)))
103 - optionslist))))))
104 -
105 -;; Explicitly set locale to make the report output predictable
106 -(setlocale LC_ALL "C")
107 -
108 -(define (run-test)
109 - (test-runner-factory gnc:test-runner)
110 - (test-begin "stress options")
111 - (generate-optionslist)
112 - (tests)
113 - (test-end "stress options"))
114 -
115 -(define jennypath
116 - (get-environment-variable "COMBINATORICS"))
117 -
118 -(define jenny-exists?
119 - ;; this is a simple test for presence of jenny - will check
120 - ;; COMBINATORICS env exists, and running it produces exit-code of
121 - ;; zero, and tests the first few letters of its output.
122 - (and (string? jennypath)
123 - (zero? (system jennypath))
124 - (string=? (string-take (get-string-all (open-input-pipe jennypath)) 6)
125 - "jenny:")))
126 -
127 -(define (set-option! options section name value)
128 - (let ((option (gnc:lookup-option options section name)))
129 - (if option
130 - (gnc:option-set-value option value))))
131 -
132 -(define (mnemonic->commodity sym)
133 - (gnc-commodity-table-lookup
134 - (gnc-commodity-table-get-table (gnc-get-current-book))
135 - (gnc-commodity-get-namespace (gnc-default-report-currency))
136 - sym))
137 -
138 -(define structure
139 - (list "Root" (list (cons 'type ACCT-TYPE-ASSET))
140 - (list "Asset"
141 - (list "Bank")
142 - (list "GBP Bank" (list (cons 'commodity (mnemonic->commodity "GBP"))))
143 - (list "Wallet"))
144 - (list "Income" (list (cons 'type ACCT-TYPE-INCOME)))
145 - (list "Income-GBP" (list (cons 'type ACCT-TYPE-INCOME)
146 - (cons 'commodity (mnemonic->commodity "GBP"))))
147 - (list "Expenses" (list (cons 'type ACCT-TYPE-EXPENSE)))
148 - (list "Liabilities" (list (cons 'type ACCT-TYPE-LIABILITY)))
149 - (list "Equity" (list (cons 'type ACCT-TYPE-EQUITY)))
150 - ))
151 -
152 -(define (simple-stress-test report-name uuid report-options)
153 - (let ((options (gnc:make-report-options uuid)))
154 - (test-assert (format #f "basic test ~a" report-name)
155 - (gnc:options->render uuid options (string-append "stress-" report-name) "test"))
156 - (format #t "Testing SIMPLE combinations for:\n~a" report-name)
157 - (for-each
158 - (lambda (option)
159 - (format #t ",~a/~a"
160 - (vector-ref option 0)
161 - (vector-ref option 1)))
162 - report-options)
163 - (newline)
164 - (for-each
165 - (lambda (idx)
166 - (display report-name)
167 - (for-each
168 - (lambda (option)
169 - (let* ((section (vector-ref option 0))
170 - (name (vector-ref option 1))
171 - (value (list-ref (vector-ref option 3)
172 - (modulo idx (length (vector-ref option 3))))))
173 - (set-option! options section name value)
174 - (format #t ",~a"
175 - (cond
176 - ((boolean? value) (if value 't 'f))
177 - (else value)))))
178 - report-options)
179 - (catch #t
180 - (lambda ()
181 - (gnc:options->render uuid options "stress-test" "test")
182 - (display "[pass]\n"))
183 - (lambda (k . args)
184 - (format #t "[fail]... error: (~s . ~s) options-list are:\n~a"
185 - k args
186 - (gnc:html-render-options-changed options #t))
187 - (test-assert "logging test failure as above..."
188 - #f))))
189 - (iota
190 - (apply max
191 - (map (lambda (opt) (length (vector-ref opt 3)))
192 - report-options)))
193 - )))
194 -
195 -(define (combinatorial-stress-test report-name uuid report-options)
196 - (let* ((options (gnc:make-report-options uuid))
197 - (render #f))
198 - (test-assert (format #f "basic test ~a" report-name)
199 - (set! render
200 - (gnc:options->render
201 - uuid options (string-append "stress-" report-name) "test")))
202 - (if render
203 - (begin
204 - (format #t "Testing n-tuple combinatorics for:\n~a" report-name)
205 - (for-each
206 - (lambda (option)
207 - (format #t ",~a/~a"
208 - (vector-ref option 0)
209 - (vector-ref option 1)))
210 - report-options)
211 - (newline)
212 - ;; generate combinatorics
213 - (let* ((option-lengths (map (lambda (report-option)
214 - (length (vector-ref report-option 3)))
215 - report-options))
216 - (jennyargs (string-join (map number->string option-lengths) " "))
217 - (n-tuple (min
218 - ;; the following is the n-tuple
219 - 2
220 - (length report-options)))
221 - (cmdline (format #f "~a -n~a ~a"
222 - jennypath n-tuple jennyargs))
223 - (jennyout (get-string-all (open-input-pipe cmdline)))
224 - (test-cases (string-split jennyout #\newline)))
225 - (for-each
226 - (lambda (case)
227 - (unless (string-null? case)
228 - (let* ((choices-str (string-filter char-alphabetic? case))
229 - (choices-alpha (map char->integer (string->list choices-str)))
230 - (choices (map (lambda (n)
231 - (- n (if (> n 96) 97 39))) ; a-z -> 0-25, and A-Z -> 26-51
232 - choices-alpha)))
233 - (let loop ((option-idx (1- (length report-options)))
234 - (option-summary '()))
235 - (if (negative? option-idx)
236 - (catch #t
237 - (lambda ()
238 - (gnc:options->render uuid options "stress-test" "test")
239 - (format #t "[pass] ~a:~a \n"
240 - report-name
241 - (string-join option-summary ",")))
242 - (lambda (k . args)
243 - (format #t "[fail]... error (~s . ~s) options-list are:\n~a"
244 - k args
245 - (gnc:html-render-options-changed options #t))
246 - (test-assert "logging test failure as above..."
247 - #f)))
248 - (let* ((option (list-ref report-options option-idx))
249 - (section (vector-ref option 0))
250 - (name (vector-ref option 1))
251 - (value (list-ref (vector-ref option 3)
252 - (list-ref choices option-idx))))
253 - (set-option! options section name value)
254 - (loop (1- option-idx)
255 - (cons (format #f "~a"
256 - (cond
257 - ((boolean? value) (if value 't 'f))
258 - (else value)))
259 - option-summary))))))))
260 - test-cases)))
261 - (display "...aborted due to basic test failure"))))
262 -
263 -(define test
264 - ;; what strategy are we using here? simple stress test (ie tests as
265 - ;; many times as the maximum number of options) or combinatorial
266 - ;; tests (using jenny)
267 - (if jenny-exists?
268 - combinatorial-stress-test
269 - simple-stress-test))
270 -
271 -(define (create-test-data)
272 - (let* ((env (create-test-env))
273 - (account-alist (env-create-account-structure-alist env structure))
274 - (bank (cdr (assoc "Bank" account-alist)))
275 - (gbp-bank (cdr (assoc "GBP Bank" account-alist)))
276 - (wallet (cdr (assoc "Wallet" account-alist)))
277 - (income (cdr (assoc "Income" account-alist)))
278 - (gbp-income (cdr (assoc "Income-GBP" account-alist)))
279 - (expense (cdr (assoc "Expenses" account-alist)))
280 - (liability (cdr (assoc "Liabilities" account-alist)))
281 - (equity (cdr (assoc "Equity" account-alist))))
282 - ;; populate datafile with old transactions
283 - (env-transfer env 01 01 1970 bank expense 5 #:description "desc-1" #:num "trn1" #:memo "memo-3")
284 - (env-transfer env 31 12 1969 income bank 10 #:description "desc-2" #:num "trn2" #:void-reason "void" #:notes "notes3")
285 - (env-transfer env 31 12 1969 income bank 29 #:description "desc-3" #:num "trn3"
286 - #:reconcile (cons #\c (gnc-dmy2time64 01 03 1970)))
287 - (env-transfer env 01 02 1970 bank expense 15 #:description "desc-4" #:num "trn4" #:notes "notes2" #:memo "memo-1")
288 - (env-transfer env 10 01 1970 liability expense 10 #:description "desc-5" #:num "trn5" #:void-reason "any")
289 - (env-transfer env 10 01 1970 liability expense 11 #:description "desc-6" #:num "trn6" #:notes "notes1")
290 - (env-transfer env 10 02 1970 bank liability 8 #:description "desc-7" #:num "trn7" #:notes "notes1" #:memo "memo-2"
291 - #:reconcile (cons #\y (gnc-dmy2time64 01 03 1970)))
292 - (let ((txn (xaccMallocTransaction (gnc-get-current-book)))
293 - (split-1 (xaccMallocSplit (gnc-get-current-book)))
294 - (split-2 (xaccMallocSplit (gnc-get-current-book)))
295 - (split-3 (xaccMallocSplit (gnc-get-current-book))))
296 - (xaccTransBeginEdit txn)
297 - (xaccTransSetDescription txn "$100bank -> $80expenses + $20wallet")
298 - (xaccTransSetCurrency txn (xaccAccountGetCommodity bank))
299 - (xaccTransSetDate txn 14 02 1971)
300 - (xaccSplitSetParent split-1 txn)
301 - (xaccSplitSetParent split-2 txn)
302 - (xaccSplitSetParent split-3 txn)
303 - (xaccSplitSetAccount split-1 bank)
304 - (xaccSplitSetAccount split-2 expense)
305 - (xaccSplitSetAccount split-3 wallet)
306 - (xaccSplitSetValue split-1 -100)
307 - (xaccSplitSetValue split-2 80)
308 - (xaccSplitSetValue split-3 20)
309 - (xaccSplitSetAmount split-1 -100)
310 - (xaccSplitSetAmount split-2 80)
311 - (xaccSplitSetAmount split-3 20)
312 - (xaccTransSetNotes txn "multisplit")
313 - (xaccTransCommitEdit txn))
314 - (let ((closing-txn (env-transfer env 31 12 1977 expense equity 111 #:description "Closing")))
315 - (xaccTransSetIsClosingTxn closing-txn #t))
316 - (env-transfer-foreign env 15 01 2000 gbp-bank bank 10 14 #:description "GBP 10 to USD 14")
317 - (env-transfer-foreign env 15 02 2000 bank gbp-bank 9 6 #:description "USD 9 to GBP 6")
318 - (for-each (lambda (m)
319 - (env-transfer env 08 (1+ m) 1978 gbp-income gbp-bank 51 #:description "#51 income")
320 - (env-transfer env 03 (1+ m) 1978 income bank 103 #:description "$103 income")
321 - (env-transfer env 15 (1+ m) 1978 bank expense 22 #:description "$22 expense")
322 - (env-transfer env 09 (1+ m) 1978 income bank 109 #:description "$109 income"))
323 - (iota 12))
324 - (let ((mid (floor (/ (+ (gnc-accounting-period-fiscal-start)
325 - (gnc-accounting-period-fiscal-end)) 2))))
326 - (env-create-transaction env mid bank income 200))))
327 -
328 -(define (run-tests prefix)
329 - (for-each
330 - (lambda (option-set)
331 - (let ((report-name (assq-ref option-set 'report-name))
332 - (report-guid (assq-ref option-set 'report-id))
333 - (report-options (assq-ref option-set 'options)))
334 - (if (member report-name
335 - ;; these reports seem to cause problems when running...
336 - '(
337 - ;; eguile-based reports
338 - "Tax Invoice"
339 - "Receipt"
340 - "Australian Tax Invoice"
341 - "Balance Sheet (eguile)"
342 -
343 - ;; tax-schedule - locale-dependent?
344 - "Tax Schedule Report/TXF Export"
345 -
346 - ;; unusual reports
347 - "Welcome to GnuCash"
348 - "Hello, World"
349 - "Multicolumn View"
350 - "General Journal"
351 - ))
352 - (format #t "\nSkipping ~a ~a...\n" report-name prefix)
353 - (begin
354 - (format #t "\nTesting ~a ~a...\n" report-name prefix)
355 - (test report-name report-guid report-options)))))
356 - optionslist))
357 -
358 -(define (tests)
359 - (run-tests "with empty book")
360 - (create-test-data)
361 - (run-tests "on a populated book"))
362
363 diff --git a/app-office/gnucash/files/gnucash-3.4-test-transaction.patch b/app-office/gnucash/files/gnucash-3.4-test-transaction.patch
364 deleted file mode 100644
365 index bf7180e664f..00000000000
366 --- a/app-office/gnucash/files/gnucash-3.4-test-transaction.patch
367 +++ /dev/null
368 @@ -1,25 +0,0 @@
369 -From 95bee405cf5568f5899287ba62058cf894361676 Mon Sep 17 00:00:00 2001
370 -From: Christopher Lam <christopher.lck@×××××.com>
371 -Date: Wed, 2 Jan 2019 00:00:56 +0800
372 -Subject: [PATCH] [test-transaction] fix a test which was hardcoded to 2018.
373 -
374 -This test was hard-coded to pass in 2018. Fix.
375 ----
376 - gnucash/report/standard-reports/test/test-transaction.scm | 4 ++--
377 - 1 file changed, 2 insertions(+), 2 deletions(-)
378 -
379 -diff --git a/gnucash/report/standard-reports/test/test-transaction.scm b/gnucash/report/standard-reports/test/test-transaction.scm
380 -index 755aba2983..2f428e24e9 100644
381 ---- a/gnucash/report/standard-reports/test/test-transaction.scm
382 -+++ b/gnucash/report/standard-reports/test/test-transaction.scm
383 -@@ -652,8 +652,8 @@
384 - (list "Grand Total" "$2,280.00" "$2,280.00")
385 - (get-row-col sxml -1 #f))
386 - (test-equal "dual amount column, first transaction correct"
387 -- (list "01/03/18" "$103 income" "Root.Asset.Bank" "$103.00" "$103.00")
388 -- (get-row-col sxml 1 #f)))
389 -+ (list "$103 income" "Root.Asset.Bank" "$103.00" "$103.00")
390 -+ (cdr (get-row-col sxml 1 #f))))
391 - )
392 -
393 - (test-end "display options")
394
395 diff --git a/app-office/gnucash/files/gnucash-3.7-include-checksymbolexists.patch b/app-office/gnucash/files/gnucash-3.7-include-checksymbolexists.patch
396 deleted file mode 100644
397 index c0e1778164c..00000000000
398 --- a/app-office/gnucash/files/gnucash-3.7-include-checksymbolexists.patch
399 +++ /dev/null
400 @@ -1,12 +0,0 @@
401 -Bug: https://bugs.gentoo.org/690270
402 -
403 ---- a/gnucash/register/register-gnome/CMakeLists.txt
404 -+++ b/gnucash/register/register-gnome/CMakeLists.txt
405 -@@ -1,5 +1,7 @@
406 - add_subdirectory(test)
407 -
408 -+include(CheckSymbolExists)
409 -+
410 - #GTK before 3.14 didn't have GDK_MODIFIER_INTENT_DEFAULT_MOD_MASK
411 - check_symbol_exists(GDK_MODIFIER_INTENT_DEFAULT_MOD_MASK gdk/gdktypes.h have_mod_mask)
412 - if (NOT have_mod_mask)
413
414 diff --git a/app-office/gnucash/gnucash-3.2-r2.ebuild b/app-office/gnucash/gnucash-3.2-r2.ebuild
415 deleted file mode 100644
416 index 1b1f57bc708..00000000000
417 --- a/app-office/gnucash/gnucash-3.2-r2.ebuild
418 +++ /dev/null
419 @@ -1,169 +0,0 @@
420 -# Copyright 1999-2020 Gentoo Authors
421 -# Distributed under the terms of the GNU General Public License v2
422 -
423 -EAPI=6
424 -
425 -# google{test,mock} version
426 -GV="1.8.0"
427 -PYTHON_COMPAT=( python3_6 )
428 -
429 -inherit cmake-utils gnome2-utils python-single-r1 xdg-utils
430 -
431 -DESCRIPTION="A personal finance manager"
432 -HOMEPAGE="http://www.gnucash.org/"
433 -SRC_URI="https://github.com/Gnucash/${PN}/releases/download/${PV}/${P}.tar.bz2
434 - https://github.com/google/googletest/archive/release-${GV}.tar.gz -> gtest-${GV}.tar.gz"
435 -
436 -SLOT="0"
437 -LICENSE="GPL-2"
438 -KEYWORDS="amd64 ~ppc ~ppc64 x86"
439 -
440 -IUSE="aqbanking chipcard debug doc examples gnome-keyring mysql nls ofx postgres
441 - python quotes -register2 sqlite +gui"
442 -REQUIRED_USE="
443 - chipcard? ( aqbanking )
444 - python? ( ${PYTHON_REQUIRED_USE} )"
445 -
446 -# libdbi version requirement for sqlite taken from bug #455134
447 -#
448 -# dev-libs/boost must always be built with nls enabled.
449 -RDEPEND="
450 - >=dev-libs/glib-2.40.0:2
451 - >=dev-libs/libxml2-2.7.0:2
452 - >=sys-libs/zlib-1.1.4
453 - >=dev-scheme/guile-2.0.0:12=[regex]
454 - dev-libs/boost:=[icu,nls]
455 - dev-libs/icu:=
456 - dev-libs/libxslt
457 - aqbanking? (
458 - >=net-libs/aqbanking-5[gtk,ofx?]
459 - sys-libs/gwenhywfar[gtk]
460 - chipcard? ( sys-libs/libchipcard )
461 - )
462 - gnome-keyring? ( >=app-crypt/libsecret-0.18 )
463 - gui? (
464 - gnome-base/dconf
465 - net-libs/webkit-gtk:4=
466 - >=x11-libs/gtk+-3.14.0:3
467 - )
468 - mysql? (
469 - dev-db/libdbi
470 - dev-db/libdbi-drivers[mysql]
471 - )
472 - ofx? ( >=dev-libs/libofx-0.9.1 )
473 - postgres? (
474 - dev-db/libdbi
475 - dev-db/libdbi-drivers[postgres]
476 - )
477 - python? ( ${PYTHON_DEPS} )
478 - quotes? (
479 - >=dev-perl/Finance-Quote-1.11
480 - dev-perl/Date-Manip
481 - dev-perl/HTML-TableExtract
482 - )
483 - sqlite? (
484 - >=dev-db/libdbi-0.9.0
485 - >=dev-db/libdbi-drivers-0.9.0[sqlite]
486 - )
487 -"
488 -
489 -DEPEND="${RDEPEND}
490 - ~dev-cpp/gtest-${GV}
491 - >=sys-devel/gettext-0.19.6
492 - dev-lang/perl
493 - dev-perl/XML-Parser
494 - sys-devel/libtool
495 - virtual/pkgconfig
496 -"
497 -
498 -PDEPEND="doc? (
499 - ~app-doc/gnucash-docs-${PV}
500 - gnome-extra/yelp
501 -)"
502 -
503 -PATCHES=( "${FILESDIR}"/${PN}-3.2-no-gui.patch )
504 -
505 -pkg_setup() {
506 - use python && python-single-r1_pkg_setup
507 - xdg_environment_reset
508 -}
509 -
510 -src_configure() {
511 - local sql_on_off="OFF"
512 - if use mysql || use postgres || use sqlite ; then
513 - sql_on_off="ON"
514 - fi
515 -
516 - local mycmakeargs=(
517 - -DGMOCK_ROOT="${WORKDIR}"/googletest-release-${GV}/googlemock
518 - -DGTEST_ROOT="${WORKDIR}"/googletest-release-${GV}/googletest
519 -
520 - -DDISABLE_NLS=$(usex !nls)
521 - -DENABLE_REGISTER2=$(usex register2)
522 - -DWITH_AQBANKING=$(usex aqbanking)
523 - -DWITH_OFX=$(usex ofx)
524 - -DWITH_PYTHON=$(usex python)
525 - -DWITH_SQL=${sql_on_off}
526 - -DWITH_GNUCASH=$(usex gui)
527 - )
528 -
529 - cmake-utils_src_configure
530 -}
531 -
532 -src_test() {
533 - if use python ; then
534 - cp common/test-core/unittest_support.py \
535 - "${BUILD_DIR}"/common/test-core/ || die
536 - fi
537 -
538 - cd "${BUILD_DIR}" || die
539 - XDG_DATA_HOME="${T}/$(whoami)" emake check
540 -}
541 -
542 -src_install() {
543 - cmake-utils_src_install
544 -
545 - rm "${ED%/}"/usr/share/doc/${PF}/README.dependencies || die
546 -
547 - if use gui ; then
548 - rm "${ED%/}"/usr/share/glib-2.0/schemas/gschemas.compiled || die
549 - fi
550 -
551 - if use examples ; then
552 - mv "${ED%/}"/usr/share/doc/gnucash \
553 - "${ED%/}"/usr/share/doc/${PF}/examples || die
554 - pushd "${ED%/}"/usr/share/doc/${PF}/examples/ > /dev/null || die
555 - rm AUTHORS DOCUMENTERS LICENSE NEWS projects.html ChangeLog* \
556 - *win32-bin.txt || die
557 - popd > /dev/null || die
558 - docompress -x /usr/share/doc/${PF}/examples/
559 - else
560 - rm -r "${ED%/}"/usr/share/doc/gnucash || die
561 - fi
562 -
563 - use aqbanking && dodoc doc/README.HBCI
564 - use ofx && dodoc doc/README.OFX
565 -}
566 -
567 -pkg_postinst() {
568 - if use gui ; then
569 - gnome2_icon_cache_update
570 - gnome2_schemas_update
571 - fi
572 - xdg_desktop_database_update
573 - xdg_mimeinfo_database_update
574 -
575 - ewarn "Backup all financial files or databases before using GnuCash >=2.7.0!"
576 - ewarn
577 - ewarn "GnuCash 2.7.0 introduced large changes in its file format and database"
578 - ewarn "schema that WILL prevent you from reverting back to GnuCash 2.6."
579 -}
580 -
581 -pkg_postrm() {
582 - if use gui ; then
583 - gnome2_icon_cache_update
584 - gnome2_schemas_update
585 - fi
586 - xdg_desktop_database_update
587 - xdg_mimeinfo_database_update
588 -}
589
590 diff --git a/app-office/gnucash/gnucash-3.3-r1.ebuild b/app-office/gnucash/gnucash-3.3-r1.ebuild
591 deleted file mode 100644
592 index 0472582cb9b..00000000000
593 --- a/app-office/gnucash/gnucash-3.3-r1.ebuild
594 +++ /dev/null
595 @@ -1,169 +0,0 @@
596 -# Copyright 1999-2020 Gentoo Authors
597 -# Distributed under the terms of the GNU General Public License v2
598 -
599 -EAPI=6
600 -
601 -# google{test,mock} version
602 -GV="1.8.0"
603 -PYTHON_COMPAT=( python3_6 )
604 -
605 -inherit cmake-utils flag-o-matic gnome2-utils python-single-r1 xdg-utils
606 -
607 -DESCRIPTION="A personal finance manager"
608 -HOMEPAGE="http://www.gnucash.org/"
609 -SRC_URI="https://github.com/Gnucash/${PN}/releases/download/${PV}/${P}.tar.bz2
610 - https://github.com/google/googletest/archive/release-${GV}.tar.gz -> gtest-${GV}.tar.gz"
611 -
612 -SLOT="0"
613 -LICENSE="GPL-2"
614 -KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
615 -
616 -IUSE="aqbanking chipcard debug doc examples gnome-keyring mysql nls ofx postgres python quotes -register2 sqlite +gui"
617 -REQUIRED_USE="
618 - chipcard? ( aqbanking )
619 - python? ( ${PYTHON_REQUIRED_USE} )"
620 -
621 -# libdbi version requirement for sqlite taken from bug #455134
622 -#
623 -# dev-libs/boost must always be built with nls enabled.
624 -# guile[deprecated] because of SCM_LIST*() use
625 -RDEPEND="
626 - >=dev-libs/glib-2.46.0:2
627 - >=dev-libs/libxml2-2.7.0:2
628 - >=sys-libs/zlib-1.1.4
629 - >=dev-scheme/guile-2.2.0:12=[deprecated,regex]
630 - dev-libs/boost:=[icu,nls]
631 - dev-libs/icu:=
632 - dev-libs/libxslt
633 - aqbanking? (
634 - >=net-libs/aqbanking-5[gtk,ofx?]
635 - sys-libs/gwenhywfar[gtk]
636 - chipcard? ( sys-libs/libchipcard )
637 - )
638 - gnome-keyring? ( >=app-crypt/libsecret-0.18 )
639 - gui? (
640 - gnome-base/dconf
641 - net-libs/webkit-gtk:4=
642 - >=x11-libs/gtk+-3.14.0:3
643 - )
644 - mysql? (
645 - dev-db/libdbi
646 - dev-db/libdbi-drivers[mysql]
647 - )
648 - ofx? ( >=dev-libs/libofx-0.9.1 )
649 - postgres? (
650 - dev-db/libdbi
651 - dev-db/libdbi-drivers[postgres]
652 - )
653 - python? ( ${PYTHON_DEPS} )
654 - quotes? (
655 - >=dev-perl/Finance-Quote-1.11
656 - dev-perl/Date-Manip
657 - dev-perl/HTML-TableExtract
658 - )
659 - sqlite? (
660 - >=dev-db/libdbi-0.9.0
661 - >=dev-db/libdbi-drivers-0.9.0[sqlite]
662 - )
663 -"
664 -
665 -DEPEND="${RDEPEND}
666 - ~dev-cpp/gtest-${GV}
667 - >=sys-devel/gettext-0.19.6
668 - dev-lang/perl
669 - dev-perl/XML-Parser
670 - sys-devel/libtool
671 - virtual/pkgconfig
672 -"
673 -
674 -PDEPEND="doc? (
675 - ~app-doc/gnucash-docs-${PV}
676 - gnome-extra/yelp
677 -)"
678 -
679 -PATCHES=( "${FILESDIR}"/${PN}-3.2-no-gui.patch )
680 -
681 -pkg_setup() {
682 - use python && python-single-r1_pkg_setup
683 - xdg_environment_reset
684 -}
685 -
686 -src_configure() {
687 - local sql_on_off="OFF"
688 - if use mysql || use postgres || use sqlite ; then
689 - sql_on_off="ON"
690 - fi
691 -
692 - local mycmakeargs=(
693 - -DGMOCK_ROOT="${WORKDIR}"/googletest-release-${GV}/googlemock
694 - -DGTEST_ROOT="${WORKDIR}"/googletest-release-${GV}/googletest
695 - # Disable fallback to guile-2.0
696 - -DCMAKE_DISABLE_FIND_PACKAGE_GUILE2=ON
697 - -DCOMPILE_GSCHEMAS=OFF
698 - -DDISABLE_NLS=$(usex !nls)
699 - -DENABLE_REGISTER2=$(usex register2)
700 - -DWITH_AQBANKING=$(usex aqbanking)
701 - -DWITH_OFX=$(usex ofx)
702 - -DWITH_PYTHON=$(usex python)
703 - -DWITH_SQL=${sql_on_off}
704 - -DWITH_GNUCASH=$(usex gui)
705 - )
706 -
707 - append-cflags -Wno-error
708 - append-cxxflags -Wno-error
709 - cmake-utils_src_configure
710 -}
711 -
712 -src_test() {
713 - if use python ; then
714 - cp common/test-core/unittest_support.py \
715 - "${BUILD_DIR}"/common/test-core/ || die
716 - fi
717 -
718 - cd "${BUILD_DIR}" || die
719 - XDG_DATA_HOME="${T}/$(whoami)" emake check
720 -}
721 -
722 -src_install() {
723 - cmake-utils_src_install
724 -
725 - rm "${ED%/}"/usr/share/doc/${PF}/README.dependencies || die
726 -
727 - if use examples ; then
728 - mv "${ED%/}"/usr/share/doc/gnucash \
729 - "${ED%/}"/usr/share/doc/${PF}/examples || die
730 - pushd "${ED%/}"/usr/share/doc/${PF}/examples/ > /dev/null || die
731 - rm AUTHORS DOCUMENTERS LICENSE NEWS projects.html ChangeLog* \
732 - *win32-bin.txt || die
733 - popd > /dev/null || die
734 - docompress -x /usr/share/doc/${PF}/examples/
735 - else
736 - rm -r "${ED%/}"/usr/share/doc/gnucash || die
737 - fi
738 -
739 - use aqbanking && dodoc doc/README.HBCI
740 - use ofx && dodoc doc/README.OFX
741 -}
742 -
743 -pkg_postinst() {
744 - if use gui ; then
745 - gnome2_icon_cache_update
746 - gnome2_schemas_update
747 - fi
748 - xdg_desktop_database_update
749 - xdg_mimeinfo_database_update
750 -
751 - ewarn "Backup all financial files or databases before using GnuCash >=2.7.0!"
752 - ewarn
753 - ewarn "GnuCash 2.7.0 introduced large changes in its file format and database"
754 - ewarn "schema that WILL prevent you from reverting back to GnuCash 2.6."
755 -}
756 -
757 -pkg_postrm() {
758 - if use gui ; then
759 - gnome2_icon_cache_update
760 - gnome2_schemas_update
761 - fi
762 - xdg_desktop_database_update
763 - xdg_mimeinfo_database_update
764 -}
765
766 diff --git a/app-office/gnucash/gnucash-3.3.ebuild b/app-office/gnucash/gnucash-3.3.ebuild
767 deleted file mode 100644
768 index 3aefc2f916c..00000000000
769 --- a/app-office/gnucash/gnucash-3.3.ebuild
770 +++ /dev/null
771 @@ -1,171 +0,0 @@
772 -# Copyright 1999-2020 Gentoo Authors
773 -# Distributed under the terms of the GNU General Public License v2
774 -
775 -EAPI=6
776 -
777 -# google{test,mock} version
778 -GV="1.8.0"
779 -PYTHON_COMPAT=( python3_6 )
780 -
781 -inherit cmake-utils flag-o-matic gnome2-utils python-single-r1 xdg-utils
782 -
783 -DESCRIPTION="A personal finance manager"
784 -HOMEPAGE="http://www.gnucash.org/"
785 -SRC_URI="https://github.com/Gnucash/${PN}/releases/download/${PV}/${P}.tar.bz2
786 - https://github.com/google/googletest/archive/release-${GV}.tar.gz -> gtest-${GV}.tar.gz"
787 -
788 -SLOT="0"
789 -LICENSE="GPL-2"
790 -KEYWORDS="amd64 ~ppc ~ppc64 ~x86"
791 -
792 -IUSE="aqbanking chipcard debug doc examples gnome-keyring mysql nls ofx postgres
793 - python quotes -register2 sqlite +gui"
794 -REQUIRED_USE="
795 - chipcard? ( aqbanking )
796 - python? ( ${PYTHON_REQUIRED_USE} )"
797 -
798 -# libdbi version requirement for sqlite taken from bug #455134
799 -#
800 -# dev-libs/boost must always be built with nls enabled.
801 -RDEPEND="
802 - >=dev-libs/glib-2.40.0:2
803 - >=dev-libs/libxml2-2.7.0:2
804 - >=sys-libs/zlib-1.1.4
805 - >=dev-scheme/guile-2.0.0:12=[regex]
806 - dev-libs/boost:=[icu,nls]
807 - dev-libs/icu:=
808 - dev-libs/libxslt
809 - aqbanking? (
810 - >=net-libs/aqbanking-5[gtk,ofx?]
811 - sys-libs/gwenhywfar[gtk]
812 - chipcard? ( sys-libs/libchipcard )
813 - )
814 - gnome-keyring? ( >=app-crypt/libsecret-0.18 )
815 - gui? (
816 - gnome-base/dconf
817 - net-libs/webkit-gtk:4=
818 - >=x11-libs/gtk+-3.14.0:3
819 - )
820 - mysql? (
821 - dev-db/libdbi
822 - dev-db/libdbi-drivers[mysql]
823 - )
824 - ofx? ( >=dev-libs/libofx-0.9.1 )
825 - postgres? (
826 - dev-db/libdbi
827 - dev-db/libdbi-drivers[postgres]
828 - )
829 - python? ( ${PYTHON_DEPS} )
830 - quotes? (
831 - >=dev-perl/Finance-Quote-1.11
832 - dev-perl/Date-Manip
833 - dev-perl/HTML-TableExtract
834 - )
835 - sqlite? (
836 - >=dev-db/libdbi-0.9.0
837 - >=dev-db/libdbi-drivers-0.9.0[sqlite]
838 - )
839 -"
840 -
841 -DEPEND="${RDEPEND}
842 - ~dev-cpp/gtest-${GV}
843 - >=sys-devel/gettext-0.19.6
844 - dev-lang/perl
845 - dev-perl/XML-Parser
846 - sys-devel/libtool
847 - virtual/pkgconfig
848 -"
849 -
850 -PDEPEND="doc? (
851 - ~app-doc/gnucash-docs-${PV}
852 - gnome-extra/yelp
853 -)"
854 -
855 -PATCHES=( "${FILESDIR}"/${PN}-3.2-no-gui.patch )
856 -
857 -pkg_setup() {
858 - use python && python-single-r1_pkg_setup
859 - xdg_environment_reset
860 -}
861 -
862 -src_configure() {
863 - local sql_on_off="OFF"
864 - if use mysql || use postgres || use sqlite ; then
865 - sql_on_off="ON"
866 - fi
867 -
868 - local mycmakeargs=(
869 - -DGMOCK_ROOT="${WORKDIR}"/googletest-release-${GV}/googlemock
870 - -DGTEST_ROOT="${WORKDIR}"/googletest-release-${GV}/googletest
871 -
872 - -DDISABLE_NLS=$(usex !nls)
873 - -DENABLE_REGISTER2=$(usex register2)
874 - -DWITH_AQBANKING=$(usex aqbanking)
875 - -DWITH_OFX=$(usex ofx)
876 - -DWITH_PYTHON=$(usex python)
877 - -DWITH_SQL=${sql_on_off}
878 - -DWITH_GNUCASH=$(usex gui)
879 - )
880 -
881 - append-cflags -Wno-error
882 - append-cxxflags -Wno-error
883 - cmake-utils_src_configure
884 -}
885 -
886 -src_test() {
887 - if use python ; then
888 - cp common/test-core/unittest_support.py \
889 - "${BUILD_DIR}"/common/test-core/ || die
890 - fi
891 -
892 - cd "${BUILD_DIR}" || die
893 - XDG_DATA_HOME="${T}/$(whoami)" emake check
894 -}
895 -
896 -src_install() {
897 - cmake-utils_src_install
898 -
899 - rm "${ED%/}"/usr/share/doc/${PF}/README.dependencies || die
900 -
901 - if use gui ; then
902 - rm "${ED%/}"/usr/share/glib-2.0/schemas/gschemas.compiled || die
903 - fi
904 -
905 - if use examples ; then
906 - mv "${ED%/}"/usr/share/doc/gnucash \
907 - "${ED%/}"/usr/share/doc/${PF}/examples || die
908 - pushd "${ED%/}"/usr/share/doc/${PF}/examples/ > /dev/null || die
909 - rm AUTHORS DOCUMENTERS LICENSE NEWS projects.html ChangeLog* \
910 - *win32-bin.txt || die
911 - popd > /dev/null || die
912 - docompress -x /usr/share/doc/${PF}/examples/
913 - else
914 - rm -r "${ED%/}"/usr/share/doc/gnucash || die
915 - fi
916 -
917 - use aqbanking && dodoc doc/README.HBCI
918 - use ofx && dodoc doc/README.OFX
919 -}
920 -
921 -pkg_postinst() {
922 - if use gui ; then
923 - gnome2_icon_cache_update
924 - gnome2_schemas_update
925 - fi
926 - xdg_desktop_database_update
927 - xdg_mimeinfo_database_update
928 -
929 - ewarn "Backup all financial files or databases before using GnuCash >=2.7.0!"
930 - ewarn
931 - ewarn "GnuCash 2.7.0 introduced large changes in its file format and database"
932 - ewarn "schema that WILL prevent you from reverting back to GnuCash 2.6."
933 -}
934 -
935 -pkg_postrm() {
936 - if use gui ; then
937 - gnome2_icon_cache_update
938 - gnome2_schemas_update
939 - fi
940 - xdg_desktop_database_update
941 - xdg_mimeinfo_database_update
942 -}
943
944 diff --git a/app-office/gnucash/gnucash-3.4.ebuild b/app-office/gnucash/gnucash-3.4.ebuild
945 deleted file mode 100644
946 index db9c8c5b687..00000000000
947 --- a/app-office/gnucash/gnucash-3.4.ebuild
948 +++ /dev/null
949 @@ -1,180 +0,0 @@
950 -# Copyright 1999-2020 Gentoo Authors
951 -# Distributed under the terms of the GNU General Public License v2
952 -
953 -EAPI=6
954 -
955 -# google{test,mock} version
956 -GV="1.8.0"
957 -PYTHON_COMPAT=( python3_6 )
958 -
959 -inherit cmake-utils flag-o-matic gnome2-utils python-single-r1 xdg-utils
960 -
961 -DESCRIPTION="A personal finance manager"
962 -HOMEPAGE="http://www.gnucash.org/"
963 -SRC_URI="https://github.com/Gnucash/${PN}/releases/download/${PV}/${P}.tar.bz2
964 - https://github.com/google/googletest/archive/release-${GV}.tar.gz -> gtest-${GV}.tar.gz"
965 -
966 -SLOT="0"
967 -LICENSE="GPL-2"
968 -KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
969 -
970 -IUSE="aqbanking chipcard debug doc examples gnome-keyring +gui mysql nls ofx
971 - postgres python quotes -register2 sqlite"
972 -
973 -REQUIRED_USE="
974 - chipcard? ( aqbanking )
975 - python? ( ${PYTHON_REQUIRED_USE} )"
976 -
977 -# libdbi version requirement for sqlite taken from bug #455134
978 -#
979 -# dev-libs/boost must always be built with nls enabled.
980 -# guile[deprecated] because of SCM_LIST*() use
981 -RDEPEND="
982 - >=dev-libs/glib-2.46.0:2
983 - >=dev-libs/libxml2-2.7.0:2
984 - >=sys-libs/zlib-1.1.4
985 - >=dev-scheme/guile-2.2.0:12=[deprecated,regex]
986 - dev-libs/boost:=[icu,nls]
987 - dev-libs/icu:=
988 - dev-libs/libxslt
989 - aqbanking? (
990 - >=net-libs/aqbanking-5[gtk,ofx?]
991 - sys-libs/gwenhywfar[gtk]
992 - chipcard? ( sys-libs/libchipcard )
993 - )
994 - gnome-keyring? ( >=app-crypt/libsecret-0.18 )
995 - gui? (
996 - gnome-base/dconf
997 - net-libs/webkit-gtk:4=
998 - >=x11-libs/gtk+-3.14.0:3
999 - )
1000 - mysql? (
1001 - dev-db/libdbi
1002 - dev-db/libdbi-drivers[mysql]
1003 - )
1004 - ofx? ( >=dev-libs/libofx-0.9.1 )
1005 - postgres? (
1006 - dev-db/libdbi
1007 - dev-db/libdbi-drivers[postgres]
1008 - )
1009 - python? ( ${PYTHON_DEPS} )
1010 - quotes? (
1011 - >=dev-perl/Finance-Quote-1.11
1012 - dev-perl/Date-Manip
1013 - dev-perl/HTML-TableExtract
1014 - )
1015 - sqlite? (
1016 - >=dev-db/libdbi-0.9.0
1017 - >=dev-db/libdbi-drivers-0.9.0[sqlite]
1018 - )
1019 -"
1020 -
1021 -DEPEND="${RDEPEND}
1022 - ~dev-cpp/gtest-${GV}
1023 - >=sys-devel/gettext-0.19.6
1024 - dev-lang/perl
1025 - dev-perl/XML-Parser
1026 - sys-devel/libtool
1027 - virtual/pkgconfig
1028 -"
1029 -
1030 -PDEPEND="doc? (
1031 - ~app-doc/gnucash-docs-${PV}
1032 - gnome-extra/yelp
1033 -)"
1034 -
1035 -PATCHES=( "${FILESDIR}"/${PN}-3.2-no-gui.patch
1036 - # Fixed in 3.5
1037 - "${FILESDIR}"/${PN}-3.4-test-transaction.patch )
1038 -
1039 -pkg_setup() {
1040 - use python && python-single-r1_pkg_setup
1041 - xdg_environment_reset
1042 -}
1043 -
1044 -src_unpack() {
1045 - default
1046 - cp "${FILESDIR}"/gnucash-3.4-test-stress-options.scm \
1047 - ${PN}-${PV}/${PN}/report/standard-reports/test/test-stress-options.scm \
1048 - || die "Failed copying scm"
1049 -}
1050 -
1051 -src_configure() {
1052 - local sql_on_off="OFF"
1053 - if use mysql || use postgres || use sqlite ; then
1054 - sql_on_off="ON"
1055 - fi
1056 -
1057 - local mycmakeargs=(
1058 - -DGMOCK_ROOT="${WORKDIR}"/googletest-release-${GV}/googlemock
1059 - -DGTEST_ROOT="${WORKDIR}"/googletest-release-${GV}/googletest
1060 - # Disable fallback to guile-2.0
1061 - -DCMAKE_DISABLE_FIND_PACKAGE_GUILE2=ON
1062 - -DCOMPILE_GSCHEMAS=OFF
1063 - -DDISABLE_NLS=$(usex !nls)
1064 - -DENABLE_REGISTER2=$(usex register2)
1065 - -DWITH_AQBANKING=$(usex aqbanking)
1066 - -DWITH_OFX=$(usex ofx)
1067 - -DWITH_PYTHON=$(usex python)
1068 - -DWITH_SQL=${sql_on_off}
1069 - -DWITH_GNUCASH=$(usex gui)
1070 - )
1071 -
1072 - append-cflags -Wno-error
1073 - append-cxxflags -Wno-error
1074 - cmake-utils_src_configure
1075 -}
1076 -
1077 -src_test() {
1078 - if use python ; then
1079 - cp common/test-core/unittest_support.py \
1080 - "${BUILD_DIR}"/common/test-core/ || die
1081 - fi
1082 -
1083 - cd "${BUILD_DIR}" || die
1084 - XDG_DATA_HOME="${T}/$(whoami)" emake check
1085 -}
1086 -
1087 -src_install() {
1088 - cmake-utils_src_install
1089 -
1090 - rm "${ED%/}"/usr/share/doc/${PF}/README.dependencies || die
1091 -
1092 - if use examples ; then
1093 - mv "${ED%/}"/usr/share/doc/gnucash \
1094 - "${ED%/}"/usr/share/doc/${PF}/examples || die
1095 - pushd "${ED%/}"/usr/share/doc/${PF}/examples/ > /dev/null || die
1096 - rm AUTHORS DOCUMENTERS LICENSE NEWS projects.html ChangeLog* \
1097 - *win32-bin.txt || die
1098 - popd > /dev/null || die
1099 - docompress -x /usr/share/doc/${PF}/examples/
1100 - else
1101 - rm -r "${ED%/}"/usr/share/doc/gnucash || die
1102 - fi
1103 -
1104 - use aqbanking && dodoc doc/README.HBCI
1105 - use ofx && dodoc doc/README.OFX
1106 -}
1107 -
1108 -pkg_postinst() {
1109 - if use gui ; then
1110 - gnome2_icon_cache_update
1111 - gnome2_schemas_update
1112 - fi
1113 - xdg_desktop_database_update
1114 - xdg_mimeinfo_database_update
1115 -
1116 - ewarn "Backup all financial files or databases before using GnuCash >=2.7.0!"
1117 - ewarn
1118 - ewarn "GnuCash 2.7.0 introduced large changes in its file format and database"
1119 - ewarn "schema that WILL prevent you from reverting back to GnuCash 2.6."
1120 -}
1121 -
1122 -pkg_postrm() {
1123 - if use gui ; then
1124 - gnome2_icon_cache_update
1125 - gnome2_schemas_update
1126 - fi
1127 - xdg_desktop_database_update
1128 - xdg_mimeinfo_database_update
1129 -}
1130
1131 diff --git a/app-office/gnucash/gnucash-3.5.ebuild b/app-office/gnucash/gnucash-3.5.ebuild
1132 deleted file mode 100644
1133 index 28efd4507c7..00000000000
1134 --- a/app-office/gnucash/gnucash-3.5.ebuild
1135 +++ /dev/null
1136 @@ -1,176 +0,0 @@
1137 -# Copyright 1999-2020 Gentoo Authors
1138 -# Distributed under the terms of the GNU General Public License v2
1139 -
1140 -EAPI=6
1141 -
1142 -# google{test,mock} version
1143 -GV="1.8.0"
1144 -PYTHON_COMPAT=( python3_6 )
1145 -
1146 -inherit cmake-utils flag-o-matic gnome2-utils python-single-r1 xdg-utils
1147 -
1148 -DESCRIPTION="A personal finance manager"
1149 -HOMEPAGE="http://www.gnucash.org/"
1150 -SRC_URI="https://github.com/Gnucash/${PN}/releases/download/${PV}/${P}.tar.bz2
1151 - https://github.com/google/googletest/archive/release-${GV}.tar.gz -> gtest-${GV}.tar.gz"
1152 -
1153 -SLOT="0"
1154 -LICENSE="GPL-2"
1155 -KEYWORDS="amd64 ~ppc ~ppc64 x86"
1156 -
1157 -IUSE="aqbanking chipcard debug doc examples gnome-keyring +gui mysql nls ofx
1158 - postgres python quotes -register2 sqlite"
1159 -
1160 -REQUIRED_USE="
1161 - chipcard? ( aqbanking )
1162 - python? ( ${PYTHON_REQUIRED_USE} )"
1163 -
1164 -# libdbi version requirement for sqlite taken from bug #455134
1165 -#
1166 -# dev-libs/boost must always be built with nls enabled.
1167 -# guile[deprecated] because of SCM_LIST*() use
1168 -RDEPEND="
1169 - >=dev-libs/glib-2.46.0:2
1170 - >=dev-libs/libxml2-2.7.0:2
1171 - >=sys-libs/zlib-1.1.4
1172 - >=dev-scheme/guile-2.2.0:12=[deprecated,regex]
1173 - dev-libs/boost:=[icu,nls]
1174 - dev-libs/icu:=
1175 - dev-libs/libxslt
1176 - aqbanking? (
1177 - >=net-libs/aqbanking-5[gtk,ofx?]
1178 - sys-libs/gwenhywfar[gtk]
1179 - chipcard? ( sys-libs/libchipcard )
1180 - )
1181 - gnome-keyring? ( >=app-crypt/libsecret-0.18 )
1182 - gui? (
1183 - gnome-base/dconf
1184 - net-libs/webkit-gtk:4=
1185 - >=x11-libs/gtk+-3.14.0:3
1186 - )
1187 - mysql? (
1188 - dev-db/libdbi
1189 - dev-db/libdbi-drivers[mysql]
1190 - )
1191 - ofx? ( >=dev-libs/libofx-0.9.1 )
1192 - postgres? (
1193 - dev-db/libdbi
1194 - dev-db/libdbi-drivers[postgres]
1195 - )
1196 - python? ( ${PYTHON_DEPS} )
1197 - quotes? (
1198 - >=dev-perl/Finance-Quote-1.11
1199 - dev-perl/Date-Manip
1200 - dev-perl/HTML-TableExtract
1201 - )
1202 - sqlite? (
1203 - >=dev-db/libdbi-0.9.0
1204 - >=dev-db/libdbi-drivers-0.9.0[sqlite]
1205 - )
1206 -"
1207 -
1208 -DEPEND="${RDEPEND}
1209 - ~dev-cpp/gtest-${GV}
1210 - >=sys-devel/gettext-0.19.6
1211 - dev-lang/perl
1212 - dev-perl/XML-Parser
1213 - sys-devel/libtool
1214 - virtual/pkgconfig
1215 -"
1216 -
1217 -PDEPEND="doc? (
1218 - ~app-doc/gnucash-docs-${PV}
1219 - gnome-extra/yelp
1220 -)"
1221 -
1222 -PATCHES=( "${FILESDIR}"/${PN}-3.2-no-gui.patch )
1223 -
1224 -pkg_setup() {
1225 - use python && python-single-r1_pkg_setup
1226 - xdg_environment_reset
1227 -}
1228 -
1229 -src_unpack() {
1230 - default
1231 - cp "${FILESDIR}"/gnucash-3.4-test-stress-options.scm \
1232 - ${PN}-${PV}/${PN}/report/standard-reports/test/test-stress-options.scm \
1233 - || die "Failed copying scm"
1234 -}
1235 -
1236 -src_configure() {
1237 - local sql_on_off="OFF"
1238 - if use mysql || use postgres || use sqlite ; then
1239 - sql_on_off="ON"
1240 - fi
1241 -
1242 - local mycmakeargs=(
1243 - -DGMOCK_ROOT="${WORKDIR}"/googletest-release-${GV}/googlemock
1244 - -DGTEST_ROOT="${WORKDIR}"/googletest-release-${GV}/googletest
1245 - # Disable fallback to guile-2.0
1246 - -DCMAKE_DISABLE_FIND_PACKAGE_GUILE2=ON
1247 - -DCOMPILE_GSCHEMAS=OFF
1248 - -DDISABLE_NLS=$(usex !nls)
1249 - -DENABLE_REGISTER2=$(usex register2)
1250 - -DWITH_AQBANKING=$(usex aqbanking)
1251 - -DWITH_OFX=$(usex ofx)
1252 - -DWITH_PYTHON=$(usex python)
1253 - -DWITH_SQL=${sql_on_off}
1254 - -DWITH_GNUCASH=$(usex gui)
1255 - )
1256 -
1257 - cmake-utils_src_configure
1258 -}
1259 -
1260 -src_test() {
1261 - if use python ; then
1262 - cp common/test-core/unittest_support.py \
1263 - "${BUILD_DIR}"/common/test-core/ || die
1264 - fi
1265 -
1266 - cd "${BUILD_DIR}" || die
1267 - XDG_DATA_HOME="${T}/$(whoami)" emake check
1268 -}
1269 -
1270 -src_install() {
1271 - cmake-utils_src_install
1272 -
1273 - rm "${ED%/}"/usr/share/doc/${PF}/README.dependencies || die
1274 -
1275 - if use examples ; then
1276 - mv "${ED%/}"/usr/share/doc/gnucash \
1277 - "${ED%/}"/usr/share/doc/${PF}/examples || die
1278 - pushd "${ED%/}"/usr/share/doc/${PF}/examples/ > /dev/null || die
1279 - rm AUTHORS DOCUMENTERS LICENSE NEWS projects.html ChangeLog* \
1280 - *win32-bin.txt || die
1281 - popd > /dev/null || die
1282 - docompress -x /usr/share/doc/${PF}/examples/
1283 - else
1284 - rm -r "${ED%/}"/usr/share/doc/gnucash || die
1285 - fi
1286 -
1287 - use aqbanking && dodoc doc/README.HBCI
1288 - use ofx && dodoc doc/README.OFX
1289 -}
1290 -
1291 -pkg_postinst() {
1292 - if use gui ; then
1293 - gnome2_icon_cache_update
1294 - gnome2_schemas_update
1295 - fi
1296 - xdg_desktop_database_update
1297 - xdg_mimeinfo_database_update
1298 -
1299 - ewarn "Backup all financial files or databases before using GnuCash >=2.7.0!"
1300 - ewarn
1301 - ewarn "GnuCash 2.7.0 introduced large changes in its file format and database"
1302 - ewarn "schema that WILL prevent you from reverting back to GnuCash 2.6."
1303 -}
1304 -
1305 -pkg_postrm() {
1306 - if use gui ; then
1307 - gnome2_icon_cache_update
1308 - gnome2_schemas_update
1309 - fi
1310 - xdg_desktop_database_update
1311 - xdg_mimeinfo_database_update
1312 -}
1313
1314 diff --git a/app-office/gnucash/gnucash-3.6.ebuild b/app-office/gnucash/gnucash-3.6.ebuild
1315 deleted file mode 100644
1316 index a2988538c60..00000000000
1317 --- a/app-office/gnucash/gnucash-3.6.ebuild
1318 +++ /dev/null
1319 @@ -1,192 +0,0 @@
1320 -# Copyright 1999-2020 Gentoo Authors
1321 -# Distributed under the terms of the GNU General Public License v2
1322 -
1323 -EAPI=6
1324 -
1325 -PYTHON_COMPAT=( python3_6 )
1326 -
1327 -inherit cmake-utils gnome2-utils python-single-r1 xdg-utils
1328 -
1329 -DESCRIPTION="A personal finance manager"
1330 -HOMEPAGE="http://www.gnucash.org/"
1331 -SRC_URI="https://github.com/Gnucash/${PN}/releases/download/${PV}/${P}.tar.bz2"
1332 -
1333 -SLOT="0"
1334 -LICENSE="GPL-2"
1335 -KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
1336 -
1337 -IUSE="aqbanking chipcard debug doc examples gnome-keyring +gui mysql nls ofx
1338 - postgres python quotes -register2 sqlite test"
1339 -
1340 -RESTRICT="!test? ( test )"
1341 -REQUIRED_USE="
1342 - chipcard? ( aqbanking )
1343 - python? ( ${PYTHON_REQUIRED_USE} )"
1344 -
1345 -# libdbi version requirement for sqlite taken from bug #455134
1346 -#
1347 -# dev-libs/boost must always be built with nls enabled.
1348 -# guile[deprecated] because of SCM_LIST*() use
1349 -RDEPEND="
1350 - >=dev-libs/glib-2.46.0:2
1351 - >=dev-libs/libxml2-2.7.0:2
1352 - >=sys-libs/zlib-1.1.4
1353 - >=dev-scheme/guile-2.2.0:12=[deprecated,regex]
1354 - dev-libs/boost:=[icu,nls]
1355 - dev-libs/icu:=
1356 - dev-libs/libxslt
1357 - aqbanking? (
1358 - >=net-libs/aqbanking-5[gtk,ofx?]
1359 - sys-libs/gwenhywfar[gtk]
1360 - chipcard? ( sys-libs/libchipcard )
1361 - )
1362 - gnome-keyring? ( >=app-crypt/libsecret-0.18 )
1363 - gui? (
1364 - gnome-base/dconf
1365 - net-libs/webkit-gtk:4=
1366 - >=x11-libs/gtk+-3.14.0:3
1367 - )
1368 - mysql? (
1369 - dev-db/libdbi
1370 - dev-db/libdbi-drivers[mysql]
1371 - )
1372 - ofx? ( >=dev-libs/libofx-0.9.1 )
1373 - postgres? (
1374 - dev-db/libdbi
1375 - dev-db/libdbi-drivers[postgres]
1376 - )
1377 - python? ( ${PYTHON_DEPS} )
1378 - quotes? (
1379 - >=dev-perl/Finance-Quote-1.11
1380 - dev-perl/Date-Manip
1381 - dev-perl/HTML-TableExtract
1382 - )
1383 - sqlite? (
1384 - >=dev-db/libdbi-0.9.0
1385 - >=dev-db/libdbi-drivers-0.9.0[sqlite]
1386 - )
1387 -"
1388 -
1389 -DEPEND="${RDEPEND}
1390 - >=sys-devel/gettext-0.19.6
1391 - dev-lang/perl
1392 - dev-perl/XML-Parser
1393 - sys-devel/libtool
1394 - virtual/pkgconfig
1395 - test? ( >=dev-cpp/gtest-1.8.0 )
1396 -"
1397 -
1398 -PDEPEND="doc? (
1399 - ~app-doc/gnucash-docs-${PV}
1400 - gnome-extra/yelp
1401 -)"
1402 -
1403 -PATCHES=( "${FILESDIR}"/${PN}-3.2-no-gui.patch )
1404 -
1405 -pkg_setup() {
1406 - use python && python-single-r1_pkg_setup
1407 - xdg_environment_reset
1408 -}
1409 -
1410 -src_unpack() {
1411 - default
1412 - cp "${FILESDIR}"/gnucash-3.4-test-stress-options.scm \
1413 - ${PN}-${PV}/${PN}/report/standard-reports/test/test-stress-options.scm \
1414 - || die "Failed copying scm"
1415 -}
1416 -
1417 -src_configure() {
1418 - local sql_on_off="OFF"
1419 - if use mysql || use postgres || use sqlite ; then
1420 - sql_on_off="ON"
1421 - fi
1422 -
1423 - local mycmakeargs=(
1424 - # Disable fallback to guile-2.0
1425 - -DCMAKE_DISABLE_FIND_PACKAGE_GUILE2=ON
1426 - -DCOMPILE_GSCHEMAS=OFF
1427 - -DDISABLE_NLS=$(usex !nls)
1428 - -DENABLE_REGISTER2=$(usex register2)
1429 - -DWITH_AQBANKING=$(usex aqbanking)
1430 - -DWITH_OFX=$(usex ofx)
1431 - -DWITH_PYTHON=$(usex python)
1432 - -DWITH_SQL=${sql_on_off}
1433 - -DWITH_GNUCASH=$(usex gui)
1434 - )
1435 -
1436 - cmake-utils_src_configure
1437 -}
1438 -
1439 -src_test() {
1440 - if use python ; then
1441 - cp common/test-core/unittest_support.py \
1442 - "${BUILD_DIR}"/common/test-core/ || die
1443 - fi
1444 -
1445 - LOCALE_TESTS=
1446 - if type locale >/dev/null 2>&1; then
1447 - MY_LOCALES="$(locale -a)"
1448 - if [[ "${MY_LOCALES}" != *en_US* ||
1449 - "${MY_LOCALES}" != *en_GB* ||
1450 - "${MY_LOCALES}" != *fr_FR* ]] ; then
1451 - ewarn "Missing one or more of en_US, en_GB, or fr_FR locales."
1452 - else
1453 - LOCALE_TESTS=true
1454 - fi
1455 - else
1456 - ewarn "'locale' not found."
1457 - fi
1458 -
1459 - if [[ ! ${LOCALE_TESTS} ]]; then
1460 - ewarn "Disabling test-qof and test-gnc-numeric."
1461 - echo 'set(CTEST_CUSTOM_TESTS_IGNORE test-qof test-gnc-numeric)' \
1462 - > "${BUILD_DIR}"/CTestCustom.cmake || die
1463 - fi
1464 -
1465 - cd "${BUILD_DIR}" || die
1466 - XDG_DATA_HOME="${T}/$(whoami)" emake check
1467 -}
1468 -
1469 -src_install() {
1470 - cmake-utils_src_install
1471 -
1472 - rm "${ED%/}"/usr/share/doc/${PF}/README.dependencies || die
1473 -
1474 - if use examples ; then
1475 - mv "${ED%/}"/usr/share/doc/gnucash \
1476 - "${ED%/}"/usr/share/doc/${PF}/examples || die
1477 - pushd "${ED%/}"/usr/share/doc/${PF}/examples/ > /dev/null || die
1478 - rm AUTHORS DOCUMENTERS LICENSE NEWS projects.html ChangeLog* \
1479 - *win32-bin.txt || die
1480 - popd > /dev/null || die
1481 - docompress -x /usr/share/doc/${PF}/examples/
1482 - else
1483 - rm -r "${ED%/}"/usr/share/doc/gnucash || die
1484 - fi
1485 -
1486 - use aqbanking && dodoc doc/README.HBCI
1487 - use ofx && dodoc doc/README.OFX
1488 -}
1489 -
1490 -pkg_postinst() {
1491 - if use gui ; then
1492 - gnome2_icon_cache_update
1493 - gnome2_schemas_update
1494 - fi
1495 - xdg_desktop_database_update
1496 - xdg_mimeinfo_database_update
1497 -
1498 - ewarn "Backup all financial files or databases before using GnuCash >=2.7.0!"
1499 - ewarn
1500 - ewarn "GnuCash 2.7.0 introduced large changes in its file format and database"
1501 - ewarn "schema that WILL prevent you from reverting back to GnuCash 2.6."
1502 -}
1503 -
1504 -pkg_postrm() {
1505 - if use gui ; then
1506 - gnome2_icon_cache_update
1507 - gnome2_schemas_update
1508 - fi
1509 - xdg_desktop_database_update
1510 - xdg_mimeinfo_database_update
1511 -}
1512
1513 diff --git a/app-office/gnucash/gnucash-3.7.ebuild b/app-office/gnucash/gnucash-3.7.ebuild
1514 deleted file mode 100644
1515 index a5ff19c5918..00000000000
1516 --- a/app-office/gnucash/gnucash-3.7.ebuild
1517 +++ /dev/null
1518 @@ -1,213 +0,0 @@
1519 -# Copyright 1999-2020 Gentoo Authors
1520 -# Distributed under the terms of the GNU General Public License v2
1521 -
1522 -EAPI=6
1523 -
1524 -PYTHON_COMPAT=( python3_6 )
1525 -
1526 -inherit cmake-utils gnome2-utils python-single-r1 xdg-utils
1527 -
1528 -DESCRIPTION="A personal finance manager"
1529 -HOMEPAGE="http://www.gnucash.org/"
1530 -SRC_URI="https://github.com/Gnucash/${PN}/releases/download/${PV}/${P}.tar.bz2"
1531 -
1532 -SLOT="0"
1533 -LICENSE="GPL-2"
1534 -KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
1535 -
1536 -IUSE="aqbanking debug doc examples gnome-keyring +gui mysql nls ofx postgres
1537 - python quotes -register2 smartcard sqlite test"
1538 -
1539 -RESTRICT="!test? ( test )"
1540 -REQUIRED_USE="
1541 - python? ( ${PYTHON_REQUIRED_USE} )
1542 - smartcard? ( aqbanking )"
1543 -
1544 -# libdbi version requirement for sqlite taken from bug #455134
1545 -#
1546 -# dev-libs/boost must always be built with nls enabled.
1547 -# guile[deprecated] because of SCM_LIST*() use
1548 -RDEPEND="
1549 - >=dev-libs/glib-2.46.0:2
1550 - >=dev-libs/libxml2-2.7.0:2
1551 - dev-libs/boost:=[icu,nls]
1552 - dev-libs/icu:=
1553 - dev-libs/libxslt
1554 - >=dev-scheme/guile-2.2.0:12=[deprecated,regex]
1555 - >=sys-libs/zlib-1.1.4
1556 - aqbanking? (
1557 - >=net-libs/aqbanking-5[ofx?]
1558 - sys-libs/gwenhywfar
1559 - smartcard? ( sys-libs/libchipcard )
1560 - )
1561 - gnome-keyring? ( >=app-crypt/libsecret-0.18 )
1562 - gui? (
1563 - gnome-base/dconf
1564 - net-libs/webkit-gtk:4=
1565 - >=x11-libs/gtk+-3.14.0:3
1566 - aqbanking? ( >=sys-libs/gwenhywfar-4.20.2[gtk] )
1567 - )
1568 - mysql? (
1569 - dev-db/libdbi
1570 - dev-db/libdbi-drivers[mysql]
1571 - )
1572 - ofx? ( >=dev-libs/libofx-0.9.1 )
1573 - postgres? (
1574 - dev-db/libdbi
1575 - dev-db/libdbi-drivers[postgres]
1576 - )
1577 - python? ( ${PYTHON_DEPS} )
1578 - quotes? (
1579 - >=dev-perl/Finance-Quote-1.11
1580 - dev-perl/Date-Manip
1581 - dev-perl/HTML-TableExtract
1582 - )
1583 - sqlite? (
1584 - >=dev-db/libdbi-0.9.0
1585 - >=dev-db/libdbi-drivers-0.9.0[sqlite]
1586 - )
1587 -"
1588 -
1589 -DEPEND="${RDEPEND}
1590 - >=sys-devel/gettext-0.19.6
1591 - dev-lang/perl
1592 - dev-perl/XML-Parser
1593 - sys-devel/libtool
1594 - virtual/pkgconfig
1595 - test? ( >=dev-cpp/gtest-1.8.0 )
1596 -"
1597 -
1598 -PDEPEND="doc? (
1599 - ~app-doc/gnucash-docs-${PV}
1600 - gnome-extra/yelp
1601 -)"
1602 -
1603 -PATCHES=(
1604 - "${FILESDIR}"/${PN}-3.2-no-gui.patch
1605 - "${FILESDIR}"/${PN}-3.7-include-checksymbolexists.patch
1606 -)
1607 -
1608 -pkg_setup() {
1609 - use python && python-single-r1_pkg_setup
1610 -}
1611 -
1612 -src_unpack() {
1613 - default
1614 - cp "${FILESDIR}"/gnucash-3.4-test-stress-options.scm \
1615 - ${PN}-${PV}/${PN}/report/standard-reports/test/test-stress-options.scm \
1616 - || die "Failed copying scm"
1617 -}
1618 -
1619 -src_prepare() {
1620 - cmake-utils_src_prepare
1621 - xdg_environment_reset
1622 -
1623 - # Fix tests writing to /tmp
1624 - local fixtestfiles=(
1625 - "${S}"/gnucash/report/report-system/test/test-commodity-utils.scm
1626 - "${S}"/gnucash/report/report-system/test/test-extras.scm
1627 - "${S}"/gnucash/report/report-system/test/test-report-html.scm
1628 - "${S}"/gnucash/report/report-system/test/test-report-system.scm
1629 - "${S}"/libgnucash/backend/xml/test/test-xml-pricedb.cpp
1630 - "${S}"/libgnucash/backend/dbi/test/test-backend-dbi-basic.cpp
1631 - )
1632 - for x in "${fixtestfiles[@]}"; do
1633 - sed -i -e "s|\"/tmp/|\"${T}/|g" "${x}" || die "sed of "${x}" failed"
1634 - done
1635 -}
1636 -
1637 -src_configure() {
1638 - export GUILE_AUTO_COMPILE=0
1639 -
1640 - local sql_on_off="OFF"
1641 - if use mysql || use postgres || use sqlite ; then
1642 - sql_on_off="ON"
1643 - fi
1644 -
1645 - local mycmakeargs=(
1646 - -DCOMPILE_GSCHEMAS=OFF
1647 - -DDISABLE_NLS=$(usex !nls)
1648 - -DENABLE_REGISTER2=$(usex register2)
1649 - -DWITH_AQBANKING=$(usex aqbanking)
1650 - -DWITH_OFX=$(usex ofx)
1651 - -DWITH_PYTHON=$(usex python)
1652 - -DWITH_SQL=${sql_on_off}
1653 - -DWITH_GNUCASH=$(usex gui)
1654 - )
1655 -
1656 - cmake-utils_src_configure
1657 -}
1658 -
1659 -src_test() {
1660 - if use python ; then
1661 - cp common/test-core/unittest_support.py \
1662 - "${BUILD_DIR}"/common/test-core/ || die
1663 - fi
1664 -
1665 - LOCALE_TESTS=
1666 - if type locale >/dev/null 2>&1; then
1667 - MY_LOCALES="$(locale -a)"
1668 - if [[ "${MY_LOCALES}" != *en_US* ||
1669 - "${MY_LOCALES}" != *en_GB* ||
1670 - "${MY_LOCALES}" != *fr_FR* ]] ; then
1671 - ewarn "Missing one or more of en_US, en_GB, or fr_FR locales."
1672 - else
1673 - LOCALE_TESTS=true
1674 - fi
1675 - else
1676 - ewarn "'locale' not found."
1677 - fi
1678 -
1679 - if [[ ! ${LOCALE_TESTS} ]]; then
1680 - ewarn "Disabling test-qof and test-gnc-numeric."
1681 - echo 'set(CTEST_CUSTOM_TESTS_IGNORE test-qof test-gnc-numeric)' \
1682 - > "${BUILD_DIR}"/CTestCustom.cmake || die
1683 - fi
1684 -
1685 - cd "${BUILD_DIR}" || die
1686 - XDG_DATA_HOME="${T}/$(whoami)" emake check
1687 -}
1688 -
1689 -src_install() {
1690 - cmake-utils_src_install
1691 -
1692 - rm "${ED%/}"/usr/share/doc/${PF}/README.dependencies || die
1693 -
1694 - if use examples ; then
1695 - mv "${ED%/}"/usr/share/doc/gnucash \
1696 - "${ED%/}"/usr/share/doc/${PF}/examples || die
1697 - pushd "${ED%/}"/usr/share/doc/${PF}/examples/ > /dev/null || die
1698 - rm AUTHORS DOCUMENTERS LICENSE NEWS projects.html ChangeLog* \
1699 - *win32-bin.txt || die
1700 - popd > /dev/null || die
1701 - docompress -x /usr/share/doc/${PF}/examples/
1702 - else
1703 - rm -r "${ED%/}"/usr/share/doc/gnucash || die
1704 - fi
1705 -
1706 - use aqbanking && dodoc doc/README.HBCI
1707 - use ofx && dodoc doc/README.OFX
1708 -}
1709 -
1710 -pkg_postinst() {
1711 - if use gui ; then
1712 - xdg_icon_cache_update
1713 - gnome2_schemas_update
1714 - fi
1715 - xdg_desktop_database_update
1716 - xdg_mimeinfo_database_update
1717 -
1718 - ewarn "Backup all financial files or databases before using GnuCash >=2.7.0!"
1719 - ewarn
1720 - ewarn "GnuCash 2.7.0 introduced large changes in its file format and database"
1721 - ewarn "schema that WILL prevent you from reverting back to GnuCash 2.6."
1722 -}
1723 -
1724 -pkg_postrm() {
1725 - if use gui ; then
1726 - xdg_icon_cache_update
1727 - gnome2_schemas_update
1728 - fi
1729 - xdg_desktop_database_update
1730 - xdg_mimeinfo_database_update
1731 -}
1732
1733 diff --git a/app-office/gnucash/metadata.xml b/app-office/gnucash/metadata.xml
1734 index 545a0e372b3..7b7410f54f7 100644
1735 --- a/app-office/gnucash/metadata.xml
1736 +++ b/app-office/gnucash/metadata.xml
1737 @@ -9,9 +9,6 @@
1738 <flag name="aqbanking">
1739 Connect to some internet banks via AqBanking
1740 </flag>
1741 - <flag name="chipcard">
1742 - Enable support for chipcard reading and processing.
1743 - </flag>
1744 <flag name="quotes">Enable Online Stock Quote retrieval</flag>
1745 <flag name="register2">Use the new register (Experimental)</flag>
1746 </use>