aboutsummaryrefslogtreecommitdiff
path: root/japanese/font-sazanami/pkg-plist
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2008-05-12 17:19:56 +0000
committerHiroki Sato <hrs@FreeBSD.org>2008-05-12 17:19:56 +0000
commitc8b489c8c79c93a51f7b4fd648a62e2e3d37ef98 (patch)
tree20d442675b88878382caf3ec5127cde7b2087cc1 /japanese/font-sazanami/pkg-plist
parentfb4d1f6af48b08937045f214e6c8998416f0e3f5 (diff)
downloadports-c8b489c8c79c93a51f7b4fd648a62e2e3d37ef98.tar.gz
ports-c8b489c8c79c93a51f7b4fd648a62e2e3d37ef98.zip
- Improve fontconfig support.
- Clean up fonts.dir handling. - Use $PORTDOCS.
Notes
Notes: svn path=/head/; revision=212960
Diffstat (limited to 'japanese/font-sazanami/pkg-plist')
-rw-r--r--japanese/font-sazanami/pkg-plist48
1 files changed, 19 insertions, 29 deletions
diff --git a/japanese/font-sazanami/pkg-plist b/japanese/font-sazanami/pkg-plist
index cd108e774532..441ee68d97a9 100644
--- a/japanese/font-sazanami/pkg-plist
+++ b/japanese/font-sazanami/pkg-plist
@@ -1,30 +1,20 @@
@comment $FreeBSD$
-etc/fonts/conf.d/3.sazanami-ttf.conf
-%%FONTSDIR%%/fonts.alias.sazanami
-%%FONTSDIR%%/fonts.dir.sazanami
-%%FONTSDIR%%/sazanami-mincho.ttf
-%%FONTSDIR%%/sazanami-gothic.ttf
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%%%DOCSDIR%%/oradano/README.txt
-%%PORTDOCS%%%%DOCSDIR%%/misaki/misakib8.txt
-%%PORTDOCS%%%%DOCSDIR%%/mplus/LICENSE_J
-%%PORTDOCS%%%%DOCSDIR%%/shinonome/LICENSE
-%%PORTDOCS%%%%DOCSDIR%%/ayu/README.txt
-%%PORTDOCS%%%%DOCSDIR%%/kappa/README
-%%PORTDOCS%%@dirrm %%DOCSDIR%%/oradano
-%%PORTDOCS%%@dirrm %%DOCSDIR%%/misaki
-%%PORTDOCS%%@dirrm %%DOCSDIR%%/mplus
-%%PORTDOCS%%@dirrm %%DOCSDIR%%/shinonome
-%%PORTDOCS%%@dirrm %%DOCSDIR%%/ayu
-%%PORTDOCS%%@dirrm %%DOCSDIR%%/kappa
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
-@exec %%LOCALBASE%%/bin/fc-cache -f -v %D/%%FONTSDIR%% || true
-@exec mkdir -p %%LOCALFONTSDIR%%/TrueType
-@exec ln -s -f %D/%%FONTSDIR%%/sazanami-mincho.ttf %%LOCALFONTSDIR%%/TrueType/sazanami-mincho.ttf
-@exec ln -s -f %D/%%FONTSDIR%%/sazanami-gothic.ttf %%LOCALFONTSDIR%%/TrueType/sazanami-gothic.ttf
-@unexec rm -f %%LOCALFONTSDIR%%/TrueType/sazanami-mincho.ttf
-@unexec rm -f %%LOCALFONTSDIR%%/TrueType/sazanami-gothic.ttf
-@unexec /bin/rmdir %%LOCALFONTSDIR%%/TrueType 2> /dev/null || true
-@unexec /bin/rmdir %%LOCALFONTSDIR%% 2> /dev/null || true
-@unexec %%LOCALBASE%%/bin/fc-cache -f -v %D/%%FONTSDIR%% || true
-@unexec if [ -s %D/%%FONTSDIR%%/fonts.cache-1 ]; then rm -f %D/%%FONTSDIR%%/fonts.cache-1; fi
+%%DATADIR%%/sazanami-mincho.ttf
+%%DATADIR%%/sazanami-gothic.ttf
+%%LOCAL_FONTSDIR%%/TrueType/sazanami-mincho.ttf
+%%LOCAL_FONTSDIR%%/TrueType/sazanami-gothic.ttf
+@dirrmtry %%LOCAL_FONTSDIR%%/TrueType
+@dirrmtry %%LOCAL_FONTSDIR%%
+etc/fonts/conf.avail/20-unhint-sazanami-ttf.conf
+etc/fonts/conf.avail/62-fonts-sazanami-ttf.conf
+@exec ln -s -f ../conf.avail/20-unhint-sazanami-ttf.conf %D/etc/fonts/conf.d/20-unhint-sazanami-ttf.conf
+@exec ln -s -f ../conf.avail/62-fonts-sazanami-ttf.conf %D/etc/fonts/conf.d/62-fonts-sazanami-ttf.conf
+@unexec rm -f %D/etc/fonts/conf.d/20-unhint-sazanami-ttf.conf
+@unexec rm -f %D/etc/fonts/conf.d/62-fonts-sazanami-ttf.conf
+%%X_FONTSDIR%%/TrueType/sazanami-mincho.ttf
+%%X_FONTSDIR%%/TrueType/sazanami-gothic.ttf
+@exec %%LOCALBASE%%/bin/fc-cache -f -v %D/%%X_FONTSDIR%%/TrueType || true
+@unexec %%LOCALBASE%%/bin/fc-cache -f -v %D/%%X_FONTSDIR%%/TrueType || true
+@unexec rm -f %D/%%X_FONTSDIR%%/TrueType/fonts.cache-1
+@dirrmtry %%X_FONTSDIR%%/TrueType
+@unexec if [ -d %D/%%X_FONTSDIR%%/TrueType ]; then %%LOCALBASE%%/bin/fc-cache -f -v %D/%%X_FONTSDIR%%/TrueType || true; fi