Wed Nov 18 22:39:15 2020 UTC ()
ledger2beancount: Update to 2.5

2.5 (2020-11-03)

    Don't create negative cost for lot without cost
    Support complex implicit conversions
    Handle typed metadata with value 0 correctly
    Set per-unit instead of total cost when cost is missing from lot
    Support commodity-less amounts
    Convert transactions with no amounts or only 0 amounts to notes
    Fix parsing of transaction notes
    Keep tags in transaction notes on same line as transaction header
    Add beancount config options for non-standard root names automatically
    Fix conversion of fixated prices to costs
    Fix removal of price when price==cost but when they use different number formats
    Fix removal of price when price==cost but per-unit and total notation mixed
    Fix detection of tags and metadata after posting/aux date
    Use D directive to set default commodity for hledger
    Improve support for postings with commodity-less amounts
    Allow empty comments
    Preserve leading whitespace in comments in postings and transaction headers
    Preserve indentation for tags and metadata
    Preserve whitespace between amount and comment
    Refactor code to use more data structures
    Remove dependency on Config::Onion module

2.4 (2020-07-27)

    Fix regressions introduced in version 2.3
        Handle price directives with comments
        Don't assume implicit conversion when price is on second posting
    Improve support for hledger
        Fix parsing of hledger tags
        Support commas as decimal markers
        Support digit group marks through commodity and D directives
        Support end aliases directive
        Support regex aliases
        Recognise total balance assertions
        Recognise sub-account balance assertions
    Add support for define directive
    Convert all uppercase metadata tags to all lowercase
    Improve handling of ledger lots without cost
    Allow transactions without postings
    Fix parsing issue in commodity declarations
    Support commodities that contain quotation marks
    Add --version option to show version
    Document problem of mixing apply and include

2.3 (2020-06-26)

    Improve speed of ledger2beancount significantly
    Improve parsing of postings for accuracy and speed
    Improve support for inline maths
    Handle lots without cost
    Fix parsing of lot notes followed by a virtual price
    Add support for lot value expressions
    Make parsing of numbers more strict
    Fix behaviour of dates without year
    Accept default ledger date formats without configuration
    Fix implicit conversions with negative prices
    Convert implicit conversions in a more idiomatic way
    Avoid introducing trailing whitespace with hledger input
    Fix loading of config file
    Skip ledger directive import
    Convert documentation to mkdocs

2.2 (2020-05-30)

    Show warning for unknown apply directive
    Recognise apply rate directive (an alias of apply fixed)
    Don't convert metadata on ignored virtual postings but keep as comments
    Update location of beancount repository

2.1 (2020-04-06)

    Handle postings with posting dates and comments but no amount
    Show transactions with only one posting (without bucket)
    Adding spacing between automatic declarations
    Preserve preliminary info at the top


(riastradh)
diff -r1.5 -r1.6 pkgsrc/finance/ledger2beancount/Makefile
diff -r1.3 -r1.4 pkgsrc/finance/ledger2beancount/distinfo
diff -r1.3 -r0 pkgsrc/finance/ledger2beancount/patches/patch-tests_runtests

cvs diff -r1.5 -r1.6 pkgsrc/finance/ledger2beancount/Makefile (expand / switch to unified diff)

--- pkgsrc/finance/ledger2beancount/Makefile 2020/08/31 18:09:30 1.5
+++ pkgsrc/finance/ledger2beancount/Makefile 2020/11/18 22:39:15 1.6
@@ -1,55 +1,63 @@ @@ -1,55 +1,63 @@
1# $NetBSD: Makefile,v 1.5 2020/08/31 18:09:30 wiz Exp $ 1# $NetBSD: Makefile,v 1.6 2020/11/18 22:39:15 riastradh Exp $
2 2
3DISTNAME= ledger2beancount-2.0 3DISTNAME= ledger2beancount-2.5
4PKGREVISION= 2 
5CATEGORIES= finance 4CATEGORIES= finance
6MASTER_SITES= ${MASTER_SITE_GITHUB:=beancount/} 5MASTER_SITES= ${MASTER_SITE_GITHUB:=beancount/}
7GITHUB_PROJECT= ledger2beancount 6GITHUB_PROJECT= ledger2beancount
8 7
9MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
10HOMEPAGE= https://github.com/beancount/ledger2beancount/ 9HOMEPAGE= https://github.com/beancount/ledger2beancount/
11COMMENT= Script to convert ledger to beancount 10COMMENT= Script to convert ledger to beancount
12LICENSE= gnu-gpl-v3 11LICENSE= gnu-gpl-v3
13 12
14USE_TOOLS+= gmake 13USE_TOOLS+= gmake
15USE_TOOLS+= perl:run 14USE_TOOLS+= perl:run
16 15
17TOOL_DEPENDS+= scdoc>=0:../../textproc/scdoc 16TOOL_DEPENDS+= scdoc>=0:../../textproc/scdoc
18 17
19DEPENDS+= p5-Config-Onion>=0:../../devel/p5-Config-Onion 
20DEPENDS+= p5-Date-Calc>=0:../../devel/p5-Date-Calc 18DEPENDS+= p5-Date-Calc>=0:../../devel/p5-Date-Calc
21DEPENDS+= p5-DateTime-Format-Strptime>=1.58:../../time/p5-DateTime-Format-Strptime 19DEPENDS+= p5-DateTime-Format-Strptime>=1.58:../../time/p5-DateTime-Format-Strptime
22DEPENDS+= p5-File-BaseDir>=0:../../devel/p5-File-BaseDir 20DEPENDS+= p5-File-BaseDir>=0:../../devel/p5-File-BaseDir
23DEPENDS+= p5-Getopt-Long-Descriptive>=0:../../devel/p5-Getopt-Long-Descriptive 21DEPENDS+= p5-Getopt-Long-Descriptive>=0:../../devel/p5-Getopt-Long-Descriptive
 22DEPENDS+= p5-List-MoreUtils>=0:../../devel/p5-List-MoreUtils
 23DEPENDS+= p5-Regexp-Common>=0:../../textproc/p5-Regexp-Common
24DEPENDS+= p5-String-Interpolate>=0:../../textproc/p5-String-Interpolate 24DEPENDS+= p5-String-Interpolate>=0:../../textproc/p5-String-Interpolate
 25DEPENDS+= p5-YAML-XS>=0:../../textproc/p5-YAML-XS
 26DEPENDS+= p5-enum>=0:../../devel/p5-enum
25 27
26REPLACE_PERL+= bin/ledger2beancount 28REPLACE_PERL+= bin/ledger2beancount
27 29
28BUILD_TARGET= man 30BUILD_TARGET= man
29 31
30INSTALLATION_DIRS+= bin 32INSTALLATION_DIRS+= bin
31INSTALLATION_DIRS+= ${PKGMANDIR}/man1 33INSTALLATION_DIRS+= ${PKGMANDIR}/man1
32INSTALLATION_DIRS+= ${PKGMANDIR}/man5 34INSTALLATION_DIRS+= ${PKGMANDIR}/man5
33 35
34do-install: 36do-install:
35 ${INSTALL_SCRIPT} ${WRKSRC}/bin/ledger2beancount ${DESTDIR}${PREFIX}/bin/. 37 ${INSTALL_SCRIPT} ${WRKSRC}/bin/ledger2beancount ${DESTDIR}${PREFIX}/bin/.
36 ${INSTALL_MAN} ${WRKSRC}/docs/ledger2beancount.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/. 38 ${INSTALL_MAN} ${WRKSRC}/docs/ledger2beancount.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/.
37 ${INSTALL_MAN} ${WRKSRC}/docs/ledger2beancount.5 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5/. 39 ${INSTALL_MAN} ${WRKSRC}/docs/ledger2beancount.5 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5/.
38 40
39TEST_DEPENDS+= coreutils>=0:../../sysutils/coreutils 41TEST_DEPENDS+= coreutils>=0:../../sysutils/coreutils
40TEST_DEPENDS+= ledger>=3.0.0:../../finance/ledger 42TEST_DEPENDS+= ledger>=3.0.0:../../finance/ledger
41TEST_DEPENDS+= ${PYPKGPREFIX}-beancount>=0:../../finance/py-beancount 43TEST_DEPENDS+= ${PYPKGPREFIX}-beancount>=0:../../finance/py-beancount
42TEST_DEPENDS+= p5-YAML-Syck>=0:../../textproc/p5-YAML-Syck 44TEST_DEPENDS+= p5-YAML-Syck>=0:../../textproc/p5-YAML-Syck
43 45
44# This should be gsed:test, but that triggers a bug in the mk/ 46# runtests.sh relies on `\s', a GNUism meaning `[[:space:]]', in sed,
45# infrastructure -- the checksum logic thinks TOOL_SED is gsed, but the 47# so use gsed. This should be gsed:test, but that triggers a bug in
46# depends logic hasn't actually brought gsed in because it's only 48# the mk/ infrastructure -- the checksum logic thinks TOOL_SED is gsed,
47# needed for test. 49# but the depends logic hasn't actually brought gsed in because it's
 50# only needed for test.
48USE_TOOLS+= gsed 51USE_TOOLS+= gsed
49 52
 53# runtests.sh relies on GNU sort's `sort -V' for sorting versions.
50TEST_ENV+= SORT=gsort 54TEST_ENV+= SORT=gsort
51 55
52TEST_TARGET= test 56TEST_TARGET= test
53 57
54.include "../../lang/python/pyversion.mk" 58.include "../../lang/python/pyversion.mk"
55.include "../../mk/bsd.pkg.mk" 59.include "../../mk/bsd.pkg.mk"
 60
 61# XXX Need to override default pkgsrc settings of these environment
 62# variables for tests, which require a UTF-8 locale.
 63TEST_ENV+= LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 LC_ALL=

cvs diff -r1.3 -r1.4 pkgsrc/finance/ledger2beancount/distinfo (expand / switch to unified diff)

--- pkgsrc/finance/ledger2beancount/distinfo 2020/07/16 18:09:30 1.3
+++ pkgsrc/finance/ledger2beancount/distinfo 2020/11/18 22:39:15 1.4
@@ -1,7 +1,6 @@ @@ -1,7 +1,6 @@
1$NetBSD: distinfo,v 1.3 2020/07/16 18:09:30 riastradh Exp $ 1$NetBSD: distinfo,v 1.4 2020/11/18 22:39:15 riastradh Exp $
2 2
3SHA1 (ledger2beancount-2.0.tar.gz) = f323279e3e1e467b9f40ebc3d26b31d11799b4c0 3SHA1 (ledger2beancount-2.5.tar.gz) = 909d1f86e2cf79e2343e51953ed27d49cb6bee55
4RMD160 (ledger2beancount-2.0.tar.gz) = f81bba80803c3b7235aff03ae6c7c05b6397d96e 4RMD160 (ledger2beancount-2.5.tar.gz) = 65bafe12a0f5b5eb1a95a09485fe5f0637ae797d
5SHA512 (ledger2beancount-2.0.tar.gz) = a5a741b8af1bb26d0c01673c70e0aee49926d3acfe36b5f160e01d0038f459902beaed89c69bd6179ade09798a0c6103c960796d8bf9a23897791bdefc51e360 5SHA512 (ledger2beancount-2.5.tar.gz) = a456c5c6f0259bf633b257a7496e05d8530a73cc3ae5a5e42c8d2e0b4ae66adec090936aa1a0c5e3ef330a3569a07fa40be3295799b0477246b8f6eb5fc9697b
6Size (ledger2beancount-2.0.tar.gz) = 67729 bytes 6Size (ledger2beancount-2.5.tar.gz) = 93260 bytes
7SHA1 (patch-tests_runtests) = fd199caeb1bff1559af5f823e9a0efd0f975588a 

File Deleted: pkgsrc/finance/ledger2beancount/patches/Attic/patch-tests_runtests