Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Jan 2022 16:03:08 GMT
From:      Mateusz Piotrowski <0mp@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 05663d559cb8 - main - math/bcal: Update to 2.3
Message-ID:  <202201231603.20NG38C8043659@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by 0mp:

URL: https://cgit.FreeBSD.org/ports/commit/?id=05663d559cb8a942baf883ab5972db5f0605632c

commit 05663d559cb8a942baf883ab5972db5f0605632c
Author:     Mateusz Piotrowski <0mp@FreeBSD.org>
AuthorDate: 2022-01-23 16:02:37 +0000
Commit:     Mateusz Piotrowski <0mp@FreeBSD.org>
CommitDate: 2022-01-23 16:02:37 +0000

    math/bcal: Update to 2.3
---
 math/bcal/Makefile | 11 ++++++++++-
 math/bcal/distinfo |  6 +++---
 2 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/math/bcal/Makefile b/math/bcal/Makefile
index cfee627fc9a9..3c60559bfbb6 100644
--- a/math/bcal/Makefile
+++ b/math/bcal/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	bcal
 DISTVERSIONPREFIX=	v
-DISTVERSION=	2.2
+DISTVERSION=	2.3
 CATEGORIES=	math
 
 MAINTAINER=	0mp@FreeBSD.org
@@ -11,6 +11,10 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 ONLY_FOR_ARCHS=	amd64 powerpc64 powerpc64le
 
+# GNU bc must be used because bcal depends on some behaviors
+# specific to GNU bc. Run the test suite with the bc from the
+# base to see that some tests fail.
+RUN_DEPENDS=	${LOCALBASE}/bin/bc:math/gnubc
 TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}
 
 USES=		gmake python:test,3.5+ readline
@@ -27,6 +31,11 @@ PORTDOCS=	CHANGELOG README.md
 
 OPTIONS_DEFINE=	DOCS
 
+_BC_CMD=	${LOCALBASE}/bin/bc
+
+post-patch:
+	${REINPLACE_CMD} 's|%%BC_CMD%%|${_BC_CMD}|g' ${WRKSRC}/src/bcal.c
+
 post-install:
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/bcal
 
diff --git a/math/bcal/distinfo b/math/bcal/distinfo
index 20ab1ae17f75..acc1ebc5ad30 100644
--- a/math/bcal/distinfo
+++ b/math/bcal/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1580558453
-SHA256 (jarun-bcal-v2.2_GH0.tar.gz) = 506d17d6df35fad636d3ced425afee5921cd2b21242099b78b369cfcb5716e23
-SIZE (jarun-bcal-v2.2_GH0.tar.gz) = 34437
+TIMESTAMP = 1642952426
+SHA256 (jarun-bcal-v2.3_GH0.tar.gz) = e295b022e5187079b4cc5310447da5c787cb6bade86936dabf34a42bb85348ba
+SIZE (jarun-bcal-v2.3_GH0.tar.gz) = 36111



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202201231603.20NG38C8043659>