summaryrefslogtreecommitdiff
path: root/math/gh-bc/files/patch-locale__install.sh
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2019-11-11 14:33:58 +0000
committerStefan Eßer <se@FreeBSD.org>2019-11-11 14:33:58 +0000
commit64c3a642b6d170b3a89748d084b1c1574519c032 (patch)
tree687b9cbde786b0d82cb30d2e525c2ff3024975ec /math/gh-bc/files/patch-locale__install.sh
parentastro/garmindev: Spell EXPIRATION_DATE correctly (diff)
Update to version 2.3.0
Approved by: antoine (implicit)
Diffstat (limited to 'math/gh-bc/files/patch-locale__install.sh')
-rw-r--r--math/gh-bc/files/patch-locale__install.sh15
1 files changed, 11 insertions, 4 deletions
diff --git a/math/gh-bc/files/patch-locale__install.sh b/math/gh-bc/files/patch-locale__install.sh
index 44bcfd8df43e..1c55c5f99c37 100644
--- a/math/gh-bc/files/patch-locale__install.sh
+++ b/math/gh-bc/files/patch-locale__install.sh
@@ -1,6 +1,6 @@
---- locale_install.sh.orig 2019-05-29 01:32:06 UTC
+--- locale_install.sh.orig 2019-11-09 19:04:17 UTC
+++ locale_install.sh
-@@ -114,6 +114,7 @@ for file in $locales_dir/*.msg; do
+@@ -193,6 +193,7 @@ for file in $locales_dir/*.msg; do
continue
fi
@@ -8,11 +8,18 @@
gencatfile "$loc" "$file"
done
-@@ -143,7 +144,8 @@ for file in $locales_dir/*.msg; do
+@@ -217,14 +218,13 @@ 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 [ ! -f "$destdir/$linksrc" ]; then
gencatfile "$destdir/$linksrc" "$linkdir/$link"
fi
-- ln -s "$linksrc" "$loc"
+- ln -fs "$rel" "$loc"
+ echo ln "$linksrc" "$loc"
+ ln "$linksrc" "$loc"
fi