aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/kanji18
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>2000-06-01 14:46:32 +0800
committerasami <asami@FreeBSD.org>2000-06-01 14:46:32 +0800
commit92170126a08edf49e32c345c624893dd842ed7de (patch)
tree671aad50e217d29cd957e667904457479f03ed5e /japanese/kanji18
parent272323e5ce0d55c612b70d1af2ccbde6a5ae673a (diff)
downloadfreebsd-ports-gnome-92170126a08edf49e32c345c624893dd842ed7de.tar.gz
freebsd-ports-gnome-92170126a08edf49e32c345c624893dd842ed7de.tar.zst
freebsd-ports-gnome-92170126a08edf49e32c345c624893dd842ed7de.zip
Remove empty fonts.dir and fonts.alias files. (Note chinese/kcfonts still
leaves fonts.alias behind -- it is not removing any entries from that file.)
Diffstat (limited to 'japanese/kanji18')
-rw-r--r--japanese/kanji18/files/DEINSTALL.tmpl1
-rw-r--r--japanese/kanji18/pkg-plist3
2 files changed, 2 insertions, 2 deletions
diff --git a/japanese/kanji18/files/DEINSTALL.tmpl b/japanese/kanji18/files/DEINSTALL.tmpl
index ee96237b0b93..5acdd065022e 100644
--- a/japanese/kanji18/files/DEINSTALL.tmpl
+++ b/japanese/kanji18/files/DEINSTALL.tmpl
@@ -9,4 +9,5 @@ if [ "x$2" = "xPOST-DEINSTALL" ]; then
echo "to enable this update."
echo "**********************************************************"
)
+ [ `wc -c ${PKG_PREFIX}/%%FONTSDIR%%/fonts.dir | awk '{print $1}'` = 2 ] && rm -f ${PKG_PREFIX}/%%FONTSDIR%%/fonts.dir
fi
diff --git a/japanese/kanji18/pkg-plist b/japanese/kanji18/pkg-plist
index 8f6d494f2f5f..cb2db49e39f9 100644
--- a/japanese/kanji18/pkg-plist
+++ b/japanese/kanji18/pkg-plist
@@ -3,6 +3,5 @@ share/doc/kanji18/18to16.sed
share/doc/kanji18/README.kanji18
share/doc/kanji18/kanji16.alias
share/doc/kanji18/kanji18.alias
-@exec cd %D/%%FONTSDIR%% ; %D/bin/mkfontdir
-@unexec cd %D/%%FONTSDIR%% ; %D/bin/mkfontdir
+@unexec if [ ! -s %D/%%FONTSDIR%%/fonts.alias ]; then rm -f %D/%%FONTSDIR%%/fonts.alias; fi
@dirrm share/doc/kanji18