mirror of
https://git.freebsd.org/ports.git
synced 2026-06-02 11:08:52 +00:00
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
This commit is contained in:
committed by
Vladimir Druzenko
parent
0d2ebb1187
commit
f7a937e17f
+10
-6
@@ -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 \
|
||||
|
||||
+3
-3
@@ -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
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user