summaryrefslogtreecommitdiff
path: root/finance/ledger2beancount/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'finance/ledger2beancount/Makefile')
-rw-r--r--finance/ledger2beancount/Makefile24
1 files changed, 16 insertions, 8 deletions
diff --git a/finance/ledger2beancount/Makefile b/finance/ledger2beancount/Makefile
index c099a0ec218..32b998b7678 100644
--- a/finance/ledger2beancount/Makefile
+++ b/finance/ledger2beancount/Makefile
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.5 2020/08/31 18:09:30 wiz Exp $
+# $NetBSD: Makefile,v 1.6 2020/11/18 22:39:15 riastradh Exp $
-DISTNAME= ledger2beancount-2.0
-PKGREVISION= 2
+DISTNAME= ledger2beancount-2.5
CATEGORIES= finance
MASTER_SITES= ${MASTER_SITE_GITHUB:=beancount/}
GITHUB_PROJECT= ledger2beancount
@@ -16,12 +15,15 @@ USE_TOOLS+= perl:run
TOOL_DEPENDS+= scdoc>=0:../../textproc/scdoc
-DEPENDS+= p5-Config-Onion>=0:../../devel/p5-Config-Onion
DEPENDS+= p5-Date-Calc>=0:../../devel/p5-Date-Calc
DEPENDS+= p5-DateTime-Format-Strptime>=1.58:../../time/p5-DateTime-Format-Strptime
DEPENDS+= p5-File-BaseDir>=0:../../devel/p5-File-BaseDir
DEPENDS+= p5-Getopt-Long-Descriptive>=0:../../devel/p5-Getopt-Long-Descriptive
+DEPENDS+= p5-List-MoreUtils>=0:../../devel/p5-List-MoreUtils
+DEPENDS+= p5-Regexp-Common>=0:../../textproc/p5-Regexp-Common
DEPENDS+= p5-String-Interpolate>=0:../../textproc/p5-String-Interpolate
+DEPENDS+= p5-YAML-XS>=0:../../textproc/p5-YAML-XS
+DEPENDS+= p5-enum>=0:../../devel/p5-enum
REPLACE_PERL+= bin/ledger2beancount
@@ -41,15 +43,21 @@ TEST_DEPENDS+= ledger>=3.0.0:../../finance/ledger
TEST_DEPENDS+= ${PYPKGPREFIX}-beancount>=0:../../finance/py-beancount
TEST_DEPENDS+= p5-YAML-Syck>=0:../../textproc/p5-YAML-Syck
-# This should be gsed:test, but that triggers a bug in the mk/
-# infrastructure -- the checksum logic thinks TOOL_SED is gsed, but the
-# depends logic hasn't actually brought gsed in because it's only
-# needed for test.
+# runtests.sh relies on `\s', a GNUism meaning `[[:space:]]', in sed,
+# so use gsed. This should be gsed:test, but that triggers a bug in
+# the mk/ infrastructure -- the checksum logic thinks TOOL_SED is gsed,
+# but the depends logic hasn't actually brought gsed in because it's
+# only needed for test.
USE_TOOLS+= gsed
+# runtests.sh relies on GNU sort's `sort -V' for sorting versions.
TEST_ENV+= SORT=gsort
TEST_TARGET= test
.include "../../lang/python/pyversion.mk"
.include "../../mk/bsd.pkg.mk"
+
+# XXX Need to override default pkgsrc settings of these environment
+# variables for tests, which require a UTF-8 locale.
+TEST_ENV+= LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 LC_ALL=