diff --git a/math/units/Makefile b/math/units/Makefile index 607a0087103c..c337becde094 100644 --- a/math/units/Makefile +++ b/math/units/Makefile @@ -1,29 +1,33 @@ PORTNAME= units -PORTVERSION= 2.16 -PORTREVISION= 3 +DISTVERSION= 2.27 CATEGORIES= math MASTER_SITES= GNU MAINTAINER= jharris@widomaker.com COMMENT= Unit conversion and calculation WWW= https://www.gnu.org/software/units/ 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 \ 's|$$(INSTALL_PROGRAM) units_cur|${INSTALL_SCRIPT} units_cur|' \ ${WRKSRC}/Makefile.in .include 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