aboutsummaryrefslogtreecommitdiff
path: root/Keywords/fontsdir.ucl
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-07-24 17:10:57 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-07-24 17:10:57 +0000
commit1cee61cab57a175608fa153da8f17362ce7f8af4 (patch)
tree6d99d938e0ca10ccdec46bf68bcefc8fdf264016 /Keywords/fontsdir.ucl
parentead20185b28fda5ec096aff5a273feb959287940 (diff)
downloadports-1cee61cab57a175608fa153da8f17362ce7f8af4.tar.gz
ports-1cee61cab57a175608fa153da8f17362ce7f8af4.zip
Convert keywords in pure ucl format
yaml version will be removed later
Notes
Notes: svn path=/head/; revision=362833
Diffstat (limited to 'Keywords/fontsdir.ucl')
-rw-r--r--Keywords/fontsdir.ucl19
1 files changed, 19 insertions, 0 deletions
diff --git a/Keywords/fontsdir.ucl b/Keywords/fontsdir.ucl
new file mode 100644
index 000000000000..d4974074f448
--- /dev/null
+++ b/Keywords/fontsdir.ucl
@@ -0,0 +1,19 @@
+# $FreeBSD$
+#
+# MAINTAINER: x11@FreeBSD.org
+
+actions: [dirrmtry]
+post-install: <<EOD
+ mkfontscale %D/%@ 2>/dev/null || true
+ mkfontdir %D/%@ 2>/dev/null || true
+EOD
+post-deinstall: <<EOD
+ mkfontscale %D/%@ 2>/dev/null || true
+ if [ -e %D/%@/fonts.scale -a "`stat -f '%%z' %D/%@/fonts.scale 2>/dev/null`" = '2' ]; then
+ rm %D/%@/fonts.scale
+ fi
+ mkfontdir %D/%@ 2>/dev/null || true
+ if [ -e %D/%@/fonts.dir -a "`stat -f '%%z' %D/%@/fonts.dir 2>/dev/null`" = '2' ]; then
+ rm %D/%@/fonts.dir
+ fi
+EOD