aboutsummaryrefslogtreecommitdiffstats
path: root/Keywords
diff options
context:
space:
mode:
authorzeising <zeising@FreeBSD.org>2013-12-19 18:49:00 +0800
committerzeising <zeising@FreeBSD.org>2013-12-19 18:49:00 +0800
commitffd5eee971064a5f5d103743e960369e21b0d6a0 (patch)
treed1c6a110737ea4dde2a53b41b74670aeccf172ab /Keywords
parent25615223f8adf63fceebd7b0378de73a5169a742 (diff)
downloadfreebsd-ports-gnome-ffd5eee971064a5f5d103743e960369e21b0d6a0.tar.gz
freebsd-ports-gnome-ffd5eee971064a5f5d103743e960369e21b0d6a0.tar.zst
freebsd-ports-gnome-ffd5eee971064a5f5d103743e960369e21b0d6a0.zip
Try to fix font handling for xorg fonts when using staging and pkgng.
This should silence all QAT messages about leftover font files. Bump portrevision for all affected ports. Original idea: bapt
Diffstat (limited to 'Keywords')
-rw-r--r--Keywords/fc.yaml9
-rw-r--r--Keywords/fcfontsdir.yaml19
-rw-r--r--Keywords/fontsdir.yaml17
3 files changed, 45 insertions, 0 deletions
diff --git a/Keywords/fc.yaml b/Keywords/fc.yaml
new file mode 100644
index 000000000000..239bb4519572
--- /dev/null
+++ b/Keywords/fc.yaml
@@ -0,0 +1,9 @@
+# $FreeBSD$
+#
+# MAINTAINER: x11@FreeBSD.org
+
+actions: [dirrmtry]
+post-install: |
+ fc-cache -s %D/%@ 2>/dev/null || true
+post-deinstall: |
+ fc-cache -s %D/%@ 2>/dev/null || true
diff --git a/Keywords/fcfontsdir.yaml b/Keywords/fcfontsdir.yaml
new file mode 100644
index 000000000000..fdb00a8bf5f4
--- /dev/null
+++ b/Keywords/fcfontsdir.yaml
@@ -0,0 +1,19 @@
+# $FreeBSD$
+#
+# MAINTAINER: x11@FreeBSD.org
+
+actions: [dirrmtry]
+post-install: |
+ fc-cache -s %D/%@ 2>/dev/null || true
+ mkfontscale %D/%@ 2>/dev/null || true
+ mkfontdir %D/%@ 2>/dev/null || true
+post-deinstall: |
+ fc-cache -s %D/%@ 2>/dev/null || true
+ 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
diff --git a/Keywords/fontsdir.yaml b/Keywords/fontsdir.yaml
new file mode 100644
index 000000000000..2f1fdea3504c
--- /dev/null
+++ b/Keywords/fontsdir.yaml
@@ -0,0 +1,17 @@
+# $FreeBSD$
+#
+# MAINTAINER: x11@FreeBSD.org
+
+actions: [dirrmtry]
+post-install: |
+ mkfontscale %D/%@ 2>/dev/null || true
+ mkfontsdir %D/%@ 2>/dev/null || true
+post-deinstall: |
+ mkfontscale %@ 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 %@ 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