aboutsummaryrefslogtreecommitdiff
path: root/japanese/font-shinonome/files
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2009-05-31 13:03:28 +0000
committerHiroki Sato <hrs@FreeBSD.org>2009-05-31 13:03:28 +0000
commit1c3480236ab5fa08f0739a4dccb10fbc7b9b1409 (patch)
treeb9af23ea2f872f2eb4367b00367e730f2661889f /japanese/font-shinonome/files
parentb6e9d40d287a971eaec4e4b8857cb6d466abd4f7 (diff)
downloadports-1c3480236ab5fa08f0739a4dccb10fbc7b9b1409.tar.gz
ports-1c3480236ab5fa08f0739a4dccb10fbc7b9b1409.zip
Notes
Diffstat (limited to 'japanese/font-shinonome/files')
-rw-r--r--japanese/font-shinonome/files/pkg-install.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/japanese/font-shinonome/files/pkg-install.in b/japanese/font-shinonome/files/pkg-install.in
index fe75f621c96e..df4a97d6f177 100644
--- a/japanese/font-shinonome/files/pkg-install.in
+++ b/japanese/font-shinonome/files/pkg-install.in
@@ -10,18 +10,20 @@ POST-INSTALL)
%%LOCALBASE%%/bin/mkfontdir ${X_FONTSDIR}/misc
touch fonts.alias
grep -v -- "-shinonome-" fonts.alias > fonts.alias.tmp
- cat fonts.alias.tmp %%FONTSALIAS%% > fonts.alias
+ (cat fonts.alias.tmp; grep -v "^!!" %%FONTSALIAS%%) > fonts.alias
rm -f fonts.alias.tmp
;;
-DEINSTALL)
+POST-DEINSTALL)
%%LOCALBASE%%/bin/fc-cache -f -v ${X_FONTSDIR}/misc
rm -f ${X_FONTSDIR}/misc/fonts.cache-1
cd ${X_FONTSDIR}/misc
+
%%LOCALBASE%%/bin/mkfontdir ${X_FONTSDIR}/misc
if [ -r ${X_FONTSDIR}/misc/fonts.dir -a `/usr/bin/wc -l < ${X_FONTSDIR}/misc/fonts.dir` = 1 ]; then
rm -f ${X_FONTSDIR}/misc/fonts.dir
fi
+
touch fonts.alias
grep -v -- "-shinonome-" fonts.alias > fonts.alias.tmp
if [ -s fonts.alias.tmp ]; then