aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/font-mona-ipa/files/pkg-install.in
diff options
context:
space:
mode:
Diffstat (limited to 'japanese/font-mona-ipa/files/pkg-install.in')
-rw-r--r--japanese/font-mona-ipa/files/pkg-install.in7
1 files changed, 3 insertions, 4 deletions
diff --git a/japanese/font-mona-ipa/files/pkg-install.in b/japanese/font-mona-ipa/files/pkg-install.in
index 5f102b6d383a..e59d67675c5c 100644
--- a/japanese/font-mona-ipa/files/pkg-install.in
+++ b/japanese/font-mona-ipa/files/pkg-install.in
@@ -1,7 +1,7 @@
#!/bin/sh
# $FreeBSD$
-X_FONTSDIR=%%X_FONTSDIR%%/TTF
+FONTSDIR=%%FONTSDIR%%/TTF
catfontsdir ()
{
@@ -75,7 +75,7 @@ nfonts ()
case "$2" in
POST-INSTALL)
- cd ${X_FONTSDIR}
+ cd ${FONTSDIR}
touch fonts.dir
(catfontsdir < fonts.dir; addentries) > fonts.dir.tmp
nfonts < fonts.dir.tmp > fonts.dir
@@ -83,7 +83,7 @@ POST-INSTALL)
rm -f fonts.dir.tmp
;;
POST-DEINSTALL)
- cd ${X_FONTSDIR}
+ cd ${FONTSDIR}
catfontsdir < fonts.dir > fonts.dir.tmp
nfonts < fonts.dir.tmp > fonts.dir
cat fonts.dir.tmp >> fonts.dir
@@ -91,6 +91,5 @@ POST-DEINSTALL)
if [ -r fonts.dir -a `wc -l < fonts.dir` = 1 ]; then
rm -f fonts.dir
fi
- rmdir ${X_FONTSDIR} > /dev/null 2>&1 || true
;;
esac