Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Apr 2026 09:05:39 +0000
From:      Vladimir Druzenko <vvd@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Cc:        Juhani Kre=?utf-8?Q?kel=C3=A4?= <juhani@krekela.fi>
Subject:   git: f7a937e17f6c - main - math/units: Update 2.16 => 2.27
Message-ID:  <69d8bd63.44091.413309a@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by vvd:

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

commit f7a937e17f6c74ac153bfae41c5e0c7aa1bfd79d
Author:     Juhani Krekelä <juhani@krekela.fi>
AuthorDate: 2026-04-10 08:44:55 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2026-04-10 09:05:33 +0000

    math/units: Update 2.16 => 2.27
    
    For changelog check NEWS file from tarball:
    https://ftp.gnu.org/gnu/units/units-2.27.tar.gz
    
    PR:             294262
    Approved by:    jharris@widomaker.com (maintainer)
    Sponsored by:   UNIS Labs
---
 math/units/Makefile                | 16 ++++++++++------
 math/units/distinfo                |  6 +++---
 math/units/files/patch-Makefile.in | 10 ++++++++++
 math/units/pkg-plist               |  7 ++++++-
 4 files changed, 29 insertions(+), 10 deletions(-)

diff --git a/math/units/Makefile b/math/units/Makefile
index 607a0087103c..c337becde094 100644
--- a/math/units/Makefile
+++ b/math/units/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	units
-PORTVERSION=	2.16
-PORTREVISION=	3
+DISTVERSION=	2.27
 CATEGORIES=	math
 MASTER_SITES=	GNU
 
@@ -12,14 +11,19 @@ LICENSE=	GPLv3+
 LICENSE_FILE=	${WRKSRC}/COPYING
 
 GNU_CONFIGURE=	yes
-GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
-CONFIGURE_ARGS=	--program-prefix=g
+CONFIGURE_ARGS=	--program-prefix=g --sharedstatedir=${PREFIX}/share
 
 INFO=		units
 
-OPTIONS_DEFINE=		READLINE
+OPTIONS_DEFINE=		READLINE UNITS_CUR
 OPTIONS_DEFAULT=	READLINE
-READLINE_USES=	readline
+OPTIONS_SUB=		yes
+UNITS_CUR_DESC=		Include gunits_cur(8) for updating currency exchange rates
+READLINE_USES=		readline
+UNITS_CUR_USES=			python shebangfix
+UNITS_CUR_MAKE_ARGS=		HAVE_PYTHON=yes
+UNITS_CUR_MAKE_ARGS_OFF=	HAVE_PYTHON=no
+UNITS_CUR_VARS=			SHEBANG_FILES=units_cur
 
 post-patch:
 	@${REINPLACE_CMD} -e \
diff --git a/math/units/distinfo b/math/units/distinfo
index 7702c620a117..cb8fefe74194 100644
--- a/math/units/distinfo
+++ b/math/units/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1529173998
-SHA256 (units-2.16.tar.gz) = dcf3f78482a13b150fc6bf0f8d611510816a3424bc2b26229b85b1cadeb81686
-SIZE (units-2.16.tar.gz) = 1178197
+TIMESTAMP = 1775320992
+SHA256 (units-2.27.tar.gz) = e1bbdb09672e7c08eee986749e7a1629eb84a6bdf41f5a2a79d6804444abbe10
+SIZE (units-2.27.tar.gz) = 1738250
diff --git a/math/units/files/patch-Makefile.in b/math/units/files/patch-Makefile.in
new file mode 100644
index 000000000000..1a69ac5dda7c
--- /dev/null
+++ b/math/units/files/patch-Makefile.in
@@ -0,0 +1,10 @@
+--- Makefile.in.orig	2026-02-19 19:26:24 UTC
++++ Makefile.in
+@@ -112,7 +111,6 @@ units_cur_inst: units_cur
+ 
+ units_cur_inst: units_cur
+ 	sed -e "s*output_dir = ''*output_dir='@CDAT@'*"\
+-            -e "s@/usr/bin/python@$(PYTHON)@" \
+              $(srcdir)/units_cur > units_cur_inst
+ 
+ install-support: definitions.units elements.units units_cur_inst 
diff --git a/math/units/pkg-plist b/math/units/pkg-plist
index 8d46903079a9..45b2140ef29d 100644
--- a/math/units/pkg-plist
+++ b/math/units/pkg-plist
@@ -1,5 +1,10 @@
 bin/gunits
+%%UNITS_CUR%%bin/gunits_cur
+share/man/man1/gunits.1.gz
+%%DATADIR%%/cpi.units
+%%DATADIR%%/crypto.units
 %%DATADIR%%/currency.units
 %%DATADIR%%/definitions.units
+%%DATADIR%%/elements.units
 %%DATADIR%%/locale_map.txt
-share/man/man1/gunits.1.gz
+%%DATADIR%%/metal_prices.units


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69d8bd63.44091.413309a>