diff --git a/math/gh-bc/Makefile b/math/gh-bc/Makefile index 46ad83742cf8..f93492f3633c 100644 --- a/math/gh-bc/Makefile +++ b/math/gh-bc/Makefile @@ -1,51 +1,51 @@ PORTNAME= bc -PORTVERSION= 7.0.3 +PORTVERSION= 7.1.0 CATEGORIES= math lang MASTER_SITES= https://github.com/gavinhoward/bc/releases/download/${PORTVERSION}/ PKGNAMEPREFIX= gh- MAINTAINER= se@FreeBSD.org COMMENT= GNU compatible bc/dc calculator -WWW= https://git.gavinhoward.com/gavin/bc +WWW= https://github.com/gavinhoward/bc LICENSE= BSD2CLAUSE MIT LICENSE_COMB= multi LICENSE_FILE= ${WRKSRC}/LICENSE.md USES= compiler:c11 tar:xz HAS_CONFIGURE= yes CONFIGURE_SCRIPT= configure.sh CONFIGURE_ARGS+= --predefined-build-type=BSD --disable-problematic-tests TEST_TARGET= test CONFLICTS_INSTALL= gnubc OPTIONS_DEFAULT= LIBEDIT OPTIONS_RADIO= HISTORY OPTIONS_RADIO_HISTORY= LIBEDIT READLINE INTERNAL INTERNAL_DESC= Command line editing via private functions INTERNAL_CONFIGURE_ON= --enable-internal-history LIBEDIT_USES= libedit LIBEDIT_CONFIGURE_ON= --enable-editline READLINE_USES= readline READLINE_CONFIGURE_ON= --enable-readline pre-build: ${INSTALL_SCRIPT} ${WRKSRC}/gen/strgen.sh ${WRKSRC}/gen/strgen do-install: ${INSTALL_PROGRAM} ${WRKSRC}/bin/bc ${STAGEDIR}${PREFIX}/bin/ ${LN} ${STAGEDIR}${PREFIX}/bin/bc ${STAGEDIR}${PREFIX}/bin/dc ${INSTALL_MAN} ${WRKSRC}/manuals/bc.1 ${STAGEDIR}${PREFIX}/share/man/man1 ${INSTALL_MAN} ${WRKSRC}/manuals/dc.1 ${STAGEDIR}${PREFIX}/share/man/man1 ${MKDIR} ${STAGEDIR}${PREFIX}/share/nls/C ${WRKSRC}/scripts/locale_install.sh ${STAGEDIR}${PREFIX}/share/nls/%L/%N.cat ${PORTNAME} ${MV} ${STAGEDIR}${PREFIX}/share/nls/en_US/bc.cat ${STAGEDIR}${PREFIX}/share/nls/C/ ${RMDIR} ${STAGEDIR}${PREFIX}/share/nls/en_US .include diff --git a/math/gh-bc/distinfo b/math/gh-bc/distinfo index 5feae26c9632..a5c2c14a2f47 100644 --- a/math/gh-bc/distinfo +++ b/math/gh-bc/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1727212592 -SHA256 (bc-7.0.3.tar.xz) = 91eb74caed0ee6655b669711a4f350c25579778694df248e28363318e03c7fc4 -SIZE (bc-7.0.3.tar.xz) = 474800 +TIMESTAMP = 1753705124 +SHA256 (bc-7.1.0.tar.xz) = 1f13663ba0f2435b684321714a4d0b9fff32bb951fc78dc7424cd69bba5c0d3a +SIZE (bc-7.1.0.tar.xz) = 597940 diff --git a/math/gh-bc/files/patch-scripts_locale__install.sh b/math/gh-bc/files/patch-scripts_locale__install.sh index b3587849ec51..38bd9aad9b89 100644 --- a/math/gh-bc/files/patch-scripts_locale__install.sh +++ b/math/gh-bc/files/patch-scripts_locale__install.sh @@ -1,29 +1,29 @@ ---- scripts/locale_install.sh.orig 2023-02-02 08:17:33 UTC +--- scripts/locale_install.sh.orig 2024-09-24 03:54:03 UTC +++ scripts/locale_install.sh -@@ -246,6 +246,7 @@ for file in $locales_dir/*.msg; do +@@ -247,6 +247,7 @@ for file in $locales_dir/*.msg; do # Generate the proper location for the cat file. loc=$(gen_nlspath "$destdir/$nlspath" "$locale" "$main_exec") + echo gencatfile "$loc" "$file" gencatfile "$loc" "$file" printf 'done\n' -@@ -289,8 +290,6 @@ for file in $locales_dir/*.msg; do +@@ -290,8 +291,6 @@ for file in $locales_dir/*.msg; do linkdir=$(dirname "$file") locale=$(basename "$link" .msg) linksrc=$(gen_nlspath "$nlspath" "$locale" "$main_exec") - relloc="${loc##$destdir/}" - rel=$(relpath "$linksrc" "$relloc") # If the target file doesn't exist (because it's for a locale that is # not installed), generate it anyway. It's easier this way. -@@ -300,7 +299,8 @@ for file in $locales_dir/*.msg; do +@@ -301,7 +300,8 @@ for file in $locales_dir/*.msg; do # Finally, symlink to the install of the generated cat file that # corresponds to the correct msg file. - ln -fs "$rel" "$loc" + echo ln "$linksrc" "$loc" + ln "$linksrc" "$loc" printf 'done\n' fi