aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2004-12-16 13:49:27 +0800
committerkris <kris@FreeBSD.org>2004-12-16 13:49:27 +0800
commit7b7c9bd0dc7d6b6913f2fa5e8ba139254cdbe135 (patch)
tree190106e9bf54a571703d713bb45b9e73a9c9d8c7 /misc
parentbefba174ca2c351e960ed7779aef28e6453785ff (diff)
downloadfreebsd-ports-gnome-7b7c9bd0dc7d6b6913f2fa5e8ba139254cdbe135.tar.gz
freebsd-ports-gnome-7b7c9bd0dc7d6b6913f2fa5e8ba139254cdbe135.tar.zst
freebsd-ports-gnome-7b7c9bd0dc7d6b6913f2fa5e8ba139254cdbe135.zip
Clean up handling of locale directories at deinstall-time:
* Don't remove "system directories" (which were created by BSD.*.dist) * Silently try to remove locale directories which we might have created
Diffstat (limited to 'misc')
-rw-r--r--misc/gnome-mime-data/pkg-plist4
-rw-r--r--misc/gnomemimedata/pkg-plist4
-rw-r--r--misc/hello/pkg-plist2
-rw-r--r--misc/kcd-devel/pkg-plist4
-rw-r--r--misc/kcd/pkg-plist4
-rw-r--r--misc/mc/pkg-plist2
6 files changed, 18 insertions, 2 deletions
diff --git a/misc/gnome-mime-data/pkg-plist b/misc/gnome-mime-data/pkg-plist
index e2dbf809686b..362ed1422627 100644
--- a/misc/gnome-mime-data/pkg-plist
+++ b/misc/gnome-mime-data/pkg-plist
@@ -73,3 +73,7 @@ share/locale/wa/LC_MESSAGES/gnome-mime-data.mo
share/locale/yi/LC_MESSAGES/gnome-mime-data.mo
share/locale/zh_CN/LC_MESSAGES/gnome-mime-data.mo
share/locale/zh_TW/LC_MESSAGES/gnome-mime-data.mo
+@unexec rmdir %D/share/locale/sr@ije/LC_MESSAGES 2>/dev/null || true
+@unexec rmdir %D/share/locale/sr@ije 2>/dev/null || true
+@unexec rmdir %D/share/locale/yi/LC_MESSAGES 2>/dev/null || true
+@unexec rmdir %D/share/locale/yi
diff --git a/misc/gnomemimedata/pkg-plist b/misc/gnomemimedata/pkg-plist
index e2dbf809686b..362ed1422627 100644
--- a/misc/gnomemimedata/pkg-plist
+++ b/misc/gnomemimedata/pkg-plist
@@ -73,3 +73,7 @@ share/locale/wa/LC_MESSAGES/gnome-mime-data.mo
share/locale/yi/LC_MESSAGES/gnome-mime-data.mo
share/locale/zh_CN/LC_MESSAGES/gnome-mime-data.mo
share/locale/zh_TW/LC_MESSAGES/gnome-mime-data.mo
+@unexec rmdir %D/share/locale/sr@ije/LC_MESSAGES 2>/dev/null || true
+@unexec rmdir %D/share/locale/sr@ije 2>/dev/null || true
+@unexec rmdir %D/share/locale/yi/LC_MESSAGES 2>/dev/null || true
+@unexec rmdir %D/share/locale/yi
diff --git a/misc/hello/pkg-plist b/misc/hello/pkg-plist
index 914c002038dc..d0dfbd192c7e 100644
--- a/misc/hello/pkg-plist
+++ b/misc/hello/pkg-plist
@@ -33,3 +33,5 @@ info/hello.info
%%NLS%%share/locale/sv/LC_MESSAGES/hello.mo
%%NLS%%share/locale/tr/LC_MESSAGES/hello.mo
%%NLS%%share/locale/uk/LC_MESSAGES/hello.mo
+%%NLS%%@unexec rmdir %D/share/locale/de_DE/LC_MESSAGES 2> /dev/null || true
+%%NLS%%@unexec rmdir %D/share/locale/de_DE 2> /dev/null || true
diff --git a/misc/kcd-devel/pkg-plist b/misc/kcd-devel/pkg-plist
index c92f07ed9238..af488b09f1c8 100644
--- a/misc/kcd-devel/pkg-plist
+++ b/misc/kcd-devel/pkg-plist
@@ -9,3 +9,7 @@ share/locale/en_US.UTF-8/LC_MESSAGES/kcd.mo
%%PORTDOCS%%share/examples/kcd/kcd.sh.init
%%PORTDOCS%%@dirrm share/examples/kcd
%%PORTDOCS%%@dirrm share/doc/kcd
+@unexec rmdir %D/share/locale/en_GB.UTF-8/LC_MESSAGES 2> /dev/null || true
+@unexec rmdir %D/share/locale/en_GB.UTF-8 2> /dev/null || true
+@unexec rmdir %D/share/locale/en_US.UTF-8/LC_MESSAGES 2> /dev/null || true
+@unexec rmdir %D/share/locale/en_US.UTF-8 2> /dev/null || true
diff --git a/misc/kcd/pkg-plist b/misc/kcd/pkg-plist
index c92f07ed9238..af488b09f1c8 100644
--- a/misc/kcd/pkg-plist
+++ b/misc/kcd/pkg-plist
@@ -9,3 +9,7 @@ share/locale/en_US.UTF-8/LC_MESSAGES/kcd.mo
%%PORTDOCS%%share/examples/kcd/kcd.sh.init
%%PORTDOCS%%@dirrm share/examples/kcd
%%PORTDOCS%%@dirrm share/doc/kcd
+@unexec rmdir %D/share/locale/en_GB.UTF-8/LC_MESSAGES 2> /dev/null || true
+@unexec rmdir %D/share/locale/en_GB.UTF-8 2> /dev/null || true
+@unexec rmdir %D/share/locale/en_US.UTF-8/LC_MESSAGES 2> /dev/null || true
+@unexec rmdir %D/share/locale/en_US.UTF-8 2> /dev/null || true
diff --git a/misc/mc/pkg-plist b/misc/mc/pkg-plist
index 3e8128a1d7c9..6c2b42649854 100644
--- a/misc/mc/pkg-plist
+++ b/misc/mc/pkg-plist
@@ -137,8 +137,6 @@ share/mc/term/xterm.ti
@dirrm share/mc
@unexec rmdir %D/share/locale/wa/LC_MESSAGES 2>/dev/null || true
@unexec rmdir %D/share/locale/wa 2>/dev/null || true
-@unexec rmdir %D/share/locale/hu/LC_MESSAGES 2>/dev/null || true
-@unexec rmdir %D/share/locale/hu 2>/dev/null || true
@unexec rmdir %D/man/es/man1 2>/dev/null || true
@unexec rmdir %D/man/es/cat1 2>/dev/null || true
@unexec rmdir %D/man/es 2>/dev/null || true